nerdexam
HashiCorp

VAULT-ASSOCIATE-002 · Question #65

Using the Vault CLI, what command is used to authenticate to Vault?

The correct answer is B. vault login. The vault login command is used in the Vault CLI to authenticate a client to a Vault server using various configured authentication methods.

Submitted by weili_xi· Apr 18, 2026Operate Vault

Question

Using the Vault CLI, what command is used to authenticate to Vault?

Options

  • Avault auth
  • Bvault login
  • Cvault user
  • Dvault creds

How the community answered

(49 responses)
  • A
    4% (2)
  • B
    88% (43)
  • C
    2% (1)
  • D
    6% (3)

Why each option

The `vault login` command is used in the Vault CLI to authenticate a client to a Vault server using various configured authentication methods.

Avault auth

`vault auth` is not a valid top-level command for client authentication; it's typically used with subcommands like `vault auth enable` for managing auth methods.

Bvault loginCorrect

The `vault login` command is the designated CLI command to authenticate a user or application to Vault, often requiring parameters specific to the chosen authentication method like `userpass` or `token`.

Cvault user

`vault user` is not a valid Vault CLI command; user management is typically handled through specific auth method paths, e.g., `vault write auth/userpass/users/myuser`.

Dvault creds

`vault creds` is not a valid Vault CLI command for client authentication; 'creds' might be part of a path for a secrets engine like `database/creds`.

Concept tested: Vault CLI authentication command

Source: https://developer.hashicorp.com/vault/docs/commands/login

Topics

#Vault CLI#Authentication#Login command

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice