Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free HashiCorp VA-002-P Practice Exam with Questions & Answers | Set: 4

Questions 31

Which commands are available only after Vault has been unsealed? (select two)

Options:
A.

vault login -method=ldap -username=vault

B.

vault operator unseal

C.

vault kv get kv/apps/app01

D.

vault status

HashiCorp VA-002-P Premium Access
Questions 32

You want to encrypt a credit card number using the transit secrets engine. You enter the following command and receive an error. What can you do to ensure that the credit card number is properly encrypted and the ciphertext is returned?

1. $ vault write -format=json transit/encrypt/creditcards plaintext="1234 5678 9101 1121"

2. Error writing data to transit/encrypt/orders: Error making API request.

3.

4. URL: PUT http://10.25.16.165:8200/v1/transit/encrypt/creditcards

5. Code: 400. Errors:

6.

7. * illegal base64 data at input byte 4

Options:
A.

credit card numbers are not supported using the transit secrets engine since it is considered sensitive data

B.

the token used to issue the encryption request does not have the appropriate permissions

C.

the plain text data needs to be encoded to base64

D.

the credit card number should not include spaces

Questions 33

In order to reduce the time it takes to provision resources, Terraform uses parallelism. By default, how many resources will Terraform provision concurrently?

Options:
A.

20

B.

50

C.

5

D.

10

Questions 34

Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?

Options:
A.

terraform fmt

B.

terraform destroy

C.

terraform taint

D.

terraform refresh

Questions 35

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

Questions 36

A user has created a module called "my_test_module" and committed it to GitHub. Over time, several commits have been made with updates to the module, each tagged in GitHub with an incremental version number. Which of the following lines would be required in a module configuration block in terraform to select tagged version v1.0.4?

Options:
A.

source = "<a href="git::https://wpexpertsupport.com/my_test_module.git#tag=v1.0.4">git::https://wpexpertsupport.com/my_test_module.git#tag=v1.0.4</a> "

B.

source = "<a href="git::https://wpexpertsupport.com/my_test_module.git@tag=v1.0.4">git::https://wpexpertsupport.com/my_test_module.git@tag=v1.0.4</a> "

C.

source = "<a href="git::https://wpexpertsupport.com/my_test_module.git?ref=v1.0.4">git::https://wpexpertsupport.com/my_test_module.git?ref=v1.0.4</a> "

D.

source = "<a href="git::https://wpexpertsupport.com/my_test_module.git">git::https://wpexpertsupport.com/my_test_module.git</a> &ref=v1.0.4"

Questions 37

Which is not a capability that can be used when writing a Vault policy?

Options:
A.

read

B.

list

C.

delete

D.

create

E.

modify

F.

update

Questions 38

After decrypting data using the transit secrets engine, the plaintext output does not match the plaintext credit card number that you encrypted. Which of the following answers provides a solution?

1. $ vault write transit/decrypt/creditcard\ ciphertext="vault:v1:cZNHVx+sxdMErXRSuDa1q/pz49fXTn1PScKfhf+PIZPvy8xKfkytpwKcbC0fF2U=" \

2.

3. Key Value

4. --- -----

5. plaintext Y3JlZGl0LWNhcmQtbnVtYmVyCg==

Options:
A.

The resulting plaintext data is base64-encoded. To reveal the original plaintext, use the base64 --decode command.

B.

The data is corrupted. Execute the encryption command again using a different data key

C.

the user doesn't have permission to decrypt the data, therefore Vault returns false data so as not to reveal if the data was actually encrypted by Vault

D.

Vault is sealed, therefore the data cannot be decrypted. Unseal Vault to properly decrypt the data

Questions 39

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

Questions 40

During a terraform apply, a resource is successfully created but eventually fails during provisioning. What happens to the resource?

Options:
A.

Terraform attempts to provide the resource up to three times before exiting with an error

B.

the terraform plan is rolled back and all provisioned resources are removed

C.

it is automatically deleted

D.

the resource is marked as tainted

Exam Code: VA-002-P
Certification Provider: HashiCorp
Exam Name: HashiCorp Certified: Vault Associate
Last Update: Jul 15, 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.