AWS Certified DevOps Engineer – Professional — Question 9

A rapidly growing company wants to scale for Developer demand for AWS development environments. Development environments are created manually in the
AWS Management Console. The Networking team uses AWS CloudFormation to manage the networking infrastructure, exporting stack output values for the
Amazon VPC and all subnets. The development environments have common standards, such as Application Load Balancers, Amazon EC2 Auto Scaling groups, security groups, and Amazon DynamoDB tables.
To keep up with the demand, the DevOps Engineer wants to automate the creation of development environments. Because the infrastructure required to support the application is expected to grow, there must be a way to easily update the deployed infrastructure. CloudFormation will be used to create a template for the development environments.
Which approach will meet these requirements and quickly provide consistent AWS environments for Developers?

Answer options

Correct answer: C

Explanation

Option C is correct because it effectively uses nested stacks for common components while retrieving VPC and subnet values through Fn::ImportValue intrinsic functions, enabling easy updates with CreateChangeSet and ExecuteChangeSet commands. Option A is less optimal as it suggests using StackSets, which may not be necessary for this scenario. Option B, while viable, complicates the access to exported values through TemplateURL, which is not as straightforward as directly using nested stacks. Option D fails to utilize nested stacks effectively, making it less efficient for managing common components.