HashiCorp Vault Associate 003 Practice Exam
HashiCorp Certified: Vault Associate (003)
The HashiCorp Certified: Vault Associate (003) certification validates foundational Vault knowledge for cloud engineers, who may specialize in security, development or operations, tested on Vault 1.19. The exam covers nine objective areas: authentication methods, Vault policies, Vault tokens, Vault leases, secrets engines, encryption as a service, Vault architecture fundamentals, Vault deployment architecture and access management architecture. HashiCorp publishes no domain weights. This practice exam mirrors its question style with single-answer, multiple-answer and true or false questions, many built on scenarios, commands and policies to read.
600 questions in the bank
Question bank updated : questions, answers, explanations and chapters.
Certification Overview
- Exam name: Vault Associate 003
- Vendor: HashiCorp
- Exam code: 003
- Duration: 60 minutes
- Total questions: about 57
- Our practice exam pass mark: 70%
Who Should Take This Exam?
Cloud Engineer, Security Engineer, DevOps Engineer, Platform Engineer, Infrastructure Engineer, Site Reliability Engineer, Software Developer, Systems Administrator
Prerequisites
No formal prerequisite. HashiCorp lists basic terminal skills, an understanding of on-premises and cloud architecture and an understanding of security; professional experience is recommended, or practice in a personal demo setup.
Topics Covered
- Authentication methods
- Vault policies
- Vault tokens
- Vault leases
- Secrets engines
- Encryption as a service
- Vault architecture fundamentals
- Vault deployment architecture
- Access management architecture
Question Types
- Multiple Choice (Single Answer)
- Multiple Choice (Multiple Answers)
- True / False
Vault Associate 003 Practice Questions
Our question bank contains 600+ practice questions for this certification. Sample questions from each exam chapter. Expand a question to see the answer choices. With full access, you get unlimited practice exams with randomized questions from our full question bank.
Authentication methods
What is the main purpose of a Vault authentication method?
- A. Verify a client's identity and issue a token Correct answer
- B. Store static secrets for applications to read
- C. Encrypt application data with a named key
- D. Generate dynamic credentials for a database
Option A is correct because an auth method verifies who a client is and, on success, issues a Vault token that carries policies. Static secrets are stored by secrets engines such as KV, encryption with a named key belongs to Transit, and dynamic database credentials come from the database secrets engine.
Which auth method is designed mainly for applications and automated workflows rather than interactive users?
- A. github
- B. approle Correct answer
- C. ldap
- D. userpass
Option B is correct because AppRole is built for machines and automated workflows: the application logs in with a role ID and a secret ID. GitHub, LDAP and userpass all rely on a person's account, so they suit interactive users.
Which TWO auth methods let a workload authenticate with an identity issued by the platform it runs on? Pick the 2 correct responses below
- A. github
- B. aws Correct answer
- C. ldap
- D. kubernetes Correct answer
- E. userpass
Options B and D are correct because the aws and kubernetes methods authenticate a workload with an identity the platform issued, such as AWS IAM or EC2 identity and a Kubernetes service account JWT. GitHub, LDAP and userpass rely on user accounts or tokens rather than platform workload identity.
Vault policies
A service must read the secret stored at secret/app/config in a KV version 2 mount named secret. Which policy block grants that read?
- A. path "secret/app/config" { capabilities = ["read"] }
- B. path "secret/data/app/config" { capabilities = ["list"] }
- C. path "secret/data/app/config" { capabilities = ["read"] } Correct answer
- D. path "secret/metadata/app/config" { capabilities = ["read"] }
Option C is correct because a KV version 2 mount serves secret values under secret/data/, so reading secret/app/config needs read on secret/data/app/config. Option A uses the KV v1 layout, B grants only list, and D covers the metadata endpoint, not the value.
A deploy job writes new secrets and new versions of existing ones under secret/data/ci/ but is not allowed to read any value back. Which block fits?
- A. path "secret/data/ci/*" { capabilities = ["create", "read"] }
- B. path "secret/data/ci/*" { capabilities = ["create", "update"] } Correct answer
- C. path "secret/data/ci/*" { capabilities = ["update", "list"] }
- D. path "secret/data/ci/*" { capabilities = ["read", "update"] }
Option B is correct because on secret/data/ a new secret needs create and a new version of an existing one needs update, and neither needs read. Options A, C and D each include read or lack create or update, so they either expose values or fail the writes.
Which two configurations decide the ACL policies a token carries after a user logs in with an auth method? Pick the 2 correct responses below
- A. The policies value on the identity entity or group the login maps to Correct answer
- B. A policy tag stored in the KV metadata of the secrets the user reads
- C. The token_policies value on the auth method's user or role entry Correct answer
- D. A policy name set in the storage stanza of the server configuration file
- E. A policy list passed to vault auth tune for the auth mount
Options A and C are correct. After login, the token gets the policies set on the auth method's user or role entry (token_policies), plus the policies of the identity entity or group the login maps to. KV metadata has no policy tags, the storage stanza of the server configuration has no policy names, and vault auth tune has no policy list for logins.
Vault tokens
In vault token lookup output, which field shows how much time remains before the token expires?
- A. creation_ttl
- B. explicit_max_ttl
- C. ttl Correct answer
- D. period
Option C is correct. The ttl field is the time remaining before the token expires. creation_ttl is the TTL given at creation, explicit_max_ttl is the hard cap, and period is set only for periodic tokens.
A token shows ttl 10m, renewable true and explicit_max_ttl 0s in vault token lookup, and its mount maximum is 32 days. The holder runs vault token renew -increment=1h. What ttl does the token have afterwards?
- A. About 32 days
- B. About 1 hour 10 minutes
- C. About 1 hour Correct answer
- D. About 10 minutes, unchanged
Option C is correct. A renewal increment is the lifetime requested from now, not time added to what remains, so a 10 minute token renewed with -increment=1h has about 1 hour left. The 32 day mount maximum is far away and does not bind.
Vault leases
Which identifier does Vault return with a dynamic secret so that the secret can later be renewed or revoked?
- A. The request ID
- B. The role ID
- C. The lease ID Correct answer
- D. The token accessor
Option C is correct because a dynamic secret comes with a lease_id, and that lease ID is what vault lease renew, lookup and revoke take. The request ID only labels one API call, the role ID belongs to AppRole, and the token accessor refers to a token, not to a lease.
A client reads database/creds/readonly and receives the lease ID database/creds/readonly/Xk29fLq. What does the part before the random suffix show?
- A. The database host holding the user
- B. The token that made the request
- C. The path the credentials were read from Correct answer
- D. The policy that allowed the read
Option C is correct because a lease ID is built from the path the secret was read from, followed by a random suffix, so database/creds/readonly/ shows the mount, the creds endpoint and the role. It does not name the database host, the requesting token or a policy.
Secrets engines
Which secrets engine encrypts and decrypts data for an application without storing that data itself?
- A. Database
- B. Transit Correct answer
- C. KV version 2
- D. Cubbyhole
Option B is correct because Transit works as encryption as a service: it encrypts and decrypts data that the application sends and returns the result, so the application keeps the data and Vault does not. Database issues credentials, KV version 2 stores secrets, and Cubbyhole holds per-token data, so none of them fit.
Which secrets engine can act as a certificate authority that issues X.509 certificates?
- A. Consul
- B. TOTP
- C. SSH
- D. PKI Correct answer
Option D is correct because the PKI secrets engine can act as a certificate authority and issue X.509 certificates. Consul generates Consul ACL tokens, TOTP generates one-time codes, and SSH signs SSH keys or issues one-time SSH passwords.
Encryption as a service
Which command makes the encryption service available at its default path on a freshly initialized cluster?
- A. vault secrets enable cubbyhole
- B. vault write sys/mounts/transit type=kv
- C. vault auth enable transit
- D. vault secrets enable transit Correct answer
Option D is correct because vault secrets enable transit mounts the Transit secrets engine at transit/, its default path. Transit is a secrets engine, so vault auth enable (option C) fails, since that command is for auth methods. Option A mounts a different engine (cubbyhole), and option B mounts a kv engine at the transit path, which is not the encryption service.
Setting auto_rotate_period to 0 on a transit key turns off automatic rotation for that key.
- A. True Correct answer
- B. False
True. Setting auto_rotate_period to 0 on a transit key disables automatic rotation, which is also the default. A non-zero value, such as 720h, makes Vault add a new key version on that interval.
Vault architecture fundamentals
Vault treats its storage backend as untrusted. What happens to a value before Vault writes it to that backend?
- A. The barrier encrypts it with one of the unseal key shares
- B. The barrier encrypts it with the keyring's encryption key Correct answer
- C. The listener encrypts it with the TLS key of the API address
- D. The barrier encrypts secret values but leaves policies in plaintext
Option B is correct because Vault treats the storage backend as untrusted, so the barrier encrypts every value with the keyring's active encryption key before it is written. Unseal key shares only rebuild the root key and never encrypt data (A), the listener's TLS key protects traffic in transit only (C), and policies pass through the barrier like every other value (D).
Running vault operator rotate on an unsealed Shamir cluster issues a new set of unseal key shares.
- A. True
- B. False Correct answer
False. vault operator rotate only installs a new encryption key term in the keyring. The unseal key shares are replaced with vault operator rekey, so rotate leaves the existing shares and threshold unchanged.
Vault deployment architecture
A three-node integrated storage cluster keeps accepting writes after one node fails.
- A. True Correct answer
- B. False
True. Three nodes have a quorum of two, so the cluster still has a majority after one node fails and keeps accepting writes.
Each unseal key share must reach a different holder, encrypted to that holder's own public key. Which vault operator init flag supplies those public keys?
- A. -key-shares
- B. -pgp-keys Correct answer
- C. -root-token-pgp-key
- D. -recovery-pgp-keys
Option B is correct because -pgp-keys supplies the public keys used to encrypt each unseal key share, one per holder. -key-shares only sets how many shares exist, -root-token-pgp-key encrypts the initial root token, and -recovery-pgp-keys applies to recovery keys under auto-unseal.
Access management architecture
Which TWO methods can a Vault Agent auto_auth block use to obtain its token? Pick the 2 correct responses below
- A. github
- B. approle Correct answer
- C. userpass
- D. okta
- E. kubernetes Correct answer
Options B and E are correct because Vault Agent auto-auth supports methods such as approle and kubernetes, which let a workload log in with a role ID and secret ID or with its service account token. GitHub, userpass and Okta are Vault server auth methods meant for people, and they are not available as Agent auto-auth methods.
An application should send its Vault API calls to 127.0.0.1:8100, where a local Vault Agent receives them. Which Agent setting creates that local endpoint?
- A. A sink block of type file with path 127.0.0.1:8100
- B. A listener block of type tcp with address 127.0.0.1:8100 Correct answer
- C. A vault block with address set to http://127.0.0.1:8100
- D. A pid_file setting with the value 127.0.0.1:8100
Option B is correct because a listener block of type tcp makes Agent open a local endpoint at that address and serve client requests there. The vault block holds the address of the upstream Vault server, a sink block writes the auto-auth token to a file, and pid_file is a file path for the process ID, so none of the other options creates a listening endpoint.
Free Study Guide
Read the free HashiCorp Vault Associate 003 study guide: every exam topic explained in plain English, with diagrams, exam tips and the mistakes to avoid.
More HashiCorp Practice Exams
Practice with realistic mock exams to prepare for your HashiCorp certification.