AWS Certified Developer – Associate (DVA-C02) — Question 27
A developer needs to perform geographic load testing of an API. The developer must deploy resources to multiple AWS Regions to support the load testing of the API.
How can the developer meet these requirements without additional application code?
Answer options
- A. Create and deploy an AWS Lambda function in each desired Region. Configure the Lambda function to create a stack from an AWS CloudFormation template in that Region when the function is invoked.
- B. Create an AWS CloudFormation template that defines the load test resources. Use the AWS CLI create-stack-set command to create a stack set in the desired Regions.
- C. Create an AWS Systems Manager document that defines the resources. Use the document to create the resources in the desired Regions.
- D. Create an AWS CloudFormation template that defines the load test resources. Use the AWS CLI deploy command to create a stack from the template in each Region.
Correct answer: B
Explanation
The correct answer is B because using AWS CloudFormation stack sets allows for the simultaneous creation of resources in multiple Regions without the need for additional application code. Option A is incorrect as it requires creating Lambda functions, which introduces extra code and complexity. Option C is wrong because AWS Systems Manager documents do not facilitate the same level of multi-Region resource deployment as stack sets. Option D is also incorrect because the deploy command does not support creating stacks across multiple Regions at once.