Courseiva
Manage Vault leases →mediumMultiple Choice

VA-003 Manage Vault leases Practice Question

A developer wants to ensure that their application automatically renews its secret leases before expiration. Which approach is recommended?

⚠ Common exam trap

HashiCorp often tests the distinction between renewing a token (which can use periodic tokens) versus renewing a secret lease (which requires Vault Agent or explicit lease renewal), causing candidates to mistakenly choose periodic tokens for secret lease renewal.

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 Vault agent with a template and renew capability.

Vault Agent's template and renew capability is the recommended approach because it automatically manages the lifecycle of dynamic secrets, including renewing leases before they expire. Vault Agent runs as a sidecar or daemon and uses its built-in renewer to periodically extend the lease TTL, ensuring the application always has a valid secret without manual intervention or external scheduling.

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 lease TTL to infinite.

    Why it's wrong here

    Infinite TTL prevents the lease from ever expiring, so no renewal mechanism is triggered and the credential never rotates, defeating the security purpose. It is tempting because it removes expiry management entirely, which suits static long-lived service credentials rather than dynamic secret leases.

  • ✗

    Use a cron job to call vault lease renew periodically.

    Why it's wrong here

    A cron job polls on a fixed schedule, so renewal can lag behind lease expiry or fire after revocation, and it duplicates logic the client library already provides. It is tempting for batch or non-library environments where no native renewal API exists.

  • ✓

    Use Vault agent with a template and renew capability.

    Why this is correct

    Vault Agent runs alongside the application, authenticates automatically, and its template stanza renders secrets to a file while renewing the lease before expiry. This satisfies the requirement for automatic renewal without embedding renewal logic in application code.

  • ✗

    Use periodic tokens with auto-renewal.

    Why it's wrong here

    Periodic tokens govern token lifetime, not secret lease renewal, so the application's dynamic secret still expires without a renew call. It is tempting because periodic tokens auto-renew, which suits long-running service authentication rather than leased secrets.

About these practice questions

This VA-003 question is part of Courseiva's 366-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 →

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.