You have been asked to enable a gradual deployment of your Lambda function in two increments such that 10 percent of your traffic is shifted immediately.
After 10 minutes, all traffic is shifted to your deployment.
What deployment preference type will meet this requirement?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: B.
Option A is incorrect as Linear10PercentEvery10Minutes will shift traffic in equal increments with an equal number of minutes between each increment.
Every 10 minutes 10% of the traffic is shifted.
Option B is CORRECT as Canary10Percent10Minutes will ensure 10% traffic shifted first and then all traffic is shifted, thereby meeting the requirement also, this ensures traffic is shifted in two increments.
Option C is incorrect as all traffic will be shifted from the old Lambda function to the updated Lambda function and will not meet the requirement.
Option D is incorrect as pre-hook functions are used to validate and run sanity checks before traffic begins to shift.
If this fails, CodeDeploy will abort and rollback the shift.
Reference:
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.htmlThe correct answer is B. Canary10Percent10Minutes.
A canary release deployment strategy is a technique that enables a gradual deployment of new code changes to a small subset of users before rolling it out to the entire production environment. This approach is useful for detecting issues and bugs in the new code without impacting the entire user base.
The AWS Lambda service supports canary deployments through the use of aliases and weighted routing. When a canary deployment is configured, a small percentage of incoming traffic is directed to the new code version, while the remaining traffic is directed to the previous version.
In this scenario, the requirement is to deploy the Lambda function in two increments, with 10 percent of the traffic shifted immediately, and the rest shifted after 10 minutes. The Canary10Percent10Minutes deployment preference type satisfies this requirement as it shifts 10% of