VAULT-ASSOCIATE-002 · Question #48
A user successfully logs into Vault with the following cURL command: curl --request POST --data @payload.json The response will include what information?
The correct answer is A. client_token and policies. Upon successful authentication, Vault returns a client token to the user, along with the policies that are associated with that token.
Question
Options
- Aclient_token and policies
- Baccess_key and policies
- Caccess_key and secrets available
- Dclient_token and secrets available
How the community answered
(38 responses)- A87% (33)
- B3% (1)
- C8% (3)
- D3% (1)
Why each option
Upon successful authentication, Vault returns a client token to the user, along with the policies that are associated with that token.
After a successful authentication request, Vault returns an authentication response that typically includes a `client_token` (the authentication token itself) and a list of `policies` that are attached to this newly issued token.
Vault issues a `client_token` upon login, not an `access_key`, and policies are returned, not secrets directly.
Vault issues a `client_token`, not an `access_key`, and the login response does not include secrets themselves, only the policies governing access to them.
The response includes `client_token` and `policies`, not the actual `secrets available`, as access to secrets requires further requests using the token.
Concept tested: Vault authentication response structure
Source: https://developer.hashicorp.com/vault/docs/concepts/auth#authentication-response
Topics
Community Discussion
No community discussion yet for this question.