HashiCorpAssociate levelPage 2 of 3

HashiCorp Vault Associate (003) exam dumps: questions 101 to 200 of 243

Page 2 of the free HashiCorp Vault Associate (003) question bank for the Vault Associate (003) exam. Questions 101 to 200 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated June 2026

Free HashiCorp Vault Associate (003) practice questions

Questions 101 to 105 of 243

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

HashiCorp Vault Associate (003) Question 101

Single answer4 Vault leases

A team uses Vault's database secrets engine to generate short-lived PostgreSQL credentials for an application. The app authenticates with AppRole, reads database credentials, and stores the returned username/password in memory. After several hours, the app begins failing to connect to the database because the generated credentials have expired. The team wants the application to keep using dynamically generated credentials without manual intervention and without increasing the role's TTLs. Which approach is the most appropriate?

  1. A

    Have the application renew the lease for the generated database credentials before the lease expires, and handle cases where renewal is not allowed by fetching new credentials

  2. B

    Renew the AppRole Secret ID lease only, because renewing the authentication material automatically extends all secret leases created by that client

  3. C

    Increase the token TTL on the AppRole login token, because secret leases inherit their lifetime from the client token and will extend automatically

  4. D

    Tune the database secrets engine mount with a longer default_lease_ttl so existing issued credentials become renewable for a longer period

Show answer and explanation

Correct answer: A

Explanation

Vault leases are central to how dynamic secrets are managed. When a secrets engine such as the database secrets engine issues credentials, Vault returns lease metadata including a lease ID, duration, and whether the lease is renewable. For long-running applications, best practice is to renew renewable leases before expiration and to be prepared to fetch a new secret if renewal is denied or unsupported. This is distinct from token renewal: renewing an auth token or AppRole Secret ID does not automatically renew dynamic secret leases. Likewise, changing mount TTL settings is not a retroactive fix for already-issued credentials and would not meet the requirement to avoid longer TTLs. HashiCorp Vault documentation for leases, lease renewal, and dynamic secrets emphasizes explicit lease lifecycle management by the client or by Vault Agent patterns where appropriate.

  • A. Correct.

    Correct. Dynamic secrets such as database credentials are returned with a lease. The client should track the lease duration and renew the lease before it expires when the backend supports renewal. If the lease is not renewable or renewal fails, the correct fallback is to request a fresh set of credentials and update the application to use them. This is the practical pattern for long-running applications that rely on leased dynamic secrets.

  • B. Incorrect.

    Incorrect. Secret ID is part of AppRole authentication, not the lease on the generated database credentials. Renewing or replacing authentication material does not automatically renew unrelated secret leases. Secret leases must be renewed directly, and some may not be renewable depending on backend behavior and lease settings.

  • C. Incorrect.

    Incorrect. A client token's lifetime and a secret's lease are related operationally, but renewing the token does not automatically renew every leased secret obtained with that token. Dynamic secrets have their own lease IDs and renewal semantics. The application must explicitly renew the secret lease or request new credentials.

  • D. Incorrect.

    Incorrect. Mount tuning affects leases issued after the change, not credentials that have already been issued. Also, making the mount's default TTL longer is contrary to the scenario requirement to avoid increasing TTLs. It does not solve the need for ongoing lease management in the application.

HashiCorp Vault Associate (003) Question 102

Single answer4 Vault leases

A team uses Vault's database secrets engine to generate short-lived PostgreSQL credentials for an internal reporting application. The application authenticates to Vault, reads dynamic credentials, and stores the returned username, password, and lease ID. During a deployment issue, the application instances are terminated unexpectedly before they can clean up. The security team wants the old database credentials invalidated as soon as possible rather than waiting for the full TTL to expire. Which action should an operator take in Vault to address this situation?

  1. A

    Revoke the specific lease IDs for the issued database credentials

  2. B

    Renew the leases so Vault can immediately rotate the database passwords

  3. C

    Delete the database role configuration so all existing credentials are instantly removed from the database

  4. D

    Disable the auth method used by the application so Vault automatically revokes all previously issued database credentials

Show answer and explanation

Correct answer: A

Explanation

Vault leases track the lifetime of many dynamically generated secrets, including database credentials from the database secrets engine. If a client cannot perform normal cleanup, an operator can revoke the lease to trigger immediate revocation of the underlying secret rather than waiting for the lease to expire naturally. This reflects a core Vault best practice: use renewal to extend access when still needed, and use revocation to invalidate access early. In Vault documentation, lease management centers on TTLs, renewal, and revocation, and dynamic secret engines commonly implement revocation by deleting or disabling the generated credential in the target system.

  • A. Correct.

    Correct. Dynamic secrets issued by the database secrets engine are associated with leases. Revoking a lease tells Vault to perform the secret engine's revocation action, which for database credentials typically means removing or disabling the generated database user immediately. This is the correct operational response when you know the affected lease IDs and want to invalidate those credentials before their TTL expires.

  • B. Incorrect.

    Incorrect. Renewing a lease extends its validity period; it does not invalidate the secret. An operator might choose this option because lease renewal is a common lease operation, but it has the opposite effect here: it would keep the credentials valid longer, not shorten their lifetime.

  • C. Incorrect.

    Incorrect. Deleting the database role affects future credential generation and may disrupt applications, but it is not the targeted way to immediately revoke already issued leased credentials. Existing dynamic secrets are managed through their leases and should be revoked directly when possible.

  • D. Incorrect.

    Incorrect. Disabling an auth method impacts authentication via that method, not necessarily the lifecycle of secrets already issued by another secrets engine. A common misconception is that auth tokens and secret leases are the same thing. While tokens can be revoked and token revocation can affect child tokens, disabling an auth method is not the appropriate mechanism for directly revoking previously issued database dynamic secret leases.

HashiCorp Vault Associate (003) Question 103

Single answer4 Vault leases

A platform team uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an internal reporting service. The service authenticates to Vault with AppRole, reads database credentials, and then runs long-lived jobs that can last several hours. Recently, jobs have started failing because the database username created by Vault disappears before the job completes. The team wants the application to keep using dynamic credentials but avoid manual operator intervention. Which action is the BEST solution?

  1. A

    Have the application renew the lease for the dynamic database credentials before the lease expires, up to the role or mount maximum TTL

  2. B

    Increase the AppRole token TTL only, because the database credentials lease automatically extends whenever the client token is still valid

  3. C

    Convert the database role from dynamic credentials to static credentials, because only static credentials support renewal for long-running jobs

  4. D

    Use a periodic token for AppRole and assume all secrets read with that token will remain valid as long as the periodic token is renewed

Show answer and explanation

Correct answer: A

Explanation

In Vault, leases control the lifetime of many dynamically generated secrets, such as credentials from the database secrets engine. A client token and a secret lease are separate objects with separate TTLs. If an application needs a dynamic secret longer than its initial TTL, the correct operational pattern is to renew the secret's lease before expiration, assuming the lease is renewable and has not reached a configured maximum TTL. If the lease is allowed to expire, Vault revokes the secret, which for database credentials commonly means deleting or disabling the generated username. This scenario tests the important distinction between token renewal and secret lease renewal. Vault documentation for leases, token concepts, and dynamic secrets emphasizes that secret leases must be managed explicitly and are constrained by backend and role TTL settings.

  • A. Correct.

    Correct. Dynamic secrets issued by Vault, including database credentials, are associated with a lease. If the secret is renewable, the client should renew that lease before it expires. Renewal extends the lease only within the limits configured by the secrets engine, mount, and role settings such as max TTL. This is the standard way for an application to keep leased dynamic credentials valid during long-running work.

  • B. Incorrect.

    Incorrect. A valid client token does not automatically renew the lease on a secret that was previously issued. Token lifetime and secret lease lifetime are related but distinct concepts in Vault. If the database credentials have their own lease and TTL, that lease must be renewed separately if renewable. Raising only the AppRole token TTL may prevent token expiration, but it will not by itself keep the database username from being revoked when its lease expires.

  • C. Incorrect.

    Incorrect. Static credentials are not the best solution here because the requirement is to continue using dynamic credentials. Dynamic database credentials are specifically designed for this use case, and lease renewal is the appropriate mechanism when jobs outlast the initial TTL. Choosing static credentials would reduce the benefits of ephemeral, automatically revoked access.

  • D. Incorrect.

    Incorrect. Periodic tokens can be renewed indefinitely if the holder continues renewing them, but that behavior applies to the token, not to every leased secret obtained with it. Dynamic secrets such as database credentials still have their own leases and renewal behavior. Renewing a periodic token does not automatically make those secret leases indefinite.

HashiCorp Vault Associate (003) Question 104

Single answer4 Vault leases

A team uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an internal reporting application. The security team wants those credentials to stop working immediately when the application is decommissioned, instead of waiting for the lease TTL to expire. An operator has the lease ID returned when the credentials were issued. What is the most appropriate action to meet this requirement?

  1. A

    Revoke the specific lease using Vault's lease revocation API or CLI so Vault runs the database secrets engine's cleanup for that credential

  2. B

    Reduce the auth token TTL for the application so the database username and password are deleted automatically before their lease expires

  3. C

    Seal the Vault cluster so all active leases are invalidated and the database secrets engine removes the generated user

  4. D

    Delete the database secrets engine mount configuration so existing dynamic credentials are immediately removed from PostgreSQL

Show answer and explanation

Correct answer: A

Explanation

Vault leases are central to dynamic secrets. When a secrets engine like the database secrets engine issues credentials, Vault returns a lease ID and TTL. If the secret should no longer be valid before the TTL ends, the correct operational response is to revoke that lease. On revocation, Vault calls the secrets engine's revocation logic to clean up the external resource, such as dropping the generated database user. This is more precise and safer than changing mount settings, sealing Vault, or manipulating token TTLs. HashiCorp Vault documentation on leases, lease revoke operations, and dynamic secrets best practices emphasizes using lease revocation for immediate invalidation of issued secrets.

  • A. Correct.

    Correct. Dynamic secrets issued by engines such as the database secrets engine are associated with leases. Revoking the lease tells Vault to perform the engine-specific revocation action, such as deleting or disabling the generated database user, rather than waiting for normal expiration. This is the standard way to invalidate a specific dynamic secret immediately when you have its lease ID.

  • B. Incorrect.

    Incorrect. Token TTL and secret lease TTL are related but not interchangeable. Shortening or changing an auth token does not directly revoke an already issued dynamic secret lease on demand. In many cases, revoking a token can revoke leases created through that token, but simply reducing TTL is not an immediate targeted action for an existing lease and does not use the provided lease ID.

  • C. Incorrect.

    Incorrect. Sealing Vault makes Vault unavailable until unsealed; it is not an operational method for selectively revoking a single lease. Sealing does not serve as the recommended mechanism to immediately clean up one application's dynamic database credentials.

  • D. Incorrect.

    Incorrect. Disabling or deleting a secrets engine mount is a disruptive administrative action and not the appropriate way to revoke one credential. It affects the entire mount and all secrets under it. The requirement is to stop one set of generated credentials immediately, which is what lease revocation is designed for.

HashiCorp Vault Associate (003) Question 105

Single answer4a Explain the purpose of a lease ID

A security engineer uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an application. During a deployment rollback, the team needs to immediately revoke only the credentials issued to one failed application instance without affecting other active instances that received their own credentials. Which piece of information should the engineer use to identify and revoke just that specific set of issued credentials?

  1. A

    The lease ID returned when the dynamic credentials were generated

  2. B

    The Vault token accessor for the engineer who requested the credentials

  3. C

    The mount path of the database secrets engine

  4. D

    The role name used to generate the credentials

Show answer and explanation

Correct answer: A

Explanation

The purpose of a lease ID in Vault is to uniquely track a leased secret instance, especially for dynamic secrets such as database credentials. When Vault returns a secret with a lease, it includes a lease ID so clients or operators can perform actions on that specific lease, such as lookup, renewal if renewable, or revocation. In practice, this is essential when multiple applications or instances use the same secrets engine and role, because the lease ID lets you manage one issued secret without affecting others. This aligns with Vault documentation on leases and dynamic secrets, where lease IDs are central to managing the lifecycle of issued secrets.

  • A. Correct.

    Correct. A lease ID uniquely identifies a leased secret returned by Vault, such as dynamic database credentials. The lease ID is used for lease lifecycle operations like lookup, renew when allowed, and revoke. In this scenario, revoking by lease ID lets the engineer target only the credentials issued to the failed instance instead of all credentials from the role or mount.

  • B. Incorrect.

    Incorrect. A token accessor identifies a token in a limited way and is used for token-related operations, not for uniquely identifying and revoking a specific leased secret like dynamic database credentials. Confusing token management with secret lease management is a common misconception.

  • C. Incorrect.

    Incorrect. The mount path identifies which secrets engine is in use, but it does not identify one specific issued credential set. Revoking at the mount level would be much broader than needed and could impact other applications using the same engine.

  • D. Incorrect.

    Incorrect. The role name determines how credentials are generated, but many different leases can be created from the same role. Using the role name alone would not isolate the single credential set issued to the failed instance.

Timed practice exam

Take a HashiCorp Vault Associate (003) practice test under exam conditions

70 questions in 60 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

