Data Ingestion and Transformation
An engineer has a SAM template and Python Lambda source code with dependencies listed in requirements.txt. Which SAM CLI operation prepares the function code and dependencies as build artifacts for packaging and deployment?
Show the answer
Correct answerC. Build the application with AWS SAM.
AWhy not this: SAM validation checks the template rather than preparing function dependencies.
BWhy not this: SAM package uploads artifacts and updates their template references rather than building dependencies.
CWhy this is right: SAM build prepares the function code and installs declared dependencies into build artifacts.
DWhy not this: SAM sync updates a development application in AWS rather than serving as the artifact preparation operation.
SAM build prepares function code and dependencies as build artifacts. SAM package uploads local artifacts and produces a template that references them; it does not replace the dependency build step.