Exam Terraform-Associate-003 Topic 4 Question 137 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 137
Topic #: 4
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

Suggested Answer: B Vote an answer

The terraform state show command allows you to access all of the attributes and details of a resource managed by Terraform. You can use the resource address (e.g. provider_type.name) as an argument to show the information about a specific resource. The terraform state list command only shows the list of resources in the state, not their attributes. The terraform get command downloads and installs modules needed for the configuration. It does not show any information about resources. References = [Command: state show] and
[Command: state list]

by unknown69 at Mar 22, 2025, 07:48 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
unknown69CYP
2025-03-22 07:49:23
though the answer is correct
upvoted 1 times
...
unknown69
2025-03-22 07:48:52
you dont need the 'provider_type.name'.
if you just type terraform state show works fine
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10