HashiCorp Certified: Vault Associate (002) — Question 15
Which of the following statements describe the CLI command below?
$ vault login -method=ldap username=mitchellh
Answer options
- A. Generates a token which is response wrapped
- B. You will be prompted to enter the password
- C. By default, the generated token is valid for 24 hours
- D. Fails because the password is not provided
Correct answer: B
Explanation
The correct answer is B because when using the 'vault login' command with LDAP, the user is prompted to enter their password after specifying their username. Options A, C, and D are incorrect because the command does not generate a response-wrapped token, the default token validity is not relevant here, and the command will not fail solely due to a missing password prompt.