exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 207 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 207
Topic #: 1
[All AWS Certified Developer Associate Questions]

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?

  • A. For each team, use a dedicated CloudFormation template that includes different types of EC2 instances. Update CodePipeline to use the dedicated template for each team.
  • B. For each team, use a dedicated CloudFormation template that includes an InstanceType parameter and a value that is specific to the team's requirement. Update CodePipeline to use the dedicated template for each team
  • C. Update the CloudFormation template by creating an InstanceType parameter. Update CodePipeline to pass the InstanceType parameter value that is specific to the team's requirement.
  • D. Update the CloudFormation template by adding a map for the instance types to the Mappings section. Create a list of all the teams. Configure the required instance type for each team in the map.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JohnStanley
Highly Voted 2 years, 6 months ago
Selected Answer: D
"LEAST change to the pipeline" , so using a mapping section within cloudformation template seems best
upvoted 11 times
...
cherkaar
Most Recent 1 year, 5 months ago
Selected Answer: D
The main issue here is that the sentence "The company needs to allow the teams to deploy different types of EC2 instances." has different interpretations. Some may understand it as granting each team the ability to modify the EC2 instance type themselves by inputting their parameters into the CodePipeline (leading to answer C). However, considering the requirement for the "LEAST change to the pipeline," we can understand the sentence as asking for the CodePipeline's capability to deploy various EC2 instance types for each team. This suggests that we can specify different EC2 instance types for each team in the mapping based on their historical usage data. Therefore, the preferable answer is D.
upvoted 1 times
...
xdkonorek2
1 year, 6 months ago
Selected Answer: D
option D is worse than C but require not pipeline changes
upvoted 2 times
...
CrescentShared
1 year, 7 months ago
Selected Answer: C
I vote for C as I think C + parameter store does not need any code change...
upvoted 1 times
...
nmc12
1 year, 8 months ago
Selected Answer: C
Go with C( ChatGPT4 said ) C. This is the most streamlined approach. By updating the CloudFormation template to have an InstanceType parameter, you can easily change the instance type for each team by simply passing a different parameter value through the pipeline. The pipeline itself only needs a minor change: passing a different parameter value based on the team. --------------------------- D. While the Mappings section would allow for a team-specific instance type, it's a more complex solution compared to just using a parameter. The mappings section is typically used for values that are consistent across different environments or regions, not for dynamic values that might change regularly.
upvoted 2 times
...
sweetheatmn
1 year, 8 months ago
Selected Answer: D
Go with D
upvoted 1 times
...
Rpod
2 years, 1 month ago
Selected Answer: C
should be C
upvoted 1 times
...
Syre
2 years, 2 months ago
Selected Answer: B
All three options (B, C, and D) could work to meet the requirement, but option B would be the best answer with the least amount of change to the pipelines.
upvoted 2 times
...
Krok
2 years, 2 months ago
Selected Answer: D
It's D.
upvoted 1 times
...
captainpike
2 years, 2 months ago
Selected Answer: C
"The company needs to allow the teams to deploy different types of EC2 instances." means it has to be flexible. You don't know what the instances are so you have to parameterize
upvoted 1 times
...
rlnd2000
2 years, 3 months ago
Selected Answer: D
D -> The key in the question is ... with the LEAST change to the pipelines? So C is out since you need to update CodePipeline to pass the InstanceType. For me Creating Mappings for the instances in CloudFormation is the answer.
upvoted 1 times
...
rlnd2000
2 years, 3 months ago
D -> The key in the question is ... with the LEAST change to the pipelines? So C is out since you need to update CodePipeline to pass the InstanceType. For me Creating Mappings for the instances in CloudFormation is the answer.
upvoted 1 times
...
pancman
2 years, 3 months ago
Selected Answer: C
Since the question is asking for the solution "with the LEAST change to the pipelines", creating a new parameter instead of a mapping makes more sense.
upvoted 2 times
...
ShriniW
2 years, 4 months ago
Selected Answer: C
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html
upvoted 1 times
...
Krt5894
2 years, 4 months ago
Selected Answer: D
D. Least changes to pipeline
upvoted 1 times
...
sichilam
2 years, 4 months ago
We need a map the instance types to each team D it is
upvoted 2 times
...
hb0011
2 years, 4 months ago
Selected Answer: C
Passing the EC2 instance type as a parameter in the pipeline and using it in the CloudFormation template requires the least change to the pipeline. This way, you do not need to update the pipeline with a new mapping or any other additional configuration. The pipeline can continue to pass the TeamName parameter as before and add an additional parameter for the EC2 instance type. This way, the pipeline does not need to be modified and only the CloudFormation template will be updated to use the new parameter.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...