What will happen?

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
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
D . Terraform will destroy the main, tf file
E . Terraform will immediately destroy all the infrastructure

Answer: C

Explanation:

This is what will happen if you run terraform destroy without 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 – target flag to specify a particular resource that you want to destroy.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments