AWS Certified Developer – Associate — Question 118

A company is using AWS CodePipeline pipelines to deploy development Amazon EC2 instances for multiple teams. All the pipelines are using the same AWS CloudFormation template to deploy the EC2 instances and create dedicated CloudFormation stacks for each team. Each pipeline passes a parameter that is named TeamName to the CloudFormation stack to tag resources with the appropriate team’s name.

The company discovers that each team's usage of EC2 instances is not consistent with the type of EC2 instances that the teams are deploying. The company needs to allow the teams to deploy different types of EC2 instances.

Which solution will meet this requirement with the LEAST change to the pipelines?

Answer options

Correct answer: D

Explanation

Option D is the correct choice as it allows for the introduction of different EC2 instance types with minimal changes to the existing pipelines by using a mapping. Other options involve creating separate templates or parameters for each team, which would require more substantial modifications to the pipelines and increase complexity.