Skip to content
AWS Certified Solutions Architect – Professional (SAP-C03) Exam Prep

Lesson 5 of 5 · 14 min

x
5/5

Operational Excellence and Automation (20%)

Video lesson: SAP-C03 Domain 5: Operational Excellence and Automation

Domain 5 is 20% of the scored content of the AWS Certified Solutions Architect – Professional (SAP-C03) exam. AWS facts were checked against current AWS documentation in November 2026.

TaskStatement
5.1Design infrastructure as code
5.2Design CI/CD and DevSecOps pipelines
5.3Design observability and monitoring solutions
5.4Design operational automation and resilient systems

Overview

Domain 5: Operational Excellence and Automation AWS Certified Solutions Architect – Professional (SAP-C03): infrastructure as code, pipelines, observability and automated operations

Welcome to Domain 5 of the AWS Certified Solutions Architect Professional exam, SAP-C03: Operational Excellence and Automation. It is 20 percent of the scored content, about 13 of the 65 scored questions.

Task 5.1 is infrastructure as code: CloudFormation and the C D K, policy as code, secrets in templates, and multi-account deployment with StackSets.

Task 5.2 is CI/CD and DevSecOps: pipelines, security scanning and artifact signing, cross-account delivery, evaluating A I applications, and deployment strategies with rollback.

Task 5.3 is observability: metrics, logs and traces, container monitoring, central log aggregation, alerting, A I metrics, user experience monitoring and service-level objectives.

Task 5.4 is operational automation: health and capacity, safe remediation patterns, scaling policies, automated recovery and runbooks.

All of it follows the Well-Architected operational excellence pillar: operations as code, small reversible changes, and learning from failures.

The key: automate with guardrails, using validation, approvals, stop conditions and automatic rollback.

Exam key takeaway: Domain 5 tests IaC with policy as code, secure multi-account pipelines with safe rollouts, full observability with SLOs, and automated, guarded operations.

5.1 Design infrastructure as code

Infrastructure as Code Task 5.1 · Declarative and imperative IaC, policy as code, secrets and multi-account rollout

NeedDesignNote
Declarative templatesAWS CloudFormation; change sets; drift detectionReview before update
Code-first IaCAWS CDK in TypeScript, Python, Java and more; synthesizes CloudFormationReusable constructs
Proactive policy checksCloudFormation Hooks; Guard rules; CDK aspects; Control Tower proactive controlsBlock bad resources before creation
Detect and remediate driftAWS Config rules with remediation; SCPs as hard limitsDetective plus preventive
Secrets in templatesDynamic references to Secrets Manager or Parameter StoreNever plaintext in code
Many accounts and RegionsCloudFormation StackSets with service-managed permissionsAuto-deploy to new accounts in OUs

Task 5.1 is infrastructure as code. AWS CloudFormation is declarative: you describe resources, preview updates with change sets, and detect drift from the template.

The A W S C D K is code-first: you write TypeScript, Python, Java or other languages, use reusable constructs, and it synthesizes CloudFormation.

Policy as code checks resources before they exist: CloudFormation Hooks and Guard rules validate templates during deployment, C D K aspects enforce rules at synthesis, and Control Tower proactive controls use hooks.

After deployment, Config rules detect drift and non-compliance and trigger remediation, while S C Ps set hard limits.

Never put secrets in templates. Use dynamic references to Secrets Manager or Parameter Store secure strings, or let R D S manage the master password in Secrets Manager.

For many accounts and Regions, CloudFormation StackSets with service-managed permissions deploy to O Us and automatically to new accounts, with controls for concurrency and failure tolerance.

Exam key takeaway: CloudFormation or CDK for IaC, Hooks, Guard and aspects to validate before deployment, Config to remediate drift, dynamic references for secrets, StackSets for org-wide rollout.

5.2 Design CI/CD and DevSecOps pipelines

