Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
Alerting and Automatic Remediation Strategies
CloudWatch alarms watch a metric and act when a value passes a limit.
- A warning alarm tells the team. A critical alarm can start a fix.
- Systems Manager Automation runs a document of steps to repair a problem.
- EventBridge takes events and sends them to the right target.
In more detail
- Set the limit from normal use. If CPU is 40–60%, alarm at 80%.
- Keep automation small. Log each step. Ask a person to approve risky steps.
- In EventBridge, filter events so only real problems start a workflow.
Disaster Recovery Planning
DR has a range of options: backup and restore, pilot light, warm standby, hot standby.
- RPO is how much data you can lose. RTO is how fast you must be back.
- AWS Elastic Disaster Recovery copies servers nonstop and starts them fast.
- A plan you never test is not a plan.
In more detail
- Elastic Disaster Recovery uses block-level copy, so RPO can be seconds.
- Failover runs in order: network, security groups, database, then apps.
- Add health checks. Move traffic slowly after recovery. Keep a rollback.
Monitoring and Logging Solutions
CloudWatch Logs Insights searches many log groups with a query language.
- Log queries show slow steps, errors, and strange patterns.
- Custom metrics track your own app and business numbers.
- Dashboards show each team the data it needs in real time.
In more detail
- Limit a query by time and by log group. This keeps it fast.
- Build one dashboard for leaders, one for operations, one for developers.
- Tie alert urgency to business impact. Send the first alert to automation.
CI/CD Pipelines and Deployment Strategies
Blue/green runs two environments. You switch traffic when the new one is healthy.
- A rolling update replaces old instances in small batches.
- All-at-once replaces everything at the same time. It is fast but risky.
- Use all-at-once only for low-risk workloads.
In more detail
- Send a small percent of traffic to the new version first. Add more if it is healthy.
- Use health checks that test real user actions, not just uptime.
- All-at-once fits dev, test, internal tools, and batch jobs.
Configuration Management Tools
Systems Manager checks that servers match the rules you set.
- Patch Manager can patch servers on a schedule.
- Parameter Store keeps settings and secrets in one safe place.
- Versioning and access control keep changes safe.
In more detail
- Start from a known good state, then fix any server that drifts away.
- Patch in groups. Test first. Keep a rollback step.
- Store secrets as SecureString. Rotate them. Log who reads them.
Data Retention, Sensitivity, and Regulatory Requirements
Keep data only as long as a law or a business need says.
- Classify data first. Know where personal data lives and why.
- Encrypt data at rest, in transit, and in use.
- Give each job the smallest access it needs.
In more detail
- Use S3 lifecycle rules to move old data and delete it on time.
- Use AWS Config rules to catch data that is kept too long.
- Write down the retention period and the law behind it.
Automated Monitoring and Remediation Strategies
AWS Config rules check resource settings all the time.
- A rule can come from AWS, or you can write your own.
- A bad resource can start an automatic fix.
- Systems Manager Automation runs the fix steps.
In more detail
- Rules run when a resource changes, or on a timer.
- Send the compliance event to EventBridge, then to Systems Manager.
- Risky fixes can wait for a person to say yes.
Secrets Management
Secrets Manager stores passwords and keys, away from code.
- It can rotate secrets on a schedule with no downtime.
- IAM roles decide who may read each secret.
- Audit logs show every access to a secret.
In more detail
- Rotation has four steps: make new, store, test, switch.
- Use condition keys for time, IP, and Region.
- Cache a secret for a short time to cut calls and cost.
Principle of Least Privilege Access
Give each job only the permissions it needs.
- Use roles, not long-lived keys.
- IAM Access Analyzer finds unused or public access.
- Test a policy before you deploy it.
In more detail
- Limit access by resource, by time, and by network location.
- Add permission boundaries and session policies for extra limits.
- Read CloudTrail to find permissions nobody uses.
Security-Specific AWS Solutions
AWS WAF filters web requests with rules.
- Start new WAF rules in count mode to see false positives.
- Shield Advanced protects against large DDoS attacks.
- GuardDuty finds threats by watching logs and behavior.
In more detail
- Put cheap, high-match WAF rules first. Put slow rules last.
- Use rate limits with higher levels for logged-in users.
- Let GuardDuty findings start a Lambda fix, such as blocking an IP.
Patching Practices
Patch Manager scans and installs OS and app patches.
- A patch baseline says which patches are allowed.
- A maintenance window says when patching may run.
- Compliance reports show which servers are behind.
In more detail
- Approve critical security patches fast. Hold feature updates for review.
- Patch in waves. Use pre and post scripts. Keep rollback ready.
- Limit how many servers patch at one time.
Backup Practices and Methods
AWS Backup runs backup plans across many services.
- Lifecycle rules move old backups to cheap storage, then delete them.
- Copy backups to another account and another Region.
- Test restore, not just backup.
In more detail
- Back up critical data more often than low-value data.
- Keep a copy in a security account. Then an attacker cannot delete all copies.
- KMS keys are per Region, so plan key copies too.
High-Performing Systems Architectures
Auto Scaling has target tracking, step, and predictive policies.
- Pick a metric that matches real load, like queue depth.
- Warm-up time and lifecycle hooks make new instances ready.
- EC2 Fleet mixes instance types to cut cost.
In more detail
- Use Spot for stateless work. Keep some On-Demand for safety.
- Add scheduled scaling for known busy hours.
- Watch cost and performance together. Change limits from data.
Placement Groups
A placement group controls how instances sit in the network.
- Cluster puts instances close, for very low latency.
- Spread puts instances apart, for high availability.
- Partition splits instances into groups that do not share racks.
In more detail
- Use cluster groups for HPC and tight, fast links.
- Use spread for a small set of critical instances. It allows 7 per AZ.
- Use partitions for large systems that share data across many nodes.
Global Service Offerings
Global Accelerator gives two static anycast IPs and a fast AWS path.
- Route 53 sends users to the right Region by DNS.
- CloudFront caches content near users at edge locations.
- Edge functions run small code close to the user.
In more detail
- Route 53 picks the endpoint. Global Accelerator moves the traffic.
- Use short TTLs for changing content and long TTLs for static files.
- CloudFront Functions are tiny and fast. Lambda@Edge can do more.
Monitoring Tool Sets and Services
CloudWatch Synthetics runs canaries that act like real users.
- A canary can check a page, an API, or a link from many Regions.
- Composite alarms join many alarms with AND, OR, and NOT.
- Good composite alarms cut noise and show real outages.
In more detail
- Put canaries on the flows that make money, like checkout.
- Use screenshots and HAR files to find the slow step.
- Set alarm limits from past data, not from a guess.
SLAs and KPIs
An SLA is a promise about the level of service.
- A KPI is a number you watch to keep that promise.
- Use user metrics, not only server metrics.
- Set targets from real data and business impact.
In more detail
- Use percentiles for bad experiences. Averages hide the slow users.
- Downtime on a busy day hurts more than downtime at night.
- Review the SLA when the business changes.
AWS Global Infrastructure
A Region has 3–6 Availability Zones.
- An AZ has its own power and network.
- Local Zones and Wavelength Zones bring services closer to users.
- Multi-Region design can be active-passive or active-active.
In more detail
- Active-passive keeps a ready copy and saves cost in normal times.
- Active-active sends traffic to all Regions all the time.
- Use Route 53 health checks to move traffic when a Region fails.
Data Replication Methods
S3 replication copies objects to another bucket, Region, or account.
- Replication Time Control copies most objects in 15 minutes.
- Replication lag is normal, so plan for it.
- Delete markers need a clear policy.
In more detail
- Use filters and storage classes to lower copy cost.
- Watch lag metrics in CloudWatch and alert on slow copies.
- Copy critical data first. Serve cached reads while lag is high.
Scaling Methodologies
ALB routes HTTP traffic. NLB routes fast TCP and UDP traffic.
- Both need good health checks and connection draining.
- Predictive scaling learns patterns and adds capacity early.
- Combine predictive and reactive scaling for safety.
In more detail
- Pick metrics that match demand, like requests or queue depth.
- Keep a buffer above the forecast. Too small a buffer risks outages.
- Use Spot for the base of capacity. Keep On-Demand for safety.
High Availability and Resiliency
Build in layers: app, data, network, and cache.
- Retry only errors that may pass.
- Use backoff with jitter so retries do not flood a service.
- A circuit breaker stops calls to a failing service.
In more detail
- Retry 5xx errors. Do not retry 4xx errors.
- Set a retry budget and fail fast when it is used up.
- Use idempotency keys so a retry does not create a duplicate.
Disaster Recovery Methods and Tools
Elastic Disaster Recovery keeps a copy of servers ready in AWS.
- Automation can start recovery without a person.
- Test DR on a schedule: small checks often, full tests less often.
- Start in order: database, then apps, then checks.
In more detail
- Size the staging area for low cost but fast enough for the RTO.
- Test data integrity, not just that servers start.
- Write down findings after each test and fix them.
Service Quotas and Limits
A quota is the most you may use of a resource or a rate.
- Quotas can be per account, per Region, or per AZ.
- Watch use and ask for more before you hit the limit.
- One low quota can block other services.
In more detail
- Alert at 70% as a warning and 90% as critical.
- Check linked quotas together, like Lambda and API Gateway.
- Write the business reason before you request an increase.
Cost-Conscious Architecture Choices
Spot Instances use spare AWS capacity and cost much less.
- Spot can be taken back with a two-minute warning.
- Use Spot for batch, test, and stateless work.
- Compute Optimizer suggests bigger or smaller resources from data.
In more detail
- Mix instance types and AZs to lower the chance of a stop.
- Checkpoint long jobs so they can resume after a stop.
- Apply low-risk rightsizing first and watch it for a while.
Price Model Adoptions
Reserved Instances give a discount for a 1 or 3 year promise.
- Savings Plans promise hourly spend, not one instance type.
- Commit only to the steady part of your use.
- Keep some workloads flexible for change.
In more detail
- Look for instances that run all the time for 30 days or more.
- Start by covering 60–70% of the baseline, then grow.
- Check each month how much of the commitment you use.
Networking and Data Transfer Costs
Data in the same AZ is free. Cross-AZ and cross-Region copies cost.
- Internet egress costs money for each GB.
- Keep compute near the data to cut transfer.
- CloudFront caching lowers origin traffic.
In more detail
- Use VPC endpoints to reach AWS services without the internet.
- Move old data to cheaper storage with lifecycle rules.
- Direct Connect can cost less than internet egress at high volume.
Cost Management, Alerting, and Reporting
AWS Budgets tracks spend and sends alerts.
- Tags split cost by team, project, and environment.
- Cost Explorer shows cost patterns over time.
- Forecasts help plan the next budget.
In more detail
- Require tags at project start. Use Config rules to enforce them.
- Set alerts at 50%, 75%, and 90% for fast-growing projects.
- Compare the forecast with real spend each month.
Key terms
The words of this course in one table. Learn them before the quiz or exam.
| Term | Meaning |
|---|---|
| Access Analyzer | The AWS tool that finds risky access paths. |
| Active-active | Every Region serves traffic at the same time. |
| Alarm | A rule on a metric that fires when a value passes a limit. |
| ALB | The Application Load Balancer for HTTP. |
| Alert fatigue | People stop reading alerts because there are too many. |
| All-at-once | Swap every instance in one step. |
| Anycast IP | One IP that many edge sites can answer for. |
| Automation document | The written steps for a repair job. |
| Availability Zone | One or more data centers inside a Region. |
| Backup plan | The rules for what to back up and when. |
| Backup vault | The container that holds backups. |
| Blue/green deployment | Two environments, with a switch of traffic from old to new. |
| Blue/green | Two identical environments, with a traffic switch. |
| Budget | A spend limit that sends an alert. |
| Canary | A script that tests an app on a schedule. |
| Capacity planning | Looking ahead at the capacity you will need. |
| Circuit breaker | A switch that stops calls to a sick service. |
| CloudFront | The AWS content delivery network that caches content near users. |
| CloudWatch alarm | A rule on one metric or a set of metrics. |
| Cluster | Low latency, but one fault can hit many instances. |
| Commitment | The amount you promise to spend or use. |
| Compliance drift | A resource moves away from the rule. |
| Composite alarm | One alarm built from other alarms. |
| Condition key | A rule that limits when or where access works. |
| Config rule | A check on the settings of a resource. |
| Configuration compliance | A server matches the required settings. |
| Cost allocation tag | A tag used to split cost. |
| Custom metric | A number you define and send to CloudWatch. |
| Dashboard | One screen with the metrics a team watches. |
| Data gravity | Data pulls compute to its location. |
| Deregistration delay | The wait before a target stops receiving traffic. |
| Direct Connect | A private link from your site to AWS. |
| DRS | Elastic Disaster Recovery, the AWS failover service. |
| Egress | Data that leaves AWS for the internet. |
| Elastic Disaster Recovery | An AWS service for fast cloud failover. |
| Envelope encryption | A data key wrapped by a master key. |
| EventBridge | The event bus that routes signals to targets. |
| Exponential backoff | Wait longer after each failed try. |
| Forecast | A guess of future cost from past data. |
| GuardDuty | The AWS threat detection service. |
| Interruption | AWS stopping a Spot Instance. |
| Jitter | A small random delay added to retries. |
| KPI | A key number that shows if the promise is met. |
| Lambda@Edge | Code that runs at CloudFront edge sites. |
| Least privilege | The smallest access that still does the job. |
| Logs Insights | The CloudWatch tool that queries log data. |
| Maintenance window | The time allowed for patching. |
| NLB | The Network Load Balancer for very fast traffic. |
| Parameter Store | The central place for settings and secrets. |
| Partition | Groups that fail apart from each other. |
| Patch baseline | The list of patches a server may get. |
| Patch group | A set of servers with the same patch rules. |
| Percentile | The value below which most requests fall. |
| Permission boundary | A hard cap on what a role can do. |
| PII | Data that can identify a person. |
| Placement group | A rule for where EC2 instances are placed. |
| Predictive scaling | Add capacity before a known busy time. |
| Quota increase | An approved larger limit. |
| Rate-based rule | A rule that blocks too many requests. |
| Region | A separate geographic area with its own services. |
| Remediation | The action that puts a resource back in line. |
| Replication | A copy of data in a second place. |
| Replication lag | The time between a write and its copy. |
| Reserved Instance | A discount for a long capacity promise. |
| Restore test | A real run to prove a backup works. |
| Retention policy | The rule for how long data is kept. |
| Rightsizing | Matching resource size to real need. |
| Rolling update | Replace instances a few at a time. |
| Rotation | Replace a secret with a new one on a schedule. |
| RPO | The most data loss the business can accept. |
| RTC | Replication Time Control, the fast S3 option. |
| RTO | The most time the business can wait to be back. |
| Savings Plan | A discount for a set hourly spend. |
| Secret rotation | Replacing a password or key with a new one on a schedule. |
| Secrets Manager | The AWS service that stores and rotates secrets. |
| SecureString | An encrypted parameter type in Parameter Store. |
| Service quota | The AWS limit for one resource or rate. |
| SLA | The written promise to customers. |
| Spot Instance | Cheap spare capacity that can be taken back. |
| Staging area | The low-cost copy of servers kept in AWS. |
| Tabletop exercise | A talk-through test with no live system. |
| Tag | A key and value label used to group and split cost. |
| Target tracking | Keep a metric near a set value. |
| TTL | How long a cache may keep a file. |
| WAF | The web firewall that checks each request. |
| Warm-up | The time a new instance needs before it serves traffic. |
Check yourself
Answer each question first, then open it to check the answer.
1What is the job of a critical alarm?
It starts automatic remediation when a real problem is found.
2Which number is about lost data?
RPO. It sets the allowed data loss.
3What makes a Logs Insights query faster?
A short time range and only the log groups you need.
4Which strategy is the safest for a critical app?
Blue/green, with checks and a slow traffic shift.
5Where do you keep a setting that many apps share?
In Parameter Store, with access control and versioning.
6What should come before you set a retention period?
A data classification and the laws that apply to the data.
7What starts the fix when a resource breaks a rule?
A Config rule event that reaches an automation workflow.
8Why do we rotate a password?
A leaked or old password stops working, so the risk window is short.
9How do you know a permission is not needed?
CloudTrail and Access Analyzer show it was never used.
10Why start a WAF rule in count mode?
To see what it would block, without blocking real users.
11What decides if a patch is approved?
The patch baseline and its approval rules.
12Why keep a backup in a second account?
If the main account is attacked, the copies there stay safe.
13What metric fits a queue-based worker better than CPU?
Queue depth. It shows real waiting work.
14Which group gives the best fault isolation?
Spread. Each instance sits in a different failure domain.
15Which service improves the network path, not only DNS?
AWS Global Accelerator.
16What do composite alarms help you avoid?
Too many false alarms, also called alert fatigue.
17Why is the average response time not enough?
It hides the slow end of the users.
18How many AZs does a Region usually have?
Usually 3 to 6.
19What does RTC promise about timing?
99.99% of objects arrive within 15 minutes.
20Why use a buffer with predictive scaling?
A forecast can be wrong, and the buffer covers the gap.
21Why add jitter to retries?
So all clients do not retry at the same moment.
22What must start before the application servers?
The database and the core services they depend on.
23Why can one quota block another service?
Services depend on each other, so a low limit in one stops growth in the other.
24Which workload fits Spot best?
A batch job that can stop and resume.
25When is a Savings Plan better than a Reserved Instance?
When the architecture may change instance type, Region, or service.
26What is the cheapest data transfer path?
Traffic inside one Availability Zone.
27What happens when a budget threshold is crossed?
AWS sends an alert to the people you set.
Useful links
Official documentation and pages for this course.