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

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.