DevOps Engineer Professional
SDLC Automation · IaC · Resilience · Monitoring · Incident Response · Security · 120 scenario questions
⚠️ Exam Rules
| Questions in this Techclick bank | 120 |
|---|---|
| Timer | 180 min |
| Techclick practice target | 70% |
| Official exam code | DOP-C02 |
A platform team runs CodePipeline in a central tooling account and must deploy CloudFormation stacks into separate dev, staging, and prod member accounts. What is the recommended way to grant the pipeline permission to act in those accounts?
Correct: A. Cross-account deployment uses roles in each target account with a trust policy allowing the tooling account; the pipeline assumes them via the deploy action's RoleArn, keeping least privilege. Static keys are incorrect because long-lived credentials should never be embedded. Making developers admins is wrong as it grants no scoped pipeline identity and breaks least privilege. Disabling IAM is not a security control and provides no deployment authorization.
An ECS service behind an Application Load Balancer must be released with the ability to validate the new version on a test listener before sending production traffic, and roll back instantly if errors spike. Which deployment approach meets this?
Correct: B. CodeDeploy blue/green for ECS creates a green task set, exposes it on a test listener for validation, then shifts production traffic via ALB target groups and auto-rolls back when a CloudWatch alarm fires. A rolling update is incorrect because it has no test listener and no automatic rollback. Delete-and-recreate causes downtime and is not a controlled release. Manual draining is error-prone and not an automated strategy.
A team deploys a Lambda function and wants to send only 10% of invocations to the new version for 5 minutes before completing the shift, automatically reverting if errors occur. How should they configure CodeDeploy?
Correct: C. Lambda canary deployments use a CodeDeploy alias pointing at two versions with weighted routing; Canary10Percent5Minutes sends 10% for 5 minutes, then the rest, rolling back if the alarm trips. Immediate 100% repoint is incorrect because it skips the safety window. AllAtOnce is wrong as it does no gradual shift. A cron job editing code in place is not a deployment strategy and bypasses CodeDeploy entirely.
A pipeline must keep database passwords and third-party API tokens out of source control and out of plaintext build logs. Which practices correctly secure these secrets in a CodePipeline/CodeBuild workflow? (Choose TWO.)
Correct: A and C. Secrets Manager integration in CodeBuild injects values at runtime without exposing them, and CloudFormation dynamic references keep secrets out of templates. Committing credentials is incorrect because anything in Git history is effectively leaked. Echoing all environment variables is wrong as it writes secrets to build logs. Emailing passwords is not a control and broadly exposes the value, so it is incorrect.
A delivery team wants the same container image artifact that passed integration tests in dev to be the exact image that reaches production, with old untagged images cleaned up automatically. What ECR-based approach achieves this?
Correct: B. Promoting one immutable digest guarantees the tested artifact is what ships, scan-on-push surfaces CVEs early, and lifecycle policies prune old images automatically. Rebuilding per environment is incorrect because each build can differ, breaking the test-then-promote guarantee. Manual laptop copies are not reproducible or auditable. Reusing only the latest tag destroys version history and traceability, so it is wrong.
Last updated:
Yes. You can start, finish and score it for free, and download the Techclick practice certificate.
This bank has 120 original scenario-based questions with a 180-minute timer and a 70% Techclick practice target.
The official exam code is DOP-C02 (AWS).
No. They are original practice questions written by Techclick. This is not the vendor's official exam and not leaked dumps.
Score 70% or higher to get a Techclick practice certificate and LinkedIn badge. It is not an official AWS certification.
Related practice tests: AWS DVA-C02, AWS SAP-C02, Azure AZ-400, AWS SAA-C03, Terraform Associate, AWS SOA-C02 (linked below).

You earned it — let the world know!
