Exam Information
Free practice questions with explanations
HashiCorp Vault-Associate Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 11
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice 1 Compare authentication methods
A payments company runs a nightly batch job on Kubernetes pods that must read database credentials from Vault. The security team requires that no long-lived secret be stored in the cluster, that the pods authenticate using their Kubernetes service account identity, and that access be restricted per namespace. Developers also need occasional interactive access from laptops through single sign-on with their corporate identity provider. Which combination of authentication methods best meets these requirements?
Correct Answer: DExplanationThe Kubernetes auth method lets pods log in with their service account JWT, so no static secret is stored in the cluster, and roles can be bound to specific service account names and namespaces. Developers authenticating through the corporate identity provider with single sign-on map naturally to the OIDC auth method. Userpass requires stored passwords and does not use pod identity. AppRole's secret ID would be a long-lived secret stored in the cluster, violating the requirement. AWS auth is for AWS-hosted workloads, and token auth is not a human login method suited to SSO.
-
2 Question 2 Single choice 10 Explain encryption as a service
A healthcare SaaS provider uses the Transit secrets engine to encrypt patient records before writing them to its database. Compliance requires that, after a key rotation, newly written data use the latest key version, while previously encrypted records remain readable without re-encrypting the entire dataset during business hours. The platform team has a 2-hour maintenance window per month and wants minimal application changes. Which action best meets these requirements?
Correct Answer: BExplanationRotating a Transit key creates a new key version; new encryptions use the latest version, while the ciphertext prefix records the version used, so decrypt keeps working for older records without re-encryption. Deleting the key destroys the ability to decrypt existing data, and exporting key material is not possible for keys that are not marked exportable and defeats the purpose. Convergent encryption is a property set at key creation and concerns deterministic output, not rotation.
-
3 Question 3 Single choice 2 Create Vault policies
A platform team has written a policy for a CI service that must read secrets under the kv-v2 mount at secret/ for the path ci/build-service/ only, and must be able to create and update secrets there. The engineer wrote the path secret/data/ci/* with capabilities read, create, update, and also added a second stanza for secret/metadata/ci/* with capabilities list. A reviewer notes that the CI service is also able to read secret/data/ci/deploy-keys, which must stay inaccessible. What is the most appropriate change?
Correct Answer: CExplanationVault policy paths are prefix matches when they end in a glob, so secret/data/ci/* covers deploy-keys as well. Narrowing the path to secret/data/ci/build-service/* and scoping the metadata stanza to the same prefix enforces least privilege. An explicit deny would work for one path but leaves the broad grant in place and is fragile. The path secret/ci/... does not match the kv-v2 data layout, and sudo does not grant create or update on the wildcard.
-
4 Question 4 Single choice 3 Assess Vault tokens
A data pipeline issues several thousand short-lived tokens per hour to workers that each run for under five minutes and never renew. The architecture team wants to minimise storage load on the Vault storage backend and avoid the cost of token revocation tracking, while keeping the tokens bound to the parent lifecycle so that workers cannot outlive their orchestrator. Which token type should the team select, and what is the reason it fits?
Correct Answer: BExplanationBatch tokens are encrypted, self-contained tokens that Vault does not persist, which reduces storage load and makes high-volume issuance cheap. They cannot be renewed and have no accessor, which suits short-lived workers. Service tokens are persisted and support renewal and accessors, adding storage overhead the team wants to avoid. Root tokens are a security risk and not a workload pattern. Periodic service tokens are still persisted and renewable, which does not address the storage goal.
-
5 Question 5 Multiple choice 4 Manage Vault leases
A team uses the database secrets engine to issue dynamic credentials to a reporting service. The reporting job runs for up to 6 hours, but the security policy caps each credential at a 1-hour maximum lifetime, and an incident response procedure must be able to cut off access immediately for one compromised consumer without affecting others. Which two actions together meet these requirements? (Choose two.)
Correct Answer: A, CExplanationRenewing the lease before expiry extends access in increments while keeping each lease bounded by the role's max_ttl, allowing a 6-hour job within policy limits by renewing as needed. Revoking the single lease ID cuts off exactly the compromised consumer without touching others. Setting a 6-hour default TTL breaks the 1-hour cap. Revoking the prefix affects every consumer, and deleting the role does not revoke existing leases.
-
6 Question 6 Drag and drop 5 Compare and configure Vault secrets engines
A company is reviewing credentials across three applications. Each requirement below must be matched to the secrets engine behaviour that best satisfies it. Match each requirement to the secrets engine approach that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Generate a unique database login per application instance that expires automaticallyStore a third-party API key that the vendor issues and rotates only manuallyEncrypt application payloads without Vault ever storing the plaintext dataPKI secrets engine with a short-lived certificate roleTransit secrets engineDynamic secrets from the database secrets engineCubbyhole secrets engine for per-token private storageStatic secrets in the KV secrets engineCorrect Answer:- Generate a unique database login per application instance that expires automatically → Dynamic secrets from the database secrets engine
- Store a third-party API key that the vendor issues and rotates only manually → Static secrets in the KV secrets engine
- Encrypt application payloads without Vault ever storing the plaintext data → Transit secrets engine
ExplanationDynamic secrets are created on demand with leases, which suits unique, auto-expiring database logins. A vendor-issued API key that changes only by hand is a static secret, stored and versioned in KV. The Transit engine performs encryption as a service and does not store the data it protects. PKI issues certificates rather than database logins, and cubbyhole is private per-token storage, so neither matches the requirements.
-
7 Question 7 Order list 6 Utilize Vault CLI
A new operator must configure a Vault server that has just been initialised and unsealed so that a CI job authenticates with AppRole and reads secrets from a KV v2 mount named apps. The operator is working from a workstation with the CLI installed and must do this without using the root token for day-to-day work. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Retrieve the role ID and generate a secret ID for the CI job to use
- Export the VAULT_ADDR environment variable and log in with the root token
- Enable the kv-v2 secrets engine at the path apps
- Enable the approle auth method and create a role bound to that policy
- Write a policy file granting read on apps/data/ci/* and apply it with vault policy write
Correct Answer:- Export the VAULT_ADDR environment variable and log in with the root token
- Enable the kv-v2 secrets engine at the path apps
- Write a policy file granting read on apps/data/ci/* and apply it with vault policy write
- Enable the approle auth method and create a role bound to that policy
- Retrieve the role ID and generate a secret ID for the CI job to use
ExplanationThe operator must first set the server address and authenticate with the root token, since no other identity exists yet. The KV v2 mount has to exist before a policy can reference its data path. The policy must be written before a role can attach it. The AppRole method is enabled and the role created only after the policy exists. Credentials for the CI job, the role ID and secret ID, are generated last, once the role is in place.
-
8 Question 8 Single choice 7 Utilize Vault UI
A junior administrator needs to let a support team view and update secrets under the kv-v2 mount at support/ through the Vault web UI, but the team must not be able to enable or disable secrets engines or edit policies. The administrator has created a userpass user and a policy. When the support user logs in to the UI, the Secrets tab shows the support/ mount, but clicking a secret returns a permission denied error. Which change is most likely required?
Correct Answer: DExplanationIn KV v2, the UI reads secret values from the data path and metadata from the metadata path, so a policy that only covers support/* at the mount level does not map to those sub-paths in the expected way. Granting read and list on support/data/* and support/metadata/* resolves the permission denied error while keeping engine and policy administration out of reach. Sudo is not needed for ordinary secret reads and would be overbroad. The UI works with CLI-configured methods, and granting access to sys/policies would expose policy editing, which the team must not have.
-
9 Question 9 Dropdown 8 Be aware of the Vault API
A monitoring script must retrieve a secret from the KV v2 mount named apps at the path config/db, using the Vault HTTP API with curl. The script already holds a valid client token in the variable VAULT_TOKEN and the Vault server listens on https://vault.internal:8200. Complete the curl command by selecting the correct value for each blank.
Choose the correct value for each blank.
curl --header "X-Vault-Token: $VAULT_TOKEN" https://vault.internal:8200/v1/apps//config/dbCorrect Answer:curl --header "X-Vault-Token: $VAULT_TOKEN" --request GET https://vault.internal:8200/v1/apps/data/config/db
ExplanationReading a KV v2 secret value uses a GET request against the data sub-path of the mount, so the full path is apps/data/config/db. The metadata sub-path returns version and lifecycle information rather than the secret value. A POST or PUT would write rather than read, and LIST is used on a directory path with a trailing slash, not a single secret.
-
10 Question 10 Single choice 9 Explain Vault architecture
A financial firm runs a three-node integrated Raft cluster in two data centres. During a planned network migration, the firm must rotate the root key, and it must avoid any period where a single operator holding a key share could unseal the cluster alone. The firm's policy also states that unseal keys must never be stored together in one location. Which design choice best satisfies these constraints?
Correct Answer: BExplanationAuto-unseal delegates unsealing to a cloud KMS, so no operator must hold a key to bring nodes up, and recovery keys, which remain under Shamir splitting, are distributed to separate custodians so no one person can act alone. A threshold of one defeats the requirement that no single operator be able to unseal. Storing all keys on the leader violates the requirement that they not be kept together. Keeping the root token alongside the secrets undermines separation of duties.
-
11 Question 11 Single choice 10 Explain encryption as a service
A retail company must encrypt customer email addresses before storing them in a relational database. The application team wants to search by email address for login, so the encrypted values must be deterministic for the same input, and the security team requires that rotation of the encryption key must not force an immediate re-encryption of existing rows. Which Transit configuration best meets these requirements?
Correct Answer: CExplanationConvergent encryption requires derived set to true; with a context supplied for each encryption, the same plaintext and context produce the same ciphertext, enabling lookup by encrypted value. Rotating the key creates a new version while older ciphertexts remain decryptable, so the rotation requirement is met. A standard key with random nonces produces different ciphertext each time, breaking search. Exporting the key defeats the purpose of Transit. Auto-rotation alone does not provide determinism, and an empty context is not the mechanism for it.
These are 11 of the 57 questions in the full Vault-Associate pack.
Get All 57 QuestionsGet all 57 questions & answers
Full access options for HashiCorp Vault-Associate
Self-study
PDF Version
- 57 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 57 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 57 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the Vault-Associate Exam (HashiCorp Certified: Vault Associate (002)) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.