Question 253 of 514
Manage Vault leasesmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to configure the database role with a TTL of 1 hour and an explicit max TTL of 2 hours, because role-level TTLs override the mount’s default lease TTL, allowing you to enforce shorter-lived credentials per application. This works because Vault evaluates TTLs hierarchically: the role’s TTL takes precedence over the engine’s default, and the max TTL acts as a hard cap that even a renewing client cannot exceed, ensuring leases are revoked promptly after use. On the VA-003 exam, this tests your understanding of the vault role TTL vs mount default lease TTL distinction—a common trap is assuming the mount default applies universally, but role TTLs are the correct mechanism for per-application control. Remember the memory tip: “Role rules, mount defaults only when roles are silent”—if a role specifies a TTL, it always wins, and the max TTL is your safety net against runaway leases.

VA-003 Manage Vault leases Practice Question

This VA-003 practice question tests your understanding of manage vault leases. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company uses Vault to manage database credentials for its applications. The applications request a one-hour TTL for database secrets, but the database engine's default lease TTL is set to 24 hours. The Vault administrator wants to ensure that leases are revoked promptly after the applications finish using them, to minimize the window of exposure. Which approach best achieves this goal?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

Question 1mediummultiple choice
Full question →

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

Configure the database role with a TTL of 1 hour and an explicit max TTL of 2 hours.

Option B is correct because configuring the database role with a TTL of 1 hour and an explicit max TTL of 2 hours allows the application to request a 1-hour lease while ensuring that the lease cannot exceed 2 hours, even if the application fails to renew or release it. This minimizes the exposure window by capping the lease duration, and the Vault administrator can rely on automatic lease revocation at TTL expiry rather than manual intervention. The database engine's default lease TTL of 24 hours is overridden by the role-level TTL, which is the proper way to enforce shorter-lived credentials for specific applications.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 default lease TTL on the database mount to 1 hour.

    Why it's wrong here

    The default lease TTL applies to all secrets without a specific role TTL; but the role TTL overrides the default. Also, the default lease TTL is already 24h, but changing it to 1h would affect other roles that might need longer leases.

  • Configure the database role with a TTL of 1 hour and an explicit max TTL of 2 hours.

    Why this is correct

    This ensures each lease expires after 1 hour, and the explicit max TTL prevents any renewal beyond 2 hours, minimizing exposure.

    Clue confirmation

    The clue words "best", "minimum / minimize" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Increase the system's default lease TTL to 48 hours to give applications more flexibility.

    Why it's wrong here

    This would lengthen the lease duration, increasing the exposure window, which is the opposite of the goal.

  • Manually revoke leases after each application finishes using them.

    Why it's wrong here

    Manual revocation is not scalable and prone to human error; automated TTL-based expiry is preferred.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse the mount-level default lease TTL with the role-level TTL, assuming that changing the mount default is sufficient, when in fact the role-level TTL and explicit max TTL are required to enforce a strict upper bound on credential lifetime.

Detailed technical explanation

How to think about this question

Under the hood, Vault's lease hierarchy allows role-level TTL to override the mount's default lease TTL, but the effective lease TTL is also bounded by the system's max lease TTL (default 32 days) unless an explicit max TTL is set on the role. Setting an explicit max TTL on the role (e.g., 2 hours) ensures that even if the application requests a longer TTL or renews the lease, it cannot exceed that cap, which is critical for compliance scenarios like PCI DSS where database credentials must be rotated frequently. In a real-world scenario, if the application crashes after obtaining a 1-hour lease without the max TTL, the lease could be renewed up to the mount's 24-hour default, leaving credentials exposed for an entire day.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the VA-003 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related VA-003 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free VA-003 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this VA-003 question test?

Manage Vault leases — This question tests Manage Vault leases — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Configure the database role with a TTL of 1 hour and an explicit max TTL of 2 hours. — Option B is correct because configuring the database role with a TTL of 1 hour and an explicit max TTL of 2 hours allows the application to request a 1-hour lease while ensuring that the lease cannot exceed 2 hours, even if the application fails to renew or release it. This minimizes the exposure window by capping the lease duration, and the Vault administrator can rely on automatic lease revocation at TTL expiry rather than manual intervention. The database engine's default lease TTL of 24 hours is overridden by the role-level TTL, which is the proper way to enforce shorter-lived credentials for specific applications.

What should I do if I get this VA-003 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best", "minimum / minimize". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.