Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free HashiCorp Certified: Vault Associate (003) Exam HCVA0-003 Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 19 Total 285 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Authentication Methods

Skill tested: Select and configure a machine authentication method that matches workload identity and operating constraints.

A payment service runs on short-lived virtual machines in a cloud environment. Each instance has a platform-issued identity, and the security team requires Vault to verify that identity rather than distribute a long-lived Vault token or shared secret. The service needs access only to a narrowly scoped policy. Which approach best meets these requirements?

Correct Answer: C. Enable the cloud authentication method, configure it to validate the instance identity, and bind the resulting role to the required policy.
Explanation:

A cloud auth method can authenticate a machine using its cloud-issued identity, avoiding a separate shared credential in the image or deployment configuration. The auth role can associate the authenticated identity with the least-privilege policy. Userpass is intended for username/password authentication and would require distributing a password. A long-lived token creates the credential-management risk the scenario excludes, while an instance name is not a secure authentication secret.

Question 2

New Multiple answers

Topic: Authentication Methods

Skill tested: Configure identity entities and groups to centralize policy assignment across human authentication methods.

A company has engineers authenticating through two separate Vault auth mounts during a staged identity-provider migration. The same engineer may therefore have distinct Vault aliases, but the company wants one durable identity record and consistent policy assignment. The team must avoid duplicating policy configuration on every alias and must retain the ability to grant shared access to a project group. Which TWO design choices meet these requirements? Select TWO.

Correct Answer: A. Add the entity to an identity group and assign the shared project policy to that group.; E. Associate each auth-method alias for the engineer with the same Vault entity.
Explanation:

A Vault entity represents a durable identity, while aliases connect that entity to identities issued by particular auth methods. Linking the engineer's aliases to one entity preserves a unified identity during the migration. An identity group can collect entities and receive shared policies, avoiding repeated direct assignments. Separate entities fragment the identity, an alias is not a token accessor, and assigning the policy to an auth mount would not provide the required group-specific access control.

Question 3

New Single answer

Topic: Authentication Methods

Skill tested: Authenticate through the Vault API using an enabled auth mount and its login endpoint.

A deployment automation process must authenticate to Vault over HTTPS without using an interactive shell. Its auth method is already enabled at the default `approle/` path, and the process has a role ID and a secret ID supplied securely at runtime. The automation needs a Vault client token in the login response before making subsequent API requests. Which request is the appropriate next step?

Correct Answer: D. Send the role ID and secret ID to `POST /v1/auth/approle/login` and use the returned client token.
Explanation:

AppRole login is performed by submitting the role ID and secret ID to the auth method's login endpoint, `POST /v1/auth/approle/login`. A successful response contains authentication data, including the client token used for later requests. The mount and auth system endpoints configure Vault rather than authenticate this workload, and the login operation is a POST rather than a GET. This assumes the default mount path stated in the scenario.

Question 4

New Single answer

Topic: Vault policies

Skill tested: Use path-specific capabilities to grant least-privilege access to KV v2 secrets.

An application team uses KV version 2 mounted at `kv/`. It must read the current value of `kv/prod/payments` through the API, but it must not create, update, delete, or list secrets. A reviewer proposes a policy granting `read` on `kv/prod/payments`. The policy must address the API path rather than the user-facing CLI path. Which policy stanza provides the required access?

Correct Answer: A. `path "kv/data/prod/payments" { capabilities = ["read"] }`
Explanation:

KV v2 stores and serves secret data through the API path containing `data/`, so the relevant policy path is `kv/data/prod/payments`. The `read` capability permits reading that secret data without granting write or delete access. The CLI-facing path without `data/` does not match the KV v2 API endpoint. The metadata path addresses metadata operations, and the wildcard policy grants far more access than required.

Question 5

New Multiple answers

Topic: Vault policies

Skill tested: Distinguish Vault capabilities for secret access, listing, and policy administration.

A security team is reviewing three narrowly scoped policies. A support role should be able to discover names under a KV v2 path without reading their values. A deployment role must write a secret at a known path but must not read it. A separate operator role must manage a policy document through Vault's policy API. The team wants to avoid granting capabilities merely because they seem related to a task. Which THREE capability assignments match these requirements? Select THREE.

Correct Answer: A. Grant `create` and `update` on the appropriate KV v2 data path for writing secret data.; B. Grant `sudo` on the policy API path to permit policy administration.; C. Grant `list` on the appropriate KV v2 metadata path for discovering secret names.
Explanation:

KV v2 uses its metadata API path for listing names, while actual secret values are accessed through its data API path. A write-only deployment role needs write capabilities such as `create` and `update`, not `read`. Vault's policy-management endpoints are privileged operations for which `sudo` is relevant in addition to the required path access. Reading the data path would expose values, and listing the data path is not a substitute for listing KV v2 metadata.

