BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeAWS Certified DevOps Engineer - Professional (DOP-C02)AWS Certified DevOps Engineer Professional: Configuration Management and IaC Study Guide
Study Guide1,150 words

AWS Certified DevOps Engineer Professional: Configuration Management and IaC Study Guide

Configuration management services and strategies

AWS Certified DevOps Engineer Professional: Configuration Management and IaC Study Guide

Learning Objectives

After studying this guide, you should be able to:

  • Select the appropriate AWS service for specific configuration management tasks (e.g., SSM vs. AWS Config vs. OpsWorks).
  • Design reusable infrastructure components using AWS CloudFormation, SAM, and CDK.
  • Implement multi-account and multi-region deployment strategies using CloudFormation StackSets.
  • Automate system inventory, patching, and state enforcement using AWS Systems Manager.
  • Establish governance and compliance guardrails using AWS Control Tower and Service Control Policies (SCPs).

Key Terms & Glossary

  • Infrastructure as Code (IaC): The practice of managing and provisioning computing infrastructure through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.
  • Drift: The phenomenon where the actual configuration of a resource in the environment deviates from the expected state defined in IaC templates.
  • Idempotency: A property of deployment operations where multiple applications of the same operation result in the same outcome, preventing duplicate resources or errors.
  • State Manager (SSM): A secure and scalable configuration management service that automates the process of keeping managed instances in a defined state.
  • Golden Image: A template for a virtual machine or container that is pre-configured with a specific operating system and software stack.

The "Big Idea"

The core of AWS DevOps Professionalism is moving away from manual, snowflake server configurations toward Self-Healing, Immutable, and Auditable Infrastructure. By treating infrastructure as software (IaC) and utilizing automated configuration management, organizations achieve the speed of delivery required for modern business without sacrificing security or reliability. The goal is a "closed-loop" system where configuration is defined, deployed, monitored for drift, and automatically remediated.

Formula / Concept Box

ConceptCore MechanismPrimary Use Case
Declarative IaCDefine "What" (CloudFormation/SAM)Standardized resource provisioning
Imperative IaCDefine "How" (CDK/SDK)Complex logic-based infrastructure
Configuration ComplianceDetect & Remediate (AWS Config)Governance and security auditing
Operational ManagementExecute & Maintain (Systems Manager)Patching, Inventory, Remote Access

Hierarchical Outline

  • I. Infrastructure as Code (IaC) Frameworks
    • AWS CloudFormation: Standard JSON/YAML declarative templates.
    • AWS CDK: High-level constructs using programming languages (Python, TypeScript, etc.).
    • AWS SAM: Extension of CloudFormation specialized for Serverless resources.
    • StackSets: Mechanism to deploy stacks across Multiple Accounts and Regions.
  • II. Configuration Management Services
    • AWS Systems Manager (SSM):
      • Patch Manager: Automates OS updates.
      • State Manager: Enforces software configuration.
      • Parameter Store: Secure string/secret management.
    • AWS Config: Tracks resource history and enforces compliance via Config Rules.
    • AWS AppConfig: Manages application-level configuration flags and parameters.
  • III. Multi-Account Governance
    • AWS Organizations: Centralized billing and account grouping.
    • Service Control Policies (SCPs): Top-down permission guardrails that override IAM.
    • AWS Control Tower: Orchestrator for setting up a secure multi-account landing zone.

Visual Anchors

The Configuration Lifecycle

Loading Diagram...
Figure 1 — Mermaid diagram

Multi-Account Organization Structure

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 2 — TikZ diagram

Definition-Example Pairs

  • AWS Config Rule: A logic-based check that evaluates if an AWS resource matches a desired configuration.
    • Example: A rule that checks if all EBS volumes in the production account are encrypted. If an unencrypted volume is found, it is marked "Non-Compliant."
  • SSM Document: A JSON or YAML file that defines the actions Systems Manager performs on your managed instances.
    • Example: A document that runs a shell script to install the CloudWatch Agent and start the service across a fleet of 500 EC2 instances.
  • CloudFormation Module: A way to package resource configurations into reusable building blocks.
    • Example: A company creates a "StandardS3Bucket" module that includes logging, versioning, and encryption by default, which developers then use in their own templates.

Worked Examples

Scenario: Remediating Public S3 Buckets Automatically

Problem: Security policy forbids public S3 buckets. You need a system that detects and fixes this in real-time.

Step-by-Step Solution:

  1. Detection: Enable AWS Config and create a managed rule s3-bucket-public-read-prohibited.
  2. Trigger: When a bucket is created or modified with public access, AWS Config marks it as Non-Compliant.
  3. Action: Configure a Remediation Action using an SSM Automation Document (AWS-DisableS3BucketPublicReadWrite).
  4. Verification: The SSM document executes a script via the AWS SDK to update the bucket ACL/Policy, returning the bucket to a compliant state.

Checkpoint Questions

  1. What is the primary difference between an IAM Policy and an SCP in an AWS Organization?
  2. Which SSM feature would you use to ensure that a specific version of an anti-virus agent is installed on all EC2 instances every 24 hours?
  3. How do CloudFormation StackSets handle deployment failures in a specific region when performing a multi-region update?
  4. When would you choose AWS OpsWorks over AWS Systems Manager State Manager?

Muddy Points & Cross-Refs

  • SSM vs. AWS Config: Beginners often confuse these. Remember: SSM is for doing things (patching, running scripts, state enforcement), while AWS Config is for auditing things (inventory history, compliance rules).
  • CDK vs. CloudFormation: CDK compiles into CloudFormation. Use CDK if you need loops and logic; use CloudFormation for simple, static declarations.
  • Service Catalog: This isn't just a store; it’s a governance tool. It allows users to deploy approved IaC templates without needing direct permissions to the underlying services.

Comparison Tables

IaC Tools Comparison

ToolLanguageBest ForComplexity
CloudFormationJSON/YAMLStandard AWS resource provisioningMedium
AWS SAMYAMLServerless (Lambda, API Gateway, DynamoDB)Low (for Serverless)
AWS CDKTypeScript/Python/JavaComplex apps requiring logic/abstractionsHigh
OpsWorksChef/Puppet DSLLegacy apps or specific CM tool requirementsHigh

Multi-Account Management

ServicePrimary PurposeKey Feature
AWS OrganizationsAccount grouping & billingConsolidated Billing & SCPs
AWS Control TowerSetting up a LandzoneGuardrails & Account Factory
AWS CloudFormation StackSetsMulti-account deploymentRegional concurrency/failure tolerance
AWS Security HubSecurity posture managementAggregates findings from Config/GuardDuty
All AWS Certified DevOps Engineer - Professional (DOP-C02) Study Resources

Related Notes

  • Mastering AWS Alerting and Automated Remediation1,050 words
  • Study Guide: Analyzing Failed Deployments in AWS940 words
  • Incident Analysis: Troubleshooting Failed Processes in AWS1,050 words
  • Mastering AWS Monitoring & Security Analytics: Logs, Metrics, and Findings1,050 words
  • AWS Log Analysis: Athena, CloudWatch Insights, and OpenSearch920 words
  • Analyzing Real-Time Log Streams with Amazon Kinesis Data Streams985 words
  • CloudWatch Anomaly Detection Alarms: Professional Study Guide820 words
  • AWS Application Storage Patterns: EBS, EFS, and S31,054 words
  • Lab: Automating Security Controls and Data Protection with AWS Secrets Manager and Config942 words
  • Master Study Guide: Automating Security Controls & Data Protection (AWS DOP-C02)1,184 words
  • Mastering AWS CloudFormation StackSets: Multi-Account & Multi-Region Orchestration895 words
  • Mastering System Configuration Changes in AWS945 words

Ready to study AWS Certified DevOps Engineer - Professional (DOP-C02)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study AWS Certified DevOps Engineer - Professional (DOP-C02)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
AWS Certified DevOps Engineer - Professional (DOP-C02) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.

Loading Diagram...
Flowchart, top to bottom. Define IaC: CloudFormation/CDK connects to Deploy: StackSets/Pipelines. B connects to Monitor: AWS Config/CloudWatch. C connects to Compliance?. D connects to Remediate: SSM Automation/Lambda (No). D connects to Steady State (Yes). E connects to B.