VA-003 Manage Vault leases Practice Question
An admin wants to revoke all leases associated with a specific AWS IAM user created by Vault. Which command should they use?
⚠ Common exam trap
A common trap in Vault exams is confusing the `-prefix` flag with the `-path` flag. The `-prefix` flag revokes all leases under a path, while `-path` is not a valid flag for lease revocation. Candidates may incorrectly think that just specifying the path without `-prefix` will revoke all leases, but that would only work if the exact lease ID is provided.
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
✓
vault lease revoke -prefix aws/creds/myrole
The `vault lease revoke -prefix` command revokes all leases that share a given prefix. Since AWS IAM user credentials generated by Vault under `aws/creds/myrole` have lease IDs that begin with that path, using the `-prefix` flag ensures all associated leases are revoked, regardless of their full lease ID.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
vault lease revoke aws/creds/myrole/ -prefix
Why it's wrong here
Incorrect syntax; '-prefix' should come before the prefix string.
- ✗
vault lease revoke aws/creds/myrole
Why it's wrong here
This revokes only that specific path if it is a lease ID, not all leases with that prefix.
- ✓
vault lease revoke -prefix aws/creds/myrole
Why this is correct
This revokes all leases starting with 'aws/creds/myrole', which covers all IAM users from that role.
- ✗
vault lease revoke -path aws/creds/myrole
Why it's wrong here
'-path' is not a valid flag for revoke; the correct flag is '-prefix'.
Go deeper
Related to this question
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 →
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.