HashiCorp Certified: Vault Associate (003) HCVA0-003 Exam Questions

Page: 1 / 14
Total 285 questions
Question 1

Kyle enabled the database secrets engine for dynamic credentials. Amy, the senior DBA, accidentally deleted the database users created by Vault, disrupting client applications. How can Kyle manually remove the leases in Vault?



Answer : C

Comprehensive and Detailed In-Depth

To clean up disrupted leases:

C . vault lease revoke -force: 'Using the vault lease revoke -force flag is the correct way to manually remove leases in Vault.' With -prefix, it targets specific leases (e.g., vault lease revoke -force -prefix database/creds/<role>). 'This is meant for recovery situations where the secret was manually removed.'

Incorrect Options:

A: Waiting risks ongoing issues. 'May take time and could cause disruptions.'

B: Inaccurate; -force is needed. 'Not a valid approach without -force.'

D: Too broad, affects other leases. 'May impact other valid credentials.'


Question 2

How does the instance updates feature work when using the Vault Secrets Operator?



Answer : D

Comprehensive and Detailed In-Depth

The Vault Secrets Operator (VSO) uses event notifications for instant updates. The Vault documentation states:

'Vault Secrets Operator (VSO) supports instant updates for VaultStaticSecrets by subscribing to event notifications from Vault. This allows the Vault Secrets Operator to receive real-time updates and changes to secrets, ensuring that the application always has access to the latest secret values without the need for manual intervention.'

--- Vault Secrets Operator: Instant Updates

D: Correct. Subscribing to Vault's event notifications enables real-time updates.

A: Audit logs track actions, not real-time updates.

B: Constant validation isn't the mechanism; it's notification-driven.

C: Continuous init containers are inefficient and not used by VSO.


Vault Secrets Operator: Instant Updates

Question 3

True or False? Although AppRole is designed for machines, humans can use it to authenticate to Vault if you wish.



Answer : A

Comprehensive and Detailed In-Depth

AppRole's flexibility allows human use:

A . True: 'Although AppRole is primarily designed for machine-to-machine authentication, it can also be used by humans to authenticate to Vault if needed.' It uses a role_id and secret_id, which, while less convenient for humans, are technically usable. 'Yeah, absolutely. Although it's not super friendly for us humans to remember the values, you could use it if you wanted to.'

Incorrect Option:

B . False: Incorrect; it's not restricted to machines only.

This adaptability broadens AppRole's applicability.


Question 4

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



Answer : B

Comprehensive and Detailed in Depth Explanatio n:

The statement is False. The HashiCorp Vault documentation clarifies: 'The userpass auth method uses a local database that cannot interact with any services outside of the Vault instance.' It relies solely on credentials stored within Vault, lacking the ability to integrate with external services for authentication, unlike methods like OIDC or LDAP.

Thus, B (False) is the correct answer.


HashiCorp Vault Documentation - Userpass Auth Method

Question 5

You are using Azure Key Vault for the auto-unseal configuration on your cluster. After the Vault service restarts, what command must you run to unseal Vault?



Answer : A

Comprehensive and Detailed in Depth Explanatio n:

When using Azure Key Vault for auto-unseal, no manual command is required to unseal Vault after a service restart. The HashiCorp Vault documentation states: 'Vault supports opt-in automatic unsealing via cloud technologies: AliCloud KMS, AWS KMS, Azure Key Vault, Google Cloud KMS, and OCI KMS. This feature enables operators to delegate the unsealing process to trusted cloud providers to ease operations in the event of partial failure and to aid in the creation of new or ephemeral clusters.' Specifically, for Azure Key Vault, 'the auto-unseal feature automatically handles the unsealing process,' eliminating the need for manual intervention.

The documentation further explains: 'When configured with auto-unseal, Vault will automatically unseal itself upon startup using the configured key management service, provided the necessary permissions and credentials are in place.' Options like vault operator unseal are for manual unsealing, vault operator members lists cluster members, and vault operator init initializes Vault---none apply to auto-unseal scenarios. Thus, A is correct.


HashiCorp Vault Documentation - Auto Unseal with Azure Key Vault

HashiCorp Vault Documentation - Seal Concepts: Auto Unseal

Question 6

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



Answer : A, D

Comprehensive and Detailed in Depth Explanatio n:

Vault creates two default policies upon initialization: root and default. The HashiCorp Vault documentation states: 'Vault creates two default policies, root and default. The root policy cannot be deleted or modified. The default policy is attached to all tokens, by default, however, this action can be modified if needed.' The root policy grants unrestricted access for administrative tasks, while the default policy provides basic permissions for all tokens unless overridden.

Policies like user, admin, base, and vault are not default; they must be explicitly created by users if needed. Thus, A (root) and D (default) are the correct selections.


HashiCorp Vault Documentation - Policies: Built-in Policies

Question 7

Based on the output below, how many policies have been added to Vault?

$ vault policy list

base

default

root

web-app-1

automation-team



Answer : A

Comprehensive and Detailed In-Depth

The vault policy list command displays all policies in Vault. The output lists five policies: 'base', 'default', 'root', 'web-app-1', and 'automation-team'. However, 'root' and 'default' are built-in policies:

Built-in Policies:

'root': A superuser policy created by default.

'default': Provides common permissions, also default. 'Vault has two default policies, root and default.'

Added Policies:

'base', 'web-app-1', 'automation-team' are not built-in, meaning they were added. Thus, 3 policies were added.

Incorrect Options:

B . 4: Overcounts by including one built-in.

C . 1, D. 2: Undercounts the added policies.


Page:    1 / 14   
Total 285 questions