SAP-C03 · LESSON 5
Operational Excellence and Automation20% · 3 topics
Review IaC changes and drift; promote scanned artifacts through approvals. AI revisions require quality and safety evaluations beyond HTTP success. Monitor SLOs and user experience, and bound remediation targets, attempts and duration to prevent cascading failures.
5.1Control and automate changes and operations
Concept
Review IaC changes and drift; promote scanned artifacts through approvals. AI revisions require quality and safety evaluations beyond HTTP success. Monitor SLOs and user experience, and bound remediation targets, attempts and duration to prevent cascading failures.
How it works / steps
- Write requirements and success criteria first.
- Use a test environment and retain success and failure evidence.
- Review the result, then check your decisions with domain practice below.
Workplace example
Test rollout stop conditions and rollback, retaining evidence for operators.
Common confusions and exam tips
- Mock accuracy does not convert to official scaled scores. Check current service behavior in official documentation.
Mini quiz
Q1. An ECS service is deployed blue/green with CodeDeploy. If errors increase in the new version, you want to revert to the old version without human intervention. Which method is most appropriate?
- Stop blue/green, switch to all-at-once deployment, and re-release a fix immediately when errors occur
- Greatly increase client-side retry counts so errors are absorbed by retries
- Have staff check logs hourly after deployment and redeploy the old task definition if errors are high
- Associate CloudWatch alarms with the deployment group and enable automatic rollback on alarm
Show answer and explanation
Answer: D Associate CloudWatch alarms with the deployment group and enable automatic rollback on alarm
If an alarm fires during deployment or the wait period, CodeDeploy can automatically roll back and return traffic to the original task set.
Q2. Production settings were changed manually in the console, diverged from the staging environment and caused an outage. What is the most appropriate improvement?
- Record config changes with AWS Config and notify staff on change
- Record change actions in CloudTrail to identify who made them
- Codify the configuration in CloudFormation, change via templates, and find manual changes with drift detection
- Require approval of change requests before console changes in production
Show answer and explanation
Answer: C Codify the configuration in CloudFormation, change via templates, and find manual changes with drift detection
Manage configuration as code and make changes through reviewed templates. CloudFormation drift detection finds differences between the template and the actual configuration. [Other options] Config or CloudTrail records find changes but don't keep environments matching. Approval alone still leaves manual-change mismatches.
Reference links
5.2Design a deployment strategy to meet business requirements
Concept
Deployment strategies include in-place, rolling, blue/green, canary and linear. To eliminate downtime and roll back quickly, use blue/green (Route 53, ALB weighting, CodeDeploy); to validate with limited impact, use canary. Use CloudFormation StackSets to deploy the same foundation to multiple accounts and Regions, and CodePipeline for application pipelines.
How it works / steps
- Confirm requirements for acceptable downtime and rollback speed
- Choose a deployment method that fits the requirements
- Define infrastructure as IaC and deploy it to all organization accounts with StackSets
- Switch gradually with CodeDeploy, Lambda aliases or ECS blue/green
- Roll back automatically when CloudWatch alarms detect anomalies
Workplace example
Release a new payment API version as a 10% canary with a Lambda alias, monitor the error rate for 10 minutes, and switch fully if there are no problems.
Common confusions and exam tips
- Blue/green temporarily needs twice the resources
- Even with blue/green, DB schema changes must be backward compatible
- With service-managed permissions, StackSets can deploy automatically to new accounts
Mini quiz
Q1. You are choosing a release method for a new version. Being able to roll back to the old version within minutes if there is a problem is the top priority, and paying for two environments during the switchover is acceptable. Which is the most suitable?
- All-at-once deployment
- Canary deployment
- Blue/green deployment
- Rolling deployment
Show answer and explanation
Answer: C Blue/green deployment
Blue/green prepares a separate new environment (green) and switches traffic. If there is a problem, you just send traffic back to the old environment (blue).
Q2. You are choosing how to codify and deploy infrastructure. You want to deploy the same IAM roles and Config rules to all accounts and Regions in an OU, and automatically apply them to accounts added in the future. Which is the most suitable?
- CloudFormation change sets
- CloudFormation StackSets
- AWS CDK
- AWS Service Catalog
Show answer and explanation
Answer: B CloudFormation StackSets
StackSets create and update stacks in multiple accounts and Regions from one template. With service-managed permissions, they also deploy automatically to accounts added to the OU.
Reference links
5.3Develop a strategy to improve operational excellence
Concept
The core of operational improvement is automation and observability. Automate routine tasks (restarts, patching, AMI creation) with Systems Manager Automation runbooks, and visualize state with CloudWatch (metrics, logs, alarms, Synthetics) and X-Ray (distributed tracing). Detect incidents with EventBridge and standardize response with Incident Manager or similar.
How it works / steps
- Identify manual operating procedures and automate them as runbooks
- Monitor key metrics with CloudWatch dashboards and alarms
- Identify slow services and dependencies with X-Ray
- Trigger automated responses from events with EventBridge rules
- Prevent recurrence through post-incident reviews
Workplace example
When disk utilization exceeds 90%, EventBridge triggers Systems Manager Automation to delete old logs and posts the result to Slack.
Common confusions and exam tips
- Version-control and test automation as runbooks
- Logs and metrics alone make it hard to see where microservices are slow (tracing is needed)
- Change management (Change Manager) is also within operations
Mini quiz
Q1. Which statement about AWS X-Ray is incorrect?
- Tracing can be enabled with integrations such as Lambda and API Gateway
- Sampling rules adjust the proportion of requests recorded
- A service map shows how requests flow across multiple services and the latency of each segment
- It automatically records the contents of all traffic without code changes or installing an SDK or agent
Show answer and explanation
Answer: D It automatically records the contents of all traffic without code changes or installing an SDK or agent
Using X-Ray requires SDK instrumentation, installing ADOT or the X-Ray daemon, or enabling tracing on the service side. It records trace information, not the full contents of all traffic.
Q2. An existing system with steadily increasing usage may hit service quota limits by next year. What is the most appropriate measure?
- Contact AWS Support to discuss after errors occur from hitting the limit
- Freeze the number of users at the current level and do not let new departments use the system
- Monitor Service Quotas utilization with CloudWatch and request increases before approaching limits
- Quotas increase automatically with usage, so no monitoring or preparation is needed
Show answer and explanation
Answer: C Monitor Service Quotas utilization with CloudWatch and request increases before approaching limits
Watch usage trends and raise quotas before reaching them. Some Service Quotas utilization metrics can have alarms set.
Reference links
Lessons are written by this site based on public information and do not guarantee exam content. Product specifications change, so check the latest information at the reference links.
Notes (unofficial, original questions, no pass guarantee)
- The questions on this site are original practice questions written by this site based on publicly available skills outlines and exam guides. They are not actual exam questions.
- Amazon Web Services, AWS and related marks are trademarks of Amazon.com, Inc. or its affiliates. This site is not affiliated with or endorsed by AWS.
- This content is a study aid and does not guarantee a pass. Exam content, format and prerequisites may change without notice; always check the latest information on the official page before taking the exam.
- Your accuracy on the mock exam cannot be converted to the official (scaled) score and does not predict a pass or fail.
- Progress is saved only in this browser (localStorage) unless you sign in with Google to sync it. You can delete it from the Cookie & storage settings page (Japanese).