An engineer has built an AWS SAM application containing Lambda code, a Step Functions workflow, and a DynamoDB table. How should the engineer deploy the application to an AWS account?
Show the answer
Correct answerA. Upload deployment artifacts to Amazon S3 and deploy through AWS CloudFormation.
AWhy this is right: SAM uses uploaded artifacts and CloudFormation to deploy the resources defined by the application.
BWhy not this: Building prepares deployment artifacts, but copying a build directory does not provision AWS resources.
CWhy not this: Local execution supports testing; uploading execution logs does not provision application resources.
DWhy not this: Importing a workflow does not automatically provision the Lambda functions and DynamoDB tables it references.
AWS SAM deployment uploads local deployment artifacts to Amazon S3 and uses CloudFormation to provision the application's resources. Building prepares code and dependencies but does not deploy resources.