1Z0-1127-25 LangChain and AI Application Development Practice Question
A team is building a conversational chatbot using LangChain and OCI Generative AI. They want to maintain a summary of the conversation rather than storing the entire history, to keep within token limits. Which memory class should they use, and what additional step is required when initializing the memory?
⚠ Common exam trap
The 1Z0-1127 exam often tests the distinction between memory classes that truncate versus those that summarize, and the trap here is that candidates may confuse ConversationTokenBufferMemory (which drops messages) with summary-based memory, missing the critical requirement to provide an LLM for summary generation.
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
✓
ConversationSummaryMemory; provide an LLM to generate summaries
ConversationSummaryMemory is designed to maintain a running summary of the conversation instead of storing the full history, which directly addresses the requirement to stay within token limits. The additional step required is providing an LLM (e.g., via `llm=ChatOpenAI(...)`) because the memory class uses the LLM to generate and update the summary dynamically.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ConversationBufferWindowMemory; set a window size
Why it's wrong here
WindowMemory keeps last k messages, not a summary.
- ✗
ConversationTokenBufferMemory; set a token limit
Why it's wrong here
TokenBufferMemory truncates by token count, not summary.
- ✓
ConversationSummaryMemory; provide an LLM to generate summaries
Why this is correct
SummaryMemory needs an LLM to compress the conversation into a summary.
- ✗
ConversationBufferMemory; no additional step
Why it's wrong here
BufferMemory stores full history, not summaries.
Go deeper
Related to this question
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 →
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.