Amazon SOA-C02: Deployment, Provisioning, and Automation — Study Guide

Part of the AWS SysOps Administrator Associate SOA-C02 — Study Guide. Practice with verified answers in the Amazon exam hub, or take timed practice tests on ExamRoll.io.

This domain covers the methods and tooling used to provision, update, and operate AWS infrastructure and application deployments reliably and repeatedly. It emphasizes declarative, idempotent provisioning, automated pipelines for releases, and operational automation that reduces manual toil while preserving auditability and security. Operators must balance safety (rollbacks, change policies) with velocity (immutable images, automated patching), and choose patterns that support compliance and recoverability.

CloudFormation and Infrastructure as Code patterns

Use CloudFormation (or CDK/Terraform) to declare infrastructure as code so stacks are idempotent: a template describes desired state and the engine converges resources. Prefer declarative resources and parameters over imperative scripts. Typical CLI patterns:

Design decisions:

When comparing IaC approaches:

CI/CD and deployment automation practices

Implement repeatable pipeline stages: source -> build -> test -> deploy. Use AWS CodePipeline integrating CodeBuild, CodeDeploy, or third-party tools (Jenkins, GitHub Actions). Key configurations:

Decision criteria for deployment strategies:

Manage secrets and parameters securely: store parameters in SSM Parameter Store (SecureString) or AWS Secrets Manager; give pipeline roles kms:Decrypt and ssm:GetParameter or secretsmanager:GetSecretValue as needed.

AMI baking, immutable images, and AMI management

Immutable infrastructure means creating a new AMI with all OS and application patches baked in, then replacing instances instead of mutating them. Use EC2 Image Builder or Packer in CI to produce AMIs automatically:

Manage AMI lifecycle:

Compare mutable vs immutable:

AWS Systems Manager automation, Run Command, and patching

Systems Manager (SSM) centralizes operational tasks: Run Command for ad-hoc commands, State Manager for desired state, Patch Manager for scheduled OS patching, and Automation for complex workflows. Common CLI patterns:

Configuration details and decision points:

Change management, drift detection, and rollback

Implement change control that integrates pipeline runs, tags, and approvals. Use CloudFormation change sets for previewing diffs and stack policies to reject destructive updates. CLI patterns:

Rollback strategies:

Decision criteria:

Common Pitfalls and Decision Criteria

Practical Problem: Use-Case Scenario

Acme Payments must deploy a PCI-compliant API service, apply monthly OS patches, and be able to roll back quickly if a deployment causes errors during business hours.

  1. Implement an immutable pipeline: use CodePipeline/CodeBuild to bake AMIs with EC2 Image Builder (or Packer), tag AMIs, and publish AMI ID to SSM Parameter Store.
  2. Deploy via CloudFormation templates that reference the SSM parameter for the AMI and create a new ASG + Launch Template version for each release; use change sets for pre-flight review.
  3. Use CodeDeploy or ALB target-group blue/green traffic shifting with health checks and automated smoke tests; configure automatic rollback on health check failure.
  4. Schedule Patch Manager via Systems Manager Maintenance Windows for non-peak patch application; perform bake-and-deploy for patched images to avoid in-place patching of production.
  5. Enforce least-privilege IAM for pipeline roles, store secrets in Secrets Manager, and enable CloudFormation drift detection and stack policies for critical resources.

Rationale: Baking images and deploying immutably separates build and run concerns, giving reproducible artifacts and safe rollback paths; automated patching via SSM plus immutable deploys minimizes risk and supports compliance while maintaining recoverability.


High Availability · All domains · Security

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Amazon →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product