A serverless application uses Lambda functions behind API Gateway. CodeDeploy will be used to automate Lambda updates. Deployments must minimize user exposure to potential errors and cannot cause downtime outside the maintenance window. Which CodeDeploy deployment configuration meets these requirements while minimizing total deployment time?
Choose an answer
Tap an option to check your answer.
Correct answer: Use CodeDeploy's predefined canary deployment to shift 10% of traffic immediately and shift the remainder after 5 minutes..
Why this is the answer
The predefined canary deployment shifts a small percentage of traffic (10%) to the new Lambda version initially, allowing for early detection of errors without impacting all users. After a specified interval (5 minutes in this case), if no issues are detected, the remaining traffic is shifted. This minimizes user exposure to errors and avoids downtime, aligning with the requirements. In-place deployments and all-at-once deployments shift all traffic immediately, which increases the risk of widespread impact from errors. Linear deployments, while gradual, can take longer to complete the full traffic shift compared to a canary approach that quickly moves the bulk of traffic after an initial successful test.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed