How can Vault be used to programmatically obtain a generated code for MFA, somewhat similar to Google Authenticator?
Which of the following statements are true regarding Vault seal and unseal (select three)?
Without logging into another interface, what feature can Chad use to execute a simple CLI command to enable a new secrets engine?

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?
Why are short-lived, dynamic secrets in Vault more secure than long-lived, static credentials?
You have logged into the Vault UI and see this screen. What Vault component is being enabled in the screenshot below?

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 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 developer team requests integration of their legacy application with Vault to encrypt and decrypt data for a backend database. They cannot modify the application for Vault authentication. What is the best way to achieve this integration?
What of the following features are true about batch tokens in Vault? (Select two)
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?
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?
What is the primary role of the Vault Security Operator (VSO) in a Kubernetes environment?
You are working on a new project and need to retrieve a secret from Vault. You log into the Vault UI and browse to the path where the secret is stored. Based on the screenshot below, what is true about the secrets stored in this path? (Select four)

Which of the following capabilities can be used when writing a Vault policy? (Select four)
A security architect is designing a solution to address the " Secret Zero " problem for a Kubernetes-based application that needs to authenticate to HashiCorp Vault. Which approach correctly leverages Vault features to solve this challenge?
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?
Your organization has enabled the LDAP auth method on the path of corp-auth/. When you access the Vault UI, you cannot log in despite providing the correct credentials. Based on the screenshot below, what action should you take to log in?

Which of the following is true about the token authentication method in Vault? (Select three)
When looking at Vault token details, which key helps you find the paths the token is able to access?
Which of the following cannot define the maximum time-to-live (TTL) for a token?
HCP Vault Dedicated automatically enables cross-region disaster recovery replication.
As a best practice, the root token should be stored in which of the following ways?
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?
You are using Vault ' s Transit secrets engine to encrypt your data. You want to reduce the amount of content encrypted with a single key in case the key gets compromised. How would you do this?
You have a requirement that an application needs to implement AES encryption.
What parameter must you use to meet this requirement when defining a new key in a Transit secrets engine for this app?
You are using the Vault userpass auth method mounted at auth/userpass. How do you create a new user named " sally " with password " h0wN0wB4r0wnC0w " ? This new user will need the power-users policy.
When using the principle of least privilege with Vault ACL policies, you start by granting broad access, then remove capabilities as issues occur.
Where do you define the Namespace to log into using the Vault Ul?
To answer this question
Use your mouse to click on the screenshot in the location described above. An arrow indicator will mark where you have clicked. Click the " Answer " button once you have positioned the arrow to answer the question. You may need to scroll down to see the entire screenshot.

