Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

VA-002-P HashiCorp Certified: Vault Associate Questions and Answers

Questions 4

As opposed to service tokens, batch tokens are ideal for what type of action?

Options:

A.

generating dynamic credentials

B.

configuring Vault features

C.

renewing tokens

D.

issuing snapshots

E.

encrypting data

F.

writing secrets

Buy Now
Questions 5

Terraform-specific settings and behaviors are declared in which configuration block type?

Options:

A.

data

B.

resource

C.

terraform

D.

provider

Buy Now
Questions 6

What system endpoint can you query to determine which node is the leader of a cluster?

Options:

A.

/sys/tools

B.

/sys/leader

C.

/sys/health

D.

/sys/init

Buy Now
Questions 7

Given the following screenshot, how many secrets engines have been enabled?

VA-002-P Question 7

Options:

A.

4

B.

3

C.

5

D.

2

Buy Now
Questions 8

When using parent/child modules to deploy infrastructure, how would you export value from one module to import into another module?

For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.

Options:

A.

configure an output value in the application module in order to use that value for the DNS module

B.

preconfigure the IP address as a parameter in the DNS module

C.

configure the pertinent provider ' s configuration with a list of possible IP addresses to use

D.

export the value using terraform export and input the value using terraform input

Buy Now
Questions 9

True or False?

terraform init cannot automatically download Community providers.

Options:

A.

False

B.

True

Buy Now
Questions 10

Which of the following secrets engine can generate dynamic credentials? (select three)

Options:

A.

Azure

B.

database

C.

key/value

D.

Transit

E.

AWS

Buy Now
Questions 11

Complete the following sentence:

For the local state, the workspaces are stored directly in a...

Options:

A.

a file called terraform.tfstate

B.

directory called terraform.workspaces.tfstate

C.

directory called terraform.tfstate.d

D.

a file called terraform.tfstate.backup

Buy Now
Questions 12

While Terraform is generally written using the HashiCorp Configuration Language (HCL), what another syntax can Terraform be expressed in?

Options:

A.

JSON

B.

XML

C.

TypeScript

D.

YAML

Buy Now
Questions 13

From the options below, select the benefits of using the PKI (certificates) secrets engine: (select three)

Options:

A.

TTLs on Vault certs are longer to ensure certificates are valid for a longer period of time

B.

Vault can act as an intermediate CA

C.

reducing, or eliminating certificate revocations

D.

reduces time to get a certificate by eliminating the need to generate a private key and CSR

Buy Now
Questions 14

In regards to deploying resources in multi-cloud environments, what are some of the benefits of using Terraform rather than a provider ' s native tooling? (select three)

Options:

A.

Terraform simplifies management and orchestration, helping operators build large-scale, multi-cloud infrastructure

B.

Terraform can help businesses deploy applications on multiple clouds and on-premises infrastructure

C.

Terraform can manage cross-cloud dependencies

D.

Terraform is not cloud-agnostic and can be used to deploy resources across a single public cloud

Buy Now
Questions 15

Which two characters can be used when writing a policy to reflect a wildcard or path segment? (select two)

Options:

A.

@

B.

$

C.

&

D.

*

E.

+

Buy Now
Questions 16

What does the command terraform fmt do?

Options:

A.

formats the state file in order to ensure the latest state of resources can be obtained

B.

updates the font of the configuration file to the official font supported by HashiCorp

C.

rewrite Terraform configuration files to a canonical format and style

D.

deletes the existing configuration file

Buy Now
Questions 17

Which of the following is not an activity associated with the Vault transit secrets engine?

Options:

A.

encrypt

B.

decrypt

C.

update

D.

rewrap

Buy Now
Questions 18

If a client is currently assigned the following policy, what additional policy can be added to ensure they cannot access the data stored at secret/apps/confidential but still, read all other secrets?

Options:

A.

path " secret/apps/confidential/* " {

capabilities = [ " deny " ]

}

