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.
Question
Options
- Avault auth
- Bvault login
- Cvault user
- Dvault creds
How the community answered
(49 responses)- A4% (2)
- B88% (43)
- C2% (1)
- D6% (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.
`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.
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`.
`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`.
`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
Community Discussion
No community discussion yet for this question.