DOP-C02 exam dumps

DOP-C02 practice question 66 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 66

Single answer

Your company develops a serverless application that processes images uploaded by users. The application is built using AWS Lambda and an Amazon S3 bucket for storage. The development team wants to deploy a new version of the Lambda function with minimal impact on live users and requires the ability to roll back quickly if issues are detected. Which deployment strategy is the MOST suitable for this scenario?

  1. A

    All-at-once deployment

  2. B

    Canary deployment

  3. C

    Blue/Green deployment

  4. D

    Rolling deployment

Show answer and explanation

Correct answer: B

Explanation

Canary deployments are ideal for serverless applications like AWS Lambda where minimizing the impact on live users is critical. By routing a small percentage of traffic to the new version while monitoring for issues, you can ensure stability and easily roll back if problems arise. This makes it the best fit for the scenario described.

  • A. Incorrect.

    An all-at-once deployment replaces the existing Lambda code with the new version immediately. While fast, it can cause downtime or disruptions if the new version has issues, which does not meet the requirement to minimize impact on live users.

  • B. Correct.

    A canary deployment gradually shifts a small percentage of traffic to the new Lambda version while keeping most traffic directed to the old version. This allows testing in production with minimal impact on users and enables quick rollback, making it the most suitable option in this scenario.

  • C. Incorrect.

    A blue/green deployment involves creating a completely new environment (green) alongside the existing one (blue) and switching traffic to the new environment once it's verified. While effective, it's generally not used for AWS Lambda functions due to its complexity and overhead.

  • D. Incorrect.

    A rolling deployment replaces instances or containers incrementally with the new version. This method is not applicable to AWS Lambda, which does not use instances or containers in the same way as EC2 or ECS.

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