ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 60 - DVA-C01 discussion

Report
Export

A Developer has written a serverless application using multiple AWS services. The business logic is written as a Lambda function which has dependencies on third-party libraries. The Lambda function endpoints will be exposed using Amazon API Gateway. The Lambda function will write the information to Amazon DynamoDB.

The Developer is ready to deploy the application but must have the ability to rollback. How can this deployment be automated, based on these requirements?

A.
Deploy using Amazon Lambda API operations to create the Lambda function by providing a deployment package.
Answers
A.
Deploy using Amazon Lambda API operations to create the Lambda function by providing a deployment package.
B.
Use an AWS CloudFormation template and use CloudFormation syntax to define the Lambda function resource in the template.
Answers
B.
Use an AWS CloudFormation template and use CloudFormation syntax to define the Lambda function resource in the template.
C.
Use syntax conforming to the Serverless Application Model in the AWS CloudFormation template to define the Lambda function resource.
Answers
C.
Use syntax conforming to the Serverless Application Model in the AWS CloudFormation template to define the Lambda function resource.
D.
Create a bash script which uses AWS CLI to package and deploy the application.
Answers
D.
Create a bash script which uses AWS CLI to package and deploy the application.
Suggested answer: C

Explanation:

Refer AWS documentation - SAM Gradual Code Deployment

If you use AWS SAM to create your serverless application, it comes built-in with AWS CodeDeploy to help ensure safe Lambda deployments. With just a few lines of configuration, AWS SAM does the following for you:

Deploys new versions of your Lambda function, and automatically creates aliases that point to the new version. Gradually shifts customer traffic to the new version until you're satisfied that it's working as expected, or you roll back the update. Defines pre-traffic and post-traffic test functions to verify that the newly deployed code is configured correctly and your application operates as expected. Rolls back the deployment if CloudWatch alarms are triggered.

asked 16/09/2024
Narender B
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first