003 · Domain 1: Authentication methods · 15% of the exam
Task 1.1: Define the purpose of authentication methods
What an auth method does: verify a human or machine against an internal or external system, map the result to policies, and hand back a token; the token method that is always there.
Study it
What auth methods do: verify an identity, map it to policies, return a token
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.
Question 1 · choose 1
A reporting script logs in to Vault through the LDAP auth method and then reads 200 secrets in a loop. What does the script present to Vault on each of those reads?
AIts LDAP username and password, which Vault checks against the directory each time
BThe entity ID that the login linked to the script's identity
CThe client token that the LDAP login returned
DThe bind DN and password configured on the LDAP auth mount
Show the answer and why
AIts LDAP username and password, which Vault checks against the directory each time
Incorrect
Vault delegates the check to LDAP at login only; afterwards the token, not the directory password, authorizes requests.
BThe entity ID that the login linked to the script's identity
Incorrect
An entity ID identifies the client in audit logs and identity policies; it is not a credential that authorizes a request.
CThe client token that the LDAP login returned
Correct
Authentication verifies the identity once and generates a token, conceptually a session ID; every later request presents that token.
DThe bind DN and password configured on the LDAP auth mount
Incorrect
Those are the mount's own credentials for querying the directory; clients never send them.
Every auth method ends the same way: Vault verifies the client against its source of truth and returns a token with the mapped policies. The client then sends that token with each request until it expires or is revoked.
A company must let users from two separate LDAP directories, corp and partner, log in to Vault with their own directory credentials. How is this set up?
AEnable ldap once and list both directory servers in its url setting
BEnable the ldap auth method twice, at ldap-corp/ and ldap-partner/
CEnable ldap for corp and userpass for partner, since one type cannot be enabled twice
DEnable ldap once and create a group mapping for each directory
Show the answer and why
AEnable ldap once and list both directory servers in its url setting
Incorrect
Several URLs on one mount are tried as alternatives for one directory, not as two separate directories.
BEnable the ldap auth method twice, at ldap-corp/ and ldap-partner/
Correct
The same type of auth method can be mounted at several paths, each with its own configuration.
CEnable ldap for corp and userpass for partner, since one type cannot be enabled twice
Incorrect
Nothing stops a type from being enabled at more than one path.
DEnable ldap once and create a group mapping for each directory
Incorrect
Group mappings map groups of one directory to policies; they do not connect a second directory.
Auth methods are enabled at paths. Mounting one type at several paths gives each source its own configuration.
A team wants each engineer to log in through both LDAP and GitHub before receiving a Vault token. What does Vault support?
AOnly one login is needed; Vault cannot require several auth methods in sequence
BA role on the LDAP mount that requires a GitHub login first
CMounting both methods at the same path for one login that runs both checks
DSetting the same token_policies on both mounts to issue the token after the second login
Show the answer and why
AOnly one login is needed; Vault cannot require several auth methods in sequence
Correct
Only one authentication is required, and it is not possible to force a user through multiple auth methods, though some methods support MFA.
BA role on the LDAP mount that requires a GitHub login first
Incorrect
Auth methods cannot be chained; each one issues a token on its own.
CMounting both methods at the same path for one login that runs both checks
Incorrect
Every mount needs its own unique path.
DSetting the same token_policies on both mounts to issue the token after the second login
Incorrect
Matching policies do not link the mounts; each login still returns a token by itself.
Vault supports many auth methods at once, and any single successful login returns a token. Extra factors come from MFA features, not from chaining methods.