ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 124 - DVA-C02 discussion

Report
Export

A company has developed a new serverless application using AWS Lambda functions that will be deployed using the AWS Serverless Application Model (AWS SAM) CLI.

Which step should the developer complete prior to deploying the application?

A.
Compress the application to a zip file and upload it into AWS Lambda.
Answers
A.
Compress the application to a zip file and upload it into AWS Lambda.
B.
Test the new AWS Lambda function by first tracing it m AWS X-Ray.
Answers
B.
Test the new AWS Lambda function by first tracing it m AWS X-Ray.
C.
Bundle the serverless application using a SAM package.
Answers
C.
Bundle the serverless application using a SAM package.
D.
Create the application environment using the eb create my-env command.
Answers
D.
Create the application environment using the eb create my-env command.
Suggested answer: C

Explanation:

This step should be completed prior to deploying the application because it prepares the application artifacts for deployment. The AWS Serverless Application Model (AWS SAM) is a framework that simplifies building and deploying serverless applications on AWS. The AWS SAM CLI is a commandline tool that helps you create, test, and deploy serverless applications using AWS SAM templates.

The sam package command bundles the application artifacts, such as Lambda function code and API definitions, and uploads them to an Amazon S3 bucket. The command also returns a CloudFormation template that is ready to be deployed with the sam deploy command. Compressing the application to a zip file and uploading it to AWS Lambda will not work because it does not use AWS SAM templates or CloudFormation. Testing the new Lambda function by first tracing it in AWS X-Ray will not prepare the application for deployment, but only monitor its performance and errors. Creating the application environment using the eb create my-env command will not work because it is a command for AWS Elastic Beanstalk, not AWS SAM.

asked 16/09/2024
Reydel Tabares Castro
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first