VAULT-ASSOCIATE practice question 13 of 15

When looking at Vault token details, which key helps you find the paths the token is able to access?

Full set: 57 questions
Answer options
A: Meta
B: Path
C: Policies Correct answer
D: Accessor
Correct Answer:
C. Policies
Explanation

Vault's authorization model is governed by policies. A token is associated with one or more policies, which define its permissions. Each policy contains a set of rules that specify which paths the token can access and what operations (e.g., read, write, delete) it can perform on those paths. When you look up a token's details, the policies key lists all the policies attached to it. By examining these policies, you can determine the full scope of paths the token is able to access.

Why Incorrect

A. Meta: This key holds arbitrary user-defined key-value metadata associated with the token; it does not influence access control.
B. Path: This key indicates the authentication path where the token was created (e.g., auth/userpass/login/my-user), not the resource paths it is permitted to access.
D. Accessor: This is a unique identifier for the token that is safe to log. It is used for token management tasks like renewal or revocation, but not for defining permissions.

References

1. HashiCorp Vault Documentation - Tokens: "Every token has policies attached to them. These policies control what the token can and cannot do within Vault." (Reference: Concepts -> Tokens -> Token Policies section).

2. HashiCorp Vault Documentation - Policies: "Policies are the way to grant or forbid access to certain paths and operations in Vault. When a client attempts an operation, Vault checks all of the policies associated with its token." (Reference: Concepts -> Policies section).

3. HashiCorp Vault Documentation - vault token lookup Command: The example output for the vault token lookup command clearly shows the policies key as a list of attached policies (e.g., policies [default web]), while accessor, meta, and path serve different, distinct purposes. (Reference: Commands -> token lookup -> Example Output section).

Scroll to Top