nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #51

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

The correct answer is A. Terraform state show ` provider_type_name. The terraform state show <resource_address> command displays all attributes and metadata of a specific resource tracked in the Terraform state file (e.g., terraform state show aws_instance.my_vm). This gives you a detailed view of every attribute Terraform knows about that resour

Submitted by suresh_in· Apr 18, 2026Manage Terraform State

Question

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

Options

  • ATerraform state show ` provider_type_name
  • BTerraform state list
  • CTerraform get provider_type_name
  • DTerraform state list provider_type_name

How the community answered

(31 responses)
  • A
    87% (27)
  • B
    3% (1)
  • C
    6% (2)
  • D
    3% (1)

Explanation

The terraform state show <resource_address> command displays all attributes and metadata of a specific resource tracked in the Terraform state file (e.g., terraform state show aws_instance.my_vm). This gives you a detailed view of every attribute Terraform knows about that resource. In contrast, terraform state list only returns a list of resource addresses without any attribute details, and terraform get is used for downloading modules - not inspecting state.

Topics

#Terraform CLI#Terraform State#State Inspection#Resource Attributes

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice