Courseiva

VA-003 Compare authentication methods Practice Question

A developer wants to log in to Vault from a terminal by supplying a username and password that Vault stores and manages internally, without relying on any external identity system. Which auth method should be enabled?

⚠ Common exam trap

The trap here is overlooking that Userpass stores credentials inside Vault, while LDAP looks similar at login time but always delegates validation to an external directory.

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

✓

Userpass auth method

Userpass keeps user records and password hashes within Vault, so it delivers exactly the self-contained username and password login described. LDAP and OIDC both depend on external systems, and token auth only consumes a pre-existing token rather than authenticating a user with credentials.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Token auth method

    Why it's wrong here

    Token auth accepts an existing Vault token but does not provide a username and password login experience. The developer would still need some other method to obtain that token initially, so token auth alone does not meet the stated requirement.

  • ✗

    OIDC auth method

    Why it's wrong here

    OIDC auth redirects the user to an external identity provider for authentication and relies on that provider's tokens. It cannot satisfy the requirement of Vault-managed credentials with no external dependency, and it is typically browser-based rather than a simple CLI username and password prompt.

  • ✓

    Userpass auth method

    Why this is correct

    The Userpass auth method stores usernames and password hashes inside Vault itself, allowing users to log in with credentials Vault manages. It requires no external identity provider, which matches the developer's need for a self-contained username and password login from the CLI.

  • ✗

    LDAP auth method

    Why it's wrong here

    LDAP auth delegates credential validation to an external directory server. Since the requirement is to avoid any external identity system and have Vault manage the credentials internally, LDAP does not fit, even though it also uses username and password at login time.

About these practice questions

Courseiva writes every VA-003 question from scratch — 366 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official HashiCorp exam blueprint

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.