Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 201


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

Show Answer
Correct Answer: B

The correct command to access all of the attributes and details of a resource managed by Terraform is 'terraform state show <resource id>' because it provides a detailed, human-readable representation of the current state of a specific resource, including all its attributes and configuration.

Discussion

11 comments
Sign in to comment
AlbionOption: B
Dec 6, 2023

terraform state list : is used to list all resources that are currently being tracked in the Terraform state. It provides a list of resource addresses, which can be helpful to identify the names or identifiers of resources managed by Terraform. terraform state show : command is used to show details and attributes of a resource managed by Terraform. It provides a human-readable representation of the current state of a specific resource, including all its attributes and configuration. Correct answer : B

nakikoo
Jan 13, 2023

first!, joking we'ere intellectuals, its A

srcntpcOption: B
Jan 13, 2023

The terraform state list command shows the resource addresses for every resource Terraform knows about in a configuration, optionally filtered by partial resource address. The terraform state show command displays detailed state data about one resource.

InformationOverloadOption: B
Jan 16, 2023

The terraform state show command is used to show the attributes of a single resource in the Terraform state. https://developer.hashicorp.com/terraform/cli/commands/state/show

ssanjaytOption: B
Jan 13, 2023

B is correct

gekkehenkOption: B
Jan 14, 2023

As they're are asking about "details" it should be B.

Abuu
Jan 24, 2023

B definintely

mhinojosarubiaOption: B
Feb 1, 2023

It's b

sagunala5
Mar 25, 2023

B https://developer.hashicorp.com/terraform/cli/commands/state/show

campsOption: B
Mar 31, 2023

B. terraform state show

090200fOption: B
Jul 28, 2024

terraform state show [options] address is correct so B is correct answer https://developer.hashicorp.com/terraform/cli/commands/state/show