Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 277 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 277
Topic #: 1
[All Terraform Associate Questions]

Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

  • A. terraform state list ‘provider_type.name’
  • B. terraform state show ‘provider_type.name’
  • C. terraform get ‘provider_type.name’
  • D. terraform state list
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
LemonadeSoftware
1 year ago
B This is an example of what I get if I run "terraform state show aws_instance.web": # aws_instance.web: resource "aws_instance" "web" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" subnet_id = "subnet-12345678" tags = { Name = "web-instance" } }
upvoted 1 times
...
cajif66766
1 year ago
terraform state show "aws.instance.example"
upvoted 1 times
...
heeloco
1 year, 2 months ago
Selected Answer: B
agree Pete987
upvoted 1 times
...
Pete987
1 year, 3 months ago
B. terraform state show ‘provider_type.name’
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...