
Answer-first summary for fast verification
Answer: Bundling the serverless application with the SAM package command.
The correct answer is C. 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 the serverless application to an Amazon S3 bucket, producing a packaged AWS SAM template file that can be deployed with the sam deploy command.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
What is the necessary step for a developer to perform before deploying a new serverless application using AWS Lambda functions with the AWS Serverless Application Model (AWS SAM) CLI?
A
Compressing the application into a .zip file and uploading it to AWS Lambda.
B
Tracing the new AWS Lambda function using AWS X-Ray for testing purposes.
C
Bundling the serverless application with the SAM package command.
D
Creating the application environment with the 'eb create my-env' command.