HashiCorp HCVA0-003 HashiCorp Certified: Vault Associate (003) Exam Exam Practice Test
HashiCorp Certified: Vault Associate (003) Exam Questions and Answers
From the options below, select the auth methods that are better suited for machine-to-machine authentication (select five):
A Jenkins server is using the following token to access Vault. Based on the lookup shown below, what type of token is this? $ vault token lookup hvs.FGP1A77Hxa1Sp6Pkp1yURcZB
Key Value
--- -----
accessor RnH8jtgrxBrYanizlyJ7Y8R
creation_time 1604604512
creation_ttl 24h
display_name token
entity_id n/a
expire_time 2025-11-06T14:28:32.8891566-05:00
explicit_max_ttl 0s
id hvs.FGP1A77Hxa1Sp6KRau5eNB
issue_time 2025-11-06T14:28:32.8891566-05:00
meta < nil >
num_uses 0
orphan false
path auth/token/create
period 24h
policies [admin default]
renewable true
ttl 23h59m50s
type service
After issuing the command to delete a secret, you run a vault kv list command, but the path to the secret still seems to exist. What command would permanently delete the path from Vault?

What is the proper command to enable the AWS secrets engine at the default path?
What API endpoint is used to manage secrets engines in Vault?
Which of the following policies would permit a user to generate dynamic credentials on a database?
Which of the following are accurate statements regarding the use of a KV v2 secrets engine (select three)?
True or False? Once you create a KV v1 secrets engine and place data in it, there is no way to modify the mount to include the features of a KV v2 secrets engine.
Select the policies below that permit you to create a new entry of environment=prod at the path /secrets/apps/my_secret (select three).
Below is a list of parent and child tokens and their associated TTL. Which token(s) will be revoked first?
How does the Vault Secrets Operator (VSO) assist in integrating Kubernetes-based workloads with Vault?
From the options below, select the benefits of using a batch token over a service token (select four).
How long does the Transit secrets engine store the resulting ciphertext by default?
Which scenario most strongly indicates a need to run a self-hosted Vault cluster instead of using HCP Vault Dedicated?
By default, what TCP port does Vault replication use?
You are using an orchestrator to deploy a new application. Even though the orchestrator creates a new AppRole secret ID, security requires that only the new application has the combination of the role ID and secret ID. What feature can you use to meet these requirements?
True or False? The Vault Secrets Operator does NOT encrypt client cache, such as Vault tokens and leases, by default in Kubernetes Secrets.
During a service outage, you must ensure all current tokens and leases are copied to another Vault cluster for failover so applications don’t need to authenticate. How can you accomplish this?
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)

From the unseal options listed below, select the options you can use if you ' re deploying Vault on-premises (select four).
Julie is a developer who needs to ensure an application can properly renew its lease for AWS credentials it uses to access data in an S3 bucket. Although the application would generally use the API, what is the equivalent CLI command to perform this action?
Which of the following features in Vault will replicate service tokens between clusters?
Which of the following tokens are representative of a batch token? (Select two)
When a lease is created, what actions can be performed by using only the lease ID? (Choose two)
Tanner manages a data processing application and needs to be sure the data being processed is encrypted so it is securely stored post-processing. Which secrets engines can encrypt data? (Select three)
In Vault, there are two main types of tokens, batch and service. Which of the following is true about the renewable capabilities of each?
You need a simple and self-contained HashiCorp Vault cluster deployment with minimal dependencies. Which storage backend is best suited for this use case, providing all configuration within Vault and avoiding external services?
Which of the following secrets engines can store static secrets in Vault for future retrieval?
True or False? The following policy permits a user to read secrets contained in the path secrets/cloud/apps/jenkins?
text
CollapseWrapCopy
path " secrets/cloud/apps/jenkins/* " {
capabilities = [ " create " , " read " , " update " , " delete " , " list " ]
}
What is the default value of the VAULT_ADDR environment variable?
True or False? The root and default policies can be deleted if they are not needed or being used.
You need to create a limited-privileged token that isn’t impacted by the TTL of its parent. What type of token should you create?
What header must be included in an API request in order to provide authentication validation?
Which of the following actions can be performed if you only had access to a token’s accessor? (Select four)
Suzy is a Vault user that needs to create and replace values at the path secrets/automation/apps/chef. Does the following policy permit her the permissions to do so?
text
CollapseWrapCopy
path " secrets/automation/apps/chef " {
capabilities = [ " create " , " read " , " list " ]
}
Which of the following best describes response wrapping?
True or False? You can create and update Vault policies using the UI.
True or False? Although AppRole is designed for machines, humans can use it to authenticate to Vault if you wish.
True or False? Once you authenticate to Vault using the API, subsequent requests will automatically be permitted without further interaction.
Kyle enabled the database secrets engine for dynamic credentials. Amy, the senior DBA, accidentally deleted the database users created by Vault, disrupting client applications. How can Kyle manually remove the leases in Vault?
True or False? Performing a rekey operation using the vault operator rekey command creates new unseal/recovery keys as well as a new root key?
To secure your applications, your organization uses certificates generated by a public CA. However, this strategy has proven expensive and you have to revoke certificates even though they have additional time left. What Vault plugin can be used to quickly generate X.509 certificates to secure your internal applications?
By default, what methods of authentication does Vault support? (Select four)
True or False? After rotating a transit encryption key, all data encrypted with the previous version must be rewrapped or re-encrypted with the new key.
There are a few ways in Vault that can be used to obtain a root token. Select the valid methods from the answers below. (Select three)
Your organization runs workloads on both AWS and Azure for production applications. The security team has requested that a single Vault authentication mechanism be enabled to support applications on both public cloud platforms. Which of the following would be a valid auth method you can use?
You have logged into the Vault UI and see this screen. What Vault component is being enabled in the screenshot below?

