nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #118

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

The correct answer is B. terraform state show `provider_type.name'. 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…

Submitted by lukas.cz· Apr 18, 2026Manage Terraform State

Question

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

Options

  • Aterraform state list `provider_type.name'
  • Bterraform state show `provider_type.name'
  • Cterraform get `provider_type.name'
  • Dterraform state list

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    94% (31)
  • D
    3% (1)

Explanation

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.

Topics

#terraform state show#Terraform CLI#State management#Resource inspection

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice