AWS Certified Developer – Associate (DVA-C02) — Question 550
A developer is creating an application on Amazon Elastic Container Service (Amazon ECS). The developer needs to configure the application parameters. The developer must configure limits for the application's maximum number of simultaneous connections and maximum number of transactions per second.
The maximum number of connections and transactions can change in the future. The developer needs a solution that can automatically deploy these changes to the application, as needed, without causing downtime.
Which solution will meet these requirements?
Answer options
- A. Make the configuration changes for the application. Use AWS CodeDeploy to create a deployment configuration. Specify an in-place deployment to deploy the changes.
- B. Bootstrap the application to use the AWS Cloud Development Kit (AWS CDK) and make the configuration changes. Specify the ECSCanary10Percent15Minutes launch type in the properties section of the ECS resource. Deploy the application by using the AWS CDK to implement the changes.
- C. Install the AWS AppConfig agent on Amazon ECS. Configure an IAM role with access to AWS AppConfig. Make the deployment changes by using AWS AppConfig. Specify Canary10Percent20Minutes as the deployment strategy.
- D. Create an AWS Lambda function to make the configuration changes. Create an Amazon CloudWatch alarm that monitors the Lambda function every 5 minutes to check if the Lambda function has been updated. When the Lambda function is updated, deploy the changes by using AWS CodeDeploy.
Correct answer: C
Explanation
AWS AppConfig is designed specifically for managing and deploying application configuration changes dynamically at runtime without requiring a full container redeployment or causing downtime. Installing the AWS AppConfig agent on ECS allows the application to pull configuration updates seamlessly using safe deployment strategies like Canary10Percent20Minutes. Other options rely on full application redeployments (via CodeDeploy or AWS CDK), which are unnecessarily complex and slow for simple runtime configuration updates.