Skip to main content
Welcome back. This concise review of Domain 2 gives a focused map of the core concepts, services, and patterns you should prioritize while preparing for the exam. Read through each section and use the diagrams to connect conceptual ideas with practical AWS services.
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.
Domain 2 concentrates on defining and deploying infrastructure as code, managing platforms at scale, and implementing configuration and compliance automation. Key services to master: CloudFormation, AWS CDK, Systems Manager, AWS Config, Control Tower, Service Catalog, AppConfig, and related patterns such as StackSets, automation runbooks, and remediation workflows.
A presentation slide titled "Domain 2 at a Glance" with three info boxes. The boxes show Exam Weight (17% of the exam — 11 questions), 3 Task Statements (defining/deploying IaC, managing platforms, implementing configuration management), and Core Services (CloudFormation, CDK, Systems Manager, and AWS Config).

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.
A slide titled "CloudFormation Fundamentals Recall" showing "The Core Flow" with three numbered steps: Template (JSON or YAML definition), Stack (logical grouping), and Resources (live infrastructure). The diagram visually connects the three steps in a vertical flow.
Be comfortable reading short template snippets and reasoning about what Parameters, Conditions, Resources, and Outputs do. The exam emphasizes conceptual understanding and troubleshooting of templates and stacks rather than authoring long templates from scratch.
A presentation slide titled "CloudFormation Fundamentals Recall" showing the essential components of AWS CloudFormation. The five numbered items listed are Parameters, Mappings, Conditions, Resources, and Outputs.

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.
A presentation slide titled "StackSets – Multi-Account/Multi-Region Deployment" listing four numbered points describing: Single Template Source, Administrator Control, Stack Instances, and Permission Models with brief explanations.

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.
A presentation slide titled "Drift Detection and Stack Policies" showing two boxes: one explains that drift occurs when actual resource configuration diverges from the expected CloudFormation state, and the other states that stack policies are JSON documents that prevent accidental updates or deletions of critical resources.

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).
Common CDK CLI commands:
A slide titled "AWS CDK Quick Reference" showing cards about Language Flexibility (TypeScript, Python, Java, C#, Go) and Construct Levels (L1–L3). A "Synthesis & Deploy" card and a KodeKloud copyright notice appear below.
You don’t need to memorize every CDK flag for the exam; instead, understand the role CDK plays in the IaC lifecycle and the basic CLI actions.

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.
A slide titled "Systems Manager – The 18 Subservices" showing a grid of colorful icons and labels for several AWS Systems Manager subservices (e.g., Fleet Manager, Run Command, State Manager, Patch Manager, Automation, Parameter Store, Session Manager, OpsCenter, Inventory).
Compare State Manager and Automation:
  • 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.
A presentation slide titled "State Manager and Automation" with two columns comparing features. Each column shows four numbered boxes describing capabilities like associating documents with instances, scheduled runs and consistent configuration on the State Manager side, and multi-step runbooks, built-in AWS automations, approval gates and EventBridge integration on the Automation side.

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.
A slide titled "AWS Config – Compliance as Code" showing a four-step workflow: Configuration Recording, Config Rules, Conformance Packs, and Remediation. Each step has a short description of how AWS Config records configurations, evaluates rules, bundles compliance packs, and triggers remediation.

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.
A diagram titled "Control Tower and Organizations" with a central "AWS Organizations" circle linked to boxes for consolidated billing, organizational units (OUs), service control policies (SCPs), and account factory automation. A side panel explains AWS Control Tower orchestration of multi-account setup using landing zones, guardrails, Account Factory, and compliance controls.

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.
A slide titled "Service Catalog Essentials" showing a simple hierarchy: Portfolio at the top, Product below it, and branches to "Provisioned Product" and "Constraints" (with launch/template constraints) to illustrate how catalog items are versioned and deployed.

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.
Choose Parameter Store for simple parameter retrieval and secret storage; choose AppConfig when you need safe, staged config rollouts, feature flags, or automatic rollback.
A presentation slide titled "AppConfig for Dynamic Configuration" showing four colorful numbered blocks down a diagonal. Each block lists a feature and brief description: Configuration Data, Automatic Rollback, Validators, and Deployment Strategy.

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.
This completes the Domain 2 review. Dive deeper into any service you feel less confident about, and practice scenario-based questions that require reasoning about automation, compliance, and cross-account management. Good luck with your study — focus on understanding how these services fit together in real-world automation and compliance architectures.

Watch Video