HCVA0-003 HashiCorp Certified: Vault Associate (003) Exam Questions and Answers
A developer has requested access to manage secrets at the path kv/apps/webapp01. You create the policy below which gives them the proper access:
path " kv/apps/webapp01 " {
capabilities = [ " read " , " create " , " update " , " list " ]
}
However, when the developer logs in to the Vault UI, they see the following screenshot and cannot access the desired secret. Why can’t the developer see the secrets they need?

Your co-worker has asked you to perform certain operations in Vault and has provided you with a token accessor (not the token itself). What Vault operations would you be allowed to perform using only the provided accessor? (Select three)
Over a few years, you have a lot of data that has been encrypted by older versions of a Transit encryption key. Due to compliance regulations, you have to re-encrypt the data using the newest version of the encryption key. What is the easiest way to complete this task without putting the data at risk?
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 " ]
}
A MySQL server has been deployed on Google Cloud Platform (GCP) to support a legacy application. You want to generate dynamic credentials against this MySQL server rather than use static credentials. What Vault secrets engine would you use to accomplish this?
You have enabled the Transit secrets engine and want to start encrypting data to store in Azure Blob storage. What is the next step that needs to be completed before you can encrypt data? (Select two)
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?
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?
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)
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 are configuring your application to retrieve a new PKI certificate upon provisioning. The Vault admins have given you an AppRole role-id and secret-id to inject into the CI/CD pipeline job that provisions your app. The application uses the credentials to successfully authenticate to Vault using the API. Which of the following is true about the step next required after authenticating to Vault?
You have successfully authenticated using the Kubernetes auth method, and Vault has provided a token. What HTTP header can be used to specify your token when you request dynamic credentials? (Select two)
You are the primary Vault operator. During a routine audit, an auditor requested the ability to display all secrets under a specific path in Vault without seeing the actual stored data. Which policy permits the auditor to display the stored secrets without revealing their contents?
A Fintech company is using Vault to store its static long-lived credentials so automated processes can quickly retrieve secrets. A user needs to add a new static secret for a new automated job. What CLI commands can be used to store a new static credential? (Select two)
Which of the following best describes the function of the Vault Secrets Operator in a Kubernetes environment?
What is the result of the following Vault command?
$ vault auth enable kubernetes
You have a long-running app that cannot handle a regeneration of a token or secret. What type of token should be created for this application in order to authenticate and interact with Vault?
Based on the following output, what command can Steve use to determine if the KV store is configured for versioning?
text
CollapseWrapCopy
$ vault secrets list
Path Type Accessor Description
---- ---- -------- -----------
automation/ kv kv_56f991b9 Automation team for CI/CD
cloud/ kv kv_4426c541 Cloud team for static secrets
cubbyhole/ cubbyhole cubbyhole_9bd538e per-token priv secret storage
data_team/ kv kv_96d57692 Data warehouse KV for certs
identity/ identity identity_0042595e identity store
network/ kv kv_3e53aaab Network team secret storage
secret/ kv kv_d66e2adc key/value secret storage
sys/ system system_d6f218a9 system endpoints
When Vault is sealed, which are the only two operations available to a Vault administrator? (Select two)
Which of the following statements are true about HCP Vault Dedicated? (Select three)
Which of the following unseal options can automatically unseal Vault upon the start of the Vault service? (Select four)
Mike’s Cereal Shack uses Vault to encrypt customer data to ensure it is always stored securely. They are developing a new application integration to send new customer data to be encrypted using the following API request:
text
CollapseWrapCopy
$ curl \
--header " X-Vault-Token: hvs.sf4vj1rFV5PvQSV3M9dcv832brxQFsfbXA " \
--request POST \
--data @data.json \
https://vault.mcshack.com:8200/v1/transit/encrypt/customer-data
What would be contained within the data.json file?
When generating a dynamic secret, what value is returned that a user can use to renew or revoke the lease?
Beyond encryption and decryption of data, which of the following is not a function of the Transit secrets engine?
True or False? After initializing Vault or restarting the Vault service, each individual node in the cluster needs to be unsealed.
After creating a dynamic credential on a database, the DBA accidentally deletes the credentials on the database itself. When attempting to remove the lease, Vault returns an error stating that the credential cannot be found. What command can be run to make Vault remove the secret?
Which of the following are benefits of using the Vault Secrets Operator (VSO)? (Select three)
Which of the following features are not available in the Vault Community version?
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 statement best explains the role and usage of storage backends in HashiCorp Vault?
Two screenshots are shown in the exhibit.
You expect the ACL Policies menu to be shown as seen in Image 1. Instead, the ACL Policies menu is not displayed, as in Image 2.
Why would this menu not be displayed?
You are performing a high number of authentications in a short amount of time. You ' re experiencing slow throughput for token generation. How would you solve this problem?
A user issues the following cURL command to encrypt data using the transit engine and the Vault AP:

