AWS Certified Developer – Associate — Question 68
A developer must extend an existing application that is based on the AWS Serverless Application Model (AWS SAM). The developer has used the AWS SAM CLI to create the project. The project contains different AWS Lambda functions.
Which combination of commands must the developer use to redeploy the AWS SAM application? (Choose two.)
Answer options
- A. sam init
- B. sam validate
- C. sam build
- D. sam deploy
- E. sam publish
Correct answer: C, D
Explanation
The correct commands to redeploy an AWS SAM application are 'sam build', which compiles the source code, and 'sam deploy', which deploys the built application to AWS. The other options, such as 'sam init', are used for initializing new projects, 'sam validate' is for checking the template, and 'sam publish' is for sharing the application, not redeploying it.