
Answer-first summary for fast verification
Answer: Employ a single AWS SAM configuration file with default parameters, overriding them as needed with the --parameter-overrides flag.
The correct answer is C. This is because creating a single AWS SAM configuration file with default parameters and using the --parameter-overrides flag in the AWS SAM CLI to specify parameters for each environment is straightforward and maintains a clean template structure. This method minimizes duplication and complexity, making it the most efficient solution for managing multiple environments with the least development effort.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a serverless application development using AWS SAM, how can a developer efficiently deploy to multiple environments with minimal effort after initial development?
A
Utilize a TOML configuration file for environment-specific settings and deploy using the --config-env flag.
B
Generate separate AWS SAM templates and deploy with a custom script leveraging the --template-file flag.
C
Employ a single AWS SAM configuration file with default parameters, overriding them as needed with the --parameter-overrides flag.
D
Modify the existing AWS SAM template with environment-specific parameters and deploy using the sam deploy command.
No comments yet.