What is the best method to quickly find the IP address of the resource you deployed?

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?
A . Run terraform output ip_address to view the result
B . In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
C . Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
D . Run terraform destroy then terraform apply and look for the IP address in stdout

Answer: A

Explanation:

Reference: https://www.terraform.io/docs/cli/commands/output.html

Latest TA-002-P Dumps Valid Version with 324 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
4 Comments
Inline Feedbacks
View all comments
shamera
shamera
2 years ago

C is the answer

Mofu
Mofu
2 years ago

Should be
C . Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address

Mofu
Mofu
2 years ago

Should be

C . Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address

No output is defined. So how output will give answer?

rieder
rieder
2 years ago

I Would consider terraform_remote_state data source as correct answert?