nerdexam
HashiCorp

VAULT-ASSOCIATE-002 · Question #80

Where does the Vault Agent store its cache?

The correct answer is D. In memory. The Vault Agent stores its cache exclusively in memory to ensure secrets are never written to persistent storage, thereby maintaining a high level of security.

Submitted by layla.eg· Apr 18, 2026Understand Vault Architecture

Question

Where does the Vault Agent store its cache?

Options

  • AIn a file encrypted using the Vault transit secret engine
  • BIn the Vault key/value store
  • CIn an unencrypted file
  • DIn memory

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    2% (1)
  • D
    88% (45)

Why each option

The Vault Agent stores its cache exclusively in memory to ensure secrets are never written to persistent storage, thereby maintaining a high level of security.

AIn a file encrypted using the Vault transit secret engine

Storing secrets in an encrypted file, even if encrypted by Vault Transit, would still involve writing them to disk, which the Vault Agent's in-memory cache design specifically avoids for security reasons.

BIn the Vault key/value store

The Vault Agent caches secrets *from* the Vault key/value store or other secret engines; it does not store its cache *within* the Vault key/value store itself.

CIn an unencrypted file

Storing an unencrypted cache in a file would be a severe security vulnerability, directly exposing sensitive secrets on disk, which is contrary to Vault's security principles.

DIn memoryCorrect

The Vault Agent's cache is intentionally designed to be stored only in volatile memory. This is a critical security measure to prevent sensitive secrets from being written to persistent storage (like disk) on the client machine, thereby reducing the risk of data compromise if the host is breached.

Concept tested: Vault Agent cache storage location

Source: https://developer.hashicorp.com/vault/docs/agent/caching

Topics

#Vault Agent#Caching#Memory storage

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice