Q: 20
[Interact with Terraform Modules]
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?
Options
Discussion
C/D? Can't decide which is better, but pretty sure it's B since terraform state show gives the attributes, including the IP, even if no output is defined.
Probably B. I've seen this in a few practice exams and official docs mention using
terraform state show when outputs aren't set up. If you're prepping, definitely check the Terraform docs on state commands and run some quick lab tests.Be respectful. No spam.