Q77 — AWS DVA-C02 Ch.1

Question 77 of 100 | ← Chapter 1

A developer is building a serverless application using the AWS Serverless Application Model (AWS SAM). The developer is currently testing the application in a development environment. As the application nears completion, the developer needs to set up additional test and pre-production environments for quality assurance. The developer wants to use an AWS SAM feature to deploy to each environment. Which solution meets these requirements with the least development effort?

Correct Answer: A. Add a TOML-formatted configuration file grouping configuration entries per environment. Add a table for each test and pre-production environment. Deploy updates to each environment using the sam deploy command with the --config-env flag corresponding to that environment.

Explanation

Option A is correct: organizing configuration by environment in a TOML file and deploying with --config-env minimizes development effort while maintaining clarity and maintainability.