Which combination of commands must the developer use to redeploy the AWS SAM application?
(Choose two.)
sam init
sam validate
sam build
sam deploy
sam publish
Explanations:
sam initis used to create a new AWS SAM project. It is not necessary to redeploy an existing project.
sam validatechecks if the AWS SAM template is valid but does not deploy the application.
sam buildis used to compile the application, prepare dependencies, and create a deployment package for Lambda functions.
sam deployis used to deploy the AWS SAM application to AWS, applying changes to Lambda functions and other resources.
sam publishis used to publish a SAM application as a versioned public application. It is not related to redeploying an existing application.