sam build => build the code locally
sam package => creates a .zip file and upload it on S3 and returns a CloudFormation template sam deploy => run the CloudFormation stack and instantiate the resources
(now the command sam deploy also execute sam package first). So, B is the correct answer
Option A is incorrect because Amazon EBS (Elastic Block Store) is not used to store SAM templates. It is a service that provides block-level storage volumes for use with EC2 instances.
Option B is correct because the developer needs to first build the SAM template locally, then package the SAM template and upload it to an S3 bucket. Finally, the developer can deploy the SAM template from S3 using the AWS CLI or AWS Management Console.
Option C is incorrect because it suggests deploying the SAM template directly from S3 without first packaging it, which is not a valid option. Packaging the SAM template is required to create a deployment package that includes the application code and other dependencies.
Option D is incorrect because AWS CodeCommit is a managed source control service that is used to store and manage source code, and not SAM templates. SAM templates can be stored in CodeCommit, but it is not required for deploying the application
Hope you passed the exam by now. Not all the people knows the explanation. ExamTopics also didn't provide any SME as it is free platform. Now there are explanation given you can see.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
rcaliandro
1 year, 10 months agoBATSIE
1 year, 11 months agofomenkogregory
2 years, 1 month agoDipak25
1 year, 4 months agoShriniW
2 years, 2 months agosichilam
2 years, 3 months agomichaldavid
2 years, 4 months agok1kavi1
2 years, 5 months agosaysamsuf
2 years, 5 months ago