All Vault instances, or clusters, include two built-in policies that are created automatically. Choose the two policies below and the correct information regarding each policy. (Select two)
You have enabled the Transit secrets engine on your Vault cluster to provide an " encryption as a service " service as your team develops new applications. What is a prime use case for the Transit secrets engine?
Your Azure Subscription ID is stored in Vault and you need to retrieve it via Vault API for an automated job. The Subscription ID is stored at secret/cloud/azure/subscription. The secret is stored on a KV Version 2 secrets engine. What curl command below would successfully retrieve the latest version of the secret?
You have a new team member on the Vault operations team. Their first task is to rotate the encryption key in Vault as part of the organization’s security policy. However, when they log in, they get an access denied error when attempting to rotate the key. The policy being used is below. Why can’t the user rotate the encryption key?
path " auth/* " {
capabilities = [ " create " , " read " , " update " , " delete " , " list " ]
}
path " sys/rotate " {
capabilities = [ " read " , " update " ]
}
How does the instance updates feature work when using the Vault Secrets Operator?
Your team uses the Transit secrets engine to encrypt all data before writing it to a MySQL database server. During testing, you manually retrieve ciphertext from the database and decrypt it to ensure the data can be read. After decrypting the data, you are worried something is wrong because the plaintext data isn’t legible. Why can you not read the original plaintext data after decrypting the ciphertext?
$ vault write transit/decrypt/krausen-key ciphertext=vault:v1:8SDd3WHDOjf7mq69C.....
Key Value
--- -----
plaintext Zml2ZSBzdGFyIHByYWN0aWNlIGV4YW1zIGJ5IGJyeWFuIGtyYXVzZW4=
Your organization uses a CI/CD pipeline to deploy its applications on Azure. During testing, you generate new credentials to validate Vault can create new credentials. The result of this command is below:
text
CollapseWrapCopy
$ vault read azure/creds/bryan-krausen
Key Value
--- -----
lease_id azure/creds/bryan-krausen/9eed0373-ca92-99b6-b914-779b7bb0e1d9
lease_duration 60m
lease_renewable true
client_id 532bf678-ee4e-6be1-116b-4e4221e445dd
client_secret be60395b-4e6b-2b7e-a4b3-c449a5c00973
What commands can be used to revoke this secret after you have finished testing? (Select three)
An Active Directory admin created a service account for an internal application. You want to store these credentials in Vault, allowing a CI/CD pipeline to read and configure the application with them during provisioning. Vault should maintain the last 3 versions of this secret. Which Vault secrets engine should you use?
A new application is being provisioned in your environment. The application requires the generation of dynamic credentials against the Oracle database in order to read reporting data. Which is the best auth method to use to permit the application to authenticate to Vault?
You have multiple Vault clusters in your environment, one for test and one for production. You have the CLI installed on your local machine and need to target the production cluster to make configuration changes. What environment variable can you set to target the production cluster?
You are using Vault CLI and enable the database secrets engine on the default path of database/. However, the DevOps team wants to enable another database secrets engine for testing but receives an error stating the path is already in use. How can you enable a second database secrets engine using the CLI?
Before data is written to the storage backend, the data is encrypted by which Vault feature?
Which of the following capabilities can be used when writing a Vault policy? (Select four)
Which two interfaces automatically assume the token for subsequent requests after successfully authenticating? (Select two)
By default, what happens to child tokens when a parent token is revoked?
You have deployed an application that needs to encrypt data before writing to a database. What secrets engine should you use?
An application is trying to use a dynamic secret in which the lease has expired. What can be done in order for the application to successfully request data from Vault?
Which of the following unseal options can automatically unseal Vault upon the start of the Vault service? (Select four)
True or False? To prepare for day-to-day operations, the root token should be safely saved outside of Vault in order to administer Vault.
True or False? After initializing Vault or restarting the Vault service, each individual node in the cluster needs to be unsealed.
Holly has discovered that a highly privileged dynamic credential with a very long lease time was created, which could negatively impact the organization’s security. What command can Holly use to invalidate the credential so it can’t be used without affecting other credentials?
Which of the following features are not available in the Vault Community version?
Which of the following statements best describes the difference between static and dynamic credentials in a secrets management system?
Which auth method is ideal for machine-to-machine authentication?
After a client has authenticated to Vault, what security feature is used to make all subsequent calls?
What is the default method of authentication after first initializing Vault?
The Vault Agent provides which of the following benefits? (Select three)
You are using Azure Key Vault for the auto-unseal configuration on your cluster. After the Vault service restarts, what command must you run to unseal Vault?
Which statement most accurately describes how the response wrapping feature functions in Vault?
What is the correct order that Vault uses to protect data?
Which of the following best describes the function of the Vault Secrets Operator in a Kubernetes environment?
An application has authenticated to Vault and has obtained dynamic database credentials with a lease of 4 hours. Four hours later, the credentials expire, and the application can no longer communicate with the backend database, so the application goes down. What should the developers instruct the application to do to prevent this from happening again while maintaining the same level of security?
Which is not a capability that can be used when writing a Vault policy?
Which of the following vault lease operations uses a lease _ id as an argument? Choose two correct answers.
Which of the following describes the Vault ' s auth method component?
You have enabled the database secrets engine at the database/ path and created the readonly role. You run vault read, and the output shown in the exhibit is returned.
Which command renews the given lease?
Exhibit:
$ vault read database/creds/readonly
lease_id database/creds/readonly/fyF5xDomnKeCHNZNQgStwBKD
lease_duration 1h
lease_renewable true
password Ala-ckirtymYaXACplHn
username v-token-readonly-6iRIcGv8tLpu816oblPY-1556567086
What environment variable overrides the CLI ' s default Vault server address?
A developer mistakenly committed code that contained AWS S3 credentials into a public repository. You have been tasked with revoking the AWS S3 credential that was in the code. This credential was created using Vault ' s AWS secrets engine and the developer received the following output when requesting a credential from Vault.

Which Vault command will revoke the lease and remove the credential from AWS?
Which of the following is a reason to rekey a Vault cluster?
Pick the 2 correct responses below.
What is a dynamic secret in HashiCorp Vault?
You want to generate a token with a TTL of 24 hours which can be renewed indefinitely.
Which flag would you use on the following command?
vault token create
Which of the following are true about Vault policies?
Pick the 2 correct responses below.
Which of the following statements are true about Vault policies? Choose two correct answers.
What is a benefit of response wrapping?
Which of the following cannot define the maximum time-to-live (TTL) for a token?
A web application uses Vault ' s transit secrets engine to encrypt data in-transit. If an attacker intercepts the data in transit which of the following statements are true? Choose two correct answers.
You can use the token accessor to look up the actual token ID.
You have been tasked with writing a policy that will allow read permissions for all secrets at path secret/bar. The users that are assigned this policy should also be able to list the secrets. What should this policy look like?
The following three policies exist in Vault. What do these policies allow an organization to do?

The key/value v2 secrets engine is enabled at secret/ See the following policy:

Which of the following operations are permitted by this policy? Choose two correct answers.



