HCVA0-003 practice question 30 of 35

Which of the following best describes a token accessor?

Full set: 285 questions
Answer options
A: A value that describes which clients have access to the attached token
B: Describes the value associated with the token’s TTL
C: A token used for clients to access Vault secrets engines
D: A value that acts as a reference to a token which can be used to perform limited actions against the token Correct answer
Correct Answer:
D. A value that acts as a reference to a token which can be used to perform limited actions against the token
Explanation

A token accessor is a non-sensitive, unique identifier that acts as a reference to a corresponding Vault token. Its primary purpose is to enable token lifecycle management operations—such as lookup, renewal, and revocation—without exposing the actual secret token ID. Using the accessor for these tasks enhances security by allowing operators and systems to manage tokens without having permission to use them. Accessors are safe to log and store, as they cannot be used to authenticate or access secrets, unlike the token ID itself.

Why Incorrect

A. Policies attached to a token, not the accessor, define which clients or entities have access and what actions they can perform.
B. The Time-to-Live (TTL) is a property of the token that defines its validity period; the accessor is a separate identifier for managing the token.
C. This describes the function of the Vault token ID itself, which is the credential used by clients to authenticate and access secrets engines.

References

1. HashiCorp Vault Official Documentation, "Tokens - Concepts": Under the "Token Accessors" section, the documentation states, "The accessor is a value that acts as a reference to the token and can be used to look up a token's properties and to revoke a token... Using the accessor, you can revoke a token without being able to authenticate with it." This directly supports the definition in the correct answer.

Source: HashiCorp Developer Portal, Vault Documentation, Concepts: Tokens, Section: Token Accessors. (developer.hashicorp.com/vault/docs/concepts/tokens#token-accessors)

2. HashiCorp Vault Official Documentation, "Revoke a Token Using its Accessor (API)": This API documentation demonstrates the practical use of an accessor for a limited action (revocation). The endpoint auth/token/revoke-accessor explicitly uses the accessor to invalidate a token, reinforcing that the accessor is a reference for management actions.

Source: HashiCorp Developer Portal, Vault API Documentation, Auth Methods: Token, Endpoint: revoke-accessor. (developer.hashicorp.com/vault/api-docs/auth/token#revoke-a-token-using-its-accessor)

Scroll to Top