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

VA-002-P Exam Dumps - HashiCorp Certified: Vault Associate

Question # 4

In Terraform Enterprise, a workspace can be mapped to how many VCS repos?

A.

5

B.

3

C.

2

D.

1

Full Access
Question # 5

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

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

Full Access
Question # 6

What are some of the features of Terraform state? (select three)

A.

inspection of cloud resources

B.

increased performance

C.

mapping configuration to real-world resources

D.

determining the correct order to destroy resources

Full Access
Question # 7

True or False:

State is a requirement for Terraform to function.

A.

True

B.

False

Full Access
Question # 8

When configuring Vault replication and monitoring its status, you keep seeing something called 'WALs'. What are WALs?

A.

wake after lan

B.

warning of allocated logs

C.

write-ahead log

D.

write along logging

Full Access
Question # 9

Which of the following Terraform files should be ignored by Git when committing code to a repo? (select two)

A.

output.tf

B.

terraform.tfstate

C.

terraform.tfvars

D.

variables.tf

Full Access
Question # 10

Select all Operating Systems that Terraform is available for. (select five)

A.

Linux

B.

Windows

C.

Unix

D.

FreeBSD

E.

Solaris

F.

macOS

Full Access
Question # 11

What feature of Vault would allow you to architect a "Vault within a Vault"?

A.

sentinel

B.

secrets engines

C.

control groups

D.

namespaces

Full Access
Question # 12

True or False?

terraform init cannot automatically download Community providers.

A.

False

B.

True

Full Access
Question # 13

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

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

Full Access
Question # 14

After logging into the Vault UI, a user complains that they cannot enable Replication. Why would the replication configuration be missing?

A.

replication wasn't configured in the Vault configuration file

B.

replication hasn't been enabled

C.

Vault is running an open-source version

D.

replication configuration isn't available in the UI

Full Access
Question # 15

Which of the following represents a feature of Terraform Cloud that is NOT free to customers?

A.

private module registry

B.

VCS integration

C.

roles and team management

D.

workspace management

Full Access
Question # 16

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

A.

terraform

B.

terraform console

C.

terraform cmdline

D.

terraform cli

Full Access
Question # 17

After encrypting data using the transit secrets engine, you've received the following output. Which of the following is true based upon the output?

1. Key Value

2. --- -----

3. ciphertext vault:v2:45f9zW6cglbrzCjI0yCyC6DBYtSBSxnMgUn9B5aHcGEit71xefPEmmjMbrk3

A.

the original encryption key has been rotated at least once

B.

this is the second version of the encrypted data

C.

similar to the KV secrets engine, the transit secrets engine was enabled using the transit v2 option

D.

the data is stored in Vault using a KV v2 secrets engine

Full Access
Question # 18

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

A.

FALSE

B.

TRUE

Full Access
Question # 19

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

A.

False

B.

True

Full Access
Question # 20

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

Full Access
Question # 21

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

A.

1.2.9

B.

1.3.1

C.

1.3.0

D.

1.2.3

Full Access
Question # 22

What is the result of the following terraform function call?

zipmap(["a", "b"], [1, 2])

A.

{

"a",

"b",

"1",

"2",

}

B.

[

"a",

"b",

"1",

"2",

]

C.

{

"a" = 1

"b" = 2

}

D.

[

"a" = 1

"b" = 2

]

Full Access
Question # 23

In a Consul cluster, participating nodes can be only one of two types. Select the valid types. (select two)

A.

follower

B.

secondary

C.

active

D.

primary

E.

leader

F.

passive

Full Access
Question # 24

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

Full Access
Question # 25

Which of the following statements best describes the Terraform list(...) type?

A.

a collection of unique values that do not have any secondary identifiers or ordering.

B.

a collection of values where each is identified by a string label.

C.

a sequence of values identified by consecutive whole numbers starting with zero.

D.

a collection of named attributes that each have their own type.

Full Access
Question # 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.

A.

False

B.

True

Full Access
Question # 27

What happens when a terraform plan is executed?

A.

the backend is initialized and the working directory is prepped

B.

creates an execution plan and determines what changes are required to achieve the desired state in the configuration files.

C.

applies the changes required in the target infrastructure in order to reach the desired configuration

D.

reconciles the state Terraform knows about with the real-world infrastructure

Full Access
Question # 28

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

A.

lease_id

B.

vault_accessor

C.

revocation_access

D.

token_revocation_id

Full Access
Question # 29

Which TCP port does Vault replication use?

A.

8200

B.

8201

C.

8300

D.

8301

Full Access
Question # 30

What does the following API request return?

1. $ curl \

2. --header "X-Vault-Token: ..." \

3. --request POST \

4. --data @payload.json \

5. http://127.0.0.1:8200/v1/sys/tools/random/164

A.

a random string of 164 characters

B.

a random token valid for 164 uses

C.

None

D.

a secured secret based on 164 bytes of data

Full Access