AWS DevOps Engineer Professional (DOP-C02) Study Guide
Free AWS DevOps Engineer – Professional study guide from real exam notes: CodePipeline, CodeDeploy, Control Tower, Config and multi-account governance.
Written by an engineer who passed this exam: verify on Credly ↗Exam domains (DOP-C02)
| SDLC Automation | 22% |
| Configuration Management and IaC | 17% |
| Resilient Cloud Solutions | 15% |
| Monitoring and Logging | 15% |
| Incident and Event Response | 14% |
| Security and Compliance | 17% |
Weightings from the official AWS exam guide. Always check it for the current version.
These are my notes for the AWS Certified DevOps Engineer – Professional, expanded into a full guide. My original notes concentrated on the parts I found tricky (multi-account governance, Control Tower, deployment edge cases). I’ve filled in the rest of each domain so the guide stands on its own, and removed services AWS has since retired.
Exam mindset: at Professional level, several answers work. Pick the one that is automated, repeatable, multi-account aware and least privilege, with the fewest manual steps. “Have an engineer log in and…” is almost never right.
SDLC automation
CodePipeline
- Stages contain actions. Actions with the same
runOrderrun in parallel, and higher numbers run after them. - Typical stages: source (GitHub, S3, ECR), build and test (CodeBuild), approval (manual approval action with SNS), deploy (CodeDeploy, ECS, CloudFormation, Elastic Beanstalk, S3).
- The CloudFormation deploy action can create or update stacks and change sets directly from the pipeline. Use it for infrastructure delivery.
- Cross-account deployments: the pipeline’s artifact bucket must use a customer-managed KMS key that the target accounts can use, and the pipeline assumes a deployment role in each target account.
- Pipeline and action state changes are sent to EventBridge. Use them for notifications and automated rollback workflows.
- Sources: CodeCommit (back in full general availability since November 2025 after a pause in 2024), or GitHub, GitLab and Bitbucket through CodeConnections. S3 and ECR can also trigger pipelines.
CodeBuild
buildspec.ymlphases:install,pre_build,build,post_build. Plusreportsfor test results andartifacts/cache.- Pull secrets from Secrets Manager or Parameter Store in
envinstead of hard-coding them. - Builds in a VPC need private subnets with a NAT gateway (or VPC endpoints) to reach the internet and AWS APIs.
CodeDeploy deployment strategies
| Platform | Options |
|---|---|
| EC2 / on-premises | In-place (AllAtOnce, HalfAtATime, OneAtATime, custom) or blue/green (EC2 with Auto Scaling only) |
| Lambda | Canary10Percent5Minutes-style canary, linear, or all-at-once traffic shifting between alias versions |
| ECS | Blue/green with canary, linear or all-at-once traffic shifting through the load balancer |
- Blue/green on EC2 can terminate the original instances after a wait (default 1 hour, up to 2 days), or keep them alive: they stay running but are deregistered from the load balancer and the deployment group, ready for a manual rollback.
- Automatic rollback can trigger on deployment failure or on CloudWatch alarms. Rollback redeploys the last known-good revision as a new deployment.
InvalidSignatureExceptionon an EC2 deployment usually means the instance clock is out of sync. Check NTP / Amazon Time Sync.appspec.ymllifecycle hooks are where smoke tests and validation run, and they differ by platform:- EC2 / on-premises:
ApplicationStop,BeforeInstall,AfterInstall,ApplicationStart,ValidateService(plus load balancer hooks such asBeforeAllowTraffic/AfterAllowTrafficfor blue/green). - ECS:
BeforeInstall,AfterInstall,AfterAllowTestTraffic,BeforeAllowTraffic,AfterAllowTraffic.ApplicationStartandValidateServicedon’t exist here. UseAfterAllowTestTrafficto test the green task set on the test listener before production traffic shifts. - Lambda: only
BeforeAllowTrafficandAfterAllowTraffic.
- EC2 / on-premises:
CodeArtifact
- One external connection per repository (for example to npmjs or PyPI), and up to 10 upstream repositories per repository.
- A domain groups repositories across accounts: assets are stored once and deduplicated, one KMS key encrypts the whole domain, and a domain policy controls which accounts can access it. Teams pull from one approved, cached package source.
Configuration management and infrastructure as code
CloudFormation at scale
- StackSets deploy stacks across accounts and regions. With service-managed permissions and AWS Organizations, they deploy automatically to new accounts in target OUs.
- Change sets preview changes. Drift detection finds manual changes. Stack policies protect critical resources from updates.
DeletionPolicy: Retain/SnapshotandUpdateReplacePolicyprotect data when resources are removed or replaced.- Custom resources (Lambda-backed) cover anything CloudFormation can’t do natively. Always send a response, or the stack hangs until timeout.
cfn-init,cfn-signalandCreationPolicy/WaitConditionmake stack creation wait until instances finish configuring.- Dynamic references pull secrets at deploy time:
{{resolve:secretsmanager:...}}. - CloudFormation Guard validates templates against policy rules, and CloudFormation Hooks enforce checks before resources are provisioned.
Systems Manager
- Parameter Store for configuration, Automation runbooks for operational tasks and remediation, Run Command for fleet commands, Patch Manager with maintenance windows, and State Manager to keep configuration enforced.
- Systems Manager Compliance reports patch compliance and State Manager association compliance per instance. Use Resource Data Sync to send inventory and compliance data from many accounts and regions to one S3 bucket, then query it with Athena or chart it in QuickSight. Compliance results can also flow into Security Hub.
Multi-account governance (where my notes concentrated)
- The management account accesses member accounts by assuming
OrganizationAccountAccessRole(created automatically for accounts created through Organizations). - SCPs set maximum permissions for every principal in member accounts, including root. They don’t apply to the management account or to service-linked roles. Use an SCP to stop accounts from leaving the organisation.
A landing zone is Control Tower’s well-architected multi-account baseline: AWS Organizations with OUs, Account Factory for new accounts, IAM Identity Center for access, centralised logging and audit accounts, and controls enforced with SCPs and AWS Config.
AWS Control Tower controls (formerly guardrails):
| Control type | Implemented with |
|---|---|
| Preventive | Service control policies (SCPs) |
| Detective | AWS Config rules |
| Proactive | CloudFormation Hooks |
Controls are mandatory, strongly recommended or elective.
- Account Factory provisions new accounts. Account Factory Customization (AFC) applies a blueprint (a CloudFormation template packaged as a Service Catalog product in a hub account) to new and existing accounts, with one blueprint per account.
- Customizations for Control Tower (CfCT) deploys templates and SCPs to accounts in a GitOps style. Account Factory for Terraform (AFT) is an AWS-maintained Terraform module that provisions and customises accounts through Terraform pipelines (open-source Terraform, HCP Terraform or Terraform Enterprise). Optional AFT features include enabling CloudTrail data events, enrolling accounts in Enterprise Support, and deleting the default VPC in every region.
Resilient cloud solutions
- Auto Scaling default termination policy: balance across AZs first (terminate in the AZ with the most instances), then the oldest launch template or configuration, then the instance closest to the next billing hour.
- Other termination policies you can list in order:
AllocationStrategy,OldestLaunchTemplate,OldestLaunchConfiguration(legacy),ClosestToNextInstanceHour,NewestInstance,OldestInstance. Or write a custom termination policy as a Lambda function. - Instance lifecycle states beyond InService:
Pending:Wait/Pending:ProceedandTerminating:Wait/Terminating:Proceed(where lifecycle hooks run),Standby(take an instance out of service to troubleshoot or patch, without it being replaced), andDetached. - Warm pools keep pre-initialised instances (stopped, hibernated or running) to cut scale-out time. Size them with a minimum pool size and max prepared capacity (defaults to the group’s maximum size). An instance reuse policy returns instances to the warm pool on scale-in instead of terminating them.
- Lifecycle hooks pause launch or termination for bootstrapping or log draining.
- ALB and NLB support dual-stack (IPv4 and IPv6).
- Overlapping CIDRs: VPC peering and Transit Gateway routing don’t work between overlapping address ranges. Expose the service with PrivateLink (an NLB in the provider VPC, interface endpoints in consumer VPCs) instead.
- RDS recovery options: automated backups and manual snapshots are cheap but give the slowest recovery (restore takes time, RPO up to the last backup or log). Both can be copied or replicated to another region. Cross-region read replicas give the best RPO and RTO (promote the replica) at the highest cost. Aurora Global Database improves this further.
- Multi-region patterns: Route 53 failover or latency routing with health checks, Aurora Global Database, DynamoDB global tables, S3 cross-region replication, and Lambda/ECS stacks deployed via StackSets.
- EFS from Lambda: the function must run in a VPC and mount through an EFS access point. Cross-account access needs network connectivity (VPC peering or Transit Gateway) and an EFS file system policy.
- Storage Gateway File Gateway: if files are written directly to the S3 bucket, clients won’t see them until the cache is refreshed. Call the
RefreshCacheAPI or enable automated cache refresh.
Monitoring and logging
- Centralise logs: CloudWatch Logs subscription filters to Data Firehose or Lambda, delivered to a log-archive account (S3 and OpenSearch).
- CloudWatch agent for memory, disk and application logs. Embedded Metric Format to emit metrics from logs. Metric filters to alarm on log patterns.
- CloudWatch anomaly detection and composite alarms reduce noisy alerting. (Amazon Lookout for Metrics has been discontinued; use CloudWatch anomaly detection instead.)
- Kinesis consumer lag:
GetRecords.IteratorAgeMillisecondsnear 0 means consumers are keeping up. A growing value means they’re falling behind, so scale consumers, increase Lambda parallelization or add shards. - CloudWatch Synthetics canaries test endpoints and user journeys. Application Signals / X-Ray trace distributed requests.
- CloudTrail organisation trails delivered to S3 and queried with Athena for API activity across accounts. (CloudTrail Lake offers SQL over events too, but has been closed to new customers since 31 May 2026.)
Incident and event response
- EventBridge is the hub: match events (CloudTrail API calls, GuardDuty findings, Config compliance changes, CodePipeline state changes, Health events) and route them to Lambda, SSM Automation, Step Functions or SNS.
- AWS Health events (including organisational view) can trigger automated responses to scheduled maintenance or service issues.
- SNS: a dead-letter queue is attached to a subscription, not to the topic.
- Verify S3 upload integrity with checksums (
Content-MD5, or the newer SHA-256/CRC checksum headers) rather than relying on the ETag, which isn’t an MD5 for multipart uploads. - Systems Manager Incident Manager coordinates response plans, escalation and runbooks.
Security and compliance
AWS Config across an organisation
- Deploy the configuration recorder to every account with StackSets (or Control Tower). A customer-configured recorder can limit which resource types are recorded.
- An aggregator collects compliance data into one account. With AWS Organizations, no per-account authorisation is needed.
- Conformance packs bundle rules and remediation actions, and can be deployed organisation-wide. Organization Config rules deploy individual rules to all accounts.
- Auto-remediation runs SSM Automation documents when resources become non-compliant.
Identity and threat detection
- IAM Identity Center MFA modes: every time they sign in (always-on) or only when sign-in context changes (context-aware).
- Firewall Manager policy types include security groups (common, content audit and usage audit), WAF, Shield Advanced, Network Firewall and Route 53 Resolver DNS Firewall. Most policies can run in report-only mode (identify non-compliant resources) or auto-remediate mode (for example attach the organisation’s web ACL to every new ALB automatically).
- GuardDuty trusted and threat IP lists suppress or flag findings for listed IPs. Manage them from the administrator account.
- Use Security Hub with the AWS Foundational Security Best Practices standard and central configuration to enforce standards across accounts.
Final exam tips
- Organisation-wide, automatic, for new accounts too: StackSets with service-managed permissions, Organization Config rules / conformance packs, or Control Tower.
- “Notify and fix automatically” means an EventBridge rule to SSM Automation or Lambda.
- “Zero-downtime with fast rollback” means blue/green (CodeDeploy or ECS) with alarm-based rollback.
- When an answer involves a retired service (Kinesis Data Analytics for SQL, Lookout for Metrics, CodeGuru Reviewer), treat it with suspicion.
Frequently asked questions
How hard is the AWS DevOps Engineer Professional exam?
It is one of the longest and most scenario-heavy AWS exams. Questions are multi-paragraph and several answers are technically valid, so you need to spot the most automated and operationally efficient option quickly. Time management matters as much as knowledge.
What should I know before the DevOps Engineer Professional?
Solid hands-on experience with CI/CD on AWS, CloudFormation, multi-account setups with AWS Organizations, and monitoring with CloudWatch and EventBridge. Holding the Developer – Associate or SysOps Administrator – Associate first helps a lot.
Which topics carry the most weight in DOP-C02?
SDLC automation is the largest domain, followed by configuration management and infrastructure as code, and security and compliance. CodeDeploy deployment configurations, CloudFormation StackSets, Control Tower controls and AWS Config remediation come up repeatedly.
Is the DevOps Professional worth it for GCC employers?
Yes. Regulated organisations in the UAE, Saudi Arabia and Qatar increasingly need automated, auditable delivery pipelines and multi-account governance, which is exactly what this certification validates.