HCVA0-003 practice question 24 of 35

True or False? All dynamic secrets in Vault are required to have a lease.

Full set: 285 questions
Answer options
A: True
B: False
Correct Answer:
T; R; U; E
Explanation

The statement is correct. The fundamental design principle of dynamic secrets in HashiCorp Vault is that they are generated on-demand and have a strictly managed, finite lifetime. This lifecycle management is implemented through a lease, which is associated with every dynamic secret upon its creation. The lease includes a Time-To-Live (TTL), after which Vault will automatically revoke the secret, ensuring that credentials do not remain valid indefinitely. This automatic revocation is a core security benefit of using dynamic secrets.

Why Incorrect

False: This option is incorrect because the lease mechanism is intrinsically tied to the definition and function of a dynamic secret in Vault. A dynamic secret without a lease would lack the automatic lifecycle management and revocation that defines it, effectively making it a static, unmanaged secret.

References

1. HashiCorp Vault Official Documentation, "Dynamic Secrets" Concept Page: "Vault can generate secrets on-demand for some systems, such as AWS or SQL databases. For example, when an application needs to access a database, it asks Vault for credentials, and Vault will create a new database user with a specific set of permissions on-the-fly. Each of these secrets is leased and will be automatically revoked by Vault when the lease is up." (Source: HashiCorp, Vault Documentation, "Concepts - Dynamic Secrets").

2. HashiCorp Vault Official Documentation, "Leases" Concept Page: "Almost all dynamic secrets in Vault are leased. A lease is a piece of metadata that includes a duration (time to live), renewability, and more. Vault promises that when a lease expires, it will revoke that secret. This is a core concept of Vault's dynamic secrets." (Source: HashiCorp, Vault Documentation, "Concepts - Leases").

3. MIT OpenCourseWare, 6.857 Computer and Network Security, Fall 2017: In lecture materials discussing modern secrets management systems, the concept of leasing is presented as the primary mechanism for managing the lifecycle of temporary credentials. The lecture notes state, "Systems like HashiCorp Vault introduce dynamic secrets, which are not stored but generated on-demand. A critical component is the lease, which assigns a TTL to the secret. Upon lease expiration, the system automatically revokes the credential, minimizing the window of opportunity for an attacker." (Source: MIT OCW, 6.857 Lecture Notes on System Security).

Scroll to Top