You are building a new CI/CD pipeline which integrates with Vault. You will be building multiple targets: on premises in vSphere, and in AWS. You have already selected the AWS authentication method for the AWS targets.
Which auth method can the CI/CD tool use to authenticate with the on-premises targets?
A user logs into Vault through a configured LDAP auth method and notices that re-authentication is needed after every 8 hours.
Why would the user be required to log in again every 8 hours?
Your application cannot manage authentication with Vault, but it can communicate with a local service to retrieve secrets. What solution can enable your app to generate dynamic credentials from Vault?
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?
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?
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?
Which of the following is not an action associated with the Transit secrets engine when interacting with data?
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
Christy has created a token and needs to use that token to access Vault. What command can she use to authenticate and access secrets stored in Vault?
$ vault token create -policy=christy
Key Value
--- -----
token hvs.hxDIPd8RPVtxu4AzSGS1lArP
token_accessor AxwxpDs6LbdFQbWGmBDnwIK3
token_duration 24h
token_renewable true
token_policies [ " christy " " default " ]
identity_policies []
policies [ " christy " " default " ]
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?
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
You have a legacy application that requires secrets from Vault that must be written to a local configuration file. However, you cannot refactor the application to communicate directly with Vault. What solution should you implement to satisfy the requirements?
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 unseal options can automatically unseal Vault upon the start of the Vault service? (Select four)
True or False? After initializing Vault or restarting the Vault service, each individual node in the cluster needs to be unsealed.
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?
What command can be used to update a Vault policy named web-app-1 using the command line?
What occurs when a Vault cluster cannot maintain a quorum while using the Integrated Storage backend?
Thomas has authenticated to Vault using the API and has received the following response. What data must Thomas parse from the response in order to continue making requests to Vault?
text
CollapseWrapCopy
{
" request_id " : " 65897160-fd8b-1f87-c24e-fdba14c9728e " ,
" lease_id " : " " ,
" renewable " : false,
" lease_duration " : 0,
" data " : null,
" wrap_info " : null,
" warnings " : null,
" auth " : {
" client_token " : " hvss.lzrmRe5Y3LMcDRmOttEjWoagd92fD29fxakwej_38djs " ,
" accessor " : " EMX0nv4nr0Y1wXoaN7i0WDW1 " ,
" policies " : [ " bryan " , " default " ],
" token_policies " : [ " bryan " , " default " ],
" metadata " : { " username " : " bryan " },
" lease_duration " : 2764800,
" renewable " : true,
" entity_id " : " 40e203e8-818e-b6ad-4cb3-0befdbf9b598 " ,
" token_type " : " service " ,
" orphan " : true
}
}
What header must be included in an API request in order to provide authentication validation?
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?
Given the following screenshot, how many secrets engines have been enabled by a Vault user?

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?
Which of the following secrets engines can store static secrets in Vault for future retrieval?
True or False? Once the lease for a dynamic secret has expired, Vault revokes the credentials on the backend platform for which they were created (i.e., database, AWS, Kubernetes).
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?
True or False? Although AppRole is designed for machines, humans can use it to authenticate to Vault if you wish.
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?
True or False? When using the Transit secrets engine, setting the min_decryption_version will determine the minimum key length of the data key (i.e., 2048, 4096, etc.).
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 command would have created the token displayed below?
$ vault token lookup hvs.nNeZ2I64ALCxuO7dqQEJGPrO
Key: policies Value: [default dev], num_uses: 5, ttl: 767h59m49s
Key Value
--- -----
accessor mfvaVMFgOcXHIeqlRasroSOn
creation_time 1604610457
creation_ttl 768h
display_name token
entity_id n/a
expire_time 2024-12-07T16:07:37.7540672-05:00
explicit_max_ttl 0s
id hvs.nNeZ2I64ALCxuO7dqQEJGPrO
issue_time 2024-11-05T16:07:37.7540672-05:00
meta < nil >
num_uses 5
orphan false
path auth/token/create
policies [default dev]
renewable true
ttl 767h59m49s
type service
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?
If Bobby is currently assigned the following policy, what additional policy can be added to ensure Bobby cannot access the data stored at secret/apps/confidential but still read all other secrets?
path " secret/apps/* " { capabilities = [ " create " , " read " , " update " , " delete " , " list " ] }
Which of the following token attributes can be used to renew a token in Vault (select two)?
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?
When using the Vault Secrets Operator, where is the secret written to after being retrieved from Vault?
True or False? The Vault Secrets Operator does NOT encrypt client cache, such as Vault tokens and leases, by default in Kubernetes Secrets.
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?
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?
How does the Vault Secrets Operator (VSO) assist in integrating Kubernetes-based workloads with Vault?
Select the two paths below that would be permitted for read access based on the following Vault policy:
path " secret/+/training/* " {
capabilities = [ " create " , " read " ]
}
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?
What command can be used to revoke all leases associated with a database role named prod-mysql?
Which of the following auth methods are intended for machine-to-machine authentication, and not necessarily human (operator) authentication? (Select four)
You have ciphertext stored in an Amazon S3 bucket encrypted by the key named prod-customer. Will Vault decrypt this data with the command vault write transit/decrypt/prod-customer ciphertext= " vault:v4:Xa1f9FIJtn13em/Wb7QCsXsU/kCOn7... " given this output?
$ vault read transit/keys/prod-customer
Key Value
--- -----
...
keys map[4:1549347108 5:1549347109 6:1549347110]
latest_version 6
min_available_version 0
min_decryption_version 4
min_encryption_version 0
Will Vault decrypt this data for you by running the following command?
$ vault write transit/decrypt/prod-customer ciphertext= " vault:v4:Xa1f9FIJtn13em/Wb7QCsXsU/kCOn7... "
From the options below, select the benefits of using the PKI (x.509 certificates) secrets engine (select three):
Although batch and service tokens share many characteristics, which of the following are true only about batch tokens? (Select three)