A Lambda release must receive 10% of production traffic for 10 minutes before receiving the remainder, and automatically revert if an error alarm triggers. Which deployment configuration meets these requirements?
Show the answer
Correct answerD. CodeDeploy canary traffic shifting with a CloudWatch alarm and automatic rollback
AWhy not this: Linear deployment shifts equal increments at regular intervals rather than shifting 10% and then the remaining 90%.
BWhy not this: All-at-once deployment immediately sends all traffic to the new version, eliminating the required observation period.
CWhy not this: A weighted alias distributes traffic, but an alarm alone does not advance the deployment or restore the previous routing.
DWhy this is right: Canary deployment provides the required two-stage shift, and CodeDeploy can automatically roll back when the alarm triggers.
CodeDeploy canary deployment shifts an initial percentage, waits, and then shifts the remainder; alarms can trigger automatic rollback. Linear deployment shifts equal increments repeatedly instead of making the required two-stage shift.