VLT-VA003 Study Notes in Questions: Authentication methods

Authentication methods is a recurring theme in the HashiCorp Vault Associate (003) (VLT-VA003) exam. The 5 questions below come with a full explanation of why each option is right or wrong.

VLT-VA003 Authentication methods: 5 practice questions

HashiCorp Vault Associate (003) (VLT-VA003) · Authentication methods · 5 questions with answers and explanations

📊 Set profile

Exam: VLT-VA003 · 50 questions · 60 minutes
This set: 4 applied, 1 advanced · 2 scenario, 1 comparison, 1 concept check, 1 troubleshooting · 1 with more than one answer
Topics: Vault

Question 1 of 5

A group in the identity store is configured as an external group with an alias that maps to the LDAP group sre. What does that provide?

AEach entity created by the LDAP mount joins the group, because an external alias applies to the whole mount
BMembership in Vault changes as soon as the LDAP group changes, through a sync from the directory
COperators add and remove each member by hand, as they do for internal groups in the identity store
DLDAP users who belong to sre are added to the Vault group at login and renewal
Show answer

✅ Answer: D

Difficulty: applied · Topic: Vault

Internal and external groups
• Internal groups are the default. Membership is managed manually (by operators or automation). Groups can also be nested: members of a subgroup inherit policies of the parent group.
• External groups map to a group that lives outside the identity store, such as an LDAP group or a GitHub team. They can have one, and only one, alias, which maps to the outside group.

Timing
With an external group, a user's entity is added as a member automatically during login and token renewal. If the user is removed from the LDAP group, Vault drops the membership only on the next login or renewal, not immediately.

Why each option works or fails
• ✗ A. Whole mount joins: the alias names one outside group, so only entities whose login reports membership in sre are added, not every entity of the LDAP mount.
• ✗ B. Immediate sync: Vault learns about changes only at login and renewal, so a removal from the LDAP group can lag.
• ✗ C. Manual membership: manual membership is the behavior of internal groups; an external group is filled from the directory at login and renewal.
• ✓ D. Automatic membership at login or renewal (correct): the alias links the Vault group to the directory group, so policies on the Vault group follow directory membership.

Question 2 of 5

Which TWO auth methods are designed mainly for automated workloads or machines rather than people? (Select TWO)

AUserpass
BGitHub
CKubernetes
DLDAP
EAppRole
Show answer

✅ Answer: C, E

Difficulty: applied · Topic: Vault

Human-oriented versus machine-oriented methods
The docs describe some methods as targeted at users and others at machines.
• Machines: AppRole (RoleID plus SecretID, for automated workflows), Kubernetes (pod service account tokens), AWS/GCP/Azure (cloud identities), TLS certificates (client certificate).
• Humans: userpass, LDAP, GitHub (personal access token, most useful for operators or developers), OIDC (browser sign-in).
Choose by who or what the client is, then by where its identity already lives.

Why each option works or fails
• ✗ A. Userpass: it keeps a username and password list in Vault for people to sign in with, and has no workload identity behind it.
• ✗ B. GitHub: it is described as most useful for humans using Vault through the CLI.
• ✓ C. Kubernetes (correct): it validates the service account token of a pod, which is a workload identity.
• ✗ D. LDAP: it checks directory passwords of people and maps their groups to policies.
• ✓ E. AppRole (correct): it is oriented to automated workflows such as services and applications, and is less useful for human operators.

Question 3 of 5

An application authenticates with AppRole through the HTTP API. Where in the response does it find the Vault token to use on later requests, and how does it send it?

AIn lease_id, sent in the Authorization header as Basic
BIn auth.client_token, sent in the X-Vault-Token header
CIn data.token, sent as a query string parameter
DIn auth.accessor, sent in the X-Vault-Token header
Show answer

✅ Answer: B

Difficulty: applied · Topic: Vault

API login
Every auth method has a login endpoint (AppRole: auth/approle/login; the API path is prefixed with /v1/). A request such as POST /v1/auth/approle/login with role_id and secret_id in the JSON body returns JSON in which the auth object contains the token:
• auth.client_token: the token to use.
• auth.accessor: a reference to the token that cannot be used to authenticate.
• auth.policies, auth.lease_duration, auth.renewable.
The token is sent on later requests as X-Vault-Token: <token> or Authorization: Bearer <token>. With the CLI the token is attached automatically; with the API the client must do it.

