Courseiva
Utilize Vault CLI and APIhardMultiple ChoiceObjective-mapped

VA-003 Utilize Vault CLI and API Practice Question

An admin wants to list all enabled authentication methods using the Vault API. Which curl command is correct?

⚠ Common exam trap

HashiCorp often tests the exact API endpoint path and HTTP method, so the trap here is confusing the `/v1/sys/auth` endpoint with the non-existent `/v1/sys/auths` or the incorrect `/v1/auth` path, or assuming a POST request is needed when a GET is correct.

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

curl -H "X-Vault-Token: s.abc123" https://vault.example.com:8200/v1/sys/auth

The Vault API endpoint to list all enabled authentication methods is a GET request to `/v1/sys/auth`. This endpoint returns a map of all enabled auth methods, and the command uses the correct HTTP method (GET) and the required `X-Vault-Token` header for authentication.

Answer analysis

Option-by-option breakdown

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

  • curl -H "X-Vault-Token: s.abc123" https://vault.example.com:8200/v1/sys/auths

    Why it's wrong here

    Incorrect; the correct path is /v1/sys/auth, not /v1/sys/auths.

  • curl -H "X-Vault-Token: s.abc123" https://vault.example.com:8200/v1/sys/auth

    Why this is correct

    Correct; GET to /v1/sys/auth returns all enabled auth methods.

  • curl -X POST -H "X-Vault-Token: s.abc123" https://vault.example.com:8200/v1/sys/auth

    Why it's wrong here

    Incorrect; listing auth methods requires GET, not POST.

  • curl -H "X-Vault-Token: s.abc123" https://vault.example.com:8200/v1/auth

    Why it's wrong here

    Incorrect; /v1/auth is not a valid path for listing auth methods.

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.