BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Terraform-Associate-004 Exam - Topic 3 Question 13 Discussion

Posted by Margart on Jun 29, 2026 at 03:59 AM

A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?

Suggested Answer: C

Terraform detects infrastructure drift by comparing thestate filewith the actual infrastructure.

When an instance ismanually deleted, Terraformsees it as missingand marks it for recreation.

Running terraform apply willonly recreate the missing instanceswhile leaving the rest of the infrastructure unchanged.

Explanation of incorrect answers:

A (Tear down everything and rebuild)-- Incorrect. Terraform does not destroy existing infrastructure unless explicitly told to.

B (Build a completely new set of infrastructure)-- Incorrect. Terraform does not create duplicates unless configuration changes.

D (Stop and error out)-- Incorrect. Terraform does not fail; itrebuilds missing resourcesautomatically.

Official Terraform Documentation Reference:

Handling Infrastructure Drift


Get Premium Terraform-Associate-004 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
28 comments · newest first
YO
Yolande 3 days ago
Exactly! C is the best choice.
LA
Lashandra 8 days ago
A seems extreme. Terraform usually aims for minimal disruption.
PA
Pamella 13 days ago
I’m leaning towards A. It could tear everything down.
RO
Romana 18 days ago
I feel confident about C as well. Terraform tracks state.
RE
Regenia 23 days ago
True, but I believe C is the right answer.
AU
Audry 29 days ago
But what if it stops? D could happen too.
YO
Yolande 1 month ago
I agree, C makes sense. It’s efficient.
LA
Lashandra 1 month ago
I think it's C. Terraform should just rebuild the deleted instances.
SH
Sherill 1 month ago
Yeah, C is logical. Terraform tracks state well.
CU
Curtis 2 months ago
I feel confident about C. It’s efficient and saves time.
BE
Beatriz 2 months ago
D could happen too, but I believe C is the right answer.
CA
Carmen 2 months ago
But what if it tears down everything? A seems risky.
UL
Ulysses 2 months ago
I agree, C makes sense. It only focuses on what's missing.
LU
Luis 2 months ago
I think it's C. Terraform will just rebuild the deleted instances.
AN
Anjelica 3 months ago
Yup, C is the right answer! Terraform is smart like that.
GE
Gearldine 3 months ago
Wait, are you sure? I thought it might error out first.
DO
Doretha 3 months ago
Definitely option C, that's how it works.
PR
Precious 3 months ago
I thought it would tear everything down!
AR
Arlene 3 months ago
Terraform will just rebuild the deleted instances.
GE
Geraldo 3 months ago
Nah, it definitely just rebuilds what's gone.
BO
Bonita 4 months ago
I think it stops and throws an error if instances are missing.
OC
Octavio 4 months ago
Wait, are you sure it won't tear down everything?
MI
Mireya 4 months ago
Totally agree, it's designed to manage state efficiently!
VA
Van 4 months ago
Terraform will only rebuild the instances that were deleted.
LE
Lemuel 4 months ago
I’m a bit confused. I thought it might tear everything down if it detects missing resources, but that seems extreme. Maybe it just stops with an error?
CA
Carmen 4 months ago
I practiced a similar question, and I believe Terraform is smart enough to only recreate what's missing, so I would go with C as well.
BE
Berry 5 months ago
I’m not entirely sure, but I remember something about Terraform managing state files. Could it be that it stops and throws an error instead?
AU
Audry 5 months ago
I think Terraform will just rebuild the instances that were deleted, so I’m leaning towards option C.
0/2000 characters

Save Cancel