When configuring Vault Agent caching, you notice that the cache is not effectively reducing requests. Which configuration parameter controls the lifespan of cached items?
Trap 1: ttl
The TTL is not a global parameter for the cache block.
Trap 2: expiry
This is not a valid configuration parameter.
Trap 3: cache_timeout
This parameter does not exist in the cache configuration.
- A
max_ttl
The max_ttl parameter sets the maximum lifespan of entries held in the Vault Agent cache. Lowering it forces more frequent revalidation against Vault, while raising it extends reuse; tuning this value directly governs how long cached secrets remain valid.
- B
ttl
Why it fails: The TTL is not a global parameter for the cache block.
- C
expiry
Why it fails: This is not a valid configuration parameter.
- D
cache_timeout
Why it fails: This parameter does not exist in the cache configuration.