ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 81 - DVA-C02 discussion

Report
Export

A company is building a micro services app1 cation that consists of many AWS Lambda functions. The development team wants to use AWS Serverless Application Model (AWS SAM) templates to automatically test the Lambda functions. The development team plans to test a small percentage of traffic that is directed to new updates before the team commits to a full deployment of the application.

Which combination of steps will meet these requirements in the MOST operationally efficient way?

(Select TWO.)

A.
Use AWS SAM CLI commands in AWS CodeDeploy lo invoke the Lambda functions lo lest the deployment
Answers
A.
Use AWS SAM CLI commands in AWS CodeDeploy lo invoke the Lambda functions lo lest the deployment
B.
Declare the EventlnvokeConfig on the Lambda functions in the AWS SAM templates with OnSuccess and OnFailure configurations.
Answers
B.
Declare the EventlnvokeConfig on the Lambda functions in the AWS SAM templates with OnSuccess and OnFailure configurations.
C.
Enable gradual deployments through AWS SAM templates.
Answers
C.
Enable gradual deployments through AWS SAM templates.
D.
Set the deployment preference type to Canary10Percen130Minutes Use hooks to test the deployment.
Answers
D.
Set the deployment preference type to Canary10Percen130Minutes Use hooks to test the deployment.
E.
Set the deployment preference type to Linear10PefcentEvery10Minutes Use hooks to test the deployment.
Answers
E.
Set the deployment preference type to Linear10PefcentEvery10Minutes Use hooks to test the deployment.
Suggested answer: C, D

Explanation:

This solution will meet the requirements by using AWS Serverless Application Model (AWS SAM) templates and gradual deployments to automatically test the Lambda functions. AWS SAM templates are configuration files that define serverless applications and resources such as Lambda functions. Gradual deployments are a feature of AWS SAM that enable deploying new versions of Lambda functions incrementally, shifting traffic gradually, and performing validation tests during deployment. The developer can enable gradual deployments through AWS SAM templates by adding a DeploymentPreference property to each Lambda function resource in the template. The developer can set the deployment preference type to Canary10Percent30Minutes, which means that 10 percent of traffic will be shifted to the new version of the Lambda function for 30 minutes before shifting 100 percent of traffic. The developer can also use hooks to test the deployment, which are custom Lambda functions that run before or after traffic shifting and perform validation tests or rollback actions.

Reference: [AWS Serverless Application Model (AWS SAM)], [Gradual Code Deployment]

asked 16/09/2024
Mark Oh
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first