exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 243 discussion

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?

  • A. Set the Deployment Preference Type to Canary10Percent10Minutes. Set the AutoPublishAlias property to the Lambda alias.
  • B. Set the Deployment Preference Type to Linear10PercentEvery10Minutes. Set AutoPublishAlias property to the Lambda alias.
  • C. Set the Deployment Preference Type to Canary10Percent10Minutes. Set the PreTraffic and PostTraffic properties to the Lambda alias.
  • D. Set the Deployment Preference Type to Linear10PercentEvery10Minutes. Set PreTraffic and PostTraffic properties to the Lambda alias.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
didorins
Highly Voted 1 year, 6 months ago
Selected Answer: 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
upvoted 9 times
...
aws_god
Most Recent 6 months ago
Selected Answer: A
A
upvoted 1 times
...
Saudis
6 months ago
Selected Answer: A
A. Set the Deployment Preference Type to Canary10Percent10Minutes. Set the AutoPublishAlias property to the Lambda alias. Most Voted
upvoted 1 times
...
MasoudK
6 months, 3 weeks ago
A is the answer. The PreTraffic and PostTraffic properties are used for specifying validation Lambda functions to run before and after traffic shifting, respectively. They are not required for the basic canary deployment scenario described.
upvoted 1 times
...
albert_kuo
7 months ago
Selected Answer: A
MyFunction: Type: AWS::Serverless::Function Properties: # ... other properties ... AutoPublishAlias: live DeploymentPreference: Type: Canary10Percent10Minutes
upvoted 1 times
...
wh1t4k3r
8 months, 1 week ago
Selected Answer: A
I will go with A since the question only mentions switch traffic gradually. Ideally A and C should be used as a combination.
upvoted 1 times
...
Anandesh
9 months, 2 weeks ago
Selected Answer: C
I feel it should be C. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html
upvoted 1 times
...
ahadh7621
9 months, 2 weeks ago
Selected Answer: 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.
upvoted 2 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
41eb566
1 year, 1 month ago
Selected Answer: 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.
upvoted 3 times
...
Abdullah22
1 year, 2 months ago
I am going with C
upvoted 1 times
Abdullah22
1 year, 2 months ago
change to A
upvoted 1 times
...
...
KarBiswa
1 year, 2 months ago
Selected Answer: 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
upvoted 1 times
...
Jisking
1 year, 2 months ago
Selected Answer: A
I go with A!
upvoted 2 times
...
konieczny69
1 year, 3 months ago
Selected Answer: A
AutoPublishAlias is a requirement. Pre and Post traffic handlers are nice to have
upvoted 3 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: 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.
upvoted 3 times
...
Snape
1 year, 3 months ago
Selected Answer: A
set the Deployment Preference Type to Canary10Percent10Minutes and set the AutoPublishAlias property to the Lambda alias.
upvoted 2 times
...
rrshah83
1 year, 4 months ago
Selected Answer: A
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago