Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
HashiCorp Certified: Terraform Associate (003) · HashiCorp
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
This is based on the assumption that the tfstate file is different from the new one. That means the backends are different. Otherwise, init will automatically download the tfstate file containing 15 VMs.
B or D ? if you delete the one VM in UI, when you apply, it will refresh the state file, the VM has been deleted.
D. Delete the VM using the cloud provider console and terraform apply to apply the changes: This option is not advisable because it involves manually deleting a resource outside of Terraform, which can lead to discrepancies between your real infrastructure and Terraform's state. If a resource is manually deleted, Terraform's state file still thinks the resource exists, and running terraform apply would likely result in Terraform trying to "reconcile" the state by re-creating the deleted VM, which is not the intended outcome.