CI/CD and DevSecOps Pipelines Task 5.2 · Build, scan, sign, promote and evaluate

  • Pipeline services: Task 5.2 is pipelines. CodePipeline orchestrates source from CodeCommit or GitHub, CodeBuild builds and tests, and CodeDeploy deploys to EC2, E C S or Lambda. CodeCommit returned to general availability in November 2025.
  • Security scanning: Shift security left: scan container images with E C R and Amazon Inspector, and scan code and dependencies in the build, failing the pipeline on critical findings.
  • Sign artifacts: Sign artifacts with AWS Signer, for container images and Lambda code, and verify signatures before deployment with code signing configurations or admission policies.
  • Cross-account delivery: For multi-account delivery, a pipeline in a tools account assumes deployment roles in development, test and production accounts. Artifacts sit in an encrypted bucket whose K M S key policy allows those accounts.
  • Promotion and approval: Build once and promote the same artifact through stages and Regions, with automated tests and a manual approval before production.
  • Evaluate AI outputs: For A I applications, Amazon Bedrock Evaluations score models and knowledge bases automatically, with a model as judge, or with human reviewers, so quality becomes a release gate.

Exam key takeaway: CodePipeline with CodeBuild and CodeDeploy, Inspector and ECR scans, Signer for artifacts, cross-account deploy roles with shared KMS keys, promote one artifact, and gate AI with Bedrock Evaluations.

Deployment Strategies with Rollback Task 5.2 · Choose by risk, cost and rollback speed

StrategyHow It WorksRollback
All at onceReplace everything togetherSlow; full outage risk
RollingReplace in batches; capacity dips unless extra batchRedeploy previous version
Blue/greenNew environment; switch traffic via ALB, DNS or CodeDeployInstant: switch back
CanarySmall share first (for example 10%), then the restAlarms trigger automatic rollback
LinearEqual increments on a scheduleAutomatic on alarm
Feature flagsDeploy dark, enable with AppConfigTurn the flag off

Deployment strategies trade risk, cost and rollback speed. All at once replaces everything together, the fastest and riskiest.

Rolling deployments replace batches in turn, with reduced capacity unless you add an extra batch, and roll back by redeploying the old version.

Blue/green builds a separate new environment and switches traffic through a load balancer, D N S or CodeDeploy, so rollback is an instant switch back.

Canary sends a small share of traffic first, such as 10 percent, then the rest, with CloudWatch alarms triggering automatic rollback.

Linear shifts traffic in equal increments on a schedule, also rolling back automatically on alarms.

Feature flags, with AWS AppConfig, deploy code dark and enable it gradually, and rollback is simply turning the flag off.

Exam key takeaway: Rolling saves cost, blue/green gives instant rollback, canary and linear limit blast radius with alarm-driven rollback, and AppConfig feature flags separate deploy from release.

5.3 Design observability and monitoring solutions

Observability Across Accounts Task 5.3 · Metrics, logs and traces, containers, central logs and alerting

  • Standard instrumentation: Task 5.3 is observability. Instrument once with the A W S Distro for OpenTelemetry to collect metrics, logs and traces, and send traces to X-Ray and CloudWatch.
  • Container Insights: CloudWatch Container Insights gives E C S and E K S metrics and logs per cluster, service, task and pod.
  • Central logs: For multi-account log aggregation, CloudWatch Logs subscription filters stream to destinations in a central account, often through Firehose to S3, with lifecycle rules archiving to Glacier. CloudWatch cross-account observability links monitoring accounts.
  • Alerting: For alerting, CloudWatch alarms and composite alarms reduce noise, notify through S N S, and create Systems Manager OpsItems for tracking.
  • AI and ML metrics: For A I workloads, watch inference latency, token usage, errors and guardrail interventions, and agent step success in AgentCore Observability. For custom models, SageMaker Model Monitor detects data and model drift.
  • User experience: For user experience, CloudWatch Synthetics canaries test key journeys around the clock, and CloudWatch R U M measures what real users see in their browsers.

Exam key takeaway: Instrument with ADOT and X-Ray, use Container Insights, centralize logs with subscriptions, alert with composite alarms, watch AI latency, tokens and drift, and add Synthetics and RUM.

Service-Level Objectives Task 5.3 · Measurable indicators, targets and alerts with CloudWatch Application Signals

Sli, Slo And Error Budget - SLI: what you measure, such as availability or p99 latency - SLO: the target, such as 99.9% over 30 days - Error budget: the allowed failure; slow down releases when spent - Alert on burn rate, not on every blip

