Free HCVA0-003 Exam Braindumps
HashiCorp Certified: Vault Associate (003) Questions 66–70 (page: 15)

Updated On: 10-Feb-2026

Holly has discovered that a highly privileged dynamic credential with a very long lease time was created, which could negatively impact the organization's security.
What command can Holly use to invalidate the credential so it can't be used without affecting other credentials?

  1. vault lease revoke aws/creds/admin/27e1b9a1-27b8-83d9-9fe0-d99d786bdc83
  2. Holly would need to delete the credential on the cloud platform directly
  3. vault lease revoke -all
  4. vault lease revoke aws/creds/admin/*

Answer(s): A

Explanation:

Comprehensive and Detailed in Depth
To invalidate a specific dynamic credential without affecting others, Holly should use the vault lease revoke command with the exact lease ID. The HashiCorp Vault documentation states: "The lease revoke command revokes the lease on a secret, invalidating the underlying secret. To revoke a lease, you can specify the path and lease ID attached to the creds." The command vault lease revoke aws/creds/admin/27e1b9a1-27b8-83d9-9fe0-d99d786bdc83 targets the specific credential by its unique lease ID, ensuring precision without broader impact. Deleting the credential on the cloud platform (B) doesn't guarantee Vault recognizes it as revoked. vault lease revoke -all (C) revokes all leases, affecting unrelated credentials. vault lease revoke aws/creds/admin/* (D) revokes all leases under that path, potentially impacting other valid credentials. Thus, A is the correct command.


Reference:

HashiCorp Vault Documentation - Lease Revoke Command



You need to write a Vault operator policy and give the users access to perform administrative actions in Vault.
What path is used for Vault backend functions?

  1. /security
  2. /admin
  3. /vault
  4. /system
  5. /sys
  6. /backend

Answer(s): E

Explanation:

Comprehensive and Detailed in Depth
The correct path for Vault backend functions, which include administrative actions, is /sys. The HashiCorp Vault documentation confirms: "All backend system functions live in the /sys backend. Policies should take /sys into account when users need to administer Vault configurations." This path hosts endpoints for system-level operations like mounting secrets engines, managing policies, and sealing/unsealing Vault.
Paths like /security, /admin, /vault, /system, and /backend are not standard for Vault's system backend. Only /sys provides the necessary administrative capabilities, making E the correct answer.


Reference:

HashiCorp Vault Documentation - System Backend



Your organization wants to set up human-based authentication for AzureAD. What authentication method should you enable and configure for Vault?

  1. OIDC/JWT
  2. Okta
  3. Active Directory
  4. UserPass

Answer(s): A

Explanation:

Comprehensive and Detailed in Depth
For human-based authentication with Azure Active Directory (AzureAD), the OIDC/JWT authentication method is the best choice. The HashiCorp Vault documentation explains: "The OIDC/JWT auth method is the best choice here. The organization should configure Vault to send authentication requests to AzureAD, which can then validate credentials on behalf of the user." OIDC (OpenID Connect) leverages AzureAD as an identity provider, allowing users to authenticate via their AzureAD credentials in a secure, human-friendly manner. Okta is a separate identity provider, not directly tied to AzureAD. Active Directory auth is deprecated and less suitable for cloud-based AzureAD integration. UserPass uses a local Vault-managed username/password, not external AzureAD authentication. Thus, A (OIDC/JWT) is correct.


Reference:

HashiCorp Vault Documentation - JWT/OIDC Auth Method



You need to connect to and manage a new HCP Vault cluster using the Vault CLI on your laptop.
What environment variables should you set to establish connectivity?

  1. VAULT_CLIENT_KEY=<path-to-key-file>, VAULT_TOKEN=<token-here>
  2. VAULT_NAMESPACE=root, VAULT_REDIRECT_ADDR=<cluster-address>
  3. VAULT_ADDR=https://<cluster-address>:8200, VAULT_NAMESPACE=admin
  4. VAULT_TOKEN=<token-here>, VAULT_CLUSTER_ADDR=https://<cluster-address>:8200

Answer(s): C

Explanation:

Comprehensive and Detailed in Depth
To connect to an HCP Vault cluster using the Vault CLI, you need to set VAULT_ADDR and VAULT_NAMESPACE. The HashiCorp Vault documentation states: "You can use environment variables to configure the CLI globally. For example, export VAULT_ADDR='http://localhost:8200' sets the address of your Vault server globally." For HCP Vault, the default port is 8200, and the default namespace is "admin," so VAULT_ADDR=https://<cluster-address>:8200 and VAULT_NAMESPACE=admin are required. A token (via VAULT_TOKEN) is also needed for authentication but is typically set after initial connectivity. VAULT_CLIENT_KEY isn't a standard variable for CLI connectivity. VAULT_REDIRECT_ADDR and VAULT_CLUSTER_ADDR are not used for this purpose. Thus, C provides the correct variables.


Reference:

HashiCorp Vault Documentation - CLI Environment Variables



You have a legacy application that requires secrets from Vault that must be written to a local configuration file. However, you cannot refactor the application to communicate directly with Vault.
What solution should you implement to satisfy the requirements?

  1. Run the Vault Agent and use the templating feature
  2. Use the Vault Proxy with Auto-Auth to authenticate with Vault
  3. Use the Vault Proxy to act as a proxy for the Vault API
  4. Use the Vault Agent and cache the newly created tokens and leases

Answer(s): A

Explanation:

Comprehensive and Detailed in Depth
For a legacy application that cannot communicate directly with Vault but needs secrets in a local configuration file, the Vault Agent with templating feature is the best solution. The HashiCorp Vault documentation notes: "Vault Agent can obtain secrets and provide them to applications," and its templating feature "generates dynamic credentials based on predefined templates" and writes them to files. This allows secrets to be automatically fetched and rendered into a configuration file, meeting the requirement without refactoring.
Vault Proxy with Auto-Auth simplifies authentication but doesn't inherently write secrets to files. Vault Proxy as an API proxy secures API access but doesn't address file writing. Vault Agent with caching improves performance but doesn't solve the file output need. Thus, A is correct.


Reference:

HashiCorp Vault Documentation - Vault Agent and Proxy



Viewing page 15 of 58
Viewing questions 71 - 75 out of 285 questions


Post your Comments and Discuss HashiCorp HCVA0-003 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!