DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 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?

Show Answer
Correct Answer: A,B

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

17 comments
Sign in to comment
didorinsOption: C
Oct 28, 2023

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

Claire_KMT
Oct 28, 2023

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

NinjaCloud
Nov 4, 2023

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.

nickolajOption: A
Nov 23, 2023

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

SerialiDrOption: A
Jan 26, 2024

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.

41eb566Option: A
Mar 19, 2024

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.

tqiu654Option: A
Dec 12, 2023

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

Mimi666Option: A
Dec 19, 2023

Hooks as post y pre are not obligatory required

rrshah83Option: A
Jan 1, 2024

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

SnapeOption: A
Jan 8, 2024

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

konieczny69Option: A
Feb 3, 2024

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

JiskingOption: A
Feb 28, 2024

I go with A!

KarBiswaOption: C
Mar 3, 2024

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

Abdullah22
Mar 3, 2024

I am going with C

Abdullah22
Mar 3, 2024

change to A

65703c1Option: A
May 23, 2024

A is the correct answer.

ahadh7621Option: A
Jul 19, 2024

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.

AnandeshOption: C
Jul 21, 2024

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