HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #157
Why would you use the -replace flag for terraform apply?
Sign in or unlock TERRAFORM-ASSOCIATE-004 to reveal the answer and full explanation for question #157. The question stem and answer options stay visible for context.
Submitted by yaw92· Apr 18, 2026Use Terraform CLI
Question
Why would you use the -replace flag for terraform apply?
Options
- AYou want Terraform to ignore a resource on the next apply
- BYou want Terraform to destroy all the infrastructure in your workspace
- CYou want to force Terraform to destroy a resource on the next apply
- DYou want to force Terraform to destroy and recreate a resource on the next apply
Unlock TERRAFORM-ASSOCIATE-004 to see the answer
You've previewed enough free TERRAFORM-ASSOCIATE-004 questions. Unlock TERRAFORM-ASSOCIATE-004 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Terraform CLI#terraform apply#Resource Lifecycle#-replace flag