Courseiva
Security →mediumMultiple Choice

CCDV-F Security Practice Question

What is the most secure method for handling long-term memory for an AI agent that handles sensitive customer data?

⚠ Common exam trap

Candidates often suggest storing memory in the model's context window or a standard database, overlooking the need for encryption and fine-grained access control in vector stores.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Store indexed, encrypted embeddings in a hardened vector database with fine-grained access control.

Long-term memory must be treated with the same security rigor as production databases. By using an encrypted, access-controlled vector store that limits retrieval to authorized queries, you ensure that sensitive information is stored safely and retrieved only for appropriate contexts. This avoids storing data in plaintext or in the model's context window, both of which are high-risk practices for managing sensitive information in agentic applications.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Save the entire conversation history as a text file in the local file system.

    Why it's wrong here

    Storing conversation history in plaintext files on the local filesystem is a major security risk. It exposes sensitive data to unauthorized local users and increases the probability of data breaches. Persistent storage must be encrypted, access-controlled, and managed via secure database practices, not simple text files.

  • ✓

    Store indexed, encrypted embeddings in a hardened vector database with fine-grained access control.

    Why this is correct

    This approach secures the data at rest through encryption and ensures that access is strictly controlled. Using a hardened vector database ensures that the memory is managed with enterprise-grade security standards, preventing unauthorized access or leakage of the sensitive data that the agent uses to provide its functionality.

  • ✗

    Keep all memory in the model's context window for the duration of the session.

    Why it's wrong here

    Keeping all data in the context window is not long-term memory; it is a session-based approach that is extremely expensive and limited in capacity. Furthermore, if the context is logged or exposed, the entire history becomes vulnerable, making it a poor choice for managing sensitive information over time.

  • ✗

    Have the model generate a summary of the data and store only the summary.

    Why it's wrong here

    Summarizing data reduces the amount of information but does not secure it. If the summary still contains sensitive information, the security risk remains. Additionally, summaries can lead to data loss and hallucinated details, which may impact the agent's accuracy and integrity, making this an unreliable security strategy.

About these practice questions

This CCDV-F question is part of Courseiva's 257-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Anthropic exam blueprint

This CCDV-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCDV-F exam.