HashiCorp
TA-002-P · Question #10
You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resourc
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #10. 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 deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?
Options
- ARun terraform output ip_address to view the result
- BIn a new folder, use the terraform_remote_state data source to load in the state file, then
- CRun terraform state list to find the name of the resource, then terraform state show to find
- DRun terraform destroy then terraform apply and look for the IP address in stdout
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 output#State inspection#Resource attributes