AWS Certified DevOps Engineer – Professional (DOP-C02)
Last updated on November 1, 2026
208 Questions & Answers
Use these original scenario-based questions to review core DevOps concepts. Each answer includes a short explanation. This independent practice material is not an official AWS exam.
Questions 1–5
A team deploys a containerized service to Amazon ECS on AWS Fargate. They need gradual traffic shifting and automatic rollback when the new version breaches an alarm. Which deployment approach best meets the requirement?
Reveal Solution
CodeDeploy blue/green deployments can shift traffic between task sets, while CloudWatch alarms can stop or roll back a deployment when monitored metrics indicate a problem.
A pipeline must prevent two teams from applying Terraform changes to the same environment at the same time. The state must be shared and protected from accidental loss. Which design is most suitable?
Reveal Solution
A remote S3 backend centralizes state; encryption protects it at rest, and DynamoDB locking coordinates concurrent operations.
An application emits structured JSON logs from containers in an Amazon EKS cluster. Operators need centralized search and dashboards with minimal changes to application code. What should they do?
Reveal Solution
A cluster-level log agent can collect container output and forward it centrally, where CloudWatch Logs supports retention, search, and dashboards.
A deployment pipeline needs database credentials at runtime. The credentials must be rotated without embedding them in source code or build artifacts. Which solution is best?
Reveal Solution
Secrets Manager keeps sensitive values outside code and images, supports managed access and rotation, and IAM can limit which workload retrieves a secret.
A service on an EC2 Auto Scaling group experiences predictable daily demand spikes. The team wants capacity ready before the spike while retaining automatic adjustment for unexpected load. What should they configure?
Reveal Solution
Scheduled scaling anticipates known demand, while dynamic scaling responds to real-time metrics when actual load differs from the forecast.