VAULT-ASSOCIATE-002 · Question #36
What information is required to revoke a Vault lease?
The correct answer is C. Lease ID. To revoke a specific Vault lease, the unique Lease ID associated with that lease is the essential piece of information required.
Question
Options
- ASecret ID
- BUser ID
- CLease ID
- DToken ID
How the community answered
(53 responses)- A2% (1)
- B2% (1)
- C92% (49)
- D4% (2)
Why each option
To revoke a specific Vault lease, the unique Lease ID associated with that lease is the essential piece of information required.
A Secret ID is used in conjunction with a Role ID for AppRole authentication to obtain a token, not for revoking an existing lease directly.
A User ID is an identifier for a user within an authentication system, not a direct Vault object used for revoking leases.
Vault uses Lease IDs to uniquely identify and manage the lifecycle of dynamically generated secrets and tokens; therefore, to revoke a specific lease, its corresponding Lease ID must be provided to the `vault lease revoke` command.
While a Token ID represents a client's access to Vault, revoking a specific *secret* lease requires its Lease ID, not the Token ID which might manage multiple leases.
Concept tested: Vault lease revocation
Source: https://developer.hashicorp.com/vault/docs/commands/lease/revoke
Topics
Community Discussion
No community discussion yet for this question.