ExamGecko
Question list
Search
Search

Question 23 - Vault Associate 002 discussion

Report
Export

Which of the following statements describe the CLI command below?

S vault login -method-1dap username-mitche11h

A.
Generates a token which is response wrapped
Answers
A.
Generates a token which is response wrapped
B.
You will be prompted to enter the password
Answers
B.
You will be prompted to enter the password
C.
By default the generated token is valid for 24 hours
Answers
C.
By default the generated token is valid for 24 hours
D.
Fails because the password is not provided
Answers
D.
Fails because the password is not provided
Suggested answer: A

Explanation:

The CLI command vault login -method ldap username=mitchellh generates a token that is response wrapped. This means that the token contains a base64-encoded response wrapper, which is a JSON object that contains information about the token, such as its policies, metadata, and expiration time. The response wrapper is used to verify the authenticity and integrity of the token, and to prevent replay attacks. The response wrapper also allows Vault to automatically renew the token when it expires, or to revoke it if it is compromised. The -method ldap option specifies that the authentication method is LDAP, which requires a username and password to be provided. The username mitchellh is an example of an LDAP user name, and the password will be hidden when entered.Reference:Vault CLI Reference | Vault | HashiCorp Developer,Vault CLI Reference | Vault | HashiCorp Developer

asked 18/09/2024
Mercedes Gonzalez Riera
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first