HashiCorp Certified: Vault Associate (002) — Question 73
Which of the following is the correct option to authenticate to Vault using a token using the CLI?
Answer options
- A. A token can be used to authenticate to Vault through the API, not the CLI or the UI
- B. vault login
- C. vault <token>
- D. A token cannot be used to authenticate to Vault
Correct answer: B
Explanation
The correct answer is B, as 'vault login' is the command used to authenticate to Vault with a token through the CLI. Option A is incorrect because tokens can indeed be used with the CLI, and option C is not a valid command for authentication. Option D is also wrong because tokens are a valid means of authentication in Vault.