AWS Certified Solutions Architect – Professional — Question 375

A new startup is running a serverless application using AWS Lambda as the primary source of compute. New versions of the application must be made available to a subset of users before deploying changes to all users. Developers should also have the ability to abort the deployment and have access to an easy rollback

mechanism. A solutions architect decides to use AWS CodeDeploy to deploy changes when a new version is available.
Which CodeDeploy configuration should the solutions architect use?

Answer options

Correct answer: C

Explanation

A canary deployment shifts a small percentage of traffic to the new Lambda version initially, allowing a subset of users to test it before the remaining traffic is cut over. This configuration provides the easiest rollback mechanism via CloudWatch alarms, which can automatically trigger a rollback if errors are detected. Linear deployments shift traffic in equal, gradual increments over time, while all-at-once shifts all traffic immediately, neither of which precisely fits the two-step subset testing requirement.