Geavanceerd
Zoeken inSamenvattingen
Zo zoek je
  • Woorden vinden lestitels, tekst en code. Filter op soort (gidsen, cursussen, programma's, boeken) of blijf in dit boek.
  • book:rhcsa en ch:8 maken de zoektocht kleiner; #code vindt een woord alleen in commando's van de lessen.
  • "twee woorden" vindt precies die zin.
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken
Probeer:

Cursus 4Naam in de cursus: AWS 3 - 3 - Continuous Improvement for Existing Solutions

Continuous Improvement for Existing Solutions

Course 4 of 5 in the AWS 3 Solutions Architect Professional path on Manara. How to improve an AWS system that is already in production.

Notitie

My result — Tasks in this course: all done (131/131); Module review quizzes: 100% (each module); Path progress: all 453 tasks of the 5 courses done.

Course page: Manara

  • 31 Lessen
  • 0 Commando's
  • 2 Labs

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

4.1

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.

4.2

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.

4.3

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.

4.4

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.

4.5

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.

4.6

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.

4.7

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.

4.8

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.

4.9

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.

4.10

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.

4.11

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.

4.12

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.

4.13

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.

4.14

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.

4.15

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.

4.16

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.

4.17

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.

4.18

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.

4.19

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.

4.20

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.

4.21

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.

4.22

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.

4.23

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.

4.24

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.

4.25

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.

4.26

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.

4.27

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.

4.28

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
Access AnalyzerThe AWS tool that finds risky access paths.
Active-activeEvery Region serves traffic at the same time.
AlarmA rule on a metric that fires when a value passes a limit.
ALBThe Application Load Balancer for HTTP.
Alert fatiguePeople stop reading alerts because there are too many.
All-at-onceSwap every instance in one step.
Anycast IPOne IP that many edge sites can answer for.
Automation documentThe written steps for a repair job.
Availability ZoneOne or more data centers inside a Region.
Backup planThe rules for what to back up and when.
Backup vaultThe container that holds backups.
Blue/green deploymentTwo environments, with a switch of traffic from old to new.
Blue/greenTwo identical environments, with a traffic switch.
BudgetA spend limit that sends an alert.
CanaryA script that tests an app on a schedule.
Capacity planningLooking ahead at the capacity you will need.
Circuit breakerA switch that stops calls to a sick service.
CloudFrontThe AWS content delivery network that caches content near users.
CloudWatch alarmA rule on one metric or a set of metrics.
ClusterLow latency, but one fault can hit many instances.
CommitmentThe amount you promise to spend or use.
Compliance driftA resource moves away from the rule.
Composite alarmOne alarm built from other alarms.
Condition keyA rule that limits when or where access works.
Config ruleA check on the settings of a resource.
Configuration complianceA server matches the required settings.
Cost allocation tagA tag used to split cost.
Custom metricA number you define and send to CloudWatch.
DashboardOne screen with the metrics a team watches.
Data gravityData pulls compute to its location.
Deregistration delayThe wait before a target stops receiving traffic.
Direct ConnectA private link from your site to AWS.
DRSElastic Disaster Recovery, the AWS failover service.
EgressData that leaves AWS for the internet.
Elastic Disaster RecoveryAn AWS service for fast cloud failover.
Envelope encryptionA data key wrapped by a master key.
EventBridgeThe event bus that routes signals to targets.
Exponential backoffWait longer after each failed try.
ForecastA guess of future cost from past data.
GuardDutyThe AWS threat detection service.
InterruptionAWS stopping a Spot Instance.
JitterA small random delay added to retries.
KPIA key number that shows if the promise is met.
Lambda@EdgeCode that runs at CloudFront edge sites.
Least privilegeThe smallest access that still does the job.
Logs InsightsThe CloudWatch tool that queries log data.
Maintenance windowThe time allowed for patching.
NLBThe Network Load Balancer for very fast traffic.
Parameter StoreThe central place for settings and secrets.
PartitionGroups that fail apart from each other.
Patch baselineThe list of patches a server may get.
Patch groupA set of servers with the same patch rules.
PercentileThe value below which most requests fall.
Permission boundaryA hard cap on what a role can do.
PIIData that can identify a person.
Placement groupA rule for where EC2 instances are placed.
Predictive scalingAdd capacity before a known busy time.
Quota increaseAn approved larger limit.
Rate-based ruleA rule that blocks too many requests.
RegionA separate geographic area with its own services.
RemediationThe action that puts a resource back in line.
ReplicationA copy of data in a second place.
Replication lagThe time between a write and its copy.
Reserved InstanceA discount for a long capacity promise.
Restore testA real run to prove a backup works.
Retention policyThe rule for how long data is kept.
RightsizingMatching resource size to real need.
Rolling updateReplace instances a few at a time.
RotationReplace a secret with a new one on a schedule.
RPOThe most data loss the business can accept.
RTCReplication Time Control, the fast S3 option.
RTOThe most time the business can wait to be back.
Savings PlanA discount for a set hourly spend.
Secret rotationReplacing a password or key with a new one on a schedule.
Secrets ManagerThe AWS service that stores and rotates secrets.
SecureStringAn encrypted parameter type in Parameter Store.
Service quotaThe AWS limit for one resource or rate.
SLAThe written promise to customers.
Spot InstanceCheap spare capacity that can be taken back.
Staging areaThe low-cost copy of servers kept in AWS.
Tabletop exerciseA talk-through test with no live system.
TagA key and value label used to group and split cost.
Target trackingKeep a metric near a set value.
TTLHow long a cache may keep a file.
WAFThe web firewall that checks each request.
Warm-upThe time a new instance needs before it serves traffic.

4.29

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.

Oefenen