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

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

You have created a main.tr Terraform configuration consisting of an application server, a database, and a load balancer. You ran terraform apply and all resources were created successfully. Now you realize that you do not actually need the load balancer so you run terraform destroy without any flags What will happen?

  • A. Terraform will destroy the application server because it is listed first in the code
  • B. Terraform will prompt you to confirm that you want to destroy all the infrastructure
  • C. Terraform will destroy the main.tf file
  • D. Terraform will prompt you to pick which resource you want to destroy
  • E. Terraform will immediately destroy all the infrastructure
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
SilentMilli
Highly Voted 1 year, 8 months ago
Selected Answer: B
Terraform will prompt you to confirm that you want to destroy all the resources before proceeding. The prompt will ask you to enter "yes" or "no" to confirm or cancel the destruction of resources unless you add the "-auto-approve" flag to stop terraform from prompting you to confirm.
upvoted 6 times
...
090200f
Most Recent 4 months, 1 week ago
B is correct ans. first it will ask you yes or no then if we enter yes , destroy all the resources
upvoted 1 times
...
ajbffkabf
1 year, 5 months ago
xxxxxxxxxxxxxxx
upvoted 1 times
...
ozbeyucel
1 year, 9 months ago
It is B, however, E is tricky there. can confuse
upvoted 3 times
...
bora4motion
2 years, 2 months ago
Selected Answer: B
I go with B
upvoted 3 times
...
Burakko
2 years, 2 months ago
Selected Answer: B
The answer is B.
upvoted 3 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 ...