Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free HashiCorp VA-002-P Practice Exam with Questions & Answers

Questions 1

An administrator wants to create a new KV mount for individual users to maintain their own secrets but needs a way to simplify the policy so they don't need to write a new one for each new user? With the requirements listed below, what would such a policy look like?

Requirement: Each user can perform all operations on their allocated key/value secret path

Options:
A.

path "user-kv/data/{{identity.entity.name}}/*" {

capabilities = [ "create", "update", "read", "delete", "list" ]

}

B.

path "user-kv/data/{{identity.entity.id.name}}/*" {

capabilities = [ "create", "update", "read", "delete", "list" ]

}

C.

path "user-kv/data/{{identity.entity.aliases.<>.id}}/*" {

capabilities = [ "create", "update", "read", "delete", "list" ]

}

D.

path "user-kv/data/{{user}}/*" {

capabilities = [ "create", "update", "read", "delete", "list" ]

}

HashiCorp VA-002-P Premium Access
Questions 2

What happens to child tokens when a parent token is revoked?

Options:
A.

the child tokens are renewed

B.

the child tokens are converted to parent tokens

C.

the child tokens create their own child tokens to be used

D.

the child tokens are revoked

Questions 3

You have been given requirements to create a security group for a new application. Since your organization standardizes on Terraform, you want to add this new security group with the fewest number of lines

of code. What feature could you use to iterate over a list of required tcp ports to add to the new security group?

Options:
A.

terraform import

B.

splat expression

C.

dynamic block

D.

dynamic backend

Questions 4

True or False: You can migrate the Terraform backend but only if there are no resources currently being managed.

Options:
A.

False

B.

True

Questions 5

What is the purpose of using the local-exec provisioner? (select two)

Options:
A.

ensures that the resource is only executed in the local infrastructure where Terraform is deployed

B.

to execute one or more commands on the machine running Terraform

C.

to invoke a local executable

D.

executes a command on the resource to invoke an update to the Terraform state

Questions 6

Which of the following commands will remove all secrets at a specific path?

Options:
A.

vault lease revoke -prefix

B.

vault delete lease -all

C.

vault lease revoke -all

D.

vault revoke -all

Questions 7

After a client has authenticated, what security feature is used to make subsequent calls?

Options:
A.

key shard

B.

ldap

C.

pgp

D.

token

E.

listener

F.

path

Questions 8

What are the benefits of using Infrastructure as Code? (select five)

Options:
A.

Infrastructure as Code easily replaces development languages such as Go and .Net for application development

B.

Infrastructure as Code allows a user to turn a manual task into a simple, automated deployment

C.

Infrastructure as Code is relatively simple to learn and write, regardless of a user's prior experience with developing code

D.

Infrastructure as Code is easily repeatable, allowing the user to reuse code to deploy similar, yet different resources

E.

Infrastructure as Code provides configuration consistency and standardization among deployments

F.

Infrastructure as Code gives the user the ability to recreate an application's infrastructure for disaster recovery scenarios

Questions 9

What type of token does not have a TTL (time to live)?

Options:
A.

default tokens

B.

parent tokens

C.

user tokens

D.

root tokens

E.

expired tokens

F.

child tokens

Questions 10

When creating a dynamic secret in Vault, Vault returns what value that can be used to renew or revoke the lease?

Options:
A.

lease_id

B.

vault_accessor

C.

revocation_access

D.

token_revocation_id

Exam Code: VA-002-P
Certification Provider: HashiCorp
Exam Name: HashiCorp Certified: Vault Associate
Last Update: Jul 14, 2025
Questions: 200

HashiCorp Free Exams

HashiCorp Free Exams
Unlock free HashiCorp exam resources and practice tests at Examstrack. Boost your HashiCorp exam readiness with top-notch materials.