ExamGecko
Question list
Search
Search

Question 99 - Terraform Associate 003 discussion

Report
Export

You have deployed a new webapp with a public IP address on a cloud 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.
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
Answers
A.
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
B.
Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
Answers
B.
Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
C.
Run terraform output ip_address to view the result
Answers
C.
Run terraform output ip_address to view the result
D.
Run terraform destroy then terraform apply and look for the IP address in stdout
Answers
D.
Run terraform destroy then terraform apply and look for the IP address in stdout
Suggested answer: B

Explanation:

This is a quick way to inspect the state file and find the information you need without modifying anything5. The other options are either incorrect or inefficient.

asked 18/09/2024
FL Ferdous Attaie
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first