nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #247

TERRAFORM-ASSOCIATE-004 Question #247: Real Exam Question with Answer & Explanation

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

Submitted by akirajp· Apr 18, 2026Manage Terraform State

Question

A developer launched a VM outside of the Terraform workflow and ended up with two servers with the same name. They are unsure which VM is managed with Terraform, but they do have a list of all active VM IDs. Which method could you use to determine which instance Terraform manages?

Options

  • AModify the Terraform configuration to add an import block for both of the virtual machines.
  • BRun a terraform apply -refresh to identify the virtual machine IDs that are already managed by
  • CRun terraform state rm on both VMs, then terraform apply to recreate the correct one.
  • DRun terraform state list to find the names of all VMs, then run terraform state show for each of

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 state#State inspection#Terraform CLI#Resource identification
Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions