HashiCorp Certified: Vault Associate (003) Exam Questions and Answers
How does the Vault Secrets Operator (VSO) assist in integrating Kubernetes-based workloads with Vault?
Your company ' s security policies require that all encryption keys must be rotated at least once per year. After using the Transit secrets engine for a year, the Vault admin issues the proper command to rotate the key named ecommerce that was used to encrypt your data. What command can be used to easily re-encrypt the original data with the new version of the key?
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?
Below is a list of parent and child tokens and their associated TTL. Which token(s) will be revoked first?
Which of the following statements best describes the difference in cluster strategies between self-managed Vault and HashiCorp-managed Vault?
What is the default maximum time-to-live (TTL) for a token, measured in days?
Which of the following policies would permit a user to generate dynamic credentials on a database?
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?
True or False? All dynamic secrets in Vault are required to have a lease.
When using the Vault Secrets Operator, where is the secret written to after being retrieved from Vault?
From the unseal options listed below, select the options you can use if you ' re deploying Vault on-premises (select four).
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?

You are deploying Vault in a local data center, but want to be sure you have a secondary Vault cluster in the event the primary cluster goes offline. In the secondary data center, you have applications that are running, as they are architected to run active/active. Which type of replication would be best in this scenario?
What could you do with the feature found in the screenshot below (select two)?

Which of the following is NOT a valid way in which a lease can be revoked in Vault?
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?
Jason has enabled the userpass auth method at the path users/. What path would Jason and other Vault operators use to interact with this new auth method?
From the options below, select the auth methods that are better suited for machine-to-machine authentication (select five):
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.
Given the following policy, which command below would not result in a permission denied error (select two)?
path " secret/* " { capabilities = [ " create " , " update " ] allowed_parameters = { " student " = [ " steve " , " frank " , " jamie " , " susan " , " gerry " , " damien " ] } }
path " secret/apps/* " { capabilities = [ " read " ] }
path " secret/apps/results " { capabilities = [ " deny " ] }
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?
You have logged into the Vault UI and see this screen. What Vault component is being enabled in the screenshot below?

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 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 \
| 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
}
}
Vault is configured with the oidc auth method and you need to log in using the CLI. What command would you use to authenticate so you can make configuration changes to Vault?
You have a CI/CD pipeline using Terraform to provision AWS resources with static privileged credentials. Your security team requests that you use Vault to limit AWS access when needed. How can you enhance this process and increase pipeline security?
Your organization recently suffered a security breach on a specific application, and the security response team believes that MySQL database credentials were likely obtained during the event. The application generated the credentials using the database secrets engine in Vault mounted at the path database/. How can you quickly revoke all of the secrets generated by this 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?
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)
Your organization has applications in a primary data center and a secondary warm-standby site. You want to configure Vault replication between the primary and secondary clusters. If the primary fails over to the secondary, the applications must interact with Vault without re-authenticating. What type of Vault replication would you use?
Sara uses the Vault CLI for administrative tasks on the production cluster. However, she encounters permission-denied errors when making changes and needs to check which policies are attached to her token to view and adjust permissions. What command can she run on the Vault node to see the attached policies?
Your organization is integrating its legacy application with Vault to improve its security. However, you have discovered that the application has issues when the token changes for authentication during testing. What type of token could be used to help alleviate this issue without compromising security?
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?
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?
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?
What is the primary role of the Vault Security Operator (VSO) in a Kubernetes environment?
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 are using Vault to generate dynamic credentials for a Microsoft SQL server to perform queries for a month-end report. The report seems to be taking much longer than expected due to degradation on the underlying server, and you are afraid that Vault might automatically revoke the credentials. How can you extend the time the credentials are valid to ensure your month-end query is successful?
Which core component of Vault can store, generate, or encrypt data for organizations?
By default, what methods of authentication does Vault support? (Select four)
True or False? Although AppRole is designed for machines, humans can use it to authenticate to Vault if you wish.
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?
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 secrets engines can store static secrets in Vault for future retrieval?
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?
Although batch and service tokens share many characteristics, which of the following are true only about batch tokens? (Select three)
Which of the following features in Vault will replicate service tokens between clusters?
Which of the following are supported auth methods for Vault? (Select six)
Vault operators can create two types of groups in Vault. What are the two types?
What occurs when a Vault cluster cannot maintain a quorum while using the Integrated Storage backend?
Which of the following actions can be performed if you only had access to a token’s accessor? (Select four)
What header must be included in an API request in order to provide authentication validation?
What features are offered by the Vault Agent? (Select three)
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 \
Which of the following auth methods are intended for machine-to-machine authentication, and not necessarily human (operator) authentication? (Select four)
What is the default value of the VAULT_ADDR environment variable?
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?
True or False? You can create and update Vault policies using the UI.
A DevOps engineer has set up LDAP and GitHub auth methods. The engineer must ensure user Sarah, who authenticates via either method, has consistent access permissions. Which approach correctly describes how to achieve this in Vault?
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 supports which type of configuration for source limited token?
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?
Which of the following is a reason to rekey a Vault cluster?
Pick the 2 correct responses below.
Which command implements the AppRole authentication method?
Which of the following cannot define the maximum time-to-live (TTL) for a token?
When creating a policy, an error was thrown:

Which statement describes the fix for this issue?
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?
Which of the following are benefits of Vault Agent Caching?
Pick the 2 correct responses below.
Which of the following describes usage of an identity group?
How would you describe the value of using the Vault transit secrets engine?
You can only create orphan tokens using the root token.
Where can you set the Vault seal configuration? Choose two correct answers.
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.
Which of the following describes the Vault ' s auth method component?
The vault lease renew command increments the lease time from:
The Vault CLI can output to formats such as JSON, YAML, and Table.
What is a benefit of response wrapping?
Which CLI command would enable a versioned Key/Value secrets engine in Vault at path my-secrets?
Which of the following statements describe the CLI command below?
S vault login -method-1dap username-mitche11h
Which of these functions can a secrets engine in Vault perform?
Which statement best describes the process of sealing a Vault instance?
Without logging into another interface, what feature can Chad use to execute a simple CLI command to enable a new secrets engine?

Which two interfaces automatically assume the token for subsequent requests after successfully authenticating? (Select two)
You need to write a Vault operator policy and give the users access to perform administrative actions in Vault. What path is used for Vault backend functions?
Which of the following best describes the function of the Vault Secrets Operator in a Kubernetes environment?
Which statement best explains the role and usage of storage backends in HashiCorp Vault?
What is the default method of authentication after first initializing Vault?
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 of the following are benefits of using the Vault Secrets Operator (VSO)? (Select three)
By default, what happens to child tokens when a parent token is revoked?
You are trying to create a new orphan token but receiving a Permission Denied error. What capabilities are required to create this token without using a root token?
You have deployed an application that needs to encrypt data before writing to a database. What secrets engine should you use?
You need to connect to and manage a new HCP Vault cluster using the Vault CLI on your laptop. What environment variables should you set to establish connectivity?
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
Which auth method is ideal for machine-to-machine authentication?
True or False? After initializing Vault or restarting the Vault service, each individual node in the cluster needs to be unsealed.
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.



