Certs4all

HashiCorp Certified: Vault Associate (002) Vault-Associate Exam Questions

Download Exam View Entire Exam
Page: 2 / 2
Question #6 (Topic: Demo Questions)

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

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: 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.  References :  Vault CLI Reference | Vault | HashiCorp Developer ,  Vault CLI Reference | Vault | HashiCorp Developer

Download Exam
« Prev Page: 2 / 2
Next Page