Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 243

A developer is building a serverless application by using AWS Serverless Application Model (AWS SAM) on multiple AWS Lambda functions. When the application is deployed, the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version.

Which change to the AWS SAM template will meet these requirements?

    Correct Answer: A

    To meet the requirement of shifting 10% of the traffic to the new deployment for the first 10 minutes and subsequently switching all traffic to the new version if there are no issues, the correct change to the AWS SAM template is to set the Deployment Preference Type to Canary10Percent10Minutes. This configuration ensures that 10% of the traffic is directed to the new deployment initially, following a canary strategy, and the AutoPublishAlias property ensures that the specified alias is updated automatically after the canary period.

Discussion
didorinsOption: C

C should be it. Shift traffic in two batches is Canary Validation is done with hooks https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html

41eb566Option: A

This configuration specifies a canary deployment strategy where 10% of the traffic is directed to the new deployment for the first 10 minutes after deployment. If there are no issues, all traffic will automatically switch over to the new version. Setting the AutoPublishAlias property to the Lambda alias ensures that the specified alias is automatically updated after the canary period.

SerialiDrOption: A

This configuration will ensure that during deployment, 10% of the traffic is shifted to the new version for 10 minutes as a "canary" release. If no issues are detected during this period, AWS SAM will automatically shift the rest of the traffic to the new version. The AutoPublishAlias property is used to specify the alias that the AWS SAM deployment process will update to point to the new version of the function.

nickolajOption: A

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html property to the Lambda alias.

NinjaCloud

Answer: A! Option B, which uses the "Linear" deployment type, gradually shifts traffic, and doesn't fully meet the requirement of immediately switching all traffic if there are no issues within the first 10 minutes.

Claire_KMT

A. Set the Deployment Preference Type to Canary10Percent10Minutes. Set the AutoPublishAlias property to the Lambda alias.

JiskingOption: A

I go with A!

konieczny69Option: A

AutoPublishAlias is a requirement. Pre and Post traffic handlers are nice to have

SnapeOption: A

set the Deployment Preference Type to Canary10Percent10Minutes and set the AutoPublishAlias property to the Lambda alias.

rrshah83Option: A

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html

Mimi666Option: A

Hooks as post y pre are not obligatory required

tqiu654Option: A

Based on ChatGPT: A. PostTraffic properties are not necessary.

AnandeshOption: C

I feel it should be C. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html

ahadh7621Option: A

Answer is A: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html When deploying a Lambda function gradually, CodeDeploy requires a previously deployed function version to shift traffic from. Therefore, your first deployment should be accomplished in two steps: Step 1: Deploy your Lambda function and automatically create aliases with AutoPublishAlias. Step 2: Perform your gradual deployment with DeploymentPreference.

65703c1Option: A

A is the correct answer.

Abdullah22

I am going with C

Abdullah22

change to A

KarBiswaOption: C

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html The success or failure of the deployment is determined by hooks