Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: s2p65

Easiest Solution 2 Pass Your Certification Exams

VA-002-P HashiCorp Certified: Vault Associate Free Practice Exam Questions (2025 Updated)

Prepare effectively for your HashiCorp VA-002-P HashiCorp Certified: Vault Associate certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.

Page: 1 / 3
Total 200 questions

Which of the following Vault policies will allow a Vault client to read a secret stored at secrets/applications/app01/api_key?

A.

path "secrets/applications/+/api_*" {

capabilities = ["read"]

}

B.

path "secrets/applications/" {

capabilities = ["read"]

allowed_parameters = {

"certificate" = []

}

}

C.

path "secrets/*" {

capabilities = ["list"]

}

D.

path "secrets/applications/app01/api_key" {

capabilities = ["update", "list"]

}

Which of the following allows Terraform users to apply policy as code to enforce standardized configurations for resources being deployed via infrastructure as code?

A.

functions

B.

workspaces

C.

module registry

D.

sentinel

What does the command terraform fmt do?

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

You've deployed Vault in your production environment and are curious to understand metrics on your Vault cluster, such as the number of writes to the backend, the status of WALs, and the seal status. What feature would you configure in order to view these metrics?

A.

audit device

B.

telemetry

C.

nothing to configure, these are available in the Vault log found on the OS

D.

enable logs for each individual secrets engines

When multiple engineers start deploying infrastructure using the same state file, what is a feature of remote state storage that is critical to ensure the state does not become corrupt?

A.

state locking

B.

object storage

C.

encryption

D.

workspaces

Complete the following sentence:

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

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

Select the answer below that completes the following statement:

Terraform Cloud can be managed from the CLI but requires __________?

A.

a TOTP token

B.

a username and password

C.

authentication using MFA

D.

an API token

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

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.

Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requirements. (select three)

A.

The registry uses tags to identify module versions. Release tag names must be for the format x.y.z, and can optionally be prefixed with a v.

B.

Module repositories must use this three-part name format, terraform--.

C.

The module must be PCI/HIPPA compliant.

D.

The module must be on GitHub and must be a public repo

Select two answers to complete the following sentence:

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

A.

approved by HashiCorp

B.

declared in the configuration

C.

initialized

D.

uploaded to source control

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

A.

required-provider

B.

required_versions

C.

required_providers

D.

required-version

True or False? When using the Terraform provider for Vault, the tight integration between these HashiCorp tools provides the ability to mask secrets in the terraform plan and state files.

A.

False

B.

True

When administering Vault on a day-to-day basis, why is logging in with the root token, as shown below, a bad idea? (select two).

A.

the root token isn't a secure way of logging into Vault

B.

the root token is attached to the root policy, which likely provides too many privileges to a user

C.

the root token should be revoked and not used on a day-to-day basis

D.

It's easier to just use the root token than to configure additional auth methods

By default, how long does the transit secrets engine store the resulting ciphertext?

A.

24 hours

B.

32 days

C.

transit does not store data

D.

30 days

Which of the following commands will launch the Interactive console for Terraform interpolations?

A.

terraform

B.

terraform console

C.

terraform cmdline

D.

terraform cli

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

A.

True

B.

False

A Vault client who has read access to the path secrets/apps/app1 is having trouble viewing the secret in the user interface (UI) but can access via the API. What can be done to resolve this issue?

A.

add read permissions to the path secrets/apps

B.

modify the policy to allow the create permission

C.

remove the deny policy blocking access to the secrets/apps/app1 path

D.

add LIST to the policy so the user can browse the paths leading up to the key/value's path

The Vault Agent provides which of the following benefits? (select three)

A.

client-side caching of responses

B.

automatically creates secrets in the desired storage backend

C.

authentication to Vault

D.

token renewal

A user has created three workspaces using the command line - prod, dev, and test. The user wants to create a fourth workspace named stage. Which command will the user execute to accomplish this?

A.

terraform workspace -new stage

B.

terraform workspace -create stage

C.

terraform workspace create stage

D.

terraform workspace new stage

What is the Consul Agent?

A.

a process that registers services with Consul

B.

an agent that runs in the background to provide additional features for Consul

C.

the core process of Consul which maintains membership information, manages services, runs checks, responds to queries, and more.

D.

a daemon that Vault uses to register auth methods across all of its clusters to ensure consistency among the data written to disk

Page: 1 / 3
Total 200 questions
Copyright © 2014-2025 Solution2Pass. All Rights Reserved