Courseiva
Utilize Vault CLI and APImediumMultiple SelectObjective-mapped

VA-003 Utilize Vault CLI and API Practice Question

Which TWO of the following are valid uses of the Vault API for managing leases? (Choose two.)

⚠ Common exam trap

HashiCorp often tests the distinction between using path parameters versus request body for lease IDs, and the requirement for PUT over GET for state-changing operations, leading candidates to mistakenly select GET endpoints or incorrect URL patterns.

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

PUT /v1/sys/leases/revoke with body {"lease_id": "abc123"}

The Vault API uses a PUT request to `/v1/sys/leases/revoke` with a JSON body containing the `lease_id` to revoke a specific lease. This is the standard method for lease revocation as documented in the Vault API specification. Option D is correct because renewing a lease also requires a PUT request to `/v1/sys/leases/renew` with the `lease_id` in the request body, matching the expected API pattern for state-changing operations.

Answer analysis

Option-by-option breakdown

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

  • PUT /v1/sys/leases/revoke with body {"lease_id": "abc123"}

    Why this is correct

    Correct endpoint and method.

  • GET /v1/sys/leases/renew/abc123

    Why it's wrong here

    Incorrect path and method; should be PUT /v1/sys/leases/renew with body.

  • POST /v1/sys/leases/renew/abc123

    Why it's wrong here

    Incorrect method and path.

  • PUT /v1/sys/leases/renew with body {"lease_id": "abc123"}

    Why this is correct

    Correct endpoint and method.

  • GET /v1/sys/leases/revoke/abc123

    Why it's wrong here

    Should be PUT.

About these practice questions

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