exam questions

Exam Terraform Associate 003 All Questions

View all questions & answers for the Terraform Associate 003 exam

Exam Terraform Associate 003 topic 1 question 80 discussion

Actual exam question from HashiCorp's Terraform Associate 003
Question #: 80
Topic #: 1
[All Terraform Associate 003 Questions]

You have a Terraform configuration that defines a single virtual machine with no references to it. You have run terraform apply to create the resource, then removed the resource definition from your Terraform configuration file.
What will happen when you run terraform apply in the working directory again?

  • A. Terraform will destroy the virtual machine.
  • B. Terraform will remove the virtual machine from the state file, but the resource will still exist.
  • C. Terraform will error.
  • D. Nothing.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ShakthiGCP
3 days, 17 hours ago
Selected Answer: A
A is correct
upvoted 1 times
...
March2023
3 weeks, 3 days ago
Selected Answer: B
Terraform removes the resource from state The real VM still exists in your cloud provider No destroy action occurs
upvoted 1 times
Barty94
3 weeks, 2 days ago
No, it will remove your VM, it is no longer in configuration and will remove it, you can test it, A is correct.
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...