Cloudwatch Application Signals - Auto-instruments services; shows latency, errors, volume - Create SLOs on service metrics or any CloudWatch metric - SLO attainment and burn-rate alarms - Service map links SLOs to traces and logs

Exam key takeaway: Define SLIs and SLOs with error budgets, alert on burn rate, and use CloudWatch Application Signals to auto-instrument services, track SLO attainment and drill into traces.

5.4 Design operational automation and resilient systems

Automated and Resilient Operations Task 5.4 · Health, capacity, safe remediation, scaling and recovery

NeedDesignNote
Respond to eventsEventBridge rules on alarms and AWS Health events; SSM AutomationEvent to runbook, no human
Capacity planningService Quotas monitoring and increases; trusted forecastsQuotas raised before launches
Safe remediationCircuit breakers, rate limits, bulkheads, retries with backoff and jitterStop automation making it worse
Scaling policiesTarget tracking; step; scheduled; predictive scaling for ASGsPredictive learns daily and weekly cycles
Automatic recoveryASG ELB health checks; ECS task replacement; Lambda retries and destinationsReplace, don't repair
Runbooks and incidentsSSM Automation for patching, remediation, scaling; incident response plans with escalationRepeatable and audited

Task 5.4 is operational automation. EventBridge rules react to CloudWatch alarms and AWS Health events and start Systems Manager Automation runbooks.

For capacity planning, monitor Service Quotas with CloudWatch alarms and request increases before launches or failovers need them.

Remediation needs safety: circuit breakers stop calling a failing dependency, rate limits cap actions, bulkheads isolate failures, and retries use exponential backoff with jitter.

Scale with target tracking for most cases, scheduled scaling for known events, and predictive scaling for Auto Scaling groups with regular daily or weekly cycles.

For recovery, Auto Scaling groups with load balancer health checks replace instances, E C S replaces failed tasks, and Lambda retries asynchronous events and sends failures to destinations or dead-letter queues.

Codify routine tasks such as patching, remediation and scaling as Systems Manager Automation runbooks, and use incident response plans with escalation and post-incident analysis.

Exam key takeaway: Trigger runbooks from EventBridge, watch Service Quotas, remediate with circuit breakers and backoff, scale with target tracking, scheduled and predictive policies, and replace failed parts automatically.

Review

Exam Distractors: What to Reject Answers that work once, but are not repeatable, safe or auditable

  1. Database password typed into the template. Dynamic reference to Secrets Manager.
  2. Running the same stack by hand in 60 accounts. StackSets with service-managed permissions.
  3. Config rules only, to stop bad templates. CloudFormation Hooks before creation.
  4. Rebuilding artifacts separately for each stage. Build once; promote one artifact.
  5. Retrying failures immediately in a tight loop. Exponential backoff with jitter.
  6. Alarm on every single metric spike. SLO burn rate and composite alarms.

Exam key takeaway: Reject secrets in templates, manual multi-account deployments, detect-only policy checks, rebuilding artifacts for each stage, tight retry loops and noisy per-metric alarms.

Where current AWS differs from the exam guide

  • AWS CodeCommit returned to general availability on November 24, 2025, after being closed to new customers in July 2024.

References

  1. AWS Certified Solutions Architect – Professional exam page — checked Nov 30, 2026

Check your understanding

  • Every new account in an OU needs the same baseline stack.Show answer

    Answer

    StackSets with automatic deployment.
  • Block untagged or unencrypted resources at deployment time.Show answer

    Answer

    CloudFormation Hooks.
  • Shift 10% of Lambda traffic, roll back on errors.Show answer

    Answer

    CodeDeploy canary with alarms.
  • Test the checkout journey every 5 minutes from outside.Show answer

    Answer

    CloudWatch Synthetics canary.
  • Track 99.9% availability per service with burn alerts.Show answer

    Answer

    Application Signals SLOs.

Next step: take a SAP-C03 practice exam

You have reached the end of the course. Take practice exam 1 without notes, check your score by domain, then go back to the lessons for your weakest domain before the next exam. There are 10 exams with 750 questions in all, and every answer is explained.

Previous

Progress is saved in this browser.

Finish Course