DOP-C02 exam dumps

DOP-C02 practice question 167 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 167

Single answer

An organization is running a high-traffic e-commerce application on AWS. They want to implement a CI/CD pipeline using AWS services to ensure zero-downtime deployments. The application is deployed on an Auto Scaling group behind an Application Load Balancer (ALB). Which deployment strategy should they use to meet these requirements?

  1. A

    Blue/Green Deployment using AWS CodeDeploy with ALB traffic shifting

  2. B

    Rolling Deployment using AWS Elastic Beanstalk

  3. C

    Recreate Deployment using AWS CodePipeline

  4. D

    Canary Deployment using AWS Lambda and API Gateway

Show answer and explanation

Correct answer: A

Explanation

Blue/Green Deployment with AWS CodeDeploy and ALB traffic shifting is the best fit for zero-downtime deployment in an Auto Scaling group behind an ALB. This strategy allows the organization to deploy a new version in a separate environment and gradually redirect traffic while validating the new version. If issues arise, traffic can be reverted to the previous version seamlessly, ensuring high availability.

  • A. Correct.

    Blue/Green Deployment with AWS CodeDeploy and ALB traffic shifting is ideal for zero-downtime deployments. It creates a new environment and shifts traffic gradually, ensuring the old environment remains intact until the new one is validated.

  • B. Incorrect.

    Rolling Deployment replaces a subset of instances with new ones incrementally. While it minimizes downtime, it doesn’t ensure zero downtime, as there could be a temporary imbalance during the replacement process.

  • C. Incorrect.

    Recreate Deployment involves replacing all instances with new ones at once, which causes downtime during the switch, making it unsuitable for zero-downtime requirements.

  • D. Incorrect.

    Canary Deployment using AWS Lambda and API Gateway is primarily for serverless applications. It does not align with the requirements of an Auto Scaling group and ALB for this scenario.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam