Domain 2 represents 17% of the exam (about 11 of 65 questions). Prioritize understanding the roles of Infrastructure as Code (IaC), multi-account/platform management, and configuration management patterns instead of memorizing every CLI flag.

CloudFormation — fundamentals and key components
CloudFormation is AWS’s primary IaC engine: you author a template (JSON or YAML), create a stack from that template, and CloudFormation provisions and manages the live resources. Understand the template structure and lifecycle (create, update, drift detection, delete).- Core flow: author template → CloudFormation creates a Stack → Stack provisions Resources.
- Important template sections: Parameters, Mappings, Conditions, Resources, Outputs. Also note optional sections like Transform, Metadata, and AWSTemplateFormatVersion.
- Features to recognize: Change Sets, StackSets (for multi-account/region), drift detection, stack policies, and template transforms.


StackSets — deploy templates across accounts and regions
StackSets enable a single CloudFormation template to be deployed consistently across multiple accounts and regions.- Use cases: organization-wide baselines, guardrails, centralized resource provisioning.
- Permission models:
- Service-managed: integrates with AWS Organizations and uses AWS-managed roles — simpler and recommended when available.
- Self-managed: requires manual creation of IAM roles in both administrator and target accounts.
- Supports OU-level and account-level deployments, controlled concurrency, and failure tolerance.
If you choose self-managed StackSets, ensure you create the required IAM roles in both the administrator and target accounts. Missing roles will block StackSet deployments. Prefer service-managed StackSets when you integrate with AWS Organizations.

Drift detection and stack policies
- Drift detection: compares a stack’s live resource configuration to the template’s expected state. Common statuses: IN_SYNC, MODIFIED/DRIFTED, NOT_CHECKED.
- Stack policies: JSON documents that protect critical resources from accidental updates or deletions during stack updates. You can set, replace, or bypass policies deliberately during controlled operations.

AWS CDK — programmatic Infrastructure as Code
The AWS Cloud Development Kit (CDK) lets you define infrastructure using familiar programming languages and synthesizes CloudFormation templates.- Languages: TypeScript, Python, Java, C#, and Go.
- Constructs: L1 (low-level), L2 (opinionated), L3 (patterns) — these provide reusable abstractions for common patterns.
- Typical workflow: author code → synthesize (cdk synth) → review (cdk diff) → deploy (cdk deploy).

AWS Systems Manager — operational tooling and configuration management
Systems Manager contains many subservices for managing instances, configuration, and operational tasks. Key items for the exam:- State Manager: enforces desired configuration across instances by associating SSM documents with targets and scheduling runs.
- Automation: orchestrates multi-step runbooks, supports approval gates, EventBridge integration, and automated remediation.
- Parameter Store: secure storage for configuration values and secrets (supports encryption).
- Run Command: executes ad-hoc commands on managed instances.
- Session Manager, Patch Manager, Inventory: useful for access, patching, and metadata collection.

- State Manager: associate documents with instances, schedule recurring runs, and maintain consistent configuration across fleets.
- Automation: author runbooks for multi-step operational tasks, incorporate approvals, call other AWS services, and integrate with EventBridge for orchestration.

AWS Config — compliance as code and automatic remediation
AWS Config records resource configuration snapshots and evaluates them against Config Rules to determine compliance status.- Conformance packs: bundles of rules and recommended remediation actions for common frameworks (PCI DSS, HIPAA, CIS).
- Workflow: change detected → rule evaluated → resource marked COMPLIANT or NON_COMPLIANT → optional remediation triggered (Systems Manager Automation, Lambda, etc.).
- Use Config for long-term auditing, drift detection, and automated policy enforcement across accounts and regions.

Control Tower — landing zone orchestration and guardrails
Control Tower provides an opinionated multi-account landing zone with built-in guardrails and automation:- Components: Account Factory, Landing Zones, centralized logging (Log Archive), and a Security/Audit account.
- Guardrails: preventive (SCPs, IAM boundaries) and detective controls (monitoring for drift/misconfiguration).
- Integrates with AWS Organizations and IAM Identity Center for centralized identity and account provisioning.

Service Catalog — self-service provisioning of approved infrastructure
Service Catalog publishes versioned products (CloudFormation templates or provisioning artifacts) into portfolios that teams can use.- Use cases: provide standardized, approved infrastructure with constraints (region, instance type, parameters).
- Administrators publish portfolios and share them with accounts or OUs; end users provision products with guardrails applied.

AppConfig vs Parameter Store — static vs dynamic configuration
- Parameter Store: hierarchical, secure storage for static configuration values and secrets.
- AppConfig: intended for dynamic application configuration with staged deployments, validators, and automatic rollback on validation failures. Supports deployment strategies (canary, linear), validators (JSON schema, Lambda), and environment segregation.

Quick-reference table: services and common use cases
Patterns and exam-focused study recommendations
- Focus services: CloudFormation (StackSets, drift), CDK, Systems Manager (State Manager, Automation, Parameter Store), AWS Config, Control Tower, Service Catalog, and AppConfig.
- Common patterns: multi-account deployments, automated compliance/remediation, dynamic configuration rollouts, and self-service infrastructure.
- Practical tips:
- Practice reading and reasoning about short CloudFormation templates and SSM documents.
- Understand how Config Rules integrate with Automation for remediation.
- Prefer service-managed StackSets when integrating with AWS Organizations.
- Know when to use AppConfig vs Parameter Store.
Links and references
- AWS CloudFormation Concepts
- AWS CDK Documentation
- AWS Systems Manager Documentation
- AWS Config Documentation
- AWS Control Tower Documentation
- AWS Service Catalog Documentation
- AWS AppConfig Documentation