ExamGecko
Question list
Search
Search

Question 1 - Terraform Associate 003 discussion

Report
Export

You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources 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 prompt you to pick which resource you want to destroy
Answers
A.
Terraform will prompt you to pick which resource you want to destroy
B.
Terraform will destroy the application server because it is listed first in the code
Answers
B.
Terraform will destroy the application server because it is listed first in the code
C.
Terraform will prompt you to confirm that you want to destroy all the infrastructure
Answers
C.
Terraform will prompt you to confirm that you want to destroy all the infrastructure
D.
Terraform will destroy the main, tf file
Answers
D.
Terraform will destroy the main, tf file
E.
Terraform will immediately destroy all the infrastructure
Answers
E.
Terraform will immediately destroy all the infrastructure
Suggested answer: C

Explanation:

This is what will happen if you runterraform destroywithout any flags, as it will attempt to delete all the resources that are associated with your current working directory or workspace. You can use the-targetflag to specify a particular resource that you want to destroy.

asked 18/09/2024
Ryan Campbell
24 questions
NextNext
User
Your answer:
0 comments
Sorted by

Leave a comment first