Skip to content
AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep

Lesson 2 of 6 · 12 min

x
2/6

Configuration Management and IaC (17%)

Video lesson: DOP-C02 Domain 2: Configuration Management and IaC

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.

TaskStatement
2.1Define cloud infrastructure and reusable components to provision and manage systems throughout their lifecycle
2.2Deploy automation to create, onboard, and secure AWS accounts in a multi-account or multi-Region environment
2.3Design 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

FeatureWhat It DoesUse When
Change setsPreview adds, modifies and replacementsBefore every production update
Stack policies and DeletionPolicyBlock updates; retain or snapshot on deleteProtect databases and stateful resources
Drift detectionFinds changes made outside the templateAfter console fixes or audits
StackSetsOne template to many accounts and RegionsBaselines across an organization
Hooks and GuardCheck resources before provisioningEnforce standards in every stack
Git and pipelinesPull requests, reviews, automated deploysEvery 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

ServiceRoleRemember
AWS OrganizationsOUs, consolidated billing, policiesGroup accounts by function, not team
AWS Control TowerLanding zone, controls, Account FactoryLog archive and audit accounts
Account Factory customizationAFT (Terraform) or customizationsBaseline every new account
SCPs and RCPsMaximum permissions for principals and resourcesDon't affect the management account
Cross-account rolesAssume a role with sts:AssumeRoleTrust policy plus permissions policy
Delegated administratorsRun security services from a member accountKeep 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

NeedServiceDetail
Know what's installedSystems Manager InventoryResource data sync to S3 for Athena
Patch fleetsPatch Manager and patch policiesBaselines, maintenance windows, compliance
Keep desired stateState Manager associationsReplaces OpsWorks for configuration
Multi-step operationsAutomation runbooksRate control, approvals, multi-account
Custom logicLambda with the AWS SDKsSmall event-driven automations
Long or branching workflowsAWS Step FunctionsRetries, 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

  1. Running the same stack by hand in each new account. StackSets with automatic deployment.
  2. OpsWorks stacks for configuration management. Systems Manager State Manager.
  3. An SCP to restrict the management account. SCPs don't apply there; keep it empty.
  4. Config rules to stop a resource being created. SCPs or proactive hooks.
  5. Console fixes to stack resources in production. Template change plus change set.
  6. 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

  1. 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 answer

    Answer

    StackSets, service-managed, auto-deploy.
  • Block untagged S3 buckets before CloudFormation creates them.Show answer

    Answer

    Proactive control (Hook).
  • Turn a feature on for 10% of users, roll back on alarm.Show answer

    Answer

    AppConfig feature flag.
  • Vend accounts with a Terraform baseline.Show answer

    Answer

    Account Factory for Terraform.
  • Find all servers with an outdated OpenSSL across accounts.Show answer

    Answer

    Inventory with resource data sync.
Previous

Progress is saved in this browser.

Next Lesson