Question 6

New Single answer

Topic: Vault tokens

Skill tested: Choose service or batch tokens according to persistence, renewal, and operational requirements.

A build system performs one short, noninteractive Vault operation per job. The job does not need token renewal, token lookup, or token revocation by accessor, and the organization wants to reduce the storage and management overhead associated with persistent token records. The token must still carry the job's assigned policies and expire according to its configured lifetime. Which token type best fits?

Correct Answer: B. A batch token issued for the job's short-lived operation.
Explanation:

Batch tokens are designed for lightweight, short-lived operations and do not have the service-token lifecycle features that this job explicitly does not require. They can carry policies and have a configured lifetime, making them suitable for the stated one-off work. A renewable service token adds unnecessary lifecycle management, while root access and an unbounded orphan token violate least privilege and the expiration requirement.

Question 7

New Multiple answers

Topic: Vault tokens

Skill tested: Evaluate token TTL effects and accessor use for safe operational token management.

An operations team issues service tokens to an integration that occasionally runs longer than expected. The integration needs renewable tokens, while security staff must be able to investigate token metadata and revoke a token if its secret value is suspected to have leaked. They must not be able to recover or use the token value from their monitoring system. Which TWO actions support these requirements? Select TWO.

Correct Answer: A. Configure an appropriate renewable token TTL and have the integration renew the token before expiration, subject to its maximum TTL.; B. Store the token accessor in monitoring and use accessor operations to look up permitted metadata or revoke the associated token.
Explanation:

A renewable service token can have its TTL extended through renewal, but renewal remains subject to the token's maximum TTL and other applicable constraints. An accessor is a separate identifier that supports limited token operations, including lookup and revocation, without exposing the token secret itself. Storing token values increases compromise risk. A zero TTL does not provide the requested bounded lifecycle, and an accessor is not an authentication credential from which to create a child token.

Question 8

New Single answer

Topic: Vault tokens

Skill tested: Identify root-token lifecycle practices and apply root credentials only for exceptional administration.

During an isolated Vault bootstrap, an administrator uses a root token to complete initial setup. The organization requires that routine workloads never depend on root credentials and that the bootstrap credential not remain usable after setup. Which operational practice best satisfies this requirement?

Correct Answer: A. Create least-privilege administrative policies and tokens for ongoing work, then revoke the root token.
Explanation:

A root token has broad, unrestricted authority and should be reserved for exceptional bootstrap or recovery tasks. After creating appropriate policies and non-root administrative credentials, revoking the bootstrap root token removes its ability to authorize further actions. Periodic or child root tokens preserve excessive privilege, and storing the root token in a secrets engine leaves a highly sensitive credential available for routine retrieval.

Question 9

New Single answer

Topic: Vault leases

Skill tested: Renew a dynamic-secret lease before expiry while respecting its configured maximum lifetime.

A reporting job obtains a dynamic database credential with a lease duration shorter than the job's variable runtime. The credential remains valid during its current lease, and the job needs to continue using it when the initial duration is nearly exhausted. The database role and Vault policy permit renewal, but the lease has a finite maximum lifetime. What should the job do?

Correct Answer: D. Renew the lease using its lease ID before expiry, and stop relying on it if renewal is denied or the maximum lifetime is reached.
Explanation:

A lease ID identifies a leased secret and is used to renew or revoke that lease. Renewal can extend the lease when allowed, but it cannot exceed the applicable maximum lifetime; the job must handle denial or expiry rather than assume indefinite validity. Requesting the secret again generally obtains a new credential rather than renewing the old lease. Token renewal does not automatically renew every secret lease, and revoking a dynamic database lease can invalidate the issued credential.

Question 10

New Single answer

Topic: Secrets engines

Skill tested: Select KV v2 for versioned static secrets and use its API path correctly.

A release process stores configuration values that change infrequently. Engineers need the ability to inspect previous versions and restore a value after an accidental update. The values are not database credentials, and the team does not need Vault to generate them dynamically. Which approach best meets the requirements?

Correct Answer: B. Enable KV v2 and use its versioned secret operations for the configuration values.
Explanation:

KV v2 is appropriate for static key-value data when version history and recovery from accidental changes are required. It retains secret versions according to its configuration and supports version-aware operations. The database engine generates and manages dynamic database credentials rather than general configuration values. Transit provides cryptographic operations rather than ordinary versioned secret storage, and KV v1 does not provide KV v2's version-history behavior.

Question 11

New Multiple answers

Topic: Secrets engines

Skill tested: Choose response wrapping and dynamic database credentials to reduce secret exposure and standing access.

A platform team has two requirements. First, a provisioning service must hand a bootstrap secret to another service without placing the secret itself in a queue; the recipient should retrieve it once using a short-lived handoff value. Second, application instances need database credentials that Vault can issue with limited lifetimes and revoke when no longer needed. Which TWO Vault capabilities directly address these requirements? Select TWO.

Correct Answer: D. Use response wrapping to place the bootstrap response in a cubbyhole and pass the wrapping token to the recipient.; E. Use the database secrets engine to issue dynamic credentials through a configured database role.
Explanation:

Response wrapping returns a short-lived wrapping token rather than exposing the wrapped response directly; the recipient unwraps it to retrieve the response from the cubbyhole. The database secrets engine can generate credentials according to a configured role and associate them with leases that can be revoked or expire. KV versioning does not create a one-time handoff token, transit performs cryptographic operations rather than managing database accounts, and response wrapping does not rotate static database credentials.

Question 12

New Single answer

Topic: Encryption as a Service

Skill tested: Use Transit encryption and decryption endpoints without storing application plaintext in Vault.

A service must encrypt sensitive records before writing them to an external datastore. The security design requires Vault to perform encryption and decryption while the application retains the ciphertext; Vault must not become the system of record for the plaintext records. The team also wants a purpose-specific key rather than a general KV secret. Which design is most appropriate?

Correct Answer: B. Create a Transit key and call its encrypt and decrypt operations, storing the returned ciphertext in the external datastore.
Explanation:

The Transit secrets engine provides encryption as a service: the application sends plaintext to the encrypt endpoint and receives ciphertext, then submits ciphertext to the decrypt endpoint when needed. The application can store that ciphertext externally, while Vault manages the cryptographic key material. KV stores secrets rather than supplying this cryptographic workflow, the database engine manages database credentials, and token accessors are identifiers for token operations, not encryption keys.

Question 13

New Single answer

Topic: Encryption as a Service

Skill tested: Rotate a Transit key while preserving decryption access to ciphertext from earlier key versions.

A service uses a Transit key to encrypt new records. The organization periodically rotates encryption keys, but records encrypted before rotation must remain decryptable. The application can use the Transit API and does not want to re-encrypt every stored record during the rotation window. What should the Vault administrator do?

Correct Answer: A. Rotate the Transit key; new encrypt operations use the latest key version, while older ciphertext can be decrypted using its recorded version.
Explanation:

Transit key rotation creates a new key version. Encryption uses the latest version by default, while ciphertext identifies the version needed for decryption, allowing earlier data to remain readable without immediate bulk re-encryption. Deleting and recreating a key does not transparently re-encrypt prior ciphertext and can make it undecryptable. Disabling prior versions would conflict with the retention requirement, and exporting key material undermines centralized key management.

Question 14

New Single answer

Topic: Vault architecture fundamentals

Skill tested: Explain Vault sealing and unsealing behavior and the role of unseal key shares.

After a planned restart, a self-managed Vault cluster using a Shamir seal reports that it is sealed. Its storage backend still contains the encrypted data, and the operator has access to the required unseal key shares. An application team assumes the restart erased the secrets and asks for a storage restore. What is the best operational response?

Correct Answer: A. Provide the required unseal key shares to unseal Vault; sealing restricts access to encrypted data without deleting it.
Explanation:

Vault seals itself by removing access to its protected data encryption key, so it cannot decrypt stored data while sealed. Sealing does not itself erase the storage backend. With a Shamir seal, the configured threshold of unseal key shares is used to unseal the server. A client token cannot substitute for those shares, and reinitializing or deleting storage would risk destroying access to the existing data rather than restoring it.

Question 15

New Multiple answers

Topic: Vault architecture fundamentals

Skill tested: Configure Vault CLI environment variables to target the intended server and provide its token securely.

An operator alternates between a production Vault server and a test server using the Vault CLI. A shell profile currently sets `VAULT_ADDR` to production, and the operator wants one command to target test without changing the profile. The operator also wants subsequent CLI commands in the same shell to authenticate as a specific test user without placing the token in shell history. Which TWO practices meet these requirements? Select TWO.

Correct Answer: B. Prefix the test command with `VAULT_ADDR` set to the test server's HTTPS address.; C. Set `VAULT_TOKEN` in the shell environment for subsequent commands, sourcing it from a protected mechanism rather than typing it into a recorded command.
Explanation:

`VAULT_ADDR` selects the Vault server endpoint and can be overridden for a single command by prefixing that command with an environment assignment. `VAULT_TOKEN` supplies the token used by the CLI, so setting it in the shell environment supports later commands; it should be obtained securely to avoid exposing it in command history. A namespace is not a server address, and neither placing a token on the command line nor disabling TLS verification selects the intended server safely.