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 180 discussion

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

If a Terraform creation-time provisioner fails, what will occur by default?

  • A. The resource will not be affected, but the provisioner will need to be applied again
  • B. The resource will be destroyed
  • C. The resource will be marked as "tainted"
  • D. Nothing, provisioners will not show errors in the command line
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
Burakko
Highly Voted 2 years, 2 months ago
Selected Answer: C
If a creation-time provisioner fails, the resource is marked as tainted. A tainted resource will be planned for destruction and recreation upon the next terraform apply .
upvoted 8 times
jednorozec2022
2 years, 2 months ago
C ref https://www.terraform.io/language/resources/provisioners/syntax#creation-time-provisioners
upvoted 2 times
...
...
tabkar
Most Recent 1 year, 6 months ago
Selected Answer: C
"If a creation-time provisioner fails, the resource is marked as tainted." https://developer.hashicorp.com/terraform/language/resources/provisioners/syntax
upvoted 1 times
...
mamoon_malta2022
1 year, 8 months ago
Answer C: If a creation-time provisioner fails, the resource is marked as tainted. A tainted resource will be planned for destruction and recreation upon the next terraform apply. Terraform does this because a failed provisioner can leave a resource in a semi-configured state. Because Terraform cannot reason about what the provisioner does, the only way to ensure proper creation of a resource is to recreate it. This is tainting.
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 ...