Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

Hashicorp Terraform Associate Cert Comprehensive Questions with Correct Answers Accuracy

Document preview thumbnail
Preview 2 out of 13 pages

Hashicorp Terraform Associate Cert Comprehensive Questions with Correct Answers Accuracy Are provisioners runs only when the resource is created or destroyed? - Answer Provisioners are only run when a resource is created or destroyed. Provisioners that are run while destroying are Destroy provisioners. They are not a replacement for configuration management and changing the software of an alreadyrunning server, and are instead just meant as a way to bootstrap a server. By default, provisioners that fail will also cause the Terraform apply itself to fail. (True/False) - Answer True By default, provisioners that fail will also cause the Terraform apply itself to fail. How do you change this? - Answer The on_failure setting can be used to change this. The allowed values are: continue: Ignore the error and continue with creation or destruction. fail: Raise an error and stop applying (the default behavior). If this is a creation provisioner, taint the resource. // Example resource "aws_instance" "web" { # ... provisioner "local-exec" { command = "echo The server's IP address is ${te_ip}" on_failure = "continue" } } Expressions in provisioner blocks cannot refer to their parent resource by name. (True/False) - Answer True


Document information

Uploaded on
July 31, 2024
Number of pages
13
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$9.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
6
Followers
1
Items
1880
Last sold
3 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.