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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LemonadeSoftware
1 month, 1 week 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 month, 3 weeks ago
terraform state show "aws.instance.example"
upvoted 1 times
...
heeloco
3 months, 1 week ago
Selected Answer: B
agree Pete987
upvoted 1 times
...
Pete987
4 months, 1 week 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago