HashiCorp Certified: Vault Associate (003)Exam (HCVA0-003) Free Practice Test
Question 1
You are using the Vault API to test authentication before modifying your CI/CD pipeline to properly authenticate to Vault. You manually authenticate to Vault and receive the response below. Based on the provided options, which of the following are true? (Select four)
* $ curl \
* --request POST \
* --data @payload.json \
* https://vault.krausen.com:8200/v1/auth/userpass/login/bryan.krausen | jq
* *******************************************************************************
* ******* RESPONSE BELOW ********************************************************
* *******************************************************************************
* {
* "request_id": "f758e8da-11b6-8341-d404-56f0c370a7fa",
* "lease_id": "",
* "renewable": false,
* "lease_duration": 0,
* "data": null,
* "wrap_info": null,
* "warnings": null,
* "auth": {
* "client_token": "hvs.CbzCNJCVWt63jyzyaJakgDwz",
* "accessor": "rffwXzKFcxvaQi6Vgo8tY4Lt",
* "policies": [
* "training",
* "default"
* ],
* "token_policies": [
* "training",
* "default"
* ],
* "metadata": {
* "username": "bryan.krausen"
* },
* "lease_duration": 84600,
* "renewable": true,
* "entity_id": "f1795f6a-c576-d619-b2d5-74c0aee08edb",
* "token_type": "service",
* "orphan": true
* }
* }
* $ curl \
* --request POST \
* --data @payload.json \
* https://vault.krausen.com:8200/v1/auth/userpass/login/bryan.krausen | jq
* *******************************************************************************
* ******* RESPONSE BELOW ********************************************************
* *******************************************************************************
* {
* "request_id": "f758e8da-11b6-8341-d404-56f0c370a7fa",
* "lease_id": "",
* "renewable": false,
* "lease_duration": 0,
* "data": null,
* "wrap_info": null,
* "warnings": null,
* "auth": {
* "client_token": "hvs.CbzCNJCVWt63jyzyaJakgDwz",
* "accessor": "rffwXzKFcxvaQi6Vgo8tY4Lt",
* "policies": [
* "training",
* "default"
* ],
* "token_policies": [
* "training",
* "default"
* ],
* "metadata": {
* "username": "bryan.krausen"
* },
* "lease_duration": 84600,
* "renewable": true,
* "entity_id": "f1795f6a-c576-d619-b2d5-74c0aee08edb",
* "token_type": "service",
* "orphan": true
* }
* }
Correct Answer: B,C,E,F
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
What API endpoint is used to enable and configure a secrets engine?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
True or False? The command vault lease revoke -prefix aws/ will revoke all leases associated with the secret engine mounted at /aws.
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
Your organization operates active/active applications across multiple data centers for high availability. Which Vault feature should be used in the secondary data centers to provide local access to secrets?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Which of the following are accurate statements regarding the use of a KV v2 secrets engine (select three)?
Correct Answer: A,B,C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
A new Vault administrator is writing a CURL command (shown below) to retrieve a secret stored in a KV v2 secrets engine at secret/audio/soundbooth but is receiving an error. What could be the cause of the error?
$ curl \
--header "X-Vault-Token: hvs.rffHw0iXqkRo19b2cjf93DM39WjpbN3J" \
https://vault.unlimited.com:8200/v1/secret/audio/soundbooth
$ curl \
--header "X-Vault-Token: hvs.rffHw0iXqkRo19b2cjf93DM39WjpbN3J" \
https://vault.unlimited.com:8200/v1/secret/audio/soundbooth
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
Tommy has written an AWS Lambda function that will perform certain tasks for the organization when data has been uploaded to an S3 bucket. Security policies for the organization do not allow Tommy to hardcode any type of credential within the Lambda code or environment variables. However, Tommy needs to retrieve a credential from Vault to write data to an on-premises database. What auth method should Tommy use in Vault to meet the requirements while not violating security policies?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
Which of the following features are not available in the Vault Community version?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 9
You want to integrate a third-party application to retrieve credentials from the HashiCorp Vault API. How can you accomplish this without having direct access to the source code?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
A user is assigned the following policy, and they can successfully retrieve secrets using the CLI. However, the user reports receiving an error message in the UI. Why can't the user access the secret in the Vault UI?
path "kv/apps/app01" { capabilities = ["read"] }
Successful retrieval using the CLI

(Error: Permission denied in UI)

path "kv/apps/app01" { capabilities = ["read"] }
Successful retrieval using the CLI

(Error: Permission denied in UI)

Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 11
Which of the following are benefits of using the Vault Secrets Operator (VSO)? (Select three)
Correct Answer: A,C,D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 12
You have deployed an application that needs to encrypt data before writing to a database. What secrets engine should you use?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 13
Which statement describes the results of this command: $ vault secrets enable transit
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 14
Which statement best describes the process of sealing a Vault instance?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 15
You need to decrypt customer data to provide it to an application. When you run the decryption command, you get the output below. Why does the response not directly reveal the cleartext data?
$ vault write transit/decrypt/phone_number ciphertext="vault:v1:tgx2vsxtlQRfyLSKvem..." Key Value
--- -----
plaintext aGFzaGljb3JwIGNlcnRpZmllZDogdmF1bHQgYXNzb2NpYXRl
$ vault write transit/decrypt/phone_number ciphertext="vault:v1:tgx2vsxtlQRfyLSKvem..." Key Value
--- -----
plaintext aGFzaGljb3JwIGNlcnRpZmllZDogdmF1bHQgYXNzb2NpYXRl
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).