Courseiva
Utilize Vault CLI and APIeasyMultiple ChoiceObjective-mapped

VA-003 Utilize Vault CLI and API Practice Question

A company uses Vault to manage secrets for multiple applications. A new security policy requires that all human users authenticate using LDAP and that all machine-to-machine authentication uses AppRole. An administrator has configured an LDAP auth method at 'ldap/' and an AppRole at 'approle/'. The administrator creates a role 'web-app' with a secret ID TTL of 30 days and a token TTL of 1 hour. After deploying the web application, the application successfully logs in using the AppRole role ID and secret ID, retrieves a token, and reads secrets. However, after 1 hour, the application begins receiving 'permission denied' errors when trying to read secrets. The application logs show that it is using the same token obtained during initial login. Which action should the administrator take to resolve this issue?

⚠ Common exam trap

HashiCorp often tests the distinction between secret ID TTL and token TTL, leading candidates to confuse the two and incorrectly choose options that modify the secret ID or re-authenticate instead of renewing the token.

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 application to renew the token before it expires by calling the 'auth/token/renew' endpoint.

The application's token has a TTL of 1 hour, and once it expires, Vault will reject any further requests using that token. The application must renew the token before it expires by calling the 'auth/token/renew' endpoint, which extends the token's lifetime (up to the maximum TTL configured on the role). This is the standard pattern for long-running applications using short-lived tokens.

Answer analysis

Option-by-option breakdown

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

  • Increase the secret ID TTL to 60 days so the application can re-authenticate less frequently.

    Why it's wrong here

    The secret ID is used only for initial login; the token TTL is the issue.

  • Set the token TTL to 0 (unlimited) so the token never expires.

    Why it's wrong here

    Unlimited TTL is not a security best practice and may violate policy.

  • Have the application re-authenticate with the AppRole using the same secret ID after the token expires.

    Why it's wrong here

    Re-authentication is possible but less efficient than renewal; the secret ID may still be valid, but the application would need to handle re-login logic.

  • Configure the application to renew the token before it expires by calling the 'auth/token/renew' endpoint.

    Why this is correct

    Token renewal extends the token's lifetime, preventing permission denied errors after TTL expiry.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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.