AWS Certified Developer Associate DVA-C02 Practice Question
A development team maintains an AWS SAM template that defines its serverless application stack for the dev environment. The team now needs to deploy the same template to a staging AWS account and wants to avoid editing the template file stored in source control.
Which action enables the team to deploy the same SAM template to the staging environment without modifying the template file?
Change the Transform declaration in the template from AWSServerless-2016-10-31 to AWSServerless-2017-01-01.
Rename the template file before deploying it to the staging environment.
Pass environment-specific parameters with the --parameter-overrides option (or a named config environment) when running sam deploy.
Duplicate the template file and hard-code the staging values before deploying.
AWS SAM templates are CloudFormation templates that accept parameters. When you run sam deploy, you can pass environment-specific values through the --parameter-overrides option or reference an entry in samconfig.toml by using --config-env. These runtime overrides allow the same template file to be deployed to any environment while keeping the source template unchanged. Hard-coding new values, renaming the file, or altering the Transform declaration are unnecessary and do not solve the requirement.
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 --parameter-overrides option in SAM deploy?
Open an interactive chat with Bash
What is a samconfig.toml file and how is it used?
Open an interactive chat with Bash
What is the Transform declaration in an AWS SAM template?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
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 .