Courseiva
LangChain and AI Application DevelopmentmediumMultiple SelectObjective-mapped

1Z0-1127-25 LangChain and AI Application Development Practice Question

A developer is building a conversational AI application using LangChain and needs to persist chat history across sessions. Which TWO approaches can they use? (Choose TWO.)

⚠ Common exam trap

The 1Z0-1127 exam often tests the misconception that any memory parameter or streaming feature inherently provides persistence, when in fact persistence requires an explicit storage backend such as a file, database, or external key-value store.

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

Use ConversationSummaryMemory and store the summary in a file

ConversationSummaryMemory can be persisted by storing its summary in a file, which allows chat history to survive across sessions. Option E is correct because ConversationBufferMemory can be explicitly saved to a database, providing durable storage for the conversation buffer. Both approaches decouple memory from the in-memory lifecycle, enabling cross-session persistence.

Answer analysis

Option-by-option breakdown

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

  • Use the agent's memory parameter with a default in-memory store

    Why it's wrong here

    Default memory is in-memory and not persisted.

  • Enable streaming responses to automatically save history

    Why it's wrong here

    Streaming responses do not provide persistence; they only affect output delivery.

  • Use ChatMessageHistory without a backing store

    Why it's wrong here

    ChatMessageHistory is an in-memory list; it does not persist unless connected to a persistent store.

  • Use ConversationSummaryMemory and store the summary in a file

    Why this is correct

    SummaryMemory keeps a running summary; persisting the summary file allows restoring history.

  • Use ConversationBufferMemory and save the buffer to a database

    Why this is correct

    ConversationBufferMemory stores messages; saving the buffer externally enables persistence across sessions.

About these practice questions

This 1Z0-1127-25 question is part of Courseiva's 768-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 by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 1Z0-1127-25 practice question is part of Courseiva's free Oracle 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 1Z0-1127-25 exam.