nerdexam
HashiCorp

TA-002-P · Question #137

Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.

The correct answer is A. terraform providers. The terraform providers command prints a tree of the providers required by the current configuration, including any version constraints specified in the configuration. It shows which providers are used and what version requirements are set. terraform state show displays…

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.

Options

  • Aterraform providers
  • Bterraform state show
  • Cterraform provider
  • Dterraform plan

How the community answered

(39 responses)
  • A
    92% (36)
  • B
    3% (1)
  • C
    5% (2)

Explanation

The terraform providers command prints a tree of the providers required by the current configuration, including any version constraints specified in the configuration. It shows which providers are used and what version requirements are set. terraform state show displays resource state details, terraform provider is not a valid command, and terraform plan shows execution changes - none of these display provider version constraints.

Topics

#Terraform CLI#Providers#Version Constraints#Command Reference

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice