Courseiva

HashiCorp Vault Associate VA-003 (VA-003) — Questions 151–225

366 questions total · 5pages · All types, answers revealed

Page 2

Page 3 of 5

Page 4
151
MCQmedium

A DevOps team is using Vault tokens for authentication in CI/CD pipelines. They notice that tokens are often expired before the pipeline completes, causing failures. Which Vault feature should they use to address this without manual intervention?

A.Use batch tokens for better performance
B.Use periodic tokens with a short period and allow renewal
C.Create orphan tokens so they don't expire with the parent
D.Increase the default TTL on the token auth method
AnswerB

Periodic tokens are exempt from the standard max TTL: they carry no absolute expiry and can be renewed indefinitely, provided each renewal occurs within the period. This satisfies the stem's requirement for unattended pipelines, where long-running jobs outlive fixed-TTL tokens and no operator is present to re-authenticate.

Why this answer

Periodic tokens are designed for long-running processes like CI/CD pipelines. They have no maximum TTL and can be renewed indefinitely as long as the renewal occurs before the current token's TTL expires. By using a periodic token with a short period and enabling automatic renewal in the pipeline, the token stays valid without manual intervention, solving the expiration issue.

Exam trap

HashiCorp often tests the misconception that increasing TTL or using orphan tokens solves indefinite expiration, but the key is that periodic tokens are the only token type designed for renewable, long-lived use without a hard upper limit.

How to eliminate wrong answers

Option A is wrong because batch tokens are stateless and cannot be renewed; they have a fixed TTL and are unsuitable for long-running pipelines. Option C is wrong because orphan tokens are detached from their parent but still have a finite TTL and must be renewed; they do not inherently prevent expiration. Option D is wrong because increasing the default TTL on the token auth method only extends the initial validity but does not allow indefinite renewal; the token will still eventually expire, and manual intervention would be needed to re-authenticate.

152
Multi-Selectmedium

A security team is configuring the AWS secrets engine to issue dynamic IAM credentials. They want to allow Vault to assume an IAM role and generate temporary credentials for consumers. Which TWO configuration elements are required to enable this workflow? (Choose two.)

Select 2 answers
A.Create a role of type 'assumed_role' that specifies the ARN of the IAM role Vault should assume.
B.Configure the AWS secrets engine with credentials that have permissions to call sts:AssumeRole and iam:CreateAccessKey as needed.
C.Enable the AWS auth method and bind an IAM principal to a Vault policy before creating the role.
D.Enable the KV v2 secrets engine and store the AWS access key and secret key as a static secret.
E.Create a Vault policy that grants 'sudo' capability on the AWS secrets engine role path.
AnswersA, B

An AWS secrets engine role of type assumed_role tells Vault to call sts:AssumeRole against the specified role ARN and return temporary credentials. This role configuration is what binds the Vault path to the AWS IAM role. Without this role, Vault has no target role to assume and cannot issue credentials for the requested path.

Why this answer

To issue dynamic IAM credentials with the AWS secrets engine, Vault needs AWS credentials with the right permissions and a role that defines what to create or assume. For assumed_role, the role specifies the target IAM role ARN and Vault calls sts:AssumeRole. AWS auth, sudo policies, and KV v2 storage are not prerequisites for this secrets engine workflow.

Exam trap

The trap here is conflating the AWS auth method, which authenticates clients to Vault, with the AWS secrets engine, which issues AWS credentials to clients.

153
MCQhard

A Vault administrator is creating a policy for an application that needs to read a PKI role configuration and also generate certificates using that role. The PKI secrets engine is mounted at 'pki/'. Which policy snippet grants the minimum required capabilities?

A.path "pki/roles/app-role" { capabilities = ["read", "list"] } path "pki/issue/app-role" { capabilities = ["read"] }
B.path "pki/roles/app-role" { capabilities = ["read"] } path "pki/sign/app-role" { capabilities = ["create", "update"] }
C.path "pki/roles/app-role" { capabilities = ["read"] } path "pki/issue/app-role" { capabilities = ["create", "update"] }
D.path "pki/roles/app-role" { capabilities = ["read"] } path "pki/issue/app-role" { capabilities = ["sudo"] }
AnswerC

This snippet grants read on the role configuration and create/update on the issue path. In Vault's PKI secrets engine, reading a role uses the roles/ path, and generating a certificate uses the issue/ path with a write operation, which requires create or update capability. This meets the requirement with least privilege.

Why this answer

The PKI secrets engine uses pki/roles/<role> for reading role configuration and pki/issue/<role> for generating certificates. Generating a certificate is a write operation, so the policy must grant create or update on the issue path. Reading the role requires read on the roles path.

The sign endpoint is for signing CSRs, not for generating certificates.

Exam trap

The trap here is confusing the issue and sign endpoints; issue generates a new certificate and private key, while sign only signs an existing CSR, and they require different capabilities on different paths.

154
MCQeasy

A company runs multiple microservices in a Kubernetes cluster. Each microservice authenticates to Vault using a service token created via the token auth method. The tokens are created with a default TTL of 72h, a max TTL of 168h, and renewable set to true. The services are configured to renew their tokens when the remaining TTL drops below 24h. Recently, some tokens have been expiring prematurely, causing service outages. Upon investigation, you find that the expired tokens were created with a role that includes explicit_max_ttl = 72h. The services see the TTL decreasing normally, but then it jumps to zero even though the services attempted renewal. What is the most likely cause and correct action?

A.Configure the services to renew the token when TTL drops below 48h.
B.Remove the explicit_max_ttl setting from the role or set it to 0.
C.Increase the default TTL on the token auth mount to 168h.
D.Set max_ttl on the role to 72h.
AnswerB

explicit_max_ttl caps a token's total lifetime regardless of renewal, so tokens die at 72h even though renewal is attempted. Removing it or setting it to 0 lets the role's max_ttl govern, satisfying the stem's premature-expiry constraint.

Why this answer

The `explicit_max_ttl` setting on the role overrides the token's renewable property. When a token has an `explicit_max_ttl` of 72h, it cannot be renewed beyond that absolute lifetime, regardless of the `renewable = true` setting. The services attempt renewal, but Vault enforces the hard limit, causing the TTL to jump to zero at the 72-hour mark.

Removing `explicit_max_ttl` or setting it to 0 allows the token to be renewed up to the system's `max_ttl` (168h), preventing premature expiration.

Exam trap

In HashiCorp Vault, the distinction between `max_ttl` (which can be extended by renewal up to the mount's limit) and `explicit_max_ttl` (which is an absolute, non-renewable cap) is crucial. Candidates often overlook that `explicit_max_ttl` overrides the renewable property, causing premature token expiration.

How to eliminate wrong answers

Option A is wrong because increasing the renewal threshold to 48h does not address the root cause; the token will still hit the `explicit_max_ttl` hard limit and expire at 72h regardless of when renewal is attempted. Option C is wrong because increasing the default TTL on the token auth mount to 168h does not override the role's `explicit_max_ttl` of 72h; the explicit maximum takes precedence and still caps the token's lifetime. Option D is wrong because setting `max_ttl` on the role to 72h would actually enforce the same hard limit as `explicit_max_ttl`, making the problem worse or identical, not fixing it.

155
MCQhard

A Vault administrator is investigating a production incident where an application's dynamic database credentials stopped working earlier than expected, even though the lease had not reached its maximum TTL. The administrator reviews the role configuration and finds default_ttl=1h and max_ttl=24h. The application typically renews its lease every 30 minutes. Which factor most likely explains why the credentials became invalid before max_ttl was reached?

A.Vault's max_ttl of 24h was reached because the application renewed too frequently, exhausting the lease budget.
B.The application's Vault token expired, so Vault automatically revoked all leases created by that token.
C.The default_ttl of 1h caused Vault to revoke the credential after one hour regardless of renewals.
D.The underlying database user's password was rotated or the user was dropped outside of Vault, invalidating the credential independently of the lease.
AnswerD

Vault leases track Vault-side validity, but the actual credential lives in the target system. If an external process rotates the database password or drops the user, the credential fails even though the Vault lease remains active and renewable. This is the most plausible cause when credentials fail before max_ttl despite normal renewal behavior.

Why this answer

Vault leases govern Vault-side lifecycle, but the credential's validity in the target system is separate. If a database administrator rotates the password or removes the user outside Vault, the credential stops working even though the Vault lease is still active and renewable. This mismatch between Vault lease state and external system state is a common cause of premature credential failure.

Exam trap

The trap here is assuming Vault lease validity always matches credential validity, overlooking that external changes to the target system can invalidate credentials independently.

156
Multi-Selectmedium

A Vault administrator is building a policy for an application team that needs to manage PKI certificates issued by the 'pki_int' intermediate mount. The team must be able to generate new certificates from the 'web-server' role and revoke certificates, but must not be able to modify the role, generate a root CA, or configure the mount. (Choose two.)

Select 2 answers
A.path "pki_int/issue/web-server" { capabilities = ["create", "update"] }
B.path "pki_int/root/generate/internal" { capabilities = ["create", "update"] }
C.path "pki_int/revoke" { capabilities = ["create", "update"] }
D.path "pki_int/config/*" { capabilities = ["create", "update"] }
E.path "pki_int/roles/web-server" { capabilities = ["create", "update"] }
AnswersA, C

Issuing a certificate against a PKI role is performed by writing to the issue endpoint, so create and update on pki_int/issue/web-server permits generating certificates for that role only. It does not allow altering the role definition, touching other roles, or generating root material, which keeps the team within the intended boundary while satisfying the certificate-generation requirement.

Why this answer

Vault PKI separates consuming a role from managing it. Writing to the issue endpoint generates certificates, and writing to the revoke endpoint revokes them, so those two statements cover the operational needs. Role definitions, root generation, and mount configuration are administrative surfaces that must remain outside the team's policy to satisfy the stated restrictions.

Exam trap

The trap here is confusing the path that issues certificates from a role with the path that defines the role, and granting write access to the definition.

157
MCQmedium

Refer to the exhibit. A DevOps engineer runs `vault read -format=json transit/keys/mykey` and receives the output shown. A microservice attempts to decrypt data that was encrypted with version 1 of the key. Will the decryption succeed?

A.Yes, because min_decryption_version does not affect decryption.
B.Yes, because min_decryption_version is 1, which allows decryption with version 1 and higher.
C.No, because min_decryption_version is 1, so only version 2 and higher can decrypt.
D.No, because the data was encrypted with version 1 and min_decryption_version is 1, so decryption is blocked.
AnswerB

The key's min_decryption_version of 1 sets the lowest version Vault will accept for decryption, and version 1 meets that floor. Since the version remains above the minimum and has not been deleted, Vault decrypts the ciphertext successfully.

Why this answer

The `min_decryption_version` parameter in Vault's transit secrets engine specifies the lowest key version that can be used for decryption. In the exhibit, `min_decryption_version` is set to 1, meaning any version from 1 upward is allowed. Since the data was encrypted with version 1, decryption will succeed.

This parameter does not block decryption with version 1; it only prevents decryption with versions lower than the specified value.

Exam trap

The trap here is that candidates often misinterpret `min_decryption_version` as a minimum version that is required (i.e., only versions above that number are allowed), when in fact it means the minimum version that is still permitted — so version 1 is allowed if the value is 1.

How to eliminate wrong answers

Option A is wrong because `min_decryption_version` does affect decryption — it explicitly controls which key versions are permitted for decryption operations. Option C is wrong because a `min_decryption_version` of 1 allows decryption with version 1 and higher, not only version 2 and higher. Option D is wrong because setting `min_decryption_version` to 1 does not block decryption with version 1; it actually permits it.

158
MCQeasy

A developer wants to authenticate to Vault using LDAP credentials. Which CLI command should they use?

A.vault login -method=ldap username=john
B.vault token create -policy=ldap
C.vault write auth/ldap/login username=john
D.vault auth enable ldap
AnswerA

The LDAP auth method is invoked through the login command's method flag, which selects the auth backend and passes credentials as parameters. vault login -method=ldap username=john authenticates against the configured LDAP mount and returns a Vault token.

Why this answer

`vault login -method=ldap username=john` is the standard Vault CLI command to authenticate using LDAP credentials. This command triggers the LDAP auth method, prompting the user for their password (or accepting it via `-password` flag) and returning a Vault token upon successful authentication against the configured LDAP server.

Exam trap

The trap here is that candidates confuse the raw API endpoint (`vault write auth/ldap/login`) with the correct CLI login command (`vault login -method=ldap`), or mistake enabling the auth method for performing authentication.

How to eliminate wrong answers

Option B is wrong because `vault token create -policy=ldap` creates a new token with a specified policy, but it does not perform LDAP authentication; it requires an existing valid token and is used for token management, not for logging in with LDAP credentials. Option C is wrong because `vault write auth/ldap/login username=john` is an API-style command that would require the password to be passed in the request body (e.g., via `-password` flag or stdin), but the question specifies using the CLI, and the standard CLI command for login is `vault login -method=ldap`, not a raw write operation. Option D is wrong because `vault auth enable ldap` enables the LDAP auth method at a path (default `auth/ldap`), but it does not perform authentication; it is an administrative operation to configure the backend, not a login command.

159
MCQhard

An organization uses Vault with LDAP authentication. Users report they are unable to log in, and the administrator sees errors like 'LDAP bind failed: invalid credentials' in the Vault logs. The LDAP server is reachable. What is the most likely cause?

A.The binddn or bindpass configured in Vault is incorrect
B.Vault is not configured to use SSL/TLS for LDAP
C.The LDAP server does not allow anonymous binds
D.The LDAP server certificate is not trusted by Vault
AnswerA

Vault performs an LDAP simple bind using the configured binddn and bindpass before searching for the user. If those service-account credentials are wrong or expired, the bind fails with 'invalid credentials' even though the LDAP server itself is reachable.

Why this answer

The error 'LDAP bind failed: invalid credentials' specifically indicates that the authentication attempt to the LDAP server using the configured binddn and bindpass failed. Since the LDAP server is reachable, the most direct cause is that the bind credentials stored in Vault's LDAP configuration do not match what the LDAP server expects. This is a configuration mismatch, not a connectivity or TLS issue.

Exam trap

HashiCorp often tests the distinction between authentication failures (invalid credentials) and connectivity/TLS errors, so candidates mistakenly choose TLS or certificate issues when the error message clearly points to credential mismatch.

How to eliminate wrong answers

Option B is wrong because the error message does not mention SSL/TLS; a TLS misconfiguration would typically produce a 'connection refused' or 'TLS handshake failed' error, not 'invalid credentials'. Option C is wrong because anonymous binds are irrelevant here; Vault uses a configured binddn/bindpass for the initial bind, not anonymous authentication. Option D is wrong because an untrusted certificate would cause a TLS verification error, not a bind failure with 'invalid credentials'.

160
Drag & Dropmedium

Drag and drop the steps to set up Vault's Transit secrets engine for encryption/decryption into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct order is to first enable the Transit secrets engine, then create a key, use the key to encrypt and decrypt data, and finally rotate the key for security. Enabling creates the path, key creation provides the encryption material, and rotation updates the key without interrupting operations.

161
MCQeasy

A Vault operator runs `vault status` and sees the output above. The Vault cluster is in production and currently unresponsive to API requests. What is the most likely cause of the unresponsiveness?

A.The cluster is not initialized.
B.The cluster does not have HA enabled.
C.The Vault cluster is sealed.
D.The cluster has no active leader.
AnswerC

A sealed Vault node holds its storage encrypted and refuses API requests until unsealed, which matches the unresponsive production cluster. Sealing is the specific state blocking request handling, so unsealing with the threshold of key shares restores service.

Why this answer

The `vault status` output shows that the Vault cluster is sealed. When a Vault cluster is sealed, it cannot process any API requests because the encryption key required to decrypt the data is not available in memory. This is the most common cause of unresponsiveness in a production Vault cluster that has been properly initialized.

Exam trap

HashiCorp often tests the distinction between initialization and sealing, where candidates mistakenly think an uninitialized cluster is the same as a sealed one, but initialization only happens once and sealing is a separate, reversible state that blocks all API requests.

How to eliminate wrong answers

Option A is wrong because if the cluster were not initialized, `vault status` would explicitly report 'Initialized: false', and the cluster would never have been able to serve requests in production. Option B is wrong because HA (High Availability) is not required for a Vault cluster to respond to API requests; a single-node cluster without HA can still be unsealed and fully operational. Option D is wrong because if there is no active leader, `vault status` would show 'HA Mode: standby' or 'no leader' but the cluster would still be responsive for read operations if unsealed; the unresponsiveness is specifically due to the sealed state, not the leader election status.

162
MCQeasy

A developer is writing a microservice that must encrypt a small JSON payload using the transit secrets engine's 'orders' key, but the service must never be able to read the key material itself. Which API call should the service use to obtain ciphertext?

A.POST /v1/transit/encrypt/orders with the base64-encoded plaintext in the request body.
B.PUT /v1/transit/keys/orders with the plaintext in the request body to have Vault store and encrypt it.
C.GET /v1/transit/keys/orders to retrieve the key, then encrypt with it in application code.
D.POST /v1/transit/datakey/plaintext/orders to obtain a data key and encrypt the payload locally.
AnswerA

The encrypt endpoint is the standard encryption-as-a-service path: the service submits base64 plaintext, Vault performs the cryptographic operation using the protected key, and returns ciphertext prefixed with the key version. The caller never sees key material, and every operation is recorded in the audit log, satisfying the requirement exactly.

Why this answer

Encryption as a service means the application sends plaintext to Vault and receives ciphertext, while the key stays inside Vault's barrier. The encrypt endpoint on the named key is the only listed call that performs the operation server-side without exposing key material, and it records the operation for auditing.

Exam trap

The trap here is confusing the datakey endpoint with the encrypt endpoint, when datakey deliberately hands key material back to the caller for local use.

163
MCQmedium

A platform team operates Vault in a hybrid cloud. They want a single authentication method that lets employees use their existing cloud provider identity (e.g., AWS IAM role, Azure managed identity) to log in without distributing Vault-specific credentials. Which authentication method should they enable?

A.GitHub auth method
B.Username & Password auth method
C.Cloud auth method (e.g., AWS, Azure, GCP)
D.Cloud Foundry auth method
AnswerC

Cloud auth methods (AWS, Azure, GCP) allow users and machines to authenticate using their existing cloud provider identity. For AWS, Vault verifies the IAM principal via signed STS requests; for Azure, it validates managed identity tokens. This matches the requirement to use existing cloud identity without distributing Vault-specific credentials.

Why this answer

Cloud auth methods (AWS, Azure, GCP) enable authentication using existing cloud provider identities. For AWS, Vault uses the IAM principal's signed request to verify identity; for Azure, it validates managed identity tokens. This eliminates the need to distribute Vault-specific credentials and aligns with the hybrid cloud requirement.

Exam trap

The trap here is confusing Cloud Foundry auth (for PaaS apps) with cloud provider auth methods that leverage AWS IAM or Azure managed identity for user and machine login.

164
MCQeasy

A DevOps team needs to encrypt large files (several GB) using Vault's transit engine. What is the recommended approach?

A.Use Vault's batch encryption
B.Use Vault's seal-wrapping feature
C.Use Vault's datakey endpoint to get a data encryption key, encrypt locally, then wrap with Vault
D.Encrypt the file directly with Vault's transit encrypt API
E.Split the file into chunks and encrypt each chunk via transit
AnswerC

The datakey endpoint returns a plaintext data key plus its wrapped form; encrypting locally avoids sending gigabytes through Vault, then storing the wrapped key. This satisfies the constraint of handling large files without exhausting Vault's transit bandwidth.

Why this answer

The transit engine is designed for encrypting small data payloads (typically a few KB), not multi-GB files. The recommended approach is to use the `/transit/datakey/plaintext` endpoint to generate a data encryption key (DEK), encrypt the large file locally with that DEK using a symmetric algorithm like AES-256-GCM, and then wrap (encrypt) the DEK with Vault using the transit engine. This keeps the large file out of Vault while still leveraging Vault for key management and audit logging.

Exam trap

HashiCorp often tests the misconception that Vault's transit engine can handle large payloads directly, leading candidates to choose Option D, but the actual limitation is that transit encrypt/decrypt operations are designed for small data (e.g., database fields, tokens) and envelope encryption is required for large files.

How to eliminate wrong answers

Option A is wrong because Vault does not have a 'batch encryption' feature; batch operations in Vault refer to token or request batching, not encryption. Option B is wrong because seal-wrapping is a mechanism to protect Vault's own master key or unseal keys, not a method for encrypting application data. Option D is wrong because the transit encrypt API has a payload size limit (typically 512 KB or less depending on the backend) and is not designed for multi-GB files.

Option E is wrong because splitting a file into chunks and encrypting each via transit would still require sending each chunk to Vault, incurring massive network overhead and hitting payload limits, making it impractical.

165
MCQhard

Refer to the exhibit. A developer reports that a token they created using `vault token create -policy=my-policy -ttl=2h` is no longer working after 1 hour. The token lookup output shows the token details. What is the most likely cause?

A.The token's max_ttl was set to 1h when created, and the token reached its max_ttl.
B.The token has num_uses set to 0, meaning it can only be used once.
C.The token is a service token and cannot be renewed.
D.The token is an orphan token and requires the parent token to be valid.
AnswerA

A token's lifetime is capped by max_ttl regardless of the requested ttl. If max_ttl was set to 1h at creation, the token expires after one hour even though ttl was 2h, matching the reported failure and the lookup output.

Why this answer

The token was created with a `-ttl=2h` but the token lookup output shows `max_ttl=1h`. The `max_ttl` is an upper limit enforced by the token's configuration or the system's maximum TTL setting. Even though the requested TTL was 2 hours, the token's effective lifetime is capped by the lower of the two values, so it expired after 1 hour.

Exam trap

HashiCorp often tests the distinction between `ttl` and `max_ttl`, where candidates mistakenly assume the token will last for the full `ttl` value without checking the overriding `max_ttl` limit.

How to eliminate wrong answers

Option B is wrong because `num_uses` set to 0 means the token has unlimited uses, not that it can be used only once. Option C is wrong because service tokens can be renewed unless explicitly configured with `explicit_max_ttl` or a non-renewable flag; the issue here is TTL expiration, not renewability. Option D is wrong because orphan tokens do not depend on a parent token for validity; they are standalone tokens that are not revoked when the parent is revoked.

166
MCQeasy

What is the primary purpose of the Vault transit secrets engine?

A.Encryption and decryption as a service
B.Token generation
C.Certificate management
D.Dynamic database credentials
E.Secure storage of secrets
AnswerA

The transit secrets engine performs cryptographic operations on data in transit without storing it, so Vault handles encryption and decryption as a centralised service. Keys remain inside Vault, satisfying the requirement that applications never handle raw key material directly.

Why this answer

The Vault transit secrets engine is designed to provide encryption and decryption as a service, allowing applications to encrypt and decrypt data without managing cryptographic keys directly. It offloads the cryptographic operations to Vault, which securely stores and rotates the encryption keys, ensuring that plaintext data never leaves the application unencrypted. This enables centralized key management and policy-based access control for encryption operations.

Exam trap

HashiCorp often tests the distinction between 'encryption as a service' (transit engine) and 'secure storage of secrets' (KV engine), leading candidates to mistakenly choose Option E because they conflate encrypting data at rest with storing secrets.

How to eliminate wrong answers

Option B is wrong because token generation is the primary function of Vault's token authentication method or the token helper, not the transit secrets engine. Option C is wrong because certificate management is handled by the Vault PKI secrets engine, which issues and manages X.509 certificates, not the transit engine. Option D is wrong because dynamic database credentials are provided by the database secrets engine, which generates temporary credentials for databases, not encryption services.

Option E is wrong because secure storage of secrets is the core purpose of Vault's generic KV (Key-Value) secrets engine or the overall Vault platform, while the transit engine specifically focuses on cryptographic operations.

167
MCQeasy

An application team needs to encrypt short-lived session tokens before writing them to a Redis cache. They want to avoid handling or storing encryption keys in the application and need the ability to decrypt tokens later without re-encrypting. Which Vault transit secrets engine operation should they use to protect the data at write time?

A.transit/hmac/<key_name>
B.transit/encrypt/<key_name>
C.transit/datakey/plaintext/<key_name>
D.transit/rewrap/<key_name>
AnswerB

The transit encrypt endpoint accepts base64-encoded plaintext and returns ciphertext prefixed with vault:vN, never exposing the key material. This lets the application protect tokens without storing keys. The corresponding decrypt endpoint can later return the plaintext. This is the intended use of encryption as a service for data that must be recoverable.

Why this answer

Encryption as a service means Vault performs the cryptographic operation and returns ciphertext while keeping the key inside Vault. The transit encrypt endpoint is the direct way to protect plaintext so it can later be recovered with decrypt. Endpoints like datakey, rewrap, and hmac serve different purposes such as envelope encryption, key rotation, or integrity checking.

Exam trap

The trap here is assuming any transit endpoint can encrypt recoverable data, when datakey returns keys for local encryption and hmac is one-way.

168
MCQeasy

A new Vault administrator unseals Vault using a single unseal key, but the Vault remains sealed. What is the most likely cause?

A.The storage backend is misconfigured, preventing key retrieval.
B.The administrator did not provide enough unseal keys to meet the threshold.
C.The administrator forgot to provide a valid token.
D.Vault needs to be re-initialized after the first unseal.
AnswerB

Vault's Shamir seal requires a quorum of distinct unseal keys; submitting fewer than the configured threshold leaves the barrier sealed. A single key only succeeds when the threshold is one, so insufficient keys is the likely cause here.

Why this answer

Vault uses a threshold-based unsealing mechanism where a minimum number of unseal keys (the threshold) must be provided to reconstruct the master key and decrypt the storage backend. Providing only a single key, even if it is valid, leaves the Vault sealed because the threshold has not been met. The administrator must continue providing distinct unseal keys until the threshold count is reached.

Exam trap

HashiCorp often tests the misconception that a single unseal key is enough to unseal Vault, confusing the concept of a single key with the threshold requirement, or conflating unsealing with authentication via tokens.

How to eliminate wrong answers

Option A is wrong because a misconfigured storage backend would typically cause Vault to fail to start or to lose data, but it does not prevent the unseal process from accepting keys; the error here is specifically about the number of keys provided. Option C is wrong because tokens are used for authentication and authorization after Vault is unsealed, not during the unseal process itself; unsealing only requires unseal keys. Option D is wrong because Vault does not need to be re-initialized after the first unseal; initialization is a one-time process that generates the unseal keys and root token, and subsequent unseals use those same keys.

169
MCQeasy

An administrator has created a policy file named 'app-policy.hcl'. Which command should they use to upload this policy to Vault?

A.vault write sys/policy/app-policy @app-policy.hcl
B.vault create policy app-policy app-policy.hcl
C.vault set policy app-policy app-policy.hcl
D.vault policy write app-policy app-policy.hcl
AnswerD

`vault policy write` uploads a local HCL file to Vault's policy store, creating or updating the named policy. The command takes the policy name (`app-policy`) followed by the source file path (`app-policy.hcl`), satisfying the stem's requirement to upload the existing `app-policy.hcl` file.

Why this answer

The `vault policy write` command is the standard Vault CLI command to create or update a policy from a file. The syntax `vault policy write <name> <path>` reads the HCL or JSON policy definition from the specified file and writes it to Vault's policy storage.

Exam trap

HashiCorp often tests the exact CLI syntax for Vault policy management, and the trap here is that candidates confuse the generic `vault write` API call with the dedicated `vault policy write` command, or they invent non-existent commands like `vault create policy` or `vault set policy`.

How to eliminate wrong answers

Option A is wrong because `vault write sys/policy/app-policy @app-policy.hcl` uses the raw API endpoint but the correct CLI command for policy management is `vault policy write`, not a direct write to the sys/policy path. Option B is wrong because `vault create policy` is not a valid Vault CLI command; the correct command uses `vault policy write`. Option C is wrong because `vault set policy` does not exist in the Vault CLI; the correct verb is `write` for policy operations.

170
Multi-Selecteasy

Which TWO of the following are valid uses of a token accessor? (Select exactly 2 options.)

Select 2 answers
A.Wrap the token
B.Create a child token
C.Renew the token
D.Lookup token properties
E.Revoke the token
AnswersD, E

A token accessor is a reference handle that lets you query a token's metadata, such as its policies, TTL, and creation time, without exposing the token itself. Lookup operations accept the accessor in place of the token ID.

Why this answer

A token accessor is a special value returned alongside a token in HashiCorp Vault that allows limited operations on that token without possessing the token itself. Option D is correct because the accessor can be used with commands like 'vault token lookup -accessor' to retrieve the token's properties (policies, TTL, metadata) without exposing the token string. Option E is correct because the accessor enables revoking the token via 'vault token revoke -accessor', which is a key use case for auditing and cleanup without handling the raw token.

Options A, B, and C are not valid uses: wrapping a token is done via response wrapping, creating a child token requires the parent token itself (or a token with appropriate permissions), and renewing a token requires the token value, not just its accessor.

Exam trap

Candidates often mistakenly think that a token accessor can be used for all token management operations, when in reality it is strictly limited to lookup and revocation, and cannot be used for wrapping, renewal, or child token creation.

171
MCQmedium

A platform team runs Vault in a hybrid cloud and wants to let engineers log in with their existing corporate identities held in Okta, without creating separate Vault usernames or passwords. The Okta tenant supports OpenID Connect and exposes a discovery document. Which authentication method should they enable to meet this requirement with the least administrative overhead?

A.Enable the Username & Password auth method and synchronize Okta user records into Vault on a schedule.
B.Enable the GitHub auth method and map Okta users by their GitHub organization membership.
C.Enable the LDAP auth method and bind Vault to the Okta LDAP interface using a service account.
D.Enable the OIDC auth method and configure it with the Okta discovery URL and a client ID/secret registered in Okta.
AnswerD

OIDC is designed exactly for federated identity: Vault acts as a relying party, redirects the user to Okta, validates the returned ID token, and maps claims to Vault policies via an OIDC role. Because Okta publishes a discovery document, Vault can auto-discover endpoints, minimizing manual configuration and avoiding separate Vault credentials.

Why this answer

Federated login against an OIDC-capable identity provider is served by Vault's OIDC auth method, which consumes the provider's discovery document and validates ID tokens. The other methods either require a static bind credential, depend on an unrelated identity source, or duplicate credentials inside Vault, none of which satisfies least-overhead federation with Okta.

Exam trap

The trap here is assuming any external-directory method provides federation, when LDAP auth still needs a stored bind password while OIDC delegates authentication entirely to the provider.

172
MCQeasy

A junior administrator writes a policy file and applies it with 'vault policy write app-read app-read.hcl'. Later, a token created against this policy can read secrets it was never meant to see. The administrator wants to confirm exactly what the policy grants before rotating credentials. Which command displays the parsed, effective rules of the stored policy?

A.vault policy list
B.vault policy read app-read
C.vault read sys/policy/app-read
D.vault token capabilities app-read
AnswerB

The policy read subcommand fetches the named policy from Vault's storage and prints its contents exactly as the server has parsed and stored it. Because it reads the server-side copy rather than the local file, it reveals any drift between the HCL on disk and what is actually enforced, which is precisely what the administrator needs before rotating credentials.

Why this answer

Stored policies are inspected with the dedicated policy read subcommand, which returns the server-side document as parsed, exposing any difference from the local HCL file. Listing policies only yields names, the raw sys endpoint returns an opaque string, and the capabilities subcommand requires a token and a path rather than a policy name.

Exam trap

The trap here is assuming the local HCL file is authoritative, when the server may hold a different version that was written earlier or overwritten by another operator.

173
Multi-Selecteasy

Which TWO statements about Vault's Storage Backend are correct?

Select 2 answers
A.It stores encrypted data
B.It logs all requests
C.It is abstracted and can be swapped
D.It handles authentication of clients
E.It is responsible for encrypting data
AnswersA, C

Data is encrypted by the barrier before storage.

Why this answer

Vault's Storage Backend is responsible for persisting encrypted data. Vault encrypts all data at the application layer before writing it to the storage backend, ensuring that the backend itself never sees plaintext secrets. This design means the storage backend is a 'sealed box' that only stores ciphertext, providing defense in depth even if the backend is compromised.

Exam trap

HashiCorp often tests the misconception that the storage backend handles encryption or authentication, when in fact it is a passive, abstracted layer that only stores encrypted data and can be swapped without affecting Vault's core operations.

174
Drag & Dropmedium

Drag and drop the steps to configure Vault's PKI secrets engine to issue certificates into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence to configure Vault's PKI secrets engine for issuing certificates is: first enable the PKI secrets engine, then generate a root certificate (self-signed CA), then create a role that defines certificate parameters, and finally issue a certificate using that role. Enabling the engine mounts it at a path, generating the root CA establishes the trust anchor, the role configures certificate properties, and the issuance step produces the actual certificate. Common mistakes include attempting to generate the root or create a role before enabling the engine, or creating the role before generating the root CA, which leads to errors or missing configurations.

175
MCQhard

An application encrypts records with the transit engine and stores the ciphertext. A compliance requirement mandates rotating the encryption key every 90 days, but the existing records must remain readable and the application cannot be changed to re-encrypt them all at once. What should the operator do?

A.Rotate the key on schedule; existing ciphertext remains decryptable because old key versions are retained, and optionally rewrap records over time.
B.Export the key material, rotate it externally, then import the rotated key back so Vault can continue decrypting old records.
C.Create a brand-new transit key each quarter and update the application to reference the new key name for all reads and writes.
D.Delete the current key and recreate it with the same name so that the name stays stable while the underlying material changes.
AnswerA

Rotating a transit key creates a new version used for subsequent encryption while preserving earlier versions for decryption, so stored records stay readable with no application change. The rewrap endpoint can later migrate ciphertext to the newest version without exposing plaintext, letting the team satisfy the 90-day mandate incrementally rather than in a single bulk operation.

Why this answer

Rotating the existing transit key satisfies the 90-day requirement because encryption begins using a new key version while prior versions remain available for decryption, so existing records stay readable without application changes. Rewrap can then migrate stored ciphertext to the newest version at a controlled pace, avoiding a disruptive bulk re-encryption.

Exam trap

The trap here is creating a new key name to represent rotation, when true rotation keeps the same key name and adds a version so old ciphertext remains decryptable.

176
MCQmedium

An operator wants to enable the database secrets engine at a custom path 'db-creds'. Which command should be used?

A.vault secrets enable database
B.vault secrets enable -path=db-creds database
C.vault write sys/mounts/db-creds type=database
D.vault secrets tune -path=db-creds database
AnswerB

The -path flag on vault secrets enable mounts the engine at the specified custom path, so 'db-creds' becomes the API prefix instead of the default 'database'. This directly satisfies the operator's requirement to enable the database secrets engine at a non-default path.

Why this answer

The `vault secrets enable` command with the `-path` flag allows you to mount the database secrets engine at a custom path. The syntax `vault secrets enable -path=db-creds database` correctly specifies the custom path and the engine type, enabling the database secrets engine at the desired location.

Exam trap

HashiCorp often tests the distinction between enabling a secrets engine (`vault secrets enable`) and tuning an existing mount (`vault secrets tune`), trapping candidates who confuse the two or think `vault write` can be used to enable engines directly.

How to eliminate wrong answers

Option A is wrong because `vault secrets enable database` mounts the engine at the default path (`database/`), not at the custom path `db-creds`. Option C is wrong because `vault write sys/mounts/db-creds type=database` is not a valid command; the correct API endpoint for enabling a secrets engine is `sys/mounts/<path>` with a POST request, but the CLI does not use `vault write` for this purpose—it uses `vault secrets enable`. Option D is wrong because `vault secrets tune` is used to modify configuration of an existing mount, not to enable a new secrets engine; it cannot create a new mount at a custom path.

177
MCQmedium

Refer to the exhibit. A user has a token with a policy that grants 'read' on 'secret/*'. The user attempts to read the secret at 'secret/data/app' using `vault kv get secret/data/app` but receives a '404 Not Found' error. The user can successfully list the engine at 'secret/' with `vault secrets list`. What is the most likely cause of the 404 error?

A.The secrets engine is KV v1, but the user is using the KV v2 path format with '/data/'.
B.The user's policy does not cover the sub-path 'secret/data/app'.
C.The secret path is mistyped; it should be 'secret/application'.
D.The secret engine at 'secret/' is not enabled.
AnswerA

KV v2 inserts a 'data/' segment into the API path, so 'secret/data/app' addresses a v2 mount. Against a KV v1 engine that path does not exist, producing 404, while 'vault secrets list' still succeeds because the mount itself is present.

Why this answer

The KV v2 secrets engine requires the path format `secret/data/<path>` for reading secret data, while KV v1 uses `secret/<path>` directly. The user is using `vault kv get secret/data/app`, which is the correct command for KV v2, but the error indicates the engine is actually KV v1. Since KV v1 does not have a `/data/` prefix, the path `secret/data/app` does not exist, resulting in a 404 Not Found error.

The successful `vault secrets list` confirms the engine is enabled at `secret/`, ruling out option D.

Exam trap

HashiCorp Vault often tests the distinction between KV v1 and KV v2 path formats, and the trap here is that candidates assume a 404 error always means the secret doesn't exist or permissions are wrong, rather than recognizing the `/data/` prefix is only valid for KV v2 engines.

How to eliminate wrong answers

Option B is wrong because the policy grants 'read' on 'secret/*', which covers all sub-paths including 'secret/data/app', so the 404 is not a permissions issue. Option C is wrong because the error is not about a mistyped path name; the user's path 'secret/data/app' is syntactically valid for KV v2 but fails due to engine version mismatch. Option D is wrong because the user can list the engine with `vault secrets list`, proving the engine is enabled at 'secret/'.

178
MCQhard

An administrator wants to audit token usage without exposing the actual token IDs to auditors. Which approach should they use?

A.Enable audit logging without any modifications
B.Use token accessors in audit logs
C.Use the token lookup API for each audit event
D.Use response wrapping to encapsulate tokens
AnswerB

Token accessors are non-secret references that map to tokens without exposing them, so audit logs can record accessor values for usage tracking. Auditors correlate activity while the actual token IDs remain hidden, meeting the stem's constraint.

Why this answer

Token accessors are non-sensitive, randomly generated identifiers that are mapped one-to-one with actual Vault tokens. By logging the accessor instead of the token ID, administrators can audit token usage (e.g., lookup, renewal, revocation) without exposing the token itself, which could be used to authenticate. This approach satisfies the requirement of auditing without compromising security.

Exam trap

The trap here is that candidates confuse token accessors with response wrapping, thinking both are used to 'hide' tokens, but response wrapping is a delivery mechanism, not an audit anonymization feature.

How to eliminate wrong answers

Option A is wrong because enabling audit logging without modifications logs the actual token IDs, which directly exposes sensitive credentials to auditors. Option C is wrong because using the token lookup API for each audit event would require the token ID to be present in the audit context, defeating the purpose of hiding it, and it is not a scalable or real-time auditing mechanism. Option D is wrong because response wrapping is used to securely deliver secrets or tokens to a client via a one-time unwrap operation, not to anonymize token IDs in audit logs.

179
MCQeasy

A token with the above policy attempts to look up its own token by calling the accessor endpoint. What will happen?

A.The operation succeeds because the token can read its own token
B.The operation fails with a permission denied error
C.The operation succeeds because sudo allows all accessor operations
D.The operation fails because the token lacks any capabilities
AnswerB

The token's policy lacks the `read` capability on the token accessor path, so the lookup is rejected before any data returns. Vault evaluates the request against the policy attached to the token itself, and without that explicit permission the accessor endpoint denies the call.

Why this answer

Vault's token accessor endpoint requires the 'read' capability on the token's accessor path (auth/token/accessor or the token's own accessor path). A token cannot use its own accessor to read itself unless it explicitly has that capability; by default, tokens lack the capability to read their own accessor, so the request is denied. The policy shown does not grant accessor read rights, resulting in a permission denied error.

Exam trap

VA-003 often tests the misconception that a token can always read its own accessor, confusing token ownership with ACL permission.

How to eliminate wrong answers

Option A is wrong because a token having an accessor does not automatically grant it permission to read that accessor; capabilities must be explicitly granted in the policy. Option C is wrong because sudo (root-protected) capabilities are not implied by token ownership and are not granted by default; sudo allows operations on root-protected paths, not blanket accessor access. Option D is wrong because the token does have some capabilities (otherwise it couldn't authenticate at all), but it specifically lacks the accessor read capability, so the failure is due to missing that specific permission, not total lack of capabilities.

180
MCQeasy

A Vault administrator is configuring a new Vault server and wants to ensure that audit logs capture every request and response, including the ability to detect tampering. Which Vault architectural component is responsible for providing this capability?

A.The seal/unseal process, which records all administrative actions during unsealing.
B.The audit device, which is configured with a type such as file or syslog and logs all requests and responses.
C.The barrier, which encrypts audit data before writing it to the storage backend.
D.The storage backend, which persists all audit entries in an encrypted log.
AnswerB

Audit devices are the Vault component responsible for logging all requests and responses. They are enabled via the audit enable command and can write to file, syslog, or socket. They also compute HMACs of sensitive data to allow tamper detection without exposing secrets. This directly provides the required capability.

Why this answer

Audit devices are specifically designed to log every request and response that passes through Vault. They support multiple backends and include HMAC hashing to protect sensitive values while still allowing verification. Enabling at least one audit device is a best practice for production, and it is the only component that provides the described logging and tamper-evidence.

Exam trap

The trap here is assuming that the storage backend or barrier automatically handles audit logging, when audit devices must be explicitly enabled and are separate from storage.

181
Multi-Selectmedium

Which TWO of the following are benefits of using dynamic secrets engines (e.g., database, AWS) over static secrets?

Select 2 answers
A.Provides automatic rotation of credentials upon lease expiry
B.Simplifies the management of service accounts because credentials never change
C.Secrets are persistent and do not expire
D.Secrets are stored in plaintext in the Vault data store
E.Reduces the risk of credential leakage since secrets are short-lived
AnswersA, E

Dynamic secrets engines generate credentials on demand with a defined lease, then revoke them automatically when that lease expires. This satisfies the stem's rotation constraint without manual intervention, unlike static secrets that persist until changed by hand. Each request yields unique, short-lived credentials, sharply limiting exposure if leaked.

Why this answer

Option A is correct because dynamic secrets engines issue credentials with a defined lease/TTL, and when that lease expires (or is revoked), Vault automatically revokes and regenerates the credentials, delivering automatic rotation without manual intervention. Option E is correct because dynamic secrets are short-lived by design—each request generates unique, time-bound credentials—so any leaked credential has a limited window of usefulness, reducing the blast radius and risk of credential leakage. Options B, C, and D are incorrect: dynamic credentials do change (they are generated per lease and expire), they are not persistent or non-expiring, and Vault does not store dynamic secrets in plaintext in its data store—they are generated on demand and tracked by lease, not persisted as static plaintext values.

Exam trap

HashiCorp often tests the misconception that dynamic secrets are persistent or that Vault stores secrets in plaintext, tempting candidates to select options C or D, but the core benefit is the automatic, short-lived nature of credentials that reduces leakage risk.

182
MCQmedium

An operator has authenticated to Vault and wants to inspect the metadata of the currently active token, including its accessor, policies, and creation time, without exposing the token's secret value. Which CLI command returns this information?

A.vault token lookup
B.vault token renew
C.vault read auth/token/lookup-self
D.vault token capabilities
AnswerA

`vault token lookup` with no arguments inspects the token currently in use and returns its accessor, policies, TTL, creation time, and other metadata. It never displays the token's secret value, which makes it safe for auditing the active session. This matches the operator's goal of examining metadata without exposing the token itself.

Why this answer

`vault token lookup` without arguments queries the token auth method's lookup-self endpoint and returns metadata for the token in use, including accessor, policies, TTL, and creation time. It deliberately omits the token's secret value, so an operator can audit the active session safely. Other token subcommands perform renewal, capability checks, or creation instead.

Exam trap

The trap here is assuming you must read a raw API path to inspect the current token, when the dedicated `vault token lookup` command already wraps that endpoint.

183
MCQhard

An administrator configures AppRole with a RoleID and SecretID. They want to ensure that each SecretID can be used only once. Which configuration should they use?

A.Set token_num_uses=1 in the role.
B.Set bound_cidr_list to a specific IP.
C.Set secret_id_ttl=1s in the role.
D.Set secret_id_num_uses=1 in the role.
AnswerD

Setting secret_id_num_uses=1 makes each SecretID valid for a single authentication attempt, so a captured SecretID cannot be replayed. This directly satisfies the stem's constraint that each SecretID be usable only once, unlike TTL settings which limit time rather than use count.

Why this answer

Setting `secret_id_num_uses=1` in the AppRole role configuration ensures that each SecretID can be used only once to obtain a token. Once the SecretID is used for login, it is automatically revoked and cannot be reused. This directly satisfies the requirement of single-use SecretIDs.

Exam trap

HashiCorp often tests the distinction between `secret_id_num_uses` (controls SecretID reuse) and `token_num_uses` (controls token reuse), leading candidates to confuse the two and incorrectly select Option A.

How to eliminate wrong answers

Option A is wrong because `token_num_uses=1` limits the number of times the resulting token can be used, not the SecretID itself; the SecretID could still be reused to generate multiple tokens. Option B is wrong because `bound_cidr_list` restricts the source IP addresses allowed to use the SecretID, but does not enforce single-use behavior. Option C is wrong because `secret_id_ttl=1s` sets a time-to-live of 1 second for the SecretID, which may expire quickly but does not guarantee single-use; a SecretID could still be used multiple times within that second.

184
MCQhard

An organization uses the KV v2 secrets engine mounted at 'kv/'. They need to permanently delete all versions of a secret at path 'kv/apps/prod/db' and also remove all associated metadata, including custom metadata and version history. Which command should they run?

A.vault kv metadata delete kv/apps/prod/db
B.vault kv delete kv/apps/prod/db
C.vault kv undelete -versions=1,2,3 kv/apps/prod/db
D.vault kv destroy -versions=1,2,3 kv/apps/prod/db
AnswerA

The 'vault kv metadata delete' command deletes the secret and all its versions, along with all metadata. This is the only command that completely removes the secret from the KV v2 engine. It is irreversible and should be used with caution. It satisfies the requirement to permanently delete all versions and remove metadata.

Why this answer

In KV v2, deleting all versions and metadata requires the 'vault kv metadata delete' command. This operation removes the secret entirely, including all version data and custom metadata. Other commands like 'delete' only soft-delete the latest version, 'destroy' removes specific versions but leaves metadata, and 'undelete' restores data.

The metadata delete is the only one that fully purges the secret.

Exam trap

The trap here is assuming that a regular delete command removes all traces of the secret, when in fact it only performs a soft delete that can be undone.

185
MCQhard

An operator creates a batch token for a one-time database migration. The migration finishes, and the operator wants the token to be unusable immediately, even before its TTL expires, and wants to confirm the token no longer appears in the token list. Which Vault command accomplishes this?

A.vault token renew <token_id>
B.vault token revoke <token_id>
C.vault token revoke -self
D.vault token lookup <token_id>
AnswerB

vault token revoke with the specific token ID immediately invalidates that token and any child tokens it created, independent of remaining TTL. After revocation the token disappears from token list and any request using it returns permission denied. This precisely meets the requirement to make the migration token unusable right away and confirm its removal.

Why this answer

Revocation is the only operation that immediately invalidates a token before its TTL elapses. Using vault token revoke with the specific token ID destroys that token and its descendants, so subsequent requests fail and the token no longer appears in token listings. Renewal extends life, self-revocation targets the caller, and lookup is read-only.

Exam trap

The trap here is confusing token renewal with token revocation, or using -self and accidentally revoking the operator's own session instead of the target token.

186
MCQhard

Refer to the exhibit. A user attempts to renew the token after 20 hours. What will happen?

A.The renewal will fail because the token has exceeded its explicit max TTL.
B.The token will be renewed for another 12h and can be renewed indefinitely.
C.The token will be renewed for 12h, but the total lifetime cannot exceed 24h.
D.The token will be renewed for another 4h, after which it will expire.
AnswerD

Vault's renewal increments the TTL by the token's original period, not to the full max. With 4h remaining before hitting the max TTL ceiling, the token renews for 4h and then expires, since it cannot exceed that limit.

Why this answer

The token was created with a TTL of 12h and an explicit max TTL of 24h. After 20 hours, only 4 hours remain before the max lifetime is reached, so Vault renews the token for the remaining 4h and then it expires. Vault caps any renewal at the explicit max TTL, so the token cannot be extended beyond 24h total.

Exam trap

The trap here is confusing the renewable TTL (12h) with the explicit max TTL (24h) — candidates often assume renewal always grants the full TTL again, ignoring the hard cap.

How to eliminate wrong answers

Option A is wrong because renewal does not fail outright at 20h — the token is still within its 24h max TTL and can be renewed for the remaining time. Option B is wrong because Vault tokens with an explicit max TTL cannot be renewed indefinitely; the max TTL is a hard cap. Option C is wrong because the renewal is limited to the remaining 4h (24h − 20h), not a full 12h period.

187
MCQmedium

An operator runs `vault token create -policy=app -ttl=1h -explicit-max-ttl=2h` and then checks the token's properties with `vault token lookup`. The token is renewable. A developer asks whether the token can be kept alive indefinitely by renewing it every 30 minutes. What should the operator tell the developer?

A.The token can be renewed indefinitely because the default max TTL of 32 days overrides the explicit max TTL.
B.The token can be renewed indefinitely because it has a TTL and is renewable.
C.The token can be renewed only until its explicit max TTL of 2 hours is reached; after that, renewal fails and the token expires.
D.The token cannot be renewed at all because an explicit max TTL disables renewal.
AnswerC

The explicit max TTL sets a hard limit on the token's total lifetime. Even though the token is renewable, Vault will not allow renewal beyond that 2-hour window. The operator should tell the developer that renewing every 30 minutes works only until the explicit max TTL is reached; after that, the token cannot be renewed and must be replaced. This is the intended behavior for bounding token lifetime.

Why this answer

The token was created with an explicit max TTL, which acts as a hard cap on its total lifetime. Renewals are permitted only while the token's age is less than the explicit max TTL. Once that limit is reached, Vault refuses further renewals and the token expires.

The developer cannot keep the token alive indefinitely by renewing it; they must obtain a new token. This behavior ensures that tokens cannot outlive their configured maximum lifetime.

Exam trap

The trap here is assuming that a renewable token can always be renewed forever, overlooking that an explicit max TTL creates an absolute expiration ceiling.

188
MCQmedium

An administrator is configuring Vault to allow employees to log in using their existing corporate credentials managed by an external identity provider that supports OIDC. The administrator wants to avoid creating local Vault users. Which authentication method should be used?

A.Okta auth method
B.OIDC auth method
C.LDAP auth method
D.Username & Password auth method
AnswerB

OIDC auth method allows users to authenticate via an external OIDC identity provider. It supports authorization code flow and JWT validation, enabling single sign-on without local Vault users. This matches the requirement to use existing corporate credentials managed by an OIDC provider and avoids creating local users.

Why this answer

OIDC auth method enables authentication via an external OIDC identity provider, allowing employees to use corporate credentials without local Vault users. It supports standard OIDC flows and JWT validation, making it the right choice for integrating with an OIDC-capable IdP.

Exam trap

The trap here is choosing a vendor-specific method like Okta when the scenario only specifies OIDC compliance, not a particular vendor.

189
MCQmedium

A developer needs to manually revoke a token but only knows its accessor. Which Vault API endpoint can be used to revoke the token using only the accessor?

A.auth/token/accessors
B.auth/token/renew-accessor
C.auth/token/revoke-accessor
D.auth/token/revoke
AnswerC

Vault's auth/token/revoke-accessor endpoint revokes a token by its accessor rather than the token itself, which is exactly the identifier available here. The accessor is a non-secret reference, so revocation succeeds without needing the original token value.

Why this answer

The `auth/token/revoke-accessor` endpoint is specifically designed to revoke a token when only its accessor is known. The accessor is a non-sensitive identifier that Vault uses to perform token operations without exposing the actual token ID, making this endpoint the appropriate choice for revocation by accessor.

Exam trap

HashiCorp Vault often tests the distinction between endpoints that operate on the token ID versus those that operate on the accessor, and the trap here is that candidates might confuse `auth/token/revoke` (which needs the token ID) with `auth/token/revoke-accessor` (which uses the accessor), or think that listing accessors (Option A) is sufficient for revocation.

How to eliminate wrong answers

Option A is wrong because `auth/token/accessors` is used to list token accessors, not to revoke a token. Option B is wrong because `auth/token/renew-accessor` is used to renew a token's lease using its accessor, not to revoke it. Option D is wrong because `auth/token/revoke` requires the actual token ID or a token's accessor via a different endpoint, and using it with only an accessor would fail or require additional parameters.

190
MCQhard

A Vault administrator is troubleshooting a batch of revoked database credentials. An application reported that its lease stopped working even though the application had been renewing it every few minutes. Reviewing the mount configuration, the administrator sees default_lease_ttl set to 15m and max_lease_ttl set to 2h. The application log shows successful renewals until roughly the two-hour mark, after which the renew call returned an error and the credential failed. What is the most likely explanation?

A.The database engine rotated its root credentials, which invalidated every outstanding dynamic credential at once.
B.The application's token expired, causing all leases it created to be revoked automatically at the same time.
C.The lease reached the mount's max_lease_ttl, so renewal could no longer extend it and the credential had to be reissued.
D.The application exceeded its allowed renewal count, and Vault rejected the renewal after a fixed number of attempts.
AnswerC

Renewal extends a lease only up to the cumulative maximum defined by the mount's max_lease_ttl. Once a lease has lived for two hours, further renewal attempts fail and the credential expires, regardless of how frequently the client renewed. The application must request a new credential rather than continuing to renew the exhausted lease.

Why this answer

The mount's max_lease_ttl defines the absolute cumulative lifetime of a lease, and renewal cannot push a lease past that boundary. The application's renewals succeeded until the lease reached two hours, at which point renewal failed and the credential expired. The correct remediation is for the application to request a new credential when renewal is no longer granted.

Exam trap

The trap here is attributing a renewal failure at a fixed interval to token expiry or renewal limits instead of the lease's cumulative maximum TTL.

191
MCQeasy

A cloud operations team wants to use Vault to generate dynamic credentials for an AWS RDS MySQL database. They have configured the database secrets engine and created a role named 'app-role' that maps to a database creation statement. A developer needs to obtain a username and password to connect to the database. Which command should the developer run to retrieve the dynamic credentials?

A.vault read database/static-creds/app-role
B.vault kv get database/creds/app-role
C.vault read database/creds/app-role
D.vault write database/roles/app-role
AnswerC

The 'vault read database/creds/<role>' command generates and returns dynamic credentials for the specified role. It calls the database secrets engine's creds endpoint, which executes the role's creation statements against the database and returns a unique username and password with a limited lease. This is the standard way to obtain dynamic database credentials from Vault.

Why this answer

Dynamic database credentials are generated by reading from the 'creds' endpoint of the database secrets engine for a specific role. The 'vault read database/creds/app-role' command triggers Vault to execute the role's creation statements and return a new username and password. Other commands either configure the role, target static roles, or use the wrong secrets engine.

Exam trap

The trap here is confusing the role configuration endpoint with the credential generation endpoint, or mistakenly using the KV command for a dynamic secrets engine.

192
MCQeasy

A Vault user wants to check the capabilities of their token on a specific path. Which command should they use?

A.vault token list
B.vault token capabilities <path>
C.vault policy capabilities <policy_name> <path>
D.vault token lookup <token>
AnswerB

`vault token capabilities <path>` queries the token's effective capabilities on that exact path, returning a permission list such as read, create or sudo. It satisfies the stem's constraint of checking one token against one specific path, unlike `vault capabilities`, which inspects the calling token only.

Why this answer

The `vault token capabilities` command is specifically designed to check what operations (e.g., read, create, update, delete, list) a given token is allowed to perform on a particular path. It evaluates the token's attached policies against the path and returns the effective capabilities, making it the correct tool for this task.

Exam trap

HashiCorp often tests the distinction between commands that inspect token metadata (`vault token lookup`) versus commands that evaluate policy-based permissions on a specific path (`vault token capabilities`), and candidates may confuse `vault policy capabilities` (which does not exist) with the correct command.

How to eliminate wrong answers

Option A is wrong because `vault token list` displays all tokens that exist in the token store (for tokens with appropriate permissions), not the capabilities of a specific token on a path. Option C is wrong because `vault policy capabilities` is not a valid Vault command; the correct command to check a policy's effect on a path is `vault token capabilities` (which uses the token's policies), and `vault policy read` is used to view policy rules. Option D is wrong because `vault token lookup` shows metadata about a token (such as creation time, TTL, and attached policies), but does not evaluate or display capabilities on a specific path.

193
MCQmedium

A financial services company runs a microservices application on Kubernetes. Each service needs to authenticate to Vault using Kubernetes auth and then read secrets from a shared KV v2 engine mounted at 'shared-kv'. The security team requires that Service-A can only read secrets under 'shared-kv/team-alpha/*' and Service-B can only read secrets under 'shared-kv/team-beta/*'. The Vault administrator has already configured the Kubernetes auth method and created roles for each service with bound service account names. However, both services are currently able to read all paths under 'shared-kv/'. The administrator wants to enforce the least privilege access. Which course of action should the administrator take?

A.Configure the Kubernetes auth role to use 'token_policies' with a restrictive policy and ensure the bound service account names are correct.
B.Create a new secrets engine for each team and mount them at 'team-alpha' and 'team-beta', then assign each service to its respective engine.
C.Add a 'path_deny' capability in the policy for the disallowed paths.
D.Review and update the policy attached to the Kubernetes auth roles to restrict capabilities to the specific paths, e.g., 'path "shared-kv/data/team-alpha/*" { capabilities = ["read"] }'.
AnswerD

Vault authorises requests through the token's attached policy, not the auth role itself. Editing each role's policy to grant read only on shared-kv/data/team-alpha/* or team-beta/* enforces least privilege, since the existing broad policy currently allows both services to read every path.

Why this answer

The issue is that the policy attached to the Kubernetes auth roles grants read access to the entire 'shared-kv/*' path. By updating the policy to restrict capabilities to specific paths like 'shared-kv/data/team-alpha/*' and 'shared-kv/data/team-beta/*', the administrator enforces least privilege. The 'data' prefix is required for KV v2 engines to access secret data, and the wildcard ensures only the respective team's secrets are readable.

Exam trap

HashiCorp often tests the misconception that 'path_deny' is a valid capability in Vault ACL policies, when in fact Vault uses default-deny and explicit allow, so candidates incorrectly choose Option C instead of updating the allowed paths.

How to eliminate wrong answers

Option A is wrong because 'token_policies' are already used; the problem is the policy content, not the binding or the policy assignment mechanism. Option B is wrong because creating separate engines is unnecessary and violates the requirement to use the shared 'shared-kv' engine; it also adds administrative overhead without addressing the policy misconfiguration. Option C is wrong because 'path_deny' capabilities are not a valid Vault policy construct; Vault uses explicit allow with 'deny' capabilities only via Sentinel or ACL path-based denial, but the correct approach is to restrict the allowed paths, not add deny rules.

194
MCQmedium

A financial services company uses HashiCorp Vault's transit engine to encrypt customer credit card numbers. The application sends each credit card number individually to Vault for encryption, and the response time is acceptable. However, during peak hours, the company needs to encrypt large batches of 10,000 credit card numbers. Users report that encrypting the entire batch takes several minutes, causing timeouts. The Vault cluster is healthy and not under high load. The security team wants to reduce the encryption time without changing the encryption algorithm or key strength. What should they do?

A.Enable key derivation on the transit key to allow parallel encryption.
B.Use the `batch_input` parameter to encrypt multiple plaintexts in one API call.
C.Enable convergent encryption to reuse ciphertexts.
D.Switch to an AES-256-GCM key for faster encryption.
AnswerB

The batch_input parameter lets the transit engine encrypt many plaintexts in a single API call, amortising network round trips and per-request overhead. This cuts the several-minute batch time without altering the encryption algorithm or key strength.

Why this answer

The `batch_input` parameter allows sending multiple plaintexts in a single API call to Vault's transit engine, significantly reducing the overhead of individual HTTP requests and TLS handshakes. This directly addresses the batch encryption timeout issue without changing the encryption algorithm or key strength, as the Vault cluster is healthy and not under load, indicating the bottleneck is network round-trips, not cryptographic computation.

Exam trap

The trap here is that candidates may confuse 'parallel encryption' (which Vault inherently supports via concurrent API calls) with reducing the number of API calls, or mistakenly think that changing the key type (Option D) or enabling convergent encryption (Option C) would improve performance, when the actual solution is batching input to minimize network overhead.

How to eliminate wrong answers

Option A is wrong because key derivation (enabled via `derived=true`) creates unique encryption keys per context but does not enable parallel encryption; Vault's transit engine already supports concurrent requests, and the bottleneck here is the number of API calls, not parallelism. Option C is wrong because convergent encryption reuses ciphertexts for identical plaintexts, which could reduce storage but does not speed up encryption of unique credit card numbers and may introduce security risks like frequency analysis. Option D is wrong because switching to AES-256-GCM (the default for transit keys) does not change the algorithm or key strength as per the requirement, and the issue is not cryptographic speed but API call overhead.

195
MCQmedium

A developer authenticates with the userpass auth method and receives a token. The developer needs to perform a sensitive operation but the token lacks the required policy. Before asking an administrator, the developer wants to determine whether their current token is permitted to update the secret at secret/data/payments. Which command should the developer run?

A.vault kv get secret/data/payments
B.vault token lookup
C.vault token capabilities secret/data/payments
D.vault policy read default
AnswerC

vault token capabilities reports the actions the calling token is allowed to perform on the given path. Run without an explicit token argument, it evaluates the current token and returns the permitted capabilities, such as create, read, or update. This directly answers whether the developer can update the payments secret without exposing or altering any data.

Why this answer

The capabilities endpoint is designed to answer exactly this question: it returns the set of actions the current token may perform on a specified path. Running vault token capabilities against secret/data/payments reveals whether update is allowed, without reading the secret or requiring administrator involvement.

Exam trap

The trap here is assuming that listing a token's policies or reading a policy file proves what the token can do on a specific path, when effective capabilities require evaluating all policies together.

196
MCQhard

A user with this policy wants to delete secrets under the 'team/' path. Which additional capability must be added?

A.sudo
B.delete
C.list
D.patch
AnswerB

Granting the delete capability on the 'team/' path lets the user remove secrets there, satisfying the stem's requirement. Vault policies are path-scoped, so read and list permissions alone cannot authorise destruction; the delete capability must be explicitly added to that path's policy stanza.

Why this answer

The user's policy grants 'create' and 'update' capabilities on 'team/*', but not 'delete'. In Vault's ACL policy system, each operation (create, read, update, delete, list, sudo) must be explicitly allowed. Since 'delete' is missing, the user cannot delete secrets under 'team/'.

Adding the 'delete' capability to the policy is required.

Exam trap

HashiCorp often tests the misconception that 'sudo' is a catch-all permission or that 'update' implies delete capability, but in Vault, each operation is explicitly scoped and 'delete' must be granted separately.

How to eliminate wrong answers

Option A is wrong because 'sudo' is a capability that bypasses ACL checks for certain privileged operations (e.g., enabling auth methods), not a generic permission to delete secrets; it would not grant delete access on 'team/*'. Option C is wrong because 'list' only allows listing keys at a path, not deleting them; it is a separate capability. Option D is wrong because 'patch' is not a standard Vault ACL capability; the correct capability for modifying existing secrets is 'update', and 'patch' is not defined in Vault's policy system.

197
MCQeasy

A small company uses Vault with LDAP authentication for their employees. They configured the LDAP auth method pointing to their on-premises Active Directory. Several users report that they can log in to the Vault UI, but they cannot see any secrets in the paths they expect. The administrator verified that the users are in the correct AD groups. The Vault policies are defined and assigned to groups via the LDAP auth method's group mapping. However, the users still have no permissions. What is the most likely root cause and the correct fix?

A.The group mapping in Vault does not match the AD group names (case or syntax).
B.The LDAP bind credentials are incorrect.
C.The LDAP auth method is not enabled.
D.The Vault token's TTL is too short.
AnswerA

LDAP group mapping matches the group name string exactly, including case and whitespace, so a mismatch means no policies attach despite correct AD membership. Aligning the Vault group mapping with the exact AD group name restores permissions.

Why this answer

The most likely root cause is that the group mapping in Vault does not match the AD group names due to case sensitivity or syntax differences. Vault's LDAP auth method performs exact string matching when mapping LDAP groups to Vault policies; if the group names in the Vault configuration (e.g., 'Domain Admins') differ from the actual AD group names (e.g., 'Domain Admins' with a trailing space or different case), the mapping fails, resulting in no policy assignment and thus no permissions.

Exam trap

HashiCorp often tests the nuance that LDAP authentication can succeed while authorization fails due to group mapping mismatches, leading candidates to incorrectly suspect authentication or token issues instead of policy mapping.

How to eliminate wrong answers

Option B is wrong because incorrect LDAP bind credentials would prevent the LDAP auth method from authenticating users at all, but the users can log in successfully, so the bind credentials are valid. Option C is wrong because if the LDAP auth method were not enabled, users would not be able to log in to the Vault UI at all, but they can log in. Option D is wrong because a short Vault token TTL would cause tokens to expire quickly, not prevent users from seeing secrets immediately after login; the issue is about missing permissions, not token lifetime.

198
MCQeasy

A security team wants to ensure that tokens can be revoked immediately if a compromised token is detected, even if the token ID is unknown. Which token feature should they use?

A.Periodic tokens
B.Batch tokens
C.Token accessors
D.Orphan tokens
AnswerC

Token accessors are unique identifiers that reference a token without revealing it, enabling revocation by accessor lookup. This satisfies the stem's constraint of revoking a compromised token immediately even when the token ID itself is unknown to the security team.

Why this answer

Token accessors allow revocation of a token without knowing the token ID. They are specifically designed for this purpose.

199
MCQmedium

A company has multiple AWS accounts and wants to allow EC2 instances to authenticate to Vault without storing any secrets on the instances. Which authentication method should they use?

A.OIDC
B.AWS
C.TLS Certificates
D.AppRole
AnswerB

The AWS auth method uses the EC2 instance identity document and AWS IAM role credentials, obtained from the instance metadata service, to prove identity to Vault. No static secret is ever stored on the instance, satisfying the no-secrets-on-instances constraint across multiple accounts.

Why this answer

(AWS) is correct because the AWS authentication method in Vault allows EC2 instances to authenticate using their AWS instance identity documents and PKCS#7 signatures, without requiring any long-lived secrets to be stored on the instances. Vault verifies the instance's identity by calling the AWS EC2 API to validate the document and signature, then binds the instance to a Vault role. This eliminates the need to store tokens or credentials on the instance, meeting the requirement of secretless authentication.

Exam trap

HashiCorp often tests the misconception that OIDC or TLS certificates are the 'most secure' or 'standard' methods for secretless authentication, but the trap here is that the question specifically requires no secrets stored on the instance, which only the AWS auth method achieves by using dynamic, ephemeral instance metadata instead of static credentials.

How to eliminate wrong answers

Option A (OIDC) is wrong because OIDC relies on an external identity provider (e.g., Okta, Azure AD) to issue ID tokens, which would still require the EC2 instance to either store a client secret or perform a complex token exchange, and it does not natively leverage AWS instance metadata for secretless authentication. Option C (TLS Certificates) is wrong because while TLS certificates can authenticate instances, they require the certificates and private keys to be stored on the EC2 instances, violating the 'no secrets stored on instances' requirement. Option D (AppRole) is wrong because AppRole requires a RoleID and a SecretID to be provided by the client; the SecretID is a secret that must be stored or delivered to the instance, which contradicts the requirement of not storing any secrets on the instances.

200
MCQeasy

An administrator creates a service token with a TTL of 1 hour and a max TTL of 24 hours. The token is renewed once after 55 minutes. What happens to the token after 24 hours from creation?

A.The token expires and cannot be renewed
B.The token is revoked by the system
C.The token's TTL is automatically extended by 1 hour
D.The token becomes an orphan token
AnswerA

Vault enforces the max TTL as an absolute ceiling from creation; renewal cannot extend a token beyond it. Once 24 hours elapse, the token is revoked and further renewal attempts fail, so it expires permanently.

Why this answer

The token's TTL was set to 1 hour with a max TTL of 24 hours. After the first renewal at 55 minutes, the token's TTL resets to 1 hour, but the max TTL remains 24 hours from creation. Once 24 hours have passed from creation, the token reaches its max TTL and expires permanently; it cannot be renewed because the max TTL is a hard upper limit enforced by Vault's token lifecycle logic.

Exam trap

The trap here is that candidates often confuse the current TTL with the max TTL, thinking that renewing the token resets the overall lifetime, but Vault enforces the max TTL as a hard deadline from creation, not from the last renewal.

How to eliminate wrong answers

Option B is wrong because Vault does not actively revoke tokens upon reaching max TTL; instead, the token simply expires and becomes unusable, with no explicit revocation action. Option C is wrong because the token's TTL is not automatically extended; Vault only extends the TTL upon explicit renewal, and only up to the max TTL, which is already reached at 24 hours. Option D is wrong because an orphan token is one whose parent is expired or revoked, but this token is not orphaned—it simply expires due to max TTL, and orphan tokens still have their own TTL and can be renewed if within limits.

201
MCQhard

A security engineer needs to ensure that if a key is compromised, previous ciphertext can be re-encrypted with a new key version without exposing the plaintext. Which Vault operation should they use?

A.Rewrap
B.Rotate
C.Encode
D.Transform
E.Rekey
AnswerA

Rewrap decrypts ciphertext internally and re-encrypts it under the latest key version without returning plaintext to the caller. This satisfies the requirement to migrate ciphertext to a new key version after compromise while never exposing the underlying plaintext.

Why this answer

The Rewrap operation in Vault allows a ciphertext to be decrypted with the current key version and re-encrypted with a new key version without exposing the plaintext to the caller. This ensures that if a key is compromised, previous ciphertext can be rotated to a new key version while maintaining data confidentiality.

Exam trap

HashiCorp often tests the distinction between key rotation (creating new key versions) and re-encrypting existing data (Rewrap), where candidates mistakenly choose Rotate thinking it automatically re-encrypts ciphertext.

How to eliminate wrong answers

Option B (Rotate) is wrong because Rotate creates a new key version but does not re-encrypt existing ciphertext; it only affects future encryption operations. Option C (Encode) is wrong because Encode is a generic data transformation (e.g., base64) and does not involve key management or re-encryption. Option D (Transform) is wrong because Transform applies a cryptographic function (e.g., tokenization, masking) but does not re-encrypt ciphertext under a new key version.

Option E (Rekey) is wrong because Rekey changes the master key or encryption key for the entire Vault cluster, not for individual ciphertexts, and does not provide a per-ciphertext re-encryption operation.

202
MCQmedium

A Vault operator is troubleshooting a newly deployed Vault server that is initialized but not yet unsealed. The operator needs to understand which component is responsible for holding the unseal keys and root token during the initialization process. Which statement accurately describes the role of the barrier in Vault's architecture?

A.The barrier is the network interface that Vault uses to communicate with the storage backend, and it must be configured with TLS certificates.
B.The barrier is the encryption layer that protects data at rest and must be unsealed using unseal keys before Vault can access storage.
C.The barrier is the audit log that records all requests and responses, and it must be enabled before unsealing to capture initialization events.
D.The barrier is the seal mechanism that automatically unseals Vault when it detects a trusted cloud provider's instance identity.
AnswerB

The barrier is Vault's encryption layer that secures all data written to the storage backend. It requires unseal keys to reconstruct the master key, which decrypts the barrier. Until unsealed, Vault cannot read or write secrets. This is why initialization produces unseal keys and a root token, and why unsealing is mandatory after every restart.

Why this answer

The barrier is Vault's encryption layer that protects data at rest. It must be unsealed using unseal keys (or auto-unseal) to reconstruct the master key and allow Vault to read and write secrets. It is not a network interface, audit log, or auto-unseal mechanism.

Understanding the barrier is fundamental to Vault's security model.

Exam trap

The trap here is confusing the barrier with the seal mechanism or auto-unseal, which are separate components that interact with the barrier.

203
MCQeasy

A developer wants to use Vault to encrypt sensitive data before storing it in a database. They need to perform encryption and decryption operations without ever exposing the encryption key. Which secrets engine should they use?

A.PKI
B.KV v2
C.Transit
D.Database
AnswerC

The transit secrets engine performs cryptographic operations in Vault itself, so plaintext keys never leave the server. Applications submit data for encryption or decryption and receive only the ciphertext or plaintext, satisfying the requirement to never expose the encryption key.

Why this answer

The Transit secrets engine is designed specifically for encryption-as-a-service workflows, allowing applications to encrypt and decrypt data using keys managed entirely within Vault. The encryption key never leaves Vault, satisfying the requirement to avoid exposing the key. In contrast, other engines like KV v2 store raw secrets but do not perform cryptographic operations without exposing the key material.

Exam trap

HashiCorp often tests the misconception that KV v2 can perform encryption operations because it stores encrypted data, but KV v2 does not provide server-side encryption/decryption APIs—it only stores and retrieves secrets as-is.

How to eliminate wrong answers

Option A is wrong because the PKI secrets engine generates and manages X.509 certificates and private keys, not for encrypting arbitrary data with a hidden key. Option B is wrong because KV v2 stores secrets as plaintext or encrypted at rest, but the client must retrieve the raw secret to use it, exposing the key material. Option D is wrong because the Database secrets engine generates dynamic database credentials (usernames/passwords) and does not provide encryption/decryption operations.

204
MCQeasy

An organization wants to use Vault's dynamic database credentials to manage MySQL access. They have multiple application servers that need to connect to different databases. What is the best practice for configuring database roles to minimize the number of Vault mounts?

A.Use the same database mount but create a separate role per application server.
B.Create a separate database mount for each database to isolate credential generation.
C.Create a single database mount and define multiple roles within it, each with different credential generation parameters.
D.Use a single role that generates credentials for all databases by using a wildcard in the username.
AnswerC

A single database mount supports many roles, each with its own creation statements, TTLs and SQL, so one MySQL secrets engine serves every application server and database. This directly minimises mount count, the stem's stated constraint, while keeping credentials scoped per role rather than sharing one privileged account.

Why this answer

Vault allows a single database mount (e.g., `database/`) to manage multiple database connections, and within that mount, you can define multiple roles. Each role can specify different credential generation parameters (e.g., username template, default TTL, max TTL, and allowed roles) for distinct databases or application servers. This minimizes the number of mounts while still providing fine-grained access control and isolation of credentials.

Exam trap

HashiCorp often tests the misconception that more mounts equal better isolation, but the best practice in Vault is to minimize mounts and use roles for logical separation, as mounts are a higher-level administrative boundary that should be reserved for different secret engines or vastly different access policies.

How to eliminate wrong answers

Option A is wrong because creating a separate role per application server does not reduce the number of mounts; it increases the number of roles unnecessarily and does not address the goal of minimizing mounts. Option B is wrong because creating a separate database mount for each database directly contradicts the goal of minimizing mounts; it increases administrative overhead and complexity without any security benefit. Option D is wrong because using a wildcard in the username to generate credentials for all databases is not supported by Vault's database secrets engine; roles are bound to specific database connections and cannot use wildcards to span multiple databases, and this would violate the principle of least privilege.

205
Drag & Dropmedium

Drag and drop the steps to set up Vault's Kubernetes auth method into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence for setting up Vault's Kubernetes auth method is: enable the auth method, configure it with the Kubernetes API server details, create a role that binds to a service account, deploy a pod using that service account, and finally verify login. This order ensures that each prerequisite is fulfilled before the subsequent step can function correctly.

206
MCQmedium

An administrator is troubleshooting a policy where a token unexpectedly has permission to read 'secret/data/finance/payroll' even though the attached policy only contains a statement for 'secret/data/hr/*'. The administrator confirms the policy is attached correctly and the path is not covered by any wildcard in it. What is the most likely explanation?

A.Wildcard matching in Vault is greedy, so the hr wildcard also matches sibling prefixes like finance.
B.Reading a KV v2 secret requires only the metadata path, so the finance secret is exposed through an unrelated metadata grant.
C.The policy was written with a trailing wildcard that Vault silently strips, leaving a root-level grant.
D.The token also has the default policy or another policy attached that contains a matching statement for the finance path.
AnswerD

Vault merges all policies attached to a token, and permissions are additive, so any additional policy with a statement covering the finance path grants the access regardless of what the hr policy says. The default policy is commonly attached automatically and may include broad read paths in some configurations, and operators often overlook extra policies during troubleshooting. Inspecting the token's full policy list resolves the discrepancy.

Why this answer

Vault authorization is the union of every policy attached to the token, and a single matching statement anywhere in that set is enough to allow a request. A policy scoped to the hr prefix cannot grant finance access by itself, so the presence of extra policies, including the default policy, is the logical explanation. Auditing the token's complete policy list confirms it.

Exam trap

The trap here is assuming a single policy determines access, when Vault grants permissions as the union of all policies attached to the token.

207
MCQhard

A team wants to store encrypted backups in object storage and needs the ability to rotate the wrapping key over time without re-uploading every backup object. They also want the plaintext data key to be used only in memory by the backup agent. Which combination of Vault transit operations best fits this design?

A.Use transit/datakey/plaintext to obtain a data key, encrypt the backup locally, store the wrapped key alongside the object, and later use transit/rewrap on the wrapped key when rotating.
B.Use transit/encrypt on each backup and store only the returned ciphertext.
C.Use transit/sign to sign the backup, then store the signature as the encryption key.
D.Use transit/hmac to derive a key from the backup contents and store that digest with the object.
AnswerA

Datakey returns a plaintext key for local encryption plus a wrapped copy protected by the transit key. Storing the wrapped key with the object allows rewrap to update the wrapper without touching the large backup payload. This is the standard envelope encryption pattern and satisfies both rotation and in-memory key handling.

Why this answer

Envelope encryption keeps large payloads out of Vault: datakey supplies a plaintext data key plus a wrapped copy, the agent encrypts locally, and only the wrapped key is stored with the object. Rewrap then rotates the wrapper under a new transit key version without re-uploading data. This separates the bulk ciphertext from the key-protection layer and meets the in-memory requirement.

Exam trap

The trap here is sending whole objects through transit encrypt instead of using datakey to obtain a data key for local envelope encryption.

208
MCQmedium

A security engineer configures the Transit secrets engine at transit/ to encrypt application data. The application must be able to decrypt data but must not be able to create new encryption keys or rotate existing ones. Which policy snippet correctly grants only the required capability for the application's token?

A.path "transit/decrypt/app-key" { capabilities = ["read"] }
B.path "transit/encrypt/app-key" { capabilities = ["update"] }
C.path "transit/keys/app-key" { capabilities = ["read"] }
D.path "transit/decrypt/app-key" { capabilities = ["update"] }
AnswerD

Transit decrypt is a write operation, so the capability must be update (or create, which is also accepted for write operations). Granting update on the decrypt path allows the application to decrypt without granting key creation or rotation, which are separate paths like transit/keys/app-key/rotate.

Why this answer

In the Transit secrets engine, decryption is invoked as a write operation, so the policy must grant update on the transit/decrypt/<key> path. This allows the application to decrypt without granting capabilities on key creation or rotation paths, which are separate and can be restricted independently.

Exam trap

The trap here is assuming that decrypt is a read operation because it returns plaintext, when Vault treats it as a write because the ciphertext travels in the request body.

209
MCQeasy

A policy must allow a user to revoke their own token. Which endpoint and capability are required?

A.path "auth/token/revoke" { capabilities = ["update"] }
B.path "auth/token/revoke-self" { capabilities = ["write"] }
C.path "sys/leases/revoke" { capabilities = ["update"] }
D.path "auth/token/revoke-self" { capabilities = ["update"] }
AnswerD

The revoke-self endpoint operates on the caller's own token, identified from the client token supplied with the request. Because it modifies token state rather than reading it, the policy requires the update capability on that exact path, letting users invalidate their own token without broader revoke permissions.

Why this answer

To allow a user to revoke their own token, the policy must grant the 'update' capability on the 'auth/token/revoke-self' endpoint. Vault's token revocation for self uses the update capability on that specific path, not write or the general revoke endpoint.

Exam trap

VA-003 often tests the exact capability required for Vault token endpoints — candidates confuse 'write' with 'update' and pick the wrong endpoint like auth/token/revoke instead of revoke-self.

How to eliminate wrong answers

Option A is wrong because 'auth/token/revoke' is for revoking other tokens (requires sudo/root or specific policies) and uses update, but it does not target self-revocation. Option B is wrong because 'auth/token/revoke-self' requires the 'update' capability, not 'write' — Vault's token endpoints use update for these operations. Option C is wrong because 'sys/leases/revoke' is for revoking leases by lease ID, not for self-token revocation, and it requires sudo.

210
MCQmedium

An operator needs to create a token role named 'web-app' with a default TTL of 24 hours. Which API request is correct?

A.POST /v1/auth/token/roles/web-app with body {"default_ttl":"24h"}
B.POST /v1/auth/token/create/web-app with body {"default_ttl":"24h"}
C.PUT /v1/auth/token/roles/web-app with body {"default_ttl":"24h"}
D.PUT /v1/auth/token/role/web-app with body {"default_ttl":"24h"}
AnswerC

Token role creation uses the PUT method on the auth/token/roles endpoint, with the role name in the path. The body's default_ttl field sets the 24-hour TTL required by the stem, so this request satisfies both the naming and TTL constraints.

Why this answer

Creating a token role in Vault requires a PUT request to the /v1/auth/token/roles/<role_name> endpoint, and the default_ttl parameter must be specified as a string with a time suffix (e.g., '24h'). The PUT method is used for creating or updating a role, and the path must include 'roles' (plural) followed by the role name.

Exam trap

HashiCorp often tests the distinction between creating a role (PUT /roles) and creating a token using a role (POST /create), and the trap here is that candidates mistakenly use the token creation endpoint or the wrong HTTP method for role creation.

How to eliminate wrong answers

Option A is wrong because it uses the POST method, but Vault's token role creation endpoint requires PUT; POST is used for other operations like token creation. Option B is wrong because it targets the /v1/auth/token/create/<role_name> endpoint, which is used for creating tokens using a role, not for creating the role itself. Option D is wrong because it uses 'role' (singular) in the path instead of 'roles' (plural), which is the correct API path for token role management.

211
Matchingmedium

Match each Vault term to its definition.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Encrypted state requiring unseal

Decrypt master key to access data

Encryption layer protecting storage

Key splitting for unseal

Superuser token with full access

Why these pairings

Correct matches: Secret is sensitive data; Token is an authentication credential. Common confusions: Policy vs. Auth Method — policies control access, auth methods authenticate users.

212
MCQmedium

A Vault operator discovers that a service account token was compromised, and that token had created several dynamic database credentials across multiple roles. The operator needs to invalidate every lease created by that token as quickly as possible rather than waiting for each lease to expire. Which action accomplishes this?

A.Seal the Vault cluster, which revokes all outstanding leases cluster-wide and requires unsealing afterward.
B.Revoke the database secrets engine mount, which forcibly expires all credentials issued from any token.
C.Revoke the compromised token, which also revokes the leases that were created by that token.
D.Rotate the database root credentials, which immediately invalidates every dynamic credential in the database.
AnswerC

When a token is revoked, Vault revokes the leases associated with that token as part of the revocation process. This provides a fast, targeted way to invalidate credentials created by the compromised identity without disturbing leases owned by other tokens or applications. It is the appropriate containment action for a leaked token that has spawned dynamic credentials.

Why this answer

Revoking a token causes Vault to revoke the leases created by that token, providing precise containment for a compromised identity. This targets only the credentials spawned by the leaked token while leaving unrelated leases intact. More disruptive actions such as revoking the mount or sealing the cluster are unnecessary and cause collateral impact.

Exam trap

The trap here is reaching for a broad action like revoking the mount or rotating root credentials when revoking the specific token already cascades to its leases.

213
MCQhard

A company uses Vault to store application configuration secrets for multiple teams. The Vault cluster is running in production and has the KV secrets engine enabled at the path 'secret/' using version 2. A DevOps engineer, using a Vault token with full admin access, creates a new secret at 'secret/data/team-a/app-config' using the CLI command 'vault kv put secret/team-a/app-config key=value'. The secret is intended for the CI/CD pipeline, which uses a token with a policy that grants 'read' capability on 'secret/data/*'. The pipeline is configured to read the secret by calling the Vault API at the path 'v1/secret/team-a/app-config'. The pipeline reports a 404 Not Found error. The pipeline engineer verifies that the token is valid and has the correct policy attached. All other secrets in the same path can be read successfully by the pipeline. What is the most likely cause of the 404 error?

A.The secret engine at 'secret/' is not enabled.
B.The secret was written to a different path than expected.
C.The token's policy does not cover the path 'secret/team-a/app-config'.
D.The pipeline is using the wrong API path: for KV v2, the path must include '/data/' before the secret path.
AnswerD

KV v2 inserts a mandatory `/data/` segment between the mount and the secret path, so the API endpoint must be `v1/secret/data/team-a/app-config`. The pipeline's request omitted it, hitting a non-existent route and returning 404, despite the policy granting `read` on `secret/data/*`.

Why this answer

The KV secrets engine version 2 (v2) requires the '/data/' segment in the API path for reading secret data. The pipeline is calling 'v1/secret/team-a/app-config', which omits the mandatory '/data/' prefix, causing a 404 Not Found error. The CLI command 'vault kv put' automatically handles this path translation, but the direct API call does not.

Exam trap

The trap here is that candidates confuse the CLI path (which abstracts away the '/data/' prefix) with the raw API path, leading them to think the secret was written to a different path or that the policy is wrong, when the actual issue is the missing '/data/' segment in the API call.

How to eliminate wrong answers

Option A is wrong because the secret engine at 'secret/' is enabled (the DevOps engineer successfully wrote the secret), and the pipeline can read other secrets in the same path, confirming the engine is active. Option B is wrong because the CLI command 'vault kv put secret/team-a/app-config key=value' writes to the correct path under 'secret/data/team-a/app-config', as KV v2 automatically prepends '/data/'. Option C is wrong because the token's policy grants 'read' on 'secret/data/*', which covers the actual path 'secret/data/team-a/app-config', and the pipeline can read other secrets in that path, so the policy is sufficient.

214
MCQhard

A Vault admin wants to revoke a specific lease for a dynamic database credential. The admin has the lease ID. Which command should the admin use?

A.vault lease revoke -prefix <lease_id>
B.vault lease revoke <lease_id>
C.vault lease revoke -force <lease_id>
D.vault lease revoke -all <lease_id>
AnswerB

The `vault lease revoke` command with a full lease ID revokes that specific lease. This is the correct way to revoke a single lease without affecting others. The command calls the secrets engine's revocation logic for that lease, ensuring the underlying credential is also revoked. It is precise and safe for targeted revocation.

Why this answer

To revoke a single lease, the admin should run `vault lease revoke <lease_id>` without any additional flags. This command targets exactly that lease and triggers the appropriate secrets engine to revoke the underlying credential. Using `-prefix` would revoke multiple leases, while `-all` and `-force` are either invalid or overly broad.

Exam trap

The trap here is adding unnecessary flags like `-prefix` or `-all`, which either broaden the scope or cause errors, instead of using the simple revoke command for a single lease.

215
MCQmedium

A DevOps team is using Vault tokens with short TTLs for CI/CD jobs. They notice that some jobs fail intermittently with 'permission denied' errors even though the token policy grants the required capabilities. The token is created with a TTL of 10 minutes and renewed automatically by the client library. What is the most likely cause of the failures?

A.The token's max_ttl has been exceeded, causing renewal to fail.
B.The token's parent token has been revoked.
C.The token's max_ttl is being reset each time the token is renewed.
D.The token's TTL is too short and the client library is not renewing in time.
AnswerA

Renewal cannot extend a token beyond its max_ttl, regardless of the client library's automatic renewal. Once the token's total lifetime hits that ceiling, renewal fails and subsequent requests return permission denied, matching the intermittent failures described.

Why this answer

Vault tokens have both a TTL (time-to-live) and a max_ttl (maximum time-to-live). When a token is renewed, its TTL is reset to the original TTL (10 minutes) but only if the cumulative lifetime has not exceeded the max_ttl. If the max_ttl is reached, renewal fails, the token expires, and subsequent operations using that token return 'permission denied' errors, even though the policy itself grants the required capabilities.

Exam trap

HashiCorp often tests the distinction between TTL and max_ttl, trapping candidates who assume that automatic renewal indefinitely extends token validity without considering the hard upper limit imposed by max_ttl.

How to eliminate wrong answers

Option B is wrong because revoking the parent token would immediately invalidate all child tokens, causing consistent failures, not intermittent ones, and the scenario describes intermittent failures. Option C is wrong because the max_ttl is a hard upper bound and is never reset or extended by renewal; only the current TTL is reset. Option D is wrong because the client library is described as renewing automatically, and a 10-minute TTL is generally sufficient for CI/CD jobs; the issue is the cumulative lifetime exceeding max_ttl, not the renewal timing.

216
Multi-Selecthard

Which THREE of the following are true about using the Vault API with response wrapping? (Choose three.)

Select 3 answers
A.The wrapping token never expires
B.The wrapping token can only be used once to unwrap the response
C.The client can request response wrapping by setting the X-Vault-Wrap-TTL header
D.The original token used to make the wrapped request is required to unwrap the response
E.The wrapped response is stored in a cubbyhole secret engine
AnswersB, C, E

A wrapping token is single-use: unwrapping consumes it, returning the wrapped data and rendering the token invalid for further calls. This one-time property limits exposure if the token leaks, satisfying the security constraint behind response wrapping.

Why this answer

Option B is correct because a response-wrapping token is single-use: the first call to the sys/wrapping/unwrap endpoint (or a lookup) consumes it, and any subsequent attempt fails. Option C is correct because clients enable wrapping by supplying the X-Vault-Wrap-TTL header on the request, which tells Vault to return a wrapping token instead of the actual response data. Option E is correct because Vault stores the wrapped response in the cubbyhole secret engine, which is scoped to the wrapping token and is where the data lives until it is unwrapped.

Option A is wrong because the wrapping token has a TTL set by X-Vault-Wrap-TTL and expires like any other Vault token. Option D is wrong because unwrapping requires only the wrapping token itself, not the original token that created the wrapped response.

Exam trap

HashiCorp often tests the misconception that the wrapping token is reusable or that the original token is needed to unwrap, when in fact the wrapping token is single-use and self-contained for unwrapping.

217
MCQhard

A security engineer creates a service token with a TTL of 1 hour and a max TTL of 4 hours. The token is used by an application that renews it every 30 minutes. After 3 hours, the engineer revokes the token using its accessor. What happens to the token's child tokens?

A.Child tokens are revoked only if they have no other parent.
B.Child tokens are orphaned and become root tokens.
C.All child tokens are immediately revoked.
D.Child tokens remain valid until their own TTLs expire.
AnswerC

When a token is revoked, all of its child tokens are also revoked by default. This cascading revocation ensures that any tokens created by the revoked token are invalidated, preventing unauthorized access. In this scenario, revoking the parent token using its accessor will immediately revoke all child tokens, regardless of their individual TTLs.

Why this answer

Revoking a token in Vault triggers a cascading revocation of all its child tokens. This behavior ensures that compromised or expired parent tokens do not leave valid child tokens that could be used for unauthorized access. The accessor allows revocation without knowing the token ID, but the effect on children remains the same.

Exam trap

The trap here is thinking that child tokens might survive parent revocation if they have their own TTL, but Vault revokes them immediately.

218
MCQmedium

A security engineer needs to create a batch token that will be used by an external system for a one-time operation. The token must be self-contained and not stored in Vault's storage backend. Which token type should be used, and what is a key limitation of that token type?

A.Periodic token; it can be renewed indefinitely but is stored in Vault's storage backend.
B.Root token; it is not stored in Vault's storage backend and can be used for any operation.
C.Batch token; it cannot be renewed or revoked, and it is not stored in Vault's storage backend.
D.Service token; it cannot be renewed or revoked individually.
AnswerC

Batch tokens are self-contained, not persisted in Vault's storage, and therefore cannot be renewed or revoked individually. They are ideal for ephemeral, one-time operations where the client does not need to manage the token's lifecycle. This matches the requirement for a token that is not stored and used for a single operation.

Why this answer

Batch tokens are designed to be lightweight and self-contained, meaning they are not persisted in Vault's storage backend. This makes them suitable for ephemeral use cases where the token will not be renewed or revoked. The key limitation is that they cannot be renewed or revoked individually, which is acceptable for a one-time operation.

Exam trap

The trap here is assuming that batch tokens can be revoked like service tokens, when in fact they are not stored and thus cannot be individually revoked.

219
MCQeasy

A developer wants to store an API key for their application in Vault using the key-value secrets engine. They need to be able to retrieve the key and also roll back to a previous version if needed. Which secrets engine configuration should they use?

A.Enable the Transit secrets engine at a custom path
B.Enable the KV v2 secrets engine at a custom path
C.Enable the KV v1 secrets engine at a custom path
D.Enable the Database secrets engine at a custom path
AnswerB

Enabling KV v2 at a custom path satisfies the versioning requirement: KV v2 stores every write as a numbered version, so the developer can retrieve the current API key and roll back to an earlier version via the metadata endpoint. KV v1 offers no version history, making rollback impossible.

Why this answer

The KV v2 secrets engine supports versioning, allowing retrieval of previous versions and rollback capabilities. This directly meets the requirement to store an API key and revert to an older version if needed. KV v1 does not support versioning, while Transit and Database engines serve different purposes (encryption and dynamic credentials, respectively).

Exam trap

HashiCorp often tests the distinction between KV v1 and KV v2, where candidates mistakenly assume all KV engines support versioning, or confuse the Transit engine's encryption capabilities with secret storage.

How to eliminate wrong answers

Option A is wrong because the Transit secrets engine is designed for encryption/decryption operations, not for storing secrets with versioning. Option C is wrong because KV v1 secrets engine does not support versioning or rollback; it only stores the latest value. Option D is wrong because the Database secrets engine generates dynamic database credentials, not for storing static API keys with version history.

220
Drag & Dropmedium

Drag and drop the steps to initialize and unseal a Vault server for the first time into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence for initializing and unsealing a Vault server for the first time is: start the server, initialize Vault (which generates unseal keys), distribute the unseal keys to key holders, unseal the Vault using a threshold of keys, then verify the Vault is unsealed. This ensures proper security and operational readiness.

221
Multi-Selectmedium

Which THREE of the following best practices should be followed when using Vault's encryption as a service with the transit engine?

Select 3 answers
A.Allow deletion of keys to clean up unused keys
B.Use a unique encryption key per application
C.Enable key rotation automatically
D.Use encryption context to bind encrypted data to its intended use
E.Store the key name in the application code for easy access
AnswersB, C, D

Isolating each application to its own named transit key confines blast radius: a compromised app or leaked ciphertext cannot be decrypted using another app's key, and per-key rotation, policy scoping and audit trails stay independent rather than shared across tenants.

Why this answer

Option B is correct because using a unique encryption key per application enforces cryptographic isolation, so a compromise or policy change in one app's key cannot decrypt another app's data, and it simplifies access control and auditing in Vault's transit engine. Option C is correct because enabling automatic key rotation (via the transit engine's rotation period or `vault write -f transit/keys/<name>/rotate`) limits the amount of data protected by any single key version, supporting compliance requirements and reducing the blast radius if a key is exposed. Option D is correct because the transit engine's encryption context is a non-secret, authenticated value that is cryptographically bound to the ciphertext, so decryption fails unless the same context is supplied, preventing ciphertext from being reused in an unintended application or tenant context.

Option A is not a best practice because deleting transit keys is irreversible and destroys the ability to decrypt data encrypted with them, so keys should be disabled or rotated rather than deleted. Option E is not a best practice because hardcoding key names in application code reduces flexibility and complicates rotation, environment separation, and secret management; key references should come from configuration or a secrets manager.

Exam trap

HashiCorp often tests the misconception that key deletion is a safe cleanup practice, but in the transit engine, deletion is irreversible and can cause data loss, whereas disabling or archiving keys is the correct approach.

222
MCQmedium

A company wants to use Vault to generate IAM users dynamically for each application, following the principle of least privilege. Which secrets engine configuration should they use?

A.Enable AWS engine with a dedicated IAM user (limited permissions) and use 'iam_user' credential type
B.Enable AWS engine with a root IAM user and use 'federation_token' credential type
C.Enable AWS engine with a static access key and use 'iam_user' credential type
D.Enable AWS engine with an IAM role and use 'assumed_role' credential type
AnswerA

The AWS engine's iam_user credential type creates a distinct IAM user per request, with permissions bounded by the role's policy. Pairing it with a limited-permission IAM user for the engine enforces least privilege for each application.

Why this answer

The AWS secrets engine can be configured with a dedicated IAM user that has limited permissions, and by using the 'iam_user' credential type, Vault dynamically creates a new IAM user for each application. This approach adheres to the principle of least privilege by ensuring each application gets a unique set of credentials scoped to its specific needs, without sharing or reusing static keys.

Exam trap

HashiCorp often tests the distinction between dynamic user creation ('iam_user') and temporary credential generation ('federation_token' or 'assumed_role'), where candidates mistakenly choose 'assumed_role' because it is commonly used for temporary access, but it does not create per-application IAM users for granular isolation.

How to eliminate wrong answers

Option B is wrong because using a root IAM user violates security best practices and the principle of least privilege, as root users have unrestricted access; the 'federation_token' credential type generates temporary tokens but still relies on a highly privileged root user. Option C is wrong because using a static access key with the 'iam_user' credential type defeats the purpose of dynamic credential generation, as it reuses the same key across applications, increasing the risk of exposure and violating least privilege. Option D is wrong because the 'assumed_role' credential type generates temporary credentials for an IAM role, which is suitable for cross-account access or role-based scenarios, but it does not create individual IAM users per application, making it less granular for per-application isolation.

223
MCQeasy

A CI/CD pipeline runs in a Kubernetes cluster and needs to authenticate to Vault to fetch secrets. The pipeline should not have to manage any long-lived credentials. Which authentication method is most suitable?

A.Token authentication
B.LDAP authentication
C.AWS IAM authentication
D.Kubernetes authentication
AnswerD

Kubernetes authentication validates the pod's projected service account JWT against the cluster's TokenReview API, issuing a Vault token bound to that service account. No long-lived credentials are stored, satisfying the pipeline's requirement to avoid managing static secrets.

Why this answer

The Kubernetes authentication method allows the CI/CD pipeline to authenticate to Vault using its Kubernetes service account token, which is automatically mounted into the pod. This eliminates the need for managing long-lived credentials because Vault verifies the token against the Kubernetes API server and issues a short-lived Vault token in return.

Exam trap

The trap here is that candidates may confuse 'token authentication' (a generic long-lived token) with 'Kubernetes authentication' (which uses a short-lived JWT from the pod's service account), leading them to incorrectly select option A.

How to eliminate wrong answers

Option A is wrong because token authentication requires the pipeline to manage a long-lived Vault token, which contradicts the requirement of not managing long-lived credentials. Option B is wrong because LDAP authentication requires the pipeline to have a username and password or a long-lived LDAP session, which again introduces long-lived credential management. Option C is wrong because AWS IAM authentication is designed for workloads running on AWS, not for a pipeline running inside a Kubernetes cluster, and it would require the pipeline to manage AWS IAM roles or keys.

224
MCQeasy

A Vault administrator is configuring a new Vault server. The server will store secrets in a HashiCorp Consul cluster. The administrator writes a configuration file with the `storage` stanza pointing to Consul and starts Vault. After initialization and unsealing, the administrator notices that Vault is functioning but wants to ensure that the storage backend is highly available. Which statement about Vault's storage backend is accurate?

A.Vault requires a storage backend that supports high availability, and Consul provides that by allowing multiple Vault nodes to access the same data.
B.The storage backend must be a local file system for Vault to function correctly; network-based storage is not supported.
C.Vault encrypts data before sending it to the storage backend, so the backend does not need to provide encryption at rest.
D.Vault's storage backend is only used for storing the encryption keys and not for secret data, so high availability is not a concern.
AnswerA

Consul is a supported HA storage backend for Vault. It allows multiple Vault servers to share the same storage, enabling a cluster where one node is active and others are standby. The standby nodes can take over if the active node fails, providing high availability. This is a key architectural consideration when choosing a storage backend for production Vault deployments.

Why this answer

Consul is a supported high-availability storage backend for Vault. It allows multiple Vault servers to share the same storage, enabling a cluster with one active node and multiple standby nodes. This provides failover capabilities and ensures that Vault remains available if the active node fails.

Other backends like integrated storage (Raft) also provide HA, but Consul is a common choice for external storage.

Exam trap

The trap here is thinking that Vault's storage backend only stores keys, when it actually stores all persistent data, and that HA of the backend is optional.

225
Matchingmedium

Match each Vault replication type to its behavior.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Disaster recovery, async replication

Scale read operations, active-standby

Replicate only mount-specific data

Replicate all data across clusters

Why these pairings

Performance Replication replicates mounts/policies (not secrets) for read scaling; DR Replication replicates everything for failover. Common confusions include swapping the two or inventing non-existent types like Snapshot or Local Replication.

Page 2

Page 3 of 5

Page 4

All pages