Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 295 discussion

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

A developer on your team is going to tear down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?

  • A. terraform destroy aws_instance.ubuntu[l]
  • B. terraform apply rm aws_instance.ubuntu[l]
  • C. terraform state rm aws_instance.ubuntu[l]
  • D. terraform plan rm aws_instance.ubuntu[l]
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Ramdi1
12 months ago
Selected Answer: C
The `terraform state rm` command removes bindings from the Terraform state, causing Terraform to "forget about" existing objects.
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 ...