Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

HashiCorp Certified: Vault Associate Question and Answers

HashiCorp Certified: Vault Associate

Last Update May 18, 2024
Total Questions : 200

We are offering FREE VA-002-P HashiCorp exam questions. All you do is to just go and sign up. Give your details, prepare VA-002-P free exam questions and then go for complete pool of HashiCorp Certified: Vault Associate test questions that will help you more.

VA-002-P pdf

VA-002-P PDF

$35  $99.99
VA-002-P Engine

VA-002-P Testing Engine

$42  $119.99
VA-002-P PDF + Engine

VA-002-P PDF + Testing Engine

$56  $159.99
Questions 1

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

Discussion 0
Questions 2

What is the proper command to enable the AWS secrets engine at the default path?

Options:

A.  

vault enable secrets aws

B.  

vault secrets aws enable

C.  

vault secrets enable aws

D.  

vault enable aws secrets engine

Discussion 0
Questions 3

You've decided to use AWS KMS to automatically unseal Vault on private EC2 instances. After deploying your Vault cluster, and running vault operator init, Vault responds with an error and cannot be unsealed.

You've determined that the subnet you've deployed Vault into doesn't have internet access. What can you do to enable Vault to communicate with AWS KMS in the most secure way?

Options:

A.  

ask the networking team to provide Vault with inbound access from the internet

B.  

deploy Vault in a public subnet and provide the Vault nodes with public IP addresses

C.  

add a VPC endpoint

D.  

change the permissions on the Internet Gateway to allow the Vault nodes to communicate over the Internet

Discussion 0
Questions 4

After running into issues with Terraform, you need to enable verbose logging to assist with troubleshooting the error. Which of the following values provides the MOST verbose logging?

Options:

A.  

ERROR

B.  

INFO

C.  

DEBUG

D.  

WARN

E.  

TRACE

Discussion 0
Questions 5

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

Discussion 0
Questions 6

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

Discussion 0
Questions 7

Which is not a benefit of running HashiCorp Vault in your environment?

Options:

A.  

Integrate with your code repository to pull secrets when deploying your applications

B.  

Consolidate static, long-lived passwords used throughout your organization

C.  

Act as root or intermediate certificate authority to automate the generation of PKI certificates

D.  

The ability to generate dynamic secrets for applications and resource access

Discussion 0
Questions 8

An application is trying to use a secret in which the lease has expired. What can be done in order for the application to successfully request data from Vault?

Options:

A.  

request a new secret and associated lease

B.  

try the expired secret in hopes it hasn't been deleted yet

C.  

request the TTL be extended for the secret

D.  

perform a lease renewal

Discussion 0
Questions 9

From the options below, select the benefits of using a batch token over a service token. (select three)

Options:

A.  

no storage cost for token creation

B.  

lightweight and scalable

C.  

can be a root token

D.  

used for ephemeral, high-performance workloads

E.  

has accessors

Discussion 0
Questions 10

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

Discussion 0
Questions 11

True or False:

Once you create a KV v1 secrets engine and place data in it, there is no way to modify the mount to include the features of a KV v2 secrets engine.

Options:

A.  

True

B.  

False

Discussion 0
Questions 12

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).

Options:

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

Discussion 0
Questions 13

Which of the following best describes a token accessor?

Options:

A.  

a value that acts as a reference to a token which can be used to perform limited actions against the token

B.  

a token used for Consul to access Vault auth methods

C.  

describes the value associated with the tokens TTL

D.  

a value that describes which clients have access to the attached token

Discussion 0
Questions 14

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

Discussion 0
Questions 15

Which of the following is not a valid Terraform string function?

Options:

A.  

tostring

B.  

replace

C.  

format

D.  

join

Discussion 0
Questions 16

What Terraform command can be used to inspect the current state file?

Options:

A.  

terraform inspect

B.  

terraform show

C.  

terraform read

D.  

terraform state

Discussion 0
Questions 17

Given the policy below, what would the user be able to access?

1. path "*" {

2. capabilities = ["create", "update", "read", "list", "delete", "sudo"]

3. }

Options:

A.  

anything they want to within Vault

B.  

ability to enable a secret engine at the path *

C.  

only make changes to policies

D.  

nothing, since the policy doesn't specify any specific paths

Discussion 0
Questions 18

By default, where does Terraform store its state file?

Options:

A.  

shared directory

B.  

current working directory

C.  

Amazon S3 bucket

D.  

remotely using Terraform Cloud

Discussion 0
Questions 19

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

Discussion 0
Questions 20

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

Discussion 0
Questions 21

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

Options:

A.  

default

B.  

vault

C.  

base

D.  

root

E.  

admin

F.  

user

Discussion 0
Questions 22

True or False:

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

Options:

A.  

False

B.  

True

Discussion 0
Questions 23

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

Discussion 0
Questions 24

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"]

}

Discussion 0
Questions 25

Environment variables can be used to set variables. The environment variables must be in the format "____"_. Select the correct prefix string from the following list.

Options:

A.  

TF_VAR

B.  

TF_VAR_NAME

C.  

TF_ENV

D.  

TF_ENV_VAR

Discussion 0
Questions 26

Your organization is running Vault open source and has decided it wants to use the Identity secrets engine. You log into Vault but are unable to find it in the list to enable. What gives?

Options:

A.  

because you are running open-source and the identity secrets engine is an Enterprise feature, it is not available to enable.

B.  

the identity secrets engine was deprecated in previous versions

C.  

this secrets engine will be mounted by default.

D.  

the policy attached to your user doesn't allow access to the Identity secrets engine.

Discussion 0
Questions 27

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

Discussion 0
Questions 28

After issuing the command to delete a secret, you run a vault kv list command but the secret still exists. What command would permanently delete this secret from Vault?

1. $ vault kv delete kv/applications/app01

2. Success! Data deleted (if it existed) at: kv/applications/app01

3. $ vault kv list kv/applications

4. Keys

5. ----

6. app01

Options:

A.  

vault kv metadata delete kv/applications/app01

B.  

vault kv delete -all kv/applications/app01

C.  

vault kv delete -force kv/applications/app01

D.  

vault kv destroy -versions=1 kv/applications/app01

Discussion 0
Questions 29

Your organization has moved to AWS and has manually deployed infrastructure using the console. Recently, a decision has been made to standardize on Terraform for all deployments moving forward.

What can you do to ensure that all existing is managed by Terraform moving forward without interruption to existing services?

Options:

A.  

resources that are manually deployed in the AWS console cannot be imported by Terraform

B.  

using terraform import, import the existing infrastructure into your Terraform state

C.  

delete the existing resources and recreate them using new a Terraform configuration so Terraform can manage them moving forward

D.  

submit a ticket to AWS and ask them to export the state of all existing resources and use terraform import to import them into the state file

Discussion 0
Questions 30

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

Discussion 0