nerdexam
HashiCorp

TA-002-P · Question #284

Select the answer below that completes the following statement: Terraform Cloud can be managed from the CLI but requires __________?

The correct answer is A. an API token. Managing Terraform Cloud from the CLI requires an API token for authentication. You authenticate by running terraform login, which opens a browser to generate an API token that is then stored locally (in ~/.terraform.d/credentials.tfrc.json). Alternatively, the token can be set…

Use Terraform Cloud and Terraform Enterprise capabilities

Question

Select the answer below that completes the following statement: Terraform Cloud can be managed from the CLI but requires __________?

Options

  • Aan API token
  • Ba TOTP token
  • Ca username and password
  • Dauthentication using MFA

How the community answered

(19 responses)
  • A
    89% (17)
  • B
    5% (1)
  • C
    5% (1)

Explanation

Managing Terraform Cloud from the CLI requires an API token for authentication. You authenticate by running terraform login, which opens a browser to generate an API token that is then stored locally (in ~/.terraform.d/credentials.tfrc.json). Alternatively, the token can be set via the TF_TOKEN_app_terraform_io environment variable. Terraform Cloud does not use a username/password (C) or TOTP token (B) directly for CLI authentication. While MFA (D) may protect the Terraform Cloud web account, CLI access is token-based, not MFA-based.

Topics

#Terraform Cloud#CLI authentication#API token

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice