HashiCorp
TA-002-P · Question #447
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 re
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #447. The question stem and answer options stay visible for context.
Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Question
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?
Options
- ATerraform will destroy the application server because it is listed first in the code
- BTerraform will prompt you to confirm that you want to destroy all the infrastructure
- CTerraform will destroy the main.tf file
- DTerraform will prompt you to pick which resource you want to destroy
- ETerraform will immediately destroy all the infrastructure
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Terraform CLI#terraform destroy#Resource lifecycle#Confirmation prompts