Configuration Management and IaC (17%)
Domain 2 is 17% of the scored content of the AWS Certified DevOps Engineer – Professional (DOP-C02) exam. AWS facts were checked against current AWS documentation in November 2026.
| Task | Statement |
|---|---|
| 2.1 | Define cloud infrastructure and reusable components to provision and manage systems throughout their lifecycle |
| 2.2 | Deploy automation to create, onboard, and secure AWS accounts in a multi-account or multi-Region environment |
| 2.3 | Design and build automated solutions for complex tasks and large-scale environments |
Overview
Domain 2: Configuration Management and IaC AWS Certified DevOps Engineer – Professional (DOP-C02): templates, accounts at scale, and automated operations
Welcome to Domain 2 of the AWS Certified DevOps Engineer Professional exam, DOP-C02: Configuration Management and Infrastructure as Code. It is 17 percent of the scored content, about 11 of the 65 scored questions.
Task 2.1 is defining infrastructure and reusable components: CloudFormation, S A M and the C D K, StackSets, Service Catalog, modules, and configuration services such as AppConfig.
Task 2.2 is creating, onboarding and securing accounts: Organizations, Control Tower, S C Ps and cross-account roles, and governance controls at scale.
Task 2.3 is automating complex tasks: Systems Manager inventory, patching and State Manager, Lambda with the A W S S D Ks, and Step Functions.
Governance controls come in three kinds: preventive, detective and proactive.
The guide still lists OpsWorks and Proton, but both are retired; answer with Systems Manager and CloudFormation.
The key: new accounts and resources should arrive already configured and compliant, with no manual steps.
Exam key takeaway: Domain 2 tests composing reusable IaC, rolling it out across accounts and Regions, governing accounts with Organizations and Control Tower, and automating configuration with Systems Manager.
2.1 Define cloud infrastructure and reusable components to provision and manage systems throughout their lifecycle
Infrastructure as Code Options Task 2.1 · Pick the tool for the job
- AWS CloudFormation: Task 2.1 starts with CloudFormation: declarative J SON or YAML templates deployed as stacks, extended with registry resource types, modules, macros and custom resources backed by Lambda.
- AWS SAM: The A W S Serverless Application Model is a CloudFormation transform for serverless apps, with sam build and sam deploy, and gradual Lambda deployments through CodeDeploy.
- AWS CDK: The A W S C D K defines infrastructure with constructs in programming languages: level one maps raw resources, level two adds sensible defaults, level three builds whole patterns. It synthesizes CloudFormation.
- Reusable components: Reuse comes from CloudFormation modules, nested stacks and shared C D K construct libraries, so security standards are written once.
- AWS Service Catalog: Service Catalog offers approved products, usually CloudFormation templates, for self-service, with launch, template and tag constraints.
- AWS AppConfig: AWS AppConfig manages feature flags and runtime configuration, validating changes and rolling them out gradually with automatic rollback on alarms.
Exam key takeaway: CloudFormation is the base, SAM simplifies serverless, CDK adds programming constructs, modules and libraries reuse standards, Service Catalog offers approved products, AppConfig rolls out configuration.
Change Management for IaC Task 2.1 · Review, protect and roll out template changes
| Feature | What It Does | Use When |
|---|---|---|
| Change sets | Preview adds, modifies and replacements | Before every production update |
| Stack policies and DeletionPolicy | Block updates; retain or snapshot on delete | Protect databases and stateful resources |
| Drift detection | Finds changes made outside the template | After console fixes or audits |
| StackSets | One template to many accounts and Regions | Baselines across an organization |
| Hooks and Guard | Check resources before provisioning | Enforce standards in every stack |
| Git and pipelines | Pull requests, reviews, automated deploys | Every infrastructure change |
Task 2.1 also covers change management. Change sets preview what an update will add, modify or replace before you run it.
Stack policies block updates to critical resources, and DeletionPolicy Retain or Snapshot protects data when a resource is removed.
Drift detection finds changes made outside the template, for example after an emergency console fix.
StackSets deploy one template to many accounts and Regions, with service-managed permissions, automatic deployment to new accounts in an O U, and concurrency and failure tolerance settings.
CloudFormation Hooks and Guard rules check resources before they're provisioned, blocking noncompliant changes.
And every change goes through Git pull requests, review, and an automated pipeline, never the console.
Exam key takeaway: Preview with change sets, protect with stack and deletion policies, find drift, roll out with StackSets, enforce with Hooks and Guard, and push every change through Git and a pipeline.
2.2 Deploy automation to create, onboard, and secure AWS accounts in a multi-account or multi-Region environment
Accounts at Scale Task 2.2 · Create, organize and govern many accounts
| Service | Role | Remember |
|---|---|---|
| AWS Organizations | OUs, consolidated billing, policies | Group accounts by function, not team |
| AWS Control Tower | Landing zone, controls, Account Factory | Log archive and audit accounts |
| Account Factory customization | AFT (Terraform) or customizations | Baseline every new account |
| SCPs and RCPs | Maximum permissions for principals and resources | Don't affect the management account |
| Cross-account roles | Assume a role with sts:AssumeRole | Trust policy plus permissions policy |
| Delegated administrators | Run security services from a member account | Keep the management account empty |
Task 2.2 is accounts at scale. AWS Organizations groups accounts into O Us, consolidates billing and applies policies; structure O Us by function, such as security, infrastructure and workloads.
AWS Control Tower sets up a landing zone with a log archive and an audit account, applies controls, and creates accounts through Account Factory.
Account Factory for Terraform, or Control Tower customizations, apply your own baseline to every new account automatically.
Service control policies set the maximum permissions for principals in member accounts, and resource control policies do the same for resources; neither affects the management account.
Automation reaches other accounts by assuming roles: the trust policy says who can assume it, and the permissions policy says what it can do.
Delegated administrators run services such as Security Hub, GuardDuty and Config from a member account, keeping the management account free of workloads.
Exam key takeaway: Organize with Organizations OUs, build a Control Tower landing zone, baseline accounts with AFT, cap permissions with SCPs and RCPs, use cross-account roles, and delegate administration.
Governance Controls at Scale Task 2.2 · Preventive, detective and proactive controls across the organization
- Preventive controls: Preventive controls block actions before they happen, through S C Ps, R C Ps and declarative policies, such as denying unapproved Regions.
- Detective controls: Detective controls find noncompliance after the fact, with A W S Config rules and conformance packs deployed across the organization.
- Proactive controls: Proactive controls, implemented as CloudFormation Hooks in Control Tower, stop noncompliant resources from being provisioned.
- Security Hub: Security Hub aggregates findings and checks security standards, configured centrally for every account.
- GuardDuty and Detective: GuardDuty detects threats, and Amazon Detective builds behavior graphs to investigate them.
- Service Catalog at scale: Service Catalog portfolios shared to O Us let teams launch only approved patterns.
Exam key takeaway: Prevent with SCPs, RCPs and declarative policies, detect with Config, block before deploy with proactive hooks, aggregate in Security Hub, detect and investigate threats, share approved products.
2.3 Design and build automated solutions for complex tasks and large-scale environments
Automating Complex Tasks Task 2.3 · Inventory, patching, desired state and custom workflows
| Need | Service | Detail |
|---|---|---|
| Know what's installed | Systems Manager Inventory | Resource data sync to S3 for Athena |
| Patch fleets | Patch Manager and patch policies | Baselines, maintenance windows, compliance |
| Keep desired state | State Manager associations | Replaces OpsWorks for configuration |
| Multi-step operations | Automation runbooks | Rate control, approvals, multi-account |
| Custom logic | Lambda with the AWS SDKs | Small event-driven automations |
| Long or branching workflows | AWS Step Functions | Retries, parallel steps, human approval |
Task 2.3 is automation at scale. Systems Manager Inventory records installed software, and resource data sync sends it to S3 for queries across accounts.
Patch Manager, with Quick Setup patch policies, applies baselines in maintenance windows and reports compliance across the organization.
State Manager associations keep software and settings in the desired state on a schedule, replacing the retired OpsWorks for configuration management.
Automation runbooks perform multi-step operations, with rate control, approval steps, and execution across accounts and Regions.
Lambda functions with the A W S S D Ks handle custom logic, such as tagging or cleaning up resources when events arrive.
Step Functions coordinate long or branching workflows with retries, parallel branches and waits for human approval.
Exam key takeaway: Inventory with resource data sync, patch with patch policies, keep desired state with State Manager, run runbooks across accounts, script with Lambda, and orchestrate with Step Functions.
Review
Exam Distractors: What to Reject Answers that don't scale to every account, or use retired tools
- Running the same stack by hand in each new account. StackSets with automatic deployment.
- OpsWorks stacks for configuration management. Systems Manager State Manager.
- An SCP to restrict the management account. SCPs don't apply there; keep it empty.
- Config rules to stop a resource being created. SCPs or proactive hooks.
- Console fixes to stack resources in production. Template change plus change set.
- Hard-coded feature flags redeployed with the app. AWS AppConfig feature flags.
Exam key takeaway: Reject hand-deployed stacks, OpsWorks, SCPs on the management account, Config rules for prevention, console fixes to stacks, and hard-coded feature flags.
Where current AWS differs from the exam guide
- AWS OpsWorks (skills 2.1 and 2.3) reached end of life on May 26, 2024; use Systems Manager State Manager.
- AWS Proton (in-scope list) reached end of support on October 7, 2026.
- Resource control policies (RCPs) joined SCPs in AWS Organizations in November 2024.
References
- AWS Certified DevOps Engineer – Professional exam page — checked Nov 30, 2026
Check your understanding
New accounts in an OU need a logging baseline automatically.Show answerHide answer
Answer
StackSets, service-managed, auto-deploy.Block untagged S3 buckets before CloudFormation creates them.Show answerHide answer
Answer
Proactive control (Hook).Turn a feature on for 10% of users, roll back on alarm.Show answerHide answer
Answer
AppConfig feature flag.Vend accounts with a Terraform baseline.Show answerHide answer
Answer
Account Factory for Terraform.Find all servers with an outdated OpenSSL across accounts.Show answerHide answer
Answer
Inventory with resource data sync.