AWS Certified Data Engineer Associate DEA-C01 Practice Question
An AWS CodeBuild project prepares a serverless data pipeline defined in template.yaml. The build stage must (1) install Lambda dependencies locally, (2) upload artifacts to an S3 staging bucket, and (3) output a transformed CloudFormation template for later promotion. Nothing must be deployed at this point. Which sequence of SAM CLI commands meets these requirements with minimal custom scripting?
Run sam sync --watch --stack-name pipeline to copy local changes to the AWS account.
Run sam build and then sam deploy --no-execute-changeset --s3-bucket <bucket>.
Run sam package --s3-bucket <bucket> --output-template-file packaged.yaml and later invoke aws cloudformation deploy.
Run sam build and then sam package --s3-bucket <bucket> --output-template-file packaged.yaml.
sam build compiles application code and its dependencies into the .aws-sam directory so that the artifacts are ready for packaging. sam package --s3-bucket <bucket> --output-template-file packaged.yaml then uploads those artifacts to the specified S3 bucket and rewrites the template so every local reference now points to the uploaded objects. Because sam package only produces a packaged template and never calls CloudFormation, no resources or change sets are created, fully satisfying the "nothing must be deployed" requirement. The other options all contact CloudFormation (sam deploy, sam sync, or aws cloudformation deploy) or omit the build step, so they do not meet the stated constraints.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the `sam build` command in AWS SAM CLI?
Open an interactive chat with Bash
Why do we use the `sam package` command instead of deploying directly?
Open an interactive chat with Bash
What happens if you use `sam deploy` instead of `sam package`?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Ingestion and Transformation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .