HashiCorpHashiCorp
TERRAFORM-ASSOCIATE-004 · Question #70
TERRAFORM-ASSOCIATE-004 Question #70: Real Exam Question with Answer & Explanation
Sign in or unlock TERRAFORM-ASSOCIATE-004 to reveal the answer and full explanation for question #70. The question stem and answer options stay visible for context.
Submitted by dimitri_ru· Apr 18, 2026Use Terraform CLI
Question
You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?
Options
- AUse the terraform state rm command to remove the VM from state file
- BUse the terraform taint command targeting the VMs then run terraform plan and terraform apply
- CUse the terraform apply command targeting the VM resources only
- DDelete the Terraform VM resources from your Terraform code then run terraform plan and
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#Resource replacement#State manipulation#terraform taint