HashiCorp Vault Associate (003) practice questions 101 to 200 of 243

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 3 pages of up to 100 questions.

  1. 101.A team uses Vault's database secrets engine to generate short-lived PostgreSQL credentials for an...
  2. 102.A team uses Vault's database secrets engine to generate short-lived PostgreSQL credentials for an internal...
  3. 103.A platform team uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an...
  4. 104.A team uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an internal...
  5. 105.A security engineer uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an...
  6. 106.A platform team uses Vault to generate dynamic database credentials for an application through the database...
  7. 107.A platform team retrieves dynamic database credentials from Vault for a temporary troubleshooting task. After...
  8. 108.A platform team uses Vault's database secrets engine to generate dynamic PostgreSQL credentials for an...
  9. 109.A platform engineer retrieves short-lived database credentials from Vault's database secrets engine for a...
  10. 110.A team runs a long-lived application that reads dynamic PostgreSQL credentials from Vault using the database...
  11. 111.A platform team runs an application that reads short-lived database credentials from Vault using the database...
  12. 112.A platform team stores short-lived database credentials in Vault using a dynamic secrets engine. An...
  13. 113.A team runs an application that reads database credentials from Vault's database secrets engine. During a...
  14. 114.A team runs an application that retrieves dynamic database credentials from Vault using the database secrets...
  15. 115.A security team discovers that a developer accidentally exposed a database credential generated by Vault's...
  16. 116.A team retrieves dynamic PostgreSQL credentials from Vault's database secrets engine for a deployment. During...
  17. 117.A security team discovers that an application server may be compromised. The server has been using Vault to...
  18. 118.A security team discovers that an application server may be compromised. The server was using Vault database...
  19. 119.A security team discovers that a database credential generated by Vault's database secrets engine may have...
  20. 120.A platform team is migrating application secrets into Vault. For one legacy application, the team wants to...
  21. 121.A platform team uses HashiCorp Vault to provide database credentials to application teams. The security team...
  22. 122.A platform team stores application configuration in Vault and wants to reduce the risk of long-lived database...
  23. 123.A platform team uses Vault to provide database credentials to an application. They enabled the database...
  24. 124.A team stores application configuration in Vault's KV v2 secrets engine at path secret/. Developers need to...
  25. 125.A platform team is migrating several internal applications to HashiCorp Vault. One application connects to...
  26. 126.A company is moving a legacy application to Kubernetes. The application needs database credentials for...
  27. 127.A platform team is onboarding a new internal application to Vault. The application runs in Kubernetes and...
  28. 128.A platform team is migrating several applications to HashiCorp Vault. One legacy application cannot be...
  29. 129.A company is moving a legacy application into Kubernetes and wants to stop storing long-lived database...
  30. 130.A platform team is migrating several applications to HashiCorp Vault. One application runs short-lived CI...
  31. 131.A company is migrating several applications to HashiCorp Vault. Their PostgreSQL database currently uses one...
  32. 132.A platform team is migrating application credentials into Vault. One application connects to PostgreSQL and...
  33. 133.A company is migrating several applications to HashiCorp Vault. One application runs batch jobs against...
  34. 134.A platform team is migrating application credentials into Vault. One application connects to PostgreSQL and...
  35. 135.A development team is building a payment application that must encrypt credit card numbers before storing...
  36. 136.A development team is building a payment application that must protect cardholder data. Company policy does...
  37. 137.A development team is building a payment application that must protect sensitive cardholder data. Security...
  38. 138.A development team is building a payment application that must protect sensitive cardholder data. Security...
  39. 139.A development team is building a payment application that must protect cardholder data. Security policy...
  40. 140.A platform team is onboarding a new internal application to HashiCorp Vault. The developers currently store a...
  41. 141.A platform team is moving several applications to HashiCorp Vault. One application currently stores a...
  42. 142.A platform team is replacing hard-coded database passwords in an application with HashiCorp Vault. The team...
  43. 143.A company is moving several internal applications to HashiCorp Vault. The security team wants developers to...
  44. 144.A platform team is onboarding a new application to HashiCorp Vault. The application currently stores a...
  45. 145.A platform team is onboarding a new application in a restricted network segment. For security reasons, the...
  46. 146.A platform team needs to deliver a newly generated database credential from Vault to a bootstrap process...
  47. 147.A platform team needs to deliver a short-lived database credential from Vault to a bootstrap script running...
  48. 148.A platform team needs to deliver a short-lived AppRole SecretID from a CI pipeline to a deployment job...
  49. 149.A platform team needs to deliver a short-lived AppRole SecretID from a secure CI pipeline to an application...
  50. 150.A company is moving a legacy web application to HashiCorp Vault. Today, all application servers share the...
  51. 151.A company is migrating a legacy application to HashiCorp Vault. Today, every application server uses the same...
  52. 152.A company is migrating a legacy application to use HashiCorp Vault for database access. Today, the...
  53. 153.A company currently stores a shared database username and password in a CI/CD pipeline so application...
  54. 154.A company is migrating a legacy application to HashiCorp Vault. Today, the application uses a shared database...
  55. 155.A platform engineer needs to enable the KV version 2 secrets engine at the custom path "apps/" in an existing...
  56. 156.Your team is onboarding an application that needs static database credentials stored in Vault. A Vault...
  57. 157.A platform engineer needs to enable the KV v2 secrets engine at the path "apps/" in an existing Vault...
  58. 158.A Vault administrator needs to enable the KV v2 secrets engine at a custom path named "apps/" so application...
  59. 159.A Vault administrator needs to enable the KV v2 secrets engine at the path "apps/" in a development Vault...
  60. 160.Your team stores application credentials in a KV v2 secrets engine mounted at secret/. A developer can...
  61. 161.Your team stores application credentials in a KV v2 secrets engine mounted at secret/. A developer can log in...
  62. 162.A team stores application credentials in a KV v2 secrets engine mounted at secret/. A developer has already...
  63. 163.A development team stores application credentials in Vault using the KV v2 secrets engine enabled at path...
  64. 164.Your team stores application credentials in a KV v2 secrets engine mounted at secret/. A developer can log in...
  65. 165.A security team wants several internal applications to protect customer identifiers without storing...
  66. 166.A development team wants to store customer records in a shared database while keeping sensitive fields...
  67. 167.A development team wants to protect customer account numbers used by several internal applications. They do...
  68. 168.A development team needs an application to store customer records in a database while keeping sensitive...
  69. 169.A development team wants several internal applications to protect customer account numbers without storing...
  70. 170.A security team stores customer API keys in an external application database, but developers must never see...
  71. 171.A security team wants an internal application to protect customer SSNs without storing encryption keys in the...
  72. 172.A security team wants an internal billing application to protect customers' account numbers without storing...
  73. 173.A security team wants an internal application to protect API tokens before storing them in a database. The...
  74. 174.A security team stores API keys in an application database and wants to reduce exposure by encrypting the...
  75. 175.A security team requires a periodic rotation of the key Vault uses to encrypt data at rest. An operator is...
  76. 176.A security team requires that the Vault cluster's encryption key for the storage backend be rotated on a...
  77. 177.Your team suspects that an old unseal key share may have been exposed during an incident review. Vault is...
  78. 178.A security team requires that the key used to encrypt data stored by Vault be rotated as part of a routine...
  79. 179.A security team requires periodic rotation of the key that Vault uses to encrypt data at rest. A Vault...
  80. 180.A company is deploying Vault for a production application used by teams in multiple regions. They want Vault...
  81. 181.A company is deploying Vault in production for multiple internal applications. The security team wants Vault...
  82. 182.A company is deploying Vault for a production application that runs in a single region. The security team...
  83. 183.A company runs a three-node Vault cluster in production with integrated storage (Raft). During a maintenance...
  84. 184.A company runs Vault in production with three server nodes using integrated storage (Raft). One node is the...
  85. 185.A security team is reviewing a HashiCorp Vault deployment that stores secrets in an external storage backend....
  86. 186.A security team is reviewing a new HashiCorp Vault deployment used to store database passwords and API keys....
  87. 187.A security team is reviewing a new HashiCorp Vault deployment before approving it for production. They want...
  88. 188.A security engineer is reviewing a new HashiCorp Vault deployment used to store database credentials and API...
  89. 189.A security engineer is reviewing a new HashiCorp Vault deployment that uses integrated storage. The engineer...
  90. 190.A company runs a Vault cluster with Shamir seal enabled and a key threshold of 3. After a planned maintenance...
  91. 191.A company runs a Vault cluster for internal applications. During a maintenance event, the security team...
  92. 192.A company runs a Vault cluster with Shamir seal enabled and a key threshold of 3 out of 5. After a...
  93. 193.A company runs a production Vault cluster using Shamir seal with a key threshold of 3 of 5. After a...
  94. 194.A security engineer is rotating infrastructure in a development environment and intentionally seals a Vault...
  95. 195.A platform engineer is preparing a Linux jump host for operators who will use the Vault CLI throughout the...
  96. 196.An operations engineer is automating a script that runs Vault CLI commands from a CI runner. The runner...
  97. 197.A platform engineer is troubleshooting why Vault CLI commands fail on a build server. Running vault status...
  98. 198.A platform engineer is troubleshooting why a deployment script can authenticate to Vault interactively from...
  99. 199.A platform engineer is preparing a bastion host for administrators who will use the Vault CLI against a...
  100. 200.A company is deploying Vault for a production application across three virtual machines in a single region....