Q63 — AWS DVA-C02 Ch.1
Question 63 of 100 | ← Chapter 1
A developer needs to perform geographic load testing on an API. The developer must deploy resources across multiple AWS Regions to support the API load test. How can the developer meet these requirements without adding extra application code?
- A. Create and deploy an AWS Lambda function in each required Region. Configure the Lambda function to create a stack from an AWS CloudFormation template upon invocation.
- B. Create an AWS CloudFormation template defining the load-testing resources. Use the AWS CLI create-stack-set command to create stack sets across the required Regions. ✓
- C. Create an AWS Systems Manager document defining the resources. Use the document to create resources in the required Regions.
- D. Create an AWS CloudFormation template defining the load-testing resources. Use the AWS CLI deploy command to create a stack in each Region.
Correct Answer: B. Create an AWS CloudFormation template defining the load-testing resources. Use the AWS CLI create-stack-set command to create stack sets across the required Regions.
Explanation
Option B is the most appropriate solution. AWS CloudFormation StackSets enable you to create, update, or delete stacks across multiple AWS Regions. Using the AWS CLI create-stack-set command allows you to easily deploy identical resources across all required Regions, satisfying the load-testing requirement. Option A requires maintaining Lambda functions per Region — less efficient than StackSets. Option C misuses AWS Systems Manager, which is intended for operational tasks, not infrastructure provisioning. Option D uses the AWS CLI deploy command per Region — possible but less scalable and less aligned with cross-Region orchestration than StackSets.