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

34 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...

rookie1025
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.

vitasac
Apr 29, 2022

Yes I'm agree D is correct

shivamkrsingh
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 10, 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.

BlackZeros
Jun 25, 2022

I think wrong answers are good for brain exercise, I do not rely on their given answers and always go to discussion to figure out the right answer.

RVivekOption: D
Sep 22, 2022

A -- Again manual provisioning it will not address the problem B-- Using a Check list, is again a manula process and can result in error C-- The question is about eleminating error due to manaual process. Also this is a Terraform Exam . So this soloution is irrelevent D: Correct answer beacuse , this automates the deployment with standard conficuration.

ItaloVinodiOption: D
May 13, 2022

D for sure

R248
Feb 10, 2023

Thats Annoying... why do they provide wrong answers...

acheironOption: D
Mar 17, 2023

Why are so many of these answers displayed as a "correct" wrong? This is nuts and incessantly frustrating. D is obviously the correct answer: Terraform is all about writing Infrastructure-as-Code. The solution is to (D) automate with Terraform by writing HCL configuration to solve the issue, rather than requiring humans to manually follow a checklist (A).

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.

EltoothOption: D
Jun 17, 2022

D is the correct answer for sure. Any DevOps Eng would know this.

cjigOption: D
Jul 24, 2022

Answer is D

FarziWaliMarziOption: D
Dec 17, 2022

ROFL, how can A be the answer? Definitely D is the answer.

wimarsha
Jan 29, 2023

Why this system suggesting wrong answers for questions? any idea ?

SilentMilliOption: D
Feb 11, 2023

Using infrastructure as code (IAC) can help solve the problem of inconsistent configurations by automating the deployment and configuration of compute instances. With IAC, you can define your infrastructure as code, commit it to version control, and then use a provisioning pipeline to automatically deploy and configure the infrastructure based on the code in version control. This ensures that every compute instance is deployed and configured consistently, eliminating the risk of manual configuration errors. Additionally, implementing a provisioning pipeline with code reviews can help catch any potential issues before they are deployed, further reducing the risk of outages during peak shopping time.

yuvifose
Jul 18, 2022

D for sure, it's what TF is all about!

icebox0eOption: D
Oct 15, 2022

D for sure

kartikjena31
Jan 17, 2023

D is the option

thor7Option: D
Mar 29, 2023

D is the correct answer, please fox the suggested correct answer.

Power123
Mar 30, 2023

Correct ans is D

connecttozee
Apr 4, 2023

agree D

karendavtyanOption: D
May 5, 2023

D. for sure

Ni33Option: D
May 8, 2023

D is the correct answer

IK912
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

jitusonawane89
Jul 26, 2023

D is correct

pradeepukgOption: D
Aug 16, 2023

D is correct answer

qs5dq64s5dq5Option: D
Oct 27, 2023

D for sure

MatttOption: D
Sep 13, 2024

D is correct

valli_Option: D
Apr 13, 2025

it should definitely be D