AWS Certified Developer – Associate (DVA-C02) — Question 411

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

Correct answer: A, B

Explanation

AWS SAM templates can be packaged and deployed using either the AWS CLI (using aws cloudformation package and aws cloudformation deploy) or the AWS SAM CLI (using sam package and sam deploy). Other options like aws lambda update-function-code, aws serverlessrepo create-applicatiion, or uploading a raw ZIP for aws cloudformation create-stack do not natively process AWS SAM templates correctly to deploy the entire serverless application stack.