Why each option works or fails
• ✗ A. Basic with lease_id: lease IDs are for secrets, and Basic authentication is not used by Vault.
• ✓ B. client_token plus X-Vault-Token (correct): that is where the token appears and how it is presented.
• ✗ C. Query string: Vault does not read tokens from query parameters.
• ✗ D. Accessor: the accessor identifies a token for lookup or revocation but cannot authenticate requests.

Question 4 of 5

After the AppRole login endpoint is called with a valid role_id but without a secret_id, the request fails. The role was created with default settings. Why?

AThe role has bind_secret_id enabled by default, so a SecretID is also required
BThe RoleID expires after ten minutes unless it is renewed
CThe default role type also requires a client certificate in addition to the RoleID
DAppRole logins are accepted only from the sys/auth endpoint
Show answer

✅ Answer: A

Difficulty: advanced · Topic: Vault

Required credentials
role_id is always required at the login endpoint. What else is required depends on the constraints on the role. By default bind_secret_id is true, so secret_id must be presented as well.
• For advanced cases, requiring a SecretID can be turned off with bind_secret_id=false, so machines with only the RoleID (or matching other constraints, such as CIDR binding) can fetch a token. This is less secure.
• A SecretID is a credential intended to stay secret; the RoleID is more like a username.
To fix the failure, supply a SecretID issued against the role.

Why each option works or fails
• ✓ A. bind_secret_id default (correct): the role requires the secret_id, so a login with only the role_id is refused.
• ✗ B. Expiring RoleID: RoleIDs do not expire; SecretIDs have TTLs.
• ✗ C. Client certificate: AppRole does not use certificates; the cert method does.
• ✗ D. sys/auth only: logins go to the auth method's own login path.

Question 5 of 5

A batch job runs at night, starting new containers each time, and must log in to Vault without an operator present. The orchestrator can deliver a one-time wrapped value to each new container. Which pairing is the best fit?

AGitHub, with the on-call engineer's personal access token injected into each container at start
BUserpass, with a password typed by the engineer when each container starts
CLDAP, with a bind password stored in the container image
DAppRole, with a short-lived response-wrapped SecretID that the container unwraps at start
Show answer

✅ Answer: D

Difficulty: applied · Topic: Vault

AppRole in automated workflows
AppRole was designed so a trusted orchestrator or pipeline (which knows the RoleID, or can fetch it) delivers a SecretID to a workload. Because a SecretID is a secret, delivery is protected by response wrapping: Vault returns a single-use wrapping token, the container unwraps it to get the SecretID, and then calls auth/approle/login with role_id and secret_id.
• The SecretID can have a short TTL and limited uses.
• Batch tokens are recommended with AppRole for large numbers of short-lived clients.

Why each option works or fails
• ✗ A. Engineer's PAT: this ties a service to a person and spreads a powerful personal credential.
• ✗ B. Typed password: an unattended job cannot wait for a human to type.
• ✗ C. Bind password in an image: LDAP auth is for people, and a credential baked into an image is long-lived and widely readable.
• ✓ D. AppRole with a wrapped SecretID (correct): the secret travels once, its lifetime is short, and the container needs no human interaction.

🎯 Quick recap

• External groups mirror outside groups, updated when members log in or renew.
• AppRole and Kubernetes (like the cloud methods) serve machines, while userpass, LDAP and GitHub serve people.
• Read auth.client_token from the login response and send it as X-Vault-Token or as a Bearer token.
• AppRole needs both role_id and secret_id unless bind_secret_id is disabled on the role.
• For unattended workloads, AppRole with a short-lived wrapped SecretID gives automated login without a long-lived shared secret.

🔗 Related practice sets

• HashiCorp Vault Associate (003) (VLT-VA003): 5 Practice Questions on Vault architecture fundamentals
• HashiCorp Vault Associate (003) (VLT-VA003): 5 Practice Questions on Vault deployment architecture
• VLT-VA003 Practice Set: Access management architecture
• All VLT-VA003 practice sets
• Every exam on this blog

📚 Keep studying VLT-VA003

More VLT-VA003 questions: https://hyunhp.github.io/cert-bank/#exam=VLT-VA003
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=VLT-VA003

These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.

Original practice questions written for this blog, not exam dumps.

Comments