Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

HashiCorp Vault-Associate Dumps 2026 with Free Practice Questions and Answers

Practise for the HashiCorp Certified: Vault Associate (002) exam with 13 original questions, each with an answer and explanation.

Topics: 1 Compare Authentication Methods, 10 Explain Encryption As A Service, 3 Assess Vault Tokens, 2 Create Vault Policies and 6 more.

Includes single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

Vault-Associate Practice Set Details

Vendor
HashiCorp
Exam Code
Vault-Associate
Questions On This Page
13
Exam Topics Covered
10 of 10
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
57
Certification
HashiCorp Security Automation
13 questions

HashiCorp Vault-Associate Exam Questions and Answers by Topic

1 Compare Authentication Methods

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A company runs Vault on-premises and needs workloads in several AWS accounts to authenticate without storing long-lived credentials. The workloads already receive IAM role credentials from their instance profiles, while human operators authenticate through the corporate identity provider. The security team requires Vault to verify workload identity using AWS-signed requests and does not want to introduce a separate token-distribution service. Which authentication method best meets the workload requirement?

Correct answer: B

The AWS auth method can validate AWS-signed identity requests and associate the resulting Vault token with policies bound to an IAM role or other AWS identity. This uses the workload's existing instance-profile credentials rather than a separately distributed secret. Userpass introduces stored credentials and is a poor workload identity mechanism. LDAP is suited to directory-backed human authentication, not AWS identity verification. Distributing a long-lived Vault token through instance metadata violates the stated requirement and bypasses the intended AWS identity validation.

Question 2

Added

Single Answer

A company has a workforce identity provider that supports OIDC, and employees must authenticate to Vault through the browser-based SSO flow. A separate group of automation jobs authenticates with AppRole. The identity team wants Vault policies to be assigned by group membership from the identity provider, while avoiding local Vault user accounts for employees. Which configuration best addresses the workforce requirement?

Correct answer: D

OIDC supports browser-based authentication through an identity provider, and Vault identity group and alias mappings can associate external group membership with Vault policies. This avoids maintaining local employee passwords in Vault. AppRole is suited to machine-oriented authentication and distributing SecretIDs to employees would not provide the requested SSO flow. Userpass creates local Vault credentials and does not satisfy the no-local-account requirement. A shared token prevents individual identity and group-based authorization.

2 Create Vault Policies

1 practice question on this topicWhat this topic covers

Question 3

Added

Multiple Answers

A platform team is creating a policy for an application that uses the KV version 2 engine mounted at `secret/`. The application must read the current value at `secret/data/payments/config` and inspect its version history through the corresponding metadata endpoint. It must not write, delete, or list any secrets. Select the two capabilities that should appear in the policy rules to meet these requirements with least privilege. (Choose two.)

Correct answer: A, E

KV v2 separates secret data from its metadata. Reading the current value uses the `secret/data/...` path, while reading version metadata uses `secret/metadata/...`; the requested least-privilege capabilities are `read` on both paths. `list` is for enumerating keys beneath a supported path and does not provide the requested value or version history. `update` would allow writes, which are explicitly prohibited. `delete` would permit destructive metadata operations and is also outside the requirement.

3 Assess Vault Tokens

2 practice questions on this topicWhat this topic covers

Question 4

Added

Single Answer

A CI system creates a short-lived Vault token for each build. A build launches a helper process that must be able to renew its token, and operators need to revoke the build's token later without asking the build to disclose the token itself. The token should not outlive its configured lifetime, and the helper does not need to create child tokens. Which token design best fits the requirements?

Correct answer: D

Service tokens support renewal when issued as renewable, and a token accessor can be used for management operations such as lookup and revocation without revealing the token value. A batch token is not renewable, so it cannot support the helper's renewal requirement. A periodic token can be renewed indefinitely and conflicts with the stated maximum-lifetime intent; child-token creation is unnecessary. Root tokens have broad authority and are not appropriate credentials for routine CI jobs.

Question 5

Added

Single Answer

An administrator must create a token for a one-time migration job. The job needs access only to the `migration` policy, runs for less than an hour, and must not be able to renew itself or create child tokens. The organization prefers low token-storage overhead for this short-lived use. Which token type is the best fit?

Correct answer: B

A batch token is designed for short-lived, high-volume token use and does not support renewal or child-token creation. Assigning only the migration policy and a short TTL limits the job's authority and lifetime. A renewable service token allows renewal and has greater lifecycle overhead than needed. A periodic service token can be renewed indefinitely, contradicting the bounded lifetime. A root token grants broad administrative authority and is inappropriate for a narrowly scoped migration job.

4 Manage Vault Leases

1 practice question on this topicWhat this topic covers

Question 6

Added

Order List

An application uses dynamic database credentials from Vault. During a controlled deployment, the operator must stop using the current credential, prevent it from being renewed, and invalidate it before the deployment continues. The application has recorded the credential's lease ID, and no other leases should be affected. Arrange the operator actions in the order they should be performed.

Drag the steps into the correct order, or use the arrows.

  1. Verify the application can connect using the fresh credential.
  2. Configure the application to request a fresh database credential.
  3. Use the recorded lease ID to revoke the credential's lease.
  4. Confirm that Vault reports the lease as revoked.
Correct answer:
  1. Use the recorded lease ID to revoke the credential's lease.
  2. Confirm that Vault reports the lease as revoked.
  3. Configure the application to request a fresh database credential.
  4. Verify the application can connect using the fresh credential.

Revocation by lease ID targets the specific issued credential and causes Vault to revoke the associated secret, rather than affecting unrelated leases. Confirming revocation before requesting and testing replacement credentials makes the transition explicit and prevents the old credential from remaining in use unnoticed. Requesting a new credential first would create overlapping credentials contrary to the stated deployment sequence. Testing before requesting the replacement is impossible, and revoking all leases would exceed the requested scope.

5 Compare and Configure Vault Secrets Engines

1 practice question on this topicWhat this topic covers

Question 7

Added

Drag And Drop

A company is consolidating several credential and encryption workflows in Vault. The database team needs credentials created on demand and revoked when their leases expire. The application team needs to store a small set of manually managed configuration values. A separate service needs encryption operations without giving its application access to key material. Match each requirement to the Vault engine that best provides it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Perform encryption operations without exposing key material
Generate leased database credentials on demand
Store manually managed application configuration
Transit secrets engine
Database secrets engine
KV secrets engine
Correct answer:
  • Generate leased database credentials on demand → Database secrets engine
  • Store manually managed application configuration → KV secrets engine
  • Perform encryption operations without exposing key material → Transit secrets engine

The database secrets engine can create dynamic credentials and associate them with leases, enabling revocation at expiry. KV is intended for storing and retrieving static, manually managed values. Transit provides cryptographic operations as a service while keeping key material within Vault. Using KV for generated database credentials would not supply the database-specific creation and revocation workflow. Transit does not act as a general-purpose configuration store or create database accounts.

6 Utilize Vault CLI

1 practice question on this topicWhat this topic covers

Question 8

Added

Single Answer

An operator is configuring a CLI session for a Vault cluster at `https://vault.example.net`. The cluster uses a private certificate authority, and the operator has a CA certificate file. The operator wants the CLI to validate the server certificate and avoid disabling TLS verification. Which environment configuration is the appropriate next step before running Vault CLI commands?

Correct answer: B

`VAULT_ADDR` identifies the Vault server, and `VAULT_CACERT` points the CLI to a CA certificate used to validate the server's TLS certificate. This preserves authenticated TLS verification with the private CA. Switching to HTTP provides no TLS protection, while `VAULT_SKIP_VERIFY=true` disables certificate validation. A CA certificate is not a Vault token, and a token file is not a CA certificate, so the other variable assignments confuse distinct credentials and trust material.

7 Utilize Vault UI

1 practice question on this topicWhat this topic covers

Question 9

Added

Single Answer

A Vault administrator must make a KV v2 engine available to a team using only the Vault UI. The team requires the mount to be named `team-secrets`, and the administrator must not overwrite or disable an existing mount. The UI shows that the path is currently unused. Which action should the administrator take?

Correct answer: C

The UI's Secrets area is where an authorized user enables a secrets engine. Selecting KV version 2 at the unused `team-secrets` mount creates the requested engine without disturbing existing mounts. A policy grants access but does not create a secrets engine, and policies do not have a KV version setting. Selecting KV version 1 does not meet the explicit requirement for a v2 mount. Token authentication is an authentication method, not a secrets engine.

8 Be Aware of the Vault API

1 practice question on this topicWhat this topic covers

Question 10

Added

Single Answer

A service on a private network must retrieve a secret from Vault using the HTTP API. It has already obtained a Vault token through its approved authentication workflow and stores the token in the `VAULT_TOKEN` environment variable. The secret is in a KV v2 mount named `secret`, at the logical key `apps/reporting`. The service uses `curl` and must request the secret data endpoint rather than the KV v1 endpoint. Which request is correct?

Correct answer: B

Vault's HTTP API accepts the token in the `X-Vault-Token` header. KV v2 reads secret contents from the `data` endpoint beneath the mount, producing `/v1/secret/data/apps/reporting`. The bearer authorization header and path shown in the second request do not match the standard Vault token header or KV v2 route. The metadata endpoint returns metadata rather than the secret data. Placing `data` before the mount uses the wrong API path.

9 Explain Vault Architecture

1 practice question on this topicWhat this topic covers

Question 11

Added

Dropdown

A newly started Vault cluster uses Shamir seal. Operators have unseal shares stored separately, and the cluster must become active after the required threshold is submitted. Complete the CLI command used by an operator to submit one share; do not include a seal migration or automated unseal configuration.

Choose the correct value for each blank.

Submit a share with `vault operator `.
Correct answer:

Submit a share with `vault operator unseal -address=https://vault.example.net`.

`vault operator unseal` submits a Shamir key share to the specified Vault server; the command is repeated with distinct shares until the configured threshold is reached. Supplying the address directs the operation to the intended cluster. `init` initializes a Vault instance and is not the share-submission operation. `seal` actively seals Vault rather than unsealing it. Skipping TLS verification is unnecessary and weakens transport security, while JSON formatting does not identify the target server.

10 Explain Encryption as a Service

2 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A payments application must encrypt customer fields before storing them in an external database. The application must never receive the encryption key, and ciphertext must carry enough information for Vault to identify the key version used. The team has already enabled the transit engine and created a named key. It plans to rotate that key quarterly, but existing records must remain decryptable without re-encrypting the whole database immediately. Which approach best satisfies these requirements?

Correct answer: C

Transit performs encryption and decryption operations without exposing the key material to the caller. Its ciphertext format includes key-version information, and key rotation creates a newer version while retaining prior versions for decryption. Reading key material from transit defeats the purpose of the engine and is not the normal transit workflow. KV versioning preserves secret data versions but does not provide transit encryption. Deleting old key versions would prevent decrypting ciphertext created with those versions.

Question 13

Added

Multiple Answers

A service encrypts application data through a Vault transit key named `orders`. The security team wants a planned rotation without interrupting encryption requests, and new ciphertext should use the newly rotated key version. Existing ciphertext must remain decryptable. The application is already authorized for transit encryption and decryption. Which two actions satisfy the rotation and continuity requirements? (Choose two.)

Correct answer: A, C

Rotating the transit key creates a new current version, which subsequent encryption operations use. Keeping prior versions allows Vault to decrypt ciphertext produced before rotation, so rotation need not be preceded by bulk re-encryption. Deleting and recreating the key risks losing the key versions required for old ciphertext. Granting access to key material is unnecessary because transit performs cryptographic operations inside Vault. Re-encrypting all stored values before rotation is not required for continued decryptability and would add avoidable operational work.

More Practice Questions

Get the Full HashiCorp Vault-Associate Dumps as PDF and Practice Test

13 questions are free on this page and the full set has 57. It comes as a PDF and an online practice test, with 90 days of free updates.