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.
B.
Test the new AWS Lambda function by first tracing it in AWS X-Ray.
C.
Bundle the serverless application using a SAM package.
D.
Create the application environment using the eb create my-env command.
Using sam package (or aws cloudformation package) command, the developer can package the Lambda functions, along with any dependencies and resources defined in the SAM template, into a deployment package. This command uploads local artifacts (like Lambda function code and Swagger files) to an S3 bucket and produces a modified SAM template file, formatted for deployment.
C. Bundle the serverless application using a SAM package.
Before deploying a serverless application using the AWS Serverless Application Model (AWS SAM) CLI, the developer should bundle the application using the sam package command. This command packages and uploads the local artifacts of your serverless application to Amazon S3, and it produces a packaged AWS SAM template file that you can deploy with the sam deploy command.
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.
albert_kuo
8 months, 3 weeks ago65703c1
1 year agoSerialiDr
1 year, 4 months agoTanTran04
1 year, 6 months agodilleman
1 year, 8 months agoDigo30sp
1 year, 8 months ago