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?
Duplicate the template file and hard-code the staging values before deploying.
Pass environment-specific parameters with the --parameter-overrides option (or a named config environment) when running sam deploy.
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.
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 are AWS SAM templates used for?
Open an interactive chat with Bash
What does it mean to pass parameters during deployment?
Open an interactive chat with Bash
How can you manage different staging environments with AWS SAM?
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...
IT & Cybersecurity Package Join Premium for Full Access