Pass the HashiCorp HashiCorp Security Automation Certification VA-002-P Questions and answers with CertsForce

Viewing page 4 out of 6 pages
Viewing questions 31-40 out of questions
Questions # 31:

Complete the following sentence:

The terraform state command can be used to ____

Options:

A.

view the entire state file


B.

modify the current state, such as removing items


C.

refresh the existing state


D.

there is no such command


Expert Solution
Questions # 32:

Which of the following cloud providers are not supported by Vault secrets engines?

Options:

A.

Oracle


B.

Azure


C.

AWS


D.

GCP


E.

AliCloud


Expert Solution
Questions # 33:

In terraform, most resource dependencies are handled automatically. Which of the following statements describes best how terraform resource dependencies are handled?

Options:

A.

The terraform binary contains a built-in reference map of all defined Terraform resource dependencies. Updates to this dependency map are reflected in terraform versions. To ensure you are working with the latest resource dependency map you much be running the latest version of Terraform.


B.

Terraform analyses any expressions within a resource block to find references to other objects and treats those references as implicit ordering requirements when creating, updating, or destroying resources.


C.

Resource dependencies are identified and maintained in a file called resource. dependencies. Each terraform provider is required to maintain a list of all resource dependencies for the provider and it's included with the plugin during initialization when terraform init is executed. The file is located in the terraform.d folder.


D.

Resource dependencies are handled automatically by the depends_on meta_argument, which is set to true by default.


Expert Solution
Questions # 34:

True or False:

The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. If the drift is detected between the real-world infrastructure and the last known-state, it will modify the infrastructure to correct the drift.

Options:

A.

False


B.

True


Expert Solution
Questions # 35:

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


Expert Solution
Questions # 36:

In regards to the transit secrets engine, which of the following is true given the following command and output: (select three)

1. $ vault write encryption/encrypt/creditcard plaintext=$(base64 <<< "1234 5678 9101 1121")

2. Key Value

3. --- -----

4. ciphertext vault:v3:cZNHVx+sxdMErXRSuDa1q/pz49fXTn1PScKfhf+PIZPvy8xKfkytpwKcbC0fF2U=

Options:

A.

there are at least three data keys associated with this keyring


B.

the name of the keyring used to encrypt the data is creditcard


C.

the data was written to the encryption path, which is provided by default when enabling the transit secrets engine


D.

the transit secrets engine is mounted at the encryption path


Expert Solution
Questions # 37:

You want to use terraform import to start managing infrastructure that was not originally provisioned through infrastructure as code. Before you can import the resource's current state, what must you do in order to prepare to manage these resources using Terraform?

Options:

A.

run terraform refresh to ensure that the state file has the latest information for existing resources.


B.

update the configuration file to include the new resources


C.

modify the Terraform state file to add the new resources


D.

shut down or stop using the resources being imported so no changes are inadvertently missed


Expert Solution
Questions # 38:

What type of policy is shown below?

1. key_prefix "vault/" {

2. policy = "write"

3. }

4. node_prefix "" {

5. policy = "write"

6. }

7. service "vault" {

8. policy = "write"

9. }

10. agent_prefix "" {

11. policy = "write"

12. }

13. session_prefix "" {

14. policy = "write"

15. }

Options:

A.

Vault policy allowing access to certain paths


B.

Consul ACL policy for a Vault node


C.

Consul configuration policy to enable Consul features


D.

Vault token policy is written for a user


Expert Solution
Questions # 39:

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

Options:

A.

inspection of cloud resources


B.

increased performance


C.

mapping configuration to real-world resources


D.

determining the correct order to destroy resources


Expert Solution
Questions # 40:

When registering a plugin with Vault, where would you configure the location where the binaries are located in order for Vault to properly register the plugin?

Options:

A.

in the Vault configuration file using plugin_directory=


B.

in the UI underneath the plugin tab


C.

in the plugin configuration file using directory=


D.

within the CLI command when registering a plug


Expert Solution
Viewing page 4 out of 6 pages
Viewing questions 31-40 out of questions