VA-003 Assess Vault tokens Practice Question
A developer created a token and wants to ensure that the token can only be used to read secrets from the 'secret/data/production' path. Which policy attachment approach should be used?
⚠ Common exam trap
HashiCorp often tests the misconception that token metadata or token type can enforce access restrictions, when in fact only policies attached to the token define what paths and operations are allowed.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create a policy with read capability on 'secret/data/production' and attach it to the token
Vault uses policies to define fine-grained access control, and the only way to restrict a token to read secrets from a specific path is to create a policy with the appropriate capabilities (e.g., 'read' on 'secret/data/production') and attach that policy to the token at creation time. Tokens themselves do not inherently carry path restrictions; they inherit permissions solely from attached policies.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set the token's metadata to restrict access
Why it's wrong here
Metadata is informational and does not affect authorization.
- ✗
Use a root token and restrict its use via a policy
Why it's wrong here
Root tokens have unrestricted access and cannot be restricted by policies.
- ✓
Create a policy with read capability on 'secret/data/production' and attach it to the token
Why this is correct
Policies define access; attaching the policy grants the token those permissions.
- ✗
Set the token type to service and it will automatically restrict access
Why it's wrong here
Token type only affects properties like renewable, not access paths.
Go deeper
Related to this question
About these practice questions
This VA-003 question is part of Courseiva's 498-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This VA-003 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the VA-003 exam.