DOP-C02 configuration management and IaC

Updated November 23, 2026

Configuration Management and IaC is 17% of DOP-C02 scored content. It covers infrastructure as code for repeatable environments, automating multi-account setups and building automation for large-scale operations. The core question is how you describe, deploy and keep consistent hundreds of resources across accounts and Regions without manual steps.

2.1 Infrastructure as code and reusable components

The guide names CloudFormation, SAM and the CDK for composing templates. It also lists StackSets for multiple accounts and Regions, and governance building blocks such as Service Catalog, CloudFormation modules and CDK constructs. Configuration services include Systems Manager, Config and AppConfig.

Know these distinctions:

  • Change sets show what an update will change before you run it.
  • Drift detection finds resources changed outside the template.
  • Nested stacks and modules reduce duplication.
  • DeletionPolicy and stack policies protect important resources.
  • Rollback behaviour returns a failed update to the last stable state.

2.2 Account automation

This task statement is about creating, onboarding and securing accounts at scale. AWS Organizations manages the structure, Control Tower provides a landing zone with guardrails, and service control policies (SCPs) set permission ceilings. The guide also lists Config, Security Hub, GuardDuty and Detective for governance at scale. Remember that SCPs limit what is possible but never grant permissions by themselves.

2.3 Automating complex tasks

Think Systems Manager: inventory, patch management, State Manager for desired state, Automation runbooks and Run Command. Also Lambda and Step Functions for orchestration that is too complex for a single rule. The exam likes to ask which managed capability replaces a custom script.

NeedTypical service
Patch a fleet on a scheduleSystems Manager Patch Manager with maintenance windows
Keep a setting in a desired stateState Manager
Feature flags and runtime configurationAppConfig
Standardised approved productsService Catalog
Same template in many accountsStackSets
Detect and fix non-complianceConfig rules with remediation

Common traps

A frequent trap is choosing a custom Lambda solution when a managed feature does the job. Another is mixing up detection (Config, Security Hub) with prevention (SCPs, IAM boundaries). A third is forgetting that StackSets needs the right permission model, either self-managed or service-managed with Organizations.

Example questions

Question 1. Before updating a production CloudFormation stack, an engineer wants to see which resources will be replaced. What should they create?

  • A. A drift detection report
  • B. A change set for the updated template
  • C. A new stack with the same name
  • D. A stack deletion followed by a re-create
Show answer

Answer: B

A change set previews the changes, including replacements, without applying them. Drift detection compares the deployed resources with the template, deleting the stack is destructive and a rollback trigger only matters after a failure.

Want more questions like this? Full DOP-C02 practice tests →

Question 2. An organization wants to prevent any account in a specific organizational unit from using Regions outside two approved ones, regardless of IAM permissions in the accounts. What should be used?

  • A. An IAM policy added to each account’s users
  • B. A Config rule that reports usage monthly
  • C. An SCP attached to the OU that denies other Regions
  • D. A tagging policy
Show answer

Answer: C

A service control policy attached to the OU sets a permission ceiling that applies even to account administrators. IAM policies in each account can be changed locally, a Config rule only detects and a tagging policy does not restrict API calls.

Want more questions like this? Full DOP-C02 practice tests →

Question 3. A fleet of EC2 instances must always have an agent running with a specific configuration, and drift from that state must be corrected automatically. Which feature fits best?

  • A. Systems Manager State Manager associations
  • B. Systems Manager Patch Manager only
  • C. AWS Service Catalog
  • D. AWS CloudTrail
Show answer

Answer: A

Systems Manager State Manager applies and re-applies a configuration association on a schedule to keep instances in the desired state. Patch Manager handles patching, Service Catalog provides approved products and CloudTrail records API calls without changing instances.

Want more questions like this? Full DOP-C02 practice tests →

Continue

Next is resilient cloud solutions. The study plan pairs this domain with SDLC automation in week one.