What is the correct sequence of steps to successfully deploy the application?
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.
1. Build the SAM template locally.2. Package the SAM template onto Amazon S3.3. Deploy the SAM template from Amazon S3.
1. Build the SAM template locally.2. Deploy the SAM template from Amazon S3.3. Package the SAM template for use.
1. Build the SAM template locally.2. Package the SAM template from AWS CodeCommit.3. Deploy the SAM template to CodeCommit.
Explanations:
The steps outlined in this option incorrectly use Amazon EC2 for building the SAM template, and Amazon EBS is not typically used for packaging or deploying SAM applications. The standard process involves local building and utilizing Amazon S3 for packaging and deployment.
This option correctly outlines the process of building the SAM template locally, packaging it onto Amazon S3, and then deploying it from S3. This is the standard workflow for deploying applications using AWS SAM.
While this option starts correctly with building the SAM template locally, it incorrectly suggests deploying the SAM template directly from S3 without packaging it first. The correct sequence requires the SAM template to be packaged and uploaded to S3 before deployment.
This option is incorrect because it suggests packaging the SAM template from AWS CodeCommit, which is not a standard practice. The SAM template should be built and packaged locally or using a build service, and then uploaded to S3 for deployment.