nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #157

Why would you use the -replace flag for terraform apply?

Sign in or unlock TERRAFORM-ASSOCIATE-003 to reveal the answer and full explanation for question #157. The question stem and answer options stay visible for context.

Use Terraform outside the core workflow

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-003 to see the answer

You've previewed enough free TERRAFORM-ASSOCIATE-003 questions. Unlock TERRAFORM-ASSOCIATE-003 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

#-replace flag#resource recreation#terraform apply#resource lifecycle
Full TERRAFORM-ASSOCIATE-003 Practice