Courseiva
Assess Vault tokenseasyMultiple ChoiceObjective-mapped

VA-003 Assess Vault tokens Practice Question

A developer needs a token that can be used only 5 times and must expire after 24 hours, regardless of the number of uses. Which token creation method should be used to enforce these constraints?

⚠ Common exam trap

A common misconception is that a token created directly with `num_uses` or `ttl` alone can satisfy both constraints, or that periodic tokens can enforce a fixed use limit, when in fact only a token role with both parameters set achieves the combined behavior.

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

Use a token role with num_uses=5 and ttl=24h

A token role with both `num_uses=5` and `ttl=24h` enforces both constraints: the token can be used only 5 times and will expire after 24 hours, regardless of which limit is reached first. Creating a token directly with only `num_uses` or only `ttl` would miss one constraint, and a periodic token ignores the `num_uses` limit entirely.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a token directly with num_uses=5

    Why it's wrong here

    Without a ttl, the token may live longer than 24 hours.

  • Use a token role with num_uses=5 and ttl=24h

    Why this is correct

    Token roles allow explicit limits on both number of uses and time-to-live.

  • Create a token directly with ttl=24h

    Why it's wrong here

    Without num_uses, the token may be used unlimited times.

  • Create a periodic token with period set to 24h

    Why it's wrong here

    Periodic tokens are renewable indefinitely and not suitable for limited use cases.

About these practice questions

One of 498 original VA-003 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.