Free HCVA0-003 Exam Braindumps
HashiCorp Certified: Vault Associate (003) Questions 111–115 (page: 24)

Updated On: 10-Feb-2026

After creating a dynamic credential on a database, the DBA accidentally deletes the credentials on the database itself.
When attempting to remove the lease, Vault returns an error stating that the credential cannot be found.
What command can be run to make Vault remove the secret?

  1. vault lease revoke -force -prefix <lease_path>
  2. vault lease -renew
  3. vault lease revoke -enforce
  4. vault revoke -apply

Answer(s): A

Explanation:

Comprehensive and Detailed in Depth
When a dynamic credential is deleted externally, Vault may fail to revoke the lease due to the missing backend secret. The HashiCorp Vault documentation states: "The -force flag is meant for recovery situations where the secret in the target platform was manually removed." The command vault lease revoke -force -prefix <lease_path> allows Vault to forcibly revoke all leases under the specified prefix, bypassing the error.
The docs elaborate: "Using -force with -prefix will revoke all leases that match the given prefix, even if the underlying secrets cannot be found or revoked on the target system. This is useful for cleaning up Vault's lease table when external changes disrupt normal revocation." Here, <lease_path> would be the path like database/creds/role/. B (vault lease -renew) renews leases, not removes them. C (- enforce) is not a valid flag. D (vault revoke -apply) is incorrect syntax. Thus, A is correct.


Reference:

HashiCorp Vault Documentation - Lease Revoke Command: Force



What command is used to extend the TTL of a token, if permitted?

  1. vault token revoke <token-id>
  2. vault capabilities <token-id>
  3. vault token lookup <token-id>
  4. vault token renew <token-id>

Answer(s): D

Explanation:

Comprehensive and Detailed in Depth
To extend a token's TTL, the vault token renew command is used. The HashiCorp Vault documentation states: "In order to renew a token, a user can issue a vault token renew command to extend the TTL. The token can also be renewed using the API." It adds: "The vault token renew command extends the Time To Live (TTL) of a token if the policy associated with the token permits renewal."
The docs detail: "Tokens have a TTL that determines their validity period. If renewable, the renew command can be used before expiration to extend this duration, subject to any max TTL limits." A (revoke) invalidates tokens. B (capabilities) shows permissions, not TTL. C (lookup) displays token info, not extends it. Thus, D is correct.


Reference:

HashiCorp Vault Documentation - Token Renew Command



An application has authenticated to Vault and has obtained dynamic database credentials with a lease of 4 hours. Four hours later, the credentials expire, and the application can no longer communicate with the backend database, so the application goes down.
What should the developers instruct the application to do to prevent this from happening again while maintaining the same level of security?

  1. Go back to using static credentials
  2. Renew the lease before expiration
  3. Revoke the lease before expiration
  4. Use a different auth method

Answer(s): B

Explanation:

Comprehensive and Detailed in Depth
To prevent application downtime due to expired dynamic credentials while maintaining security, the application should renew the lease before it expires. The HashiCorp Vault documentation states:
"The application should frequently `check-in' with Vault and renew the lease to prevent the lease from expiring." It adds: "A lease must be renewed before it has expired. Once it has expired, it is permanently revoked and a new secret must be requested." The docs elaborate: "Dynamic secrets are designed to be short-lived and automatically rotated or revoked when their lease expires. Renewing the lease extends its validity, ensuring continuous access without compromising the security benefits of short-lived credentials." A (Static credentials) reduces security by eliminating rotation. C (Revoke) ends access early. D (Different auth method) doesn't address lease management. Thus, B is correct.


Reference:

HashiCorp Vault Documentation - Leases: Lease Renew and Revoke



Christy has created a token and needs to use that token to access Vault.
What command can she use to authenticate and access secrets stored in Vault?

$ vault token create -policy=christy
Key Value
--- -----
token hvs.hxDIPd8RPVtxu4AzSGS1lArP
token_accessor AxwxpDs6LbdFQbWGmBDnwIK3
token_duration 24h token_renewable true token_policies ["christy" "default"]
identity_policies []
policies ["christy" "default"]

  1. vault login hvs.hxDIPd8RPVtxu4AzSGS1lArP
  2. vault login -method=password
  3. vault login -method=token christy
  4. vault login -accessor=AxwxpDs6LbdFQbWGmBDnwIK3

Answer(s): A

Explanation:

Comprehensive and Detailed in Depth
To authenticate with a specific token, Christy should use the vault login command with the token value. The HashiCorp Vault documentation states: "To login with a token, you can use vault login <token> or even vault login -method=token <token> if you like typing more." For the given token hvs.hxDIPd8RPVtxu4AzSGS1lArP, the command vault login hvs.hxDIPd8RPVtxu4AzSGS1lArP authenticates Christy and stores the token for subsequent CLI use.
The docs provide an example: "```
$ vault login s.sf4vj1rFV5PvQSbrxQFsfbXA
Success! You are now authenticated. The token information displayed below is already stored in the token helper. You do NOT need to run `vault login' again. Future Vault requests will automatically use this token.
Key Value token s.sf4vj1rFV5PvQSbrxQFsfbXA



Vault operators can create two types of groups in Vault.
What are the two types?

  1. External groups
  2. Security groups
  3. Policy groups
  4. Internal groups

Answer(s): A,D

Explanation:

Comprehensive and Detailed In-Depth
In HashiCorp Vault, operators can create two distinct types of groups within the Identity secrets engine: external groups and internal groups. These groups are used to manage and organize users and policies, facilitating access control and permissions management. External Groups: These groups are designed to integrate with external identity providers or systems,

such as LDAP or OIDC (OpenID Connect). External groups allow Vault to map groups from these external systems to Vault policies, enabling seamless access control for users authenticated via external auth methods. They can be created manually or automatically mapped (e.g., from LDAP group memberships to Vault policies). This is particularly useful when managing users who exist outside of Vault's internal identity store but need access to Vault resources. The documentation states: "External groups are usually associated with an auth method, such as LDAP or OIDC." Internal Groups: These are created and managed directly within Vault's identity store. Internal groups are used to organize Vault entities (representing users or machines) and assign policies to them manually. They are ideal for scenarios where user management is entirely within Vault's ecosystem, without reliance on external identity providers. The documentation explains: "Internal groups are created in the identity store and map to other groups or entities." Incorrect Options:

Security Groups: This term is not used in Vault's context for group types.
While security is a core concern, "security groups" do not represent a specific category of groups in Vault. Policy Groups: Policies in Vault define permissions, but there is no concept of "policy groups" as a distinct group type. Policies are attached to groups, not grouped themselves in this manner. The distinction between external and internal groups enhances flexibility in managing authentication and authorization, aligning with Vault's design to support both internal and federated identity systems.


Reference:

https://developer.hashicorp.com/vault/docs/secrets/identity#external-vs-internal-groups



Viewing page 24 of 58
Viewing questions 116 - 120 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!