Configuration Management and IaC

An AWS SAM template references local Lambda deployment artifacts. A pipeline must upload those artifacts to Amazon S3 and produce a template for a separate deployment stage. Which operation should it use?

Show the answer

Correct answerD. AWS SAM application packaging

AWhy not this: An application build prepares code and dependencies but does not upload artifacts and produce S3 references.

BWhy not this: Template validation checks the template; it does not upload local deployment artifacts and rewrite their references.

CWhy not this: Drift detection compares deployed resource configurations with their expected configurations.

DWhy this is right: Application packaging uploads local artifacts to S3 and produces a template referencing their S3 locations.

AWS SAM packaging uploads local artifacts to S3 and produces a template that references the uploaded artifacts. An application build prepares code and dependencies locally but does not perform this upload-and-rewrite operation.