AWS Certified Developer – Associate — Question 103
A developer has built an application running on AWS Lambda using AWS Serverless Application Model (AWS SAM).
What is the correct sequence of steps to successfully deploy the application?
Answer options
- A. 1. Build the SAM template in Amazon EC2. 2. Package the SAM template to Amazon EBS storage. 3. Deploy the SAM template from Amazon EBS.
- B. 1. Build the SAM template locally. 2. Package the SAM template onto Amazon S3. 3. Deploy the SAM template from Amazon S3.
- C. 1. Build the SAM template locally. 2. Deploy the SAM template from Amazon S3. 3. Package the SAM template for use.
- D. 1. Build the SAM template locally. 2. Package the SAM template from AWS CodeCommit. 3. Deploy the SAM template to CodeCommit.
Correct answer: B
Explanation
The correct answer is B because the deployment process for AWS SAM requires building the template locally, packaging it to Amazon S3, and then deploying from there. Option A incorrectly uses Amazon EC2 and EBS, while C and D do not follow the correct sequence of packaging before deployment.