nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #118

TERRAFORM-ASSOCIATE-004 Question #118: Real Exam Question with Answer & Explanation

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 comman

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

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 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions