Exam Information
Free practice questions with explanations
HashiCorp HCVA0-003 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 Access management architecture
A platform team runs dozens of CI jobs that need to read database credentials from Vault. The jobs run on ephemeral VMs with no persistent identity, and the security team forbids embedding any Vault token or role credentials in pipeline configuration. The application team also wants applications to read secrets without modifying their code to call the Vault API. Which approach best meets these requirements?
Correct Answer: DExplanationVault Agent with auto-auth authenticates using a platform-provided method and then renders secrets through templates into files, so the application needs no Vault API code and no token is stored in pipeline configuration. Storing a periodic token in pipeline variables violates the stated constraint. Vault Secrets Operator is designed for Kubernetes clusters and does not fit ephemeral VMs. A proxy listener with a static secret_id still embeds a credential in the pipeline, which the security team forbids.
-
2 Question 2 Single choice Authentication Methods
A financial services firm must allow its on-premises Linux servers to authenticate to Vault without any stored secrets, and it wants administrators to log in with their corporate single sign-on identity. The security team also requires that group membership in the identity provider automatically controls which Vault policies a user receives. Which combination of auth method choices best satisfies these requirements?
Correct Answer: AExplanationCertificate-based TLS auth lets servers prove identity with a certificate they already hold, requiring no stored Vault secret. LDAP integrates with corporate directories and, together with external groups, maps directory group membership to Vault policies automatically. AppRole requires a secret_id, which is a stored secret. Token auth is not an authentication method for machines to provision identity. The Kubernetes method is only for workloads running in Kubernetes, not on-premises servers.
-
3 Question 3 Single choice Encryption as a Service
A payments team stores card data in a PostgreSQL database and wants the application to encrypt values before insert using Vault's transit secrets engine. Compliance requires that the team can rotate the encryption key every 90 days without re-encrypting the existing ciphertext in the database, and that old ciphertext remains decryptable. Which design satisfies these requirements?
Correct Answer: DExplanationTransit ciphertext carries a key version prefix such as vault:v2:, so after rotation Vault still decrypts earlier ciphertext using the retained key version. Rewrapping is optional and not required here. Re-encrypting the whole database is unnecessary work that the constraint specifically avoids. Exporting key material defeats the purpose of keeping keys inside Vault. The KV engine does not provide encryption as a service, and deleting old versions would destroy decryptability.
-
4 Question 4 Single choice Secrets engines
A team is designing secrets access for three workloads. Match each workload to the secrets engine that best fits its requirement.
1. A nightly batch job needs a database login that expires automatically after the run.
2. A legacy application needs a static API key that operators rotate manually every quarter.
3. An order service needs to encrypt customer emails before storing them, without the service ever holding the encryption key.
Targets: Database secrets engine (dynamic), KV version 2 secrets engine (static), Transit secrets engine (encryption as a service)Correct Answer: DExplanationThe Database secrets engine generates short-lived credentials with leases that expire, which fits the batch job. The KV version 2 engine stores static values that operators manage, which suits the legacy API key. Transit performs encryption on behalf of the caller, keeping the key inside Vault, which matches the order service. Using the KV engine for the batch job would give a static login that never expires, and using Transit for the legacy key would not store the key at all.
-
5 Question 5 Single choice Secrets engines
A security engineer must deliver a database password to a contractor's laptop through a chat channel. The password is stored in a KV version 2 secret at secret/data/ops/db. Policy forbids the contractor from ever seeing the raw value in the chat, but the contractor needs to retrieve it exactly once within five minutes. Which action should the engineer take?
Correct Answer: DExplanationResponse wrapping stores the secret response in a single-use cubbyhole and returns a wrapping token; the contractor unwraps it once within the wrap TTL, so the raw value is never in the chat. A child token with read access would expose a usable token that can read the secret repeatedly. Cubbyhole is per-token storage and is not a transfer mechanism for another person. Group membership requires the contractor to be authenticated and does not limit exposure in the way required.
-
6 Question 6 Multiple choice Vault leases
A team uses the database secrets engine to issue dynamic credentials to an analytics service. A reporting job occasionally needs to run for longer than the default lease, and an incident responder must cut off access immediately for one role's credentials without affecting others. Which two actions together meet these needs? (Choose two.)
Correct Answer: C, EExplanationRenewing a lease with an increment extends it while staying within the role's max TTL, which suits the long-running job. Revoking the single lease ID cuts access for only those credentials immediately. Prefix revocation would affect every lease under that path, including unrelated credentials. Rotating root credentials is a broad operation that does not target the affected role. Raising max_ttl enlarges the window indefinitely rather than meeting the stated need.
-
7 Question 7 Single choice Vault policies
A platform team writes a policy for its CI runners. Runners must read secrets under kv/data/ci/*, list the contents of kv/metadata/ci/ to discover names, and must not be able to read secrets outside ci or change any policy. A junior engineer proposes the following policy:
path "kv/*" {
capabilities = ["read", "list"]
}
Which change makes the policy meet the requirements?Correct Answer: DExplanationKV version 2 separates data and metadata paths, so reading values requires kv/data/ci/* and listing requires kv/metadata/ci/. Scoping both paths to ci and granting only read and list satisfies the constraints. Keeping the broad kv/* path would still expose other secrets, and adding a deny on create and update does not restrict read access. Writing kv/ci/* matches nothing in a KV v2 mount. Granting update on sys/policies would violate the requirement that runners cannot change policy.
-
8 Question 8 Order list Vault tokens
A security team must issue a short-lived, non-renewable batch token to a serverless function that starts thousands of times per day and must have no lease overhead on the server. The team also wants to revoke the function's tokens later without losing the parent token's audit context. Place these steps in the correct order. Choices: Drag the steps into the correct order.
Drag the steps into the correct order, or use the arrows.
- Enable the auth method the function uses and bind it to a role that issues batch tokens.
- Have the function log in through the auth method, receiving a batch token.
- Retrieve the token accessor from the login response and store it for later revocation.
- Create a token role that sets token_type to batch and a bounded token_ttl.
Correct Answer:- Create a token role that sets token_type to batch and a bounded token_ttl.
- Enable the auth method the function uses and bind it to a role that issues batch tokens.
- Have the function log in through the auth method, receiving a batch token.
- Retrieve the token accessor from the login response and store it for later revocation.
ExplanationThe token role defining batch token type and TTL must exist before any auth method can be configured to issue it, and the auth method must be enabled and bound before the function can log in. The accessor is only available after a successful login, and storing it enables later revocation through the accessor rather than the token itself. Doing the login before creating the role would fail or produce a service token instead. Recording the accessor before login is impossible because it comes from the response.
-
9 Question 9 Dropdown Vault architecture fundamentals
An operator runs the following commands to start a Vault server that must use an environment variable for its address and must be unsealed with the Shamir key shares generated at initialization. vault operator unseal Choices: Choose the correct value for each blank.
Choose the correct value for each blank.
export VAULT_ADDR=''
The operator must supply the threshold of key shares, and by default Vault requires key shares to unseal after initialization with 5 shares and a threshold of 3.Correct Answer:export VAULT_ADDR='https://127.0.0.1:8200'
The operator must supply the threshold of key shares, and by default Vault requires 3 key shares to unseal after initialization with 5 shares and a threshold of 3.ExplanationVAULT_ADDR expects a full URL including scheme, and the default Vault listener on port 8200 is the standard client address. The unseal threshold is the number of key shares needed, which is 3 in this configuration, not the total of 5. The VAULT_ADDR value must include https when TLS is enabled, so omitting the scheme is a common error. Port 8201 is the cluster port, not the client API port, and a threshold of 1 contradicts the stated configuration.
-
10 Question 10 Single choice Vault deployment architecture
A global retailer runs a self-managed Vault cluster with integrated Raft storage across three regions. The company needs a standby site that can take over within minutes if the primary region fails, but it must keep reads and writes local to each region for latency-sensitive applications. Performance replication is already in use for regional read scaling. Which replication mode should the team add to meet the disaster recovery requirement?
Correct Answer: CExplanationDisaster recovery replication maintains a passive secondary that can be promoted, which matches the minutes-level recovery goal. Performance secondaries do not take over writes; they forward writes to the primary, so a second performance secondary would not provide failover. Snapshot restore is a manual and slower process, and auto-unseal addresses unsealing rather than data replication. The retailer keeps performance replication for regional reads while adding DR for failover.
-
11 Question 11 Single choice Authentication Methods
A healthcare company has a Vault auth method where human users must log in with a Vault-native method. The security lead notices that a single engineer has accidentally been given two separate Vault accounts through two different methods, causing inconsistent policies. The company wants one identity record per person that aggregates the aliases from both methods so policies apply consistently. What should the administrator configure?
Correct Answer: CExplanationVault identity entities aggregate multiple aliases from different auth methods into one identity, and policies attached to the entity or to groups then apply consistently regardless of the login path. Deleting an account only removes one path and does not unify identities. Mount paths do not merge aliases, and attaching policies to the root token is both unsafe and ineffective for identity consolidation.
These are 11 of the 285 questions in the full HCVA0-003 pack.
Get All 285 QuestionsGet all 285 questions & answers
Full access options for HashiCorp HCVA0-003
Self-study
PDF Version
- 285 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
- 285 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
- 285 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 HCVA0-003 Exam (HashiCorp Certified: Vault Associate (003) Exam) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.