AWS Certified Developer – Associate — Question 28
A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless
Application Model (AWS SAM) template for the application.
What should the developer use for the project? (Choose two.)
Answer options
- A. Call aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the package afterward.
- B. Call sam package to create the deployment package. Call sam deploy to deploy the package afterward.
- C. Call aws s3 cp to upload the AWS SAM template to Amazon S3. Call aws lambda update-function-code to create the application.
- D. Create a ZIP package locally and call aws serverlessrepo create-application to create the application.
- E. Create a ZIP package and upload it to Amazon S3. Call aws cloudformation create-stack to create the application.
Correct answer: A, B
Explanation
The correct options are A and B because both involve using AWS SAM commands designed specifically for packaging and deploying serverless applications. Options C, D, and E do not utilize AWS SAM's capabilities effectively or involve unnecessary steps that do not align with the deployment process for a serverless application.