VA-003 Compare authentication methods Practice Question
Which authentication method in Vault uses a shared secret (Role ID) and a dynamic secret (Secret ID) to authenticate machines or applications?
⚠ Common exam trap
HashiCorp often tests the distinction between human-oriented authentication methods (like userpass or LDAP) and machine-oriented methods (like AppRole), so the trap here is assuming that any method using a 'secret' or 'password' is equivalent, when AppRole's unique two-part structure (static Role ID + dynamic Secret ID) is the key differentiator.
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
✓
AppRole
AppRole is the correct authentication method because it is specifically designed for machine-to-machine or application-to-application authentication in Vault. It uses a static Role ID (like a username) combined with a dynamically generated Secret ID (like a password) that can be created, revoked, or have a time-to-live, providing a secure and flexible way for non-human entities to obtain a Vault token.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
LDAP
Why it's wrong here
LDAP delegates authentication to an external directory using bind credentials, returning no Role ID or Secret ID pair. It tempts because it also serves machine accounts, yet the split shared-secret and dynamic-secret mechanism belongs to AppRole; LDAP would be correct when Vault must validate against an existing directory service.
- ✗
Username & password (userpass)
Why it's wrong here
Userpass authenticates with a static username and password pair, offering no separate Role ID or dynamically generated Secret ID. It tempts because it also targets non-human logins, but the two-part shared-secret plus dynamic-secret handshake is unique to AppRole; userpass would be chosen for simple credential-based human or scripted access.
- ✓
AppRole
Why this is correct
AppRole authenticates machines via a Role ID (shared, non-secret identifier) paired with a Secret ID (dynamically generated, single-use credential). This two-part split satisfies the stem's requirement for a shared secret plus a dynamic secret for machine authentication.
- ✗
Okta
Why it's wrong here
Okta is an identity provider brokering human single sign-on via OIDC or SAML, not a machine authentication backend issuing Role ID and Secret ID pairs. It tempts because Okta also authenticates workloads, but AppRole's split shared-secret and dynamic-secret model is what the stem describes; Okta would fit workforce federation instead.
Go deeper
Related to this question
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 →
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.