B.

path " secret/apps/* " {

capabilities = [ " deny " ]

}

C.

path " secret/apps/confidential " {

capabilities = [ " deny " ]

}

D.

path " secret/apps/* " {

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

}

path " secret/* " {

capabilities = [ " read " , " deny " ]

}

Buy Now
Questions 19

Which of the following policies would permit a user to generate dynamic credentials on a database?

Options:

A.

path " database/creds/read_only_role " {

capabilities = [ " read " ]

}

B.

path " database/creds/read_only_role " {

capabilities = [ " generate " ]

}

C.

path " database/creds/read_only_role " {

capabilities = [ " list " ]

}

D.

path " database/creds/read_only_role " {

capabilities = [ " sudo " ]

}

Buy Now
Questions 20

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

Options:

A.

vault lease revoke -prefix < path >

B.

vault delete lease -all < path >

C.

vault lease revoke -all < path >

D.

vault revoke -all < path >

Buy Now
Questions 21

In order to extend a Consul storage backend, Consul nodes should be provisioned across multiple data centers or cloud regions.

Options:

A.

True

B.

False

Buy Now
Questions 22

To prepare for day-to-day operations, the root token should be safety saved outside of Vault in order to administer Vault

Options:

A.

False

B.

True

Buy Now
Questions 23

Which TCP port does Vault replication use?

Options:

A.

8200

B.

8201

C.

8300

D.

8301

Buy Now
Questions 24

Which of the following unseal options can automatically unseal Vault upon the start of the Vault service? (select four)

Options:

A.

Transit

B.

HSM

C.

AWS KMS

D.

Key Shards

E.

Azure KMS

Buy Now
Questions 25

Which of the following is considered a Terraform plugin?

Options:

A.

Terraform logic

B.

Terraform language

C.

Terraform tooling

D.

Terraform provider

Buy Now
Questions 26

True or False:

Similar to how Vault works with databases and cloud providers, the Active Directory secrets engine dynamically generates the account and password for the requesting Vault client.

Options:

A.

False

B.

True

Buy Now
Questions 27

What are the primary benefits of running Vault in a production deployment over dev server mode? (select two)

Options:

A.

ability to enable auth methods

B.

persistent storage

C.

encryption via TLS

D.

faster deployment

E.

access to all of the secret engines

Buy Now
Questions 28

Using multi-cloud and provider-agnostic tools provides which of the following benefits? (select two)

Options:

A.

operations teams only need to learn and manage a single tool to manage infrastructure, regardless of where the infrastructure is deployed

B.

slower provisioning speed allows the operations team to catch mistakes before they are applied

C.

can be used across major cloud providers and VM hypervisors

D.

increased risk due to all infrastructure relying on a single tool for management

Buy Now
Questions 29

Vault ' s User Interface (UI) needs to be enabled in the command line before it can be used.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 30

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

Buy Now
Questions 31

While Vault provides businesses tons of functionality out of the box, what feature allows you to extend its functionality with solutions written by third-party providers?

Options:

A.

vault agent

B.

namespaces

C.

plugin backend

D.

control groups

Buy Now
Questions 32

True or False:

Multiple providers can be declared within a single Terraform configuration file.

Options:

A.

False

B.

True

Buy Now
Questions 33

Vault does not trust the storage backend.

Options:

A.

False

B.

True

Buy Now
Questions 34

When using constraint expressions to signify a version of a provider, which of the following are valid provider versions that satisfy the expression found in the following code snippet: (select two)

1. terraform {

2. required_providers {

3. aws = " ~ > 1.2.0 "

4. }

5. }

Options:

A.

1.2.9

B.

1.3.1

C.

1.3.0

D.

1.2.3

Buy Now
Questions 35

Which of the following storage backends are supported by HashiCorp technical support? (select four)

Options:

A.

Filesystem

B.

Consul

C.

In-Memory

D.

Raft

E.

DynamoDB

F.

MySQL

Buy Now
Questions 36

Beyond encryption and decryption of data, which of the following is not a function of the Vault transit secrets engine?

Options:

A.

generate hashes and HMACs of data

B.

sign and verify data

C.

act as a source of random bytes

D.

store the encrypted data securely in Vault for retrieval

Buy Now
Questions 37

Which of the following variable declarations is going to result in an error?

Options:

A.

variable " example " {

type = object({})

}

B.

variable " example " {}

C.

variable " example " {

description = " This is a test "

type = map

default = { " one " = 1, " two " = 2, " Three " = " 3 " }

}

D.

variable " example " {

description = " This is a variable description "

type = list(string)

default = {}

}

Buy Now
Questions 38

Which TCP port does Vault use, by default, for its API and UI?

Options:

A.

8600

B.

8201

C.

8500

D.

8301

E.

8300

F.

8200

Buy Now
Questions 39

Why might a user opt to include the following snippet in their configuration file?

1. terraform {

2. required_version = " > = 0.12 "

3. }

Options:

A.

this ensures that all Terraform providers are above a certain version to match the application being deployed

B.

the user wants to ensure that the application being deployed is a minimum version of 0.12

C.

versions before Terraform 0.12 were not approved by HashiCorp to be used in production

D.

Terraform 0.12 introduced substantial changes to the syntax used to write Terraform configuration

Buy Now
Questions 40

From the code below, identify the implicit dependency:

1. resource " aws_eip " " public_ip " {

2. vpc = true

3. instance = aws_instance.web_server.id

4. }

5. resource " aws_instance " " web_server " {

6. ami = " ami-2757f631 "

7. instance_type = " t2.micro "

8. depends_on = [aws_s3_bucket.company_data]

9. }

Options:

A.

The EC2 instance labeled web_server

B.

The EIP with an id of ami-2757f631

C.

The AMI used for the EC2 instance

D.

The S3 bucket labeled company_data

Buy Now
Questions 41

The userpass auth method has the ability to access external services in order to provide authentication to Vault.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 42

When architecting a Vault replication configuration, why should you never terminate TLS on a front-end load balancer?

Options:

A.

If Vault detects that the traffic has been unencrypted and re-encrypted, due to the load balancer, it will automatically drop the traffic as it is no longer trusted.

B.

Vault generates self-signed mutual TLS for replication. If the LB is performing TLS termination, this will break the mutual TLS between nodes.

C.

Vault requires that only Consul service discovery can be used to direct traffic to an active Vault node.

D.

Vault replication won ' t work with the type of certificates that a traditional load balancer uses.

Buy Now
Questions 43

Given the Terraform configuration below, in which order will the resources be created?

1. resource " aws_instance " " web_server " {

2. ami = " i-abdce12345 "

3. instance_type = " t2.micro "

4. }

5. resource " aws_eip " " web_server_ip " {

6. vpc = true

7. instance = aws_instance.web_server.id

8. }

Options:

A.

aws_eip will be created first

aws_instance will be created second

B.

no resources will be created

C.

aws_instance will be created first

aws_eip will be created second

D.

resources will be created simultaneously

Buy Now
Questions 44

Why is it a good idea to declare the required version of a provider in a Terraform configuration file?

1. terraform {

2. required_providers {

3. aws = " ~ > 1.0 "

4. }

5. }

Options:

A.

to remove older versions of the provider

B.

to ensure that the provider version matches the version of Terraform you are using

C.

providers are released on a separate schedule from Terraform itself; therefore a newer version could introduce breaking changes

D.

to match the version number of your application being deployed via Terraform

Buy Now
Questions 45

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

Buy Now
Questions 46

Vault has failed to start. You inspect the log and find the error below. What needs to be changed in order to successfully start Vault?

" Error parsing config.hcl: At 1:12: illegal char "

Options:

A.

the " character cannot be used in the config file

B.

fix the syntax error in the Vault configuration file

C.

you must use single quotes vs double quotes in the config file

D.

line 1 on the config file is blank

Buy Now
Questions 47

What Terraform feature is shown in the example below?

1. resource " aws_security_group " " example " {

2. name = " sg-app-web-01 "

3. dynamic " ingress " {

4. for_each = var.service_ports

5. content {

6. from_port = ingress.value

7. to_port = ingress.value

8. protocol = " tcp "

9. }

10. }

11. }

Options:

A.

data source

B.

dynamic block

C.

local values

D.

conditional expression

Buy Now
Questions 48

Select two answers to complete the following sentence:

Before a new provider can be used, it must be ______ and _______.

Options:

A.

approved by HashiCorp

B.

declared in the configuration

C.

initialized

D.

uploaded to source control

Buy Now
Questions 49

You are deploying Vault in a local data center, but want to be sure you have a secondary 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?

Options:

A.

disaster recovery replication

B.

single-node replication

C.

performance replication

D.

end-to-end replication

Buy Now
Questions 50

Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?

Options:

A.

required-provider

B.

required_versions

C.

required_providers

D.

required-version

Buy Now
Questions 51

True or False? By default, Terraform destroy will prompt for confirmation before proceeding.

Options:

A.

True

B.

False

Buy Now
Questions 52

Select the two default policies created in Vault. (select two)

Options:

A.

default

B.

vault

C.

base

D.

root

E.

admin

F.

user

Buy Now
Questions 53

After executing a terraform apply, you notice that a resource has a tilde (~) next to it. What does this infer?

Options:

A.

the resource will be destroyed and recreated

B.

the resource will be created

C.

Terraform can ' t determine how to proceed due to a problem with the state file

D.

the resource will be updated in place

Buy Now
Questions 54

Terraform Cloud is more powerful when you integrate it with your version control system (VCS) provider. Select all the supported VCS providers from the answers below. (select four)

Options:

A.

CVS Version Control

B.

GitHub Enterprise

C.

Bitbucket Cloud

D.

Azure DevOps Server

E.

GitHub

Buy Now
Questions 55

What is a downside to using a Terraform provider, such as the Vault provider, to interact with sensitive data, such as reading secrets from Vault?

Options:

A.

Terraform and Vault must be running on the same physical host

B.

Terraform and Vault must be running on the same version

C.

Terraform requires a unique auth method to work with Vault

D.

Secrets are persisted to the state file and plans

Buy Now
Questions 56

Unsealing Vault creates the encryption keys, which is used to unencrypt the data on the storage backend.

Options:

A.

FALSE

B.

TRUE

Buy Now
Questions 57

In order to extend Vault beyond a data center or cloud regional boundary, what feature should be used?

Options:

A.

plugins

B.

secrets engine

C.

replication

D.

seal/unseal

E.

snapshots

Buy Now
Questions 58

When using providers that require the retrieval of data, such as the HashiCorp Vault provider, in what phase does Terraform actually retrieve the data required?

Options:

A.

terraform apply

B.

terraform plan

C.

terraform init

D.

terraform delete

Buy Now
Questions 59

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. < < mount accessor > > .id}}/* " {

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

}

D.

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

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

}

Buy Now
Questions 60

A " backend " in Terraform determines how the state is loaded and how an operation such as apply is executed. Which of the following is not a supported backend type?

Options:

A.

terraform enterprise

B.

s3

C.

github

D.

consul

E.

artifactory

Buy Now
Exam Code: VA-002-P
Exam Name: HashiCorp Certified: Vault Associate
Last Update: Apr 30, 2026
Questions: 200

PDF + Testing Engine

$63.52  $181.49

Testing Engine

$50.57  $144.49
buy now VA-002-P testing engine

PDF (Q&A)

$43.57  $124.49
buy now VA-002-P pdf