HashiCorp Certified: Terraform Associate (003) (HCTA0-003) Terraform-Associate-003 Question # 19 Topic 2 Discussion

HashiCorp Certified: Terraform Associate (003) (HCTA0-003) Terraform-Associate-003 Question # 19 Topic 2 Discussion

Terraform-Associate-003 Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

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?


A.

Use the terraform state rm command to remove the VM from state file


B.

Use the terraform taint command targeting the VMs then run terraform plan and terraform apply


C.

Use the terraform apply command targeting the VM resources only


D.

Delete the Terraform VM resources from your Terraform code then run terraform plan and terraform apply


Get Premium Terraform-Associate-003 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.