Which payload.json file has the correct contents?
What information do you need to collect to use an entity alias in an ACL policy?
You would like to provision virtual machines (VMs) using infrastructure as code (IaC). The VMs require an OAuth token to access GCP services during provisioning. You are required to use tokens that can be generated and revoked automatically.
Which secrets engine would meet this need?
Which of the following statements describe the secrets engine in Vault? Choose three correct answers.
When an auth method is disabled all users authenticated via that method lose access.
Security requirements demand that no secrets appear in the shell history. Which command does not meet this requirement?
Examine the command below. Output has been trimmed.

Which of the following statements describe the command and its output?
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
To give a role the ability to display or output all of the end points under the /secrets/apps/* end point it would need to have which capability set?
Your DevOps team would like to provision VMs in GCP via a CICD pipeline. They would like to integrate Vault to protect the credentials used by the tool. Which secrets engine would you recommend?
What command creates a secret with the key " my-password " and the value " 53cr3t " at path " my-secrets " within the KV secrets engine mounted at " secret " ?
A system starts up 1000+ containers, all requiring connection to Vault upon its initial setup.
Which strategy will reduce I/O traffic to the storage backend?
Short-lived, dynamically generated secrets provide organizations with many benefits. Select the benefits from the options below. (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 storage backends support high availability? (Select four)
Tom needs to set the proper environment variable so he doesn’t need to first authenticate to Vault to retrieve dynamically generated credentials for a database server. What environment variable does Tom need to set first before running commands?
You have multiple Kubernetes pods that need frequent access to Vault to retrieve credentials for establishing connectivity to a backend database. You enable the Kubernetes auth method in Vault. What resource do you need to create within Kubernetes to complete this configuration?
What header must be included in an API request in order to provide authentication validation?
Which of the following tokens are representative of a batch token? (Select two)
Hanna is working with Vault and has been assigned a namespace called integration, where she stores all her secrets. Hanna configured her application to use the following API request, but the request is failing. What changes below will help Hanna correctly retrieve the secret? (Select two)
$ curl \
--header " X-Vault-Token:hvs.lzrmRe5Y3LMcDRmOttEjWoag " \
--request GET \
https://vault.example.com:8200/v1/secret/data/my-secret
After setting up a new HashiCorp Vault server with the default configurations, which method can be used to unseal Vault?
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?
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?
You have TBs of data encrypted by Vault stored in a database and are worried about Vault becoming unavailable and not being able to decrypt the data. Is it possible to export the encryption key to store it somewhere else in the event Vault becomes unavailable?
What command can be used to update a Vault policy named web-app-1 using the command line?
Your organization has many applications needing heavy read access to Vault. As these applications integrate with Vault, the primary Vault cluster’s performance is negatively impacted. What feature can you use to scale the cluster and improve performance?
Which of the following auth methods are intended for machine-to-machine authentication, and not necessarily human (operator) authentication? (Select four)
You are enabling a secrets engine in Vault using the CLI. What subcommands are available when using the vault secrets command? (Select five)
When a lease is created, what actions can be performed by using only the lease ID? (Choose two)
Which of the following are valid types of tokens available in Vault? (Select five)
Vault operators can create two types of groups in Vault. What are the two types?
When configuring Vault replication and monitoring its status, you keep seeing something called ' WALs ' . What are WALs?
Which of the following statements best describes the difference in cluster strategies between self-managed Vault and HashiCorp-managed Vault?
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)

Which of the following token attributes can be used to renew a token in Vault (select two)?
Which scenario most strongly indicates a need to run a self-hosted Vault cluster instead of using HCP Vault Dedicated?
Which of the following are accurate statements regarding the use of a KV v2 secrets engine (select three)?
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?
Given the following screenshot, how many secrets engines have been enabled by a Vault user?

You want to encrypt a credit card number using the Transit secrets engine. You enter the following command and receive an error. What can you do to ensure that the credit card number is properly encrypted and the ciphertext is returned?
$ vault write -format=json transit/encrypt/creditcards plaintext= " 1234 5678 9101 1121 "
Error: * illegal base64 data at input byte 4
You’ve set up multiple Vault clusters, one on-premises intended to be the primary cluster, and the second cluster in AWS, which was deployed for performance replication. After enabling replication, developers complain that all the data they’ve stored in the AWS Vault cluster is missing. What happened?
After decrypting data using the Transit secrets engine, the plaintext output does not match the plaintext credit card number that you encrypted. Which of the following answers provides a solution?
$ vault write transit/decrypt/creditcard ciphertext= " vault:v1:cZNHVx+sxdMEr....... "
Key: plaintext Value: Y3JlZGl0LWNhcmQtbnVtYmVyCg==
True or False? When encrypting data with the Transit secrets engine, Vault always stores the ciphertext in a dedicated KV store along with the associated encryption key.
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?
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?

According to the screenshot below, what auth method did this client use to log in to Vault?
(Screenshot shows a lease path: auth/userpass/login/student01)
True or False? The Vault Secrets Operator does NOT encrypt client cache, such as Vault tokens and leases, by default in Kubernetes Secrets.




