Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 21


You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and configuring each compute instance manually. This has led to inconsistent configuration between each compute instance.

How would you solve this using infrastructure as code?

Show Answer
Correct Answer: D

To solve the issue of inconsistent configuration between compute instances and to manage infrastructure more efficiently, implementing a provisioning pipeline that deploys infrastructure configurations committed to your version control system following code reviews is the best approach. This is a fundamental practice of infrastructure as code (IaC), which allows you to define infrastructure in code, enabling automated, consistent, and repeatable deployments. It eliminates the need for manual provisioning and configuration, reducing errors and ensuring that all configurations are consistent across all instances.

Discussion

17 comments
Sign in to comment
tipzzzOption: D
Apr 24, 2022

D for sure

Eniras
May 5, 2022

Yes Answer is D

fabiomlopOption: D
Jun 18, 2022

Obviously D... who picks those answers, FFS...

rookie1025Option: D
Apr 25, 2023

man... obviously the answer is D. So many incorrect answers are there in all the dumps. With this website being so inconsistent with their answers they sure are shameless giving us captcha challenge and asking us to buy the pro version every 5 questions.

shivamkrsinghOption: D
Sep 1, 2023

I think the answer is D. The person who stored the A as correct answer might not want to write terraform code or CICD.😅

SilentHOption: D
Apr 9, 2024

C'mon, the answer is obviously D. I'm only on question 21 and have seen at least 5 obviously wrong answers. It's like ExamTopics is trying to fail people.

campsOption: D
Mar 31, 2023

D. Implement a provisioning pipeline that deploys infrastructure configurations committed to your version control system following code reviews. To solve this problem, you should consider implementing infrastructure as code (IaC) using a provisioning pipeline. By doing so, you can define your compute instances and other infrastructure resources using code, which can be version controlled, reviewed, and tested before being deployed to production. This would eliminate the need for manual configuration and reduce the risk of inconsistent configuration between compute instances.

Power123Option: D
Mar 30, 2023

Correct ans is D

connecttozeeOption: D
Apr 4, 2023

agree D

karendavtyanOption: D
May 5, 2023

D. for sure

Ni33Option: D
May 8, 2023

D is the correct answer

IK912Option: D
Jun 18, 2023

Definitely D

DuboisNicolasDuclairOption: A
Jun 26, 2023

Because the topic said *a sample main.tf* it means that we can have many types of files like *.tf

HMthyl
Jul 17, 2023

This implies the question has completely changed over the last 3 weeks, huh?

Shane_COption: D
Jul 4, 2023

D is the only thing close to a correct answer here

wheelanOption: D
Jul 21, 2023

D - in line with IaC

jitusonawane89Option: D
Jul 26, 2023

D is correct

pradeepukgOption: D
Aug 16, 2023

D is correct answer

qs5dq64s5dq5Option: D
Oct 27, 2023

D for sure