AWS Certified Developer – Associate (DVA-C02) — Question 191
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?
Answer options
- 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.
Correct answer: C
Explanation
The correct answer is C because bundling the application using a SAM package is a necessary step to prepare the application for deployment. Options A and B do not pertain to the SAM CLI deployment process, and option D is related to Elastic Beanstalk rather than serverless applications.