Memory Interview Questions
3 curated memory interview questions with detailed answers and examples.
← Browse all interview questionsA model has no memory of its own: every call only sees what you send in that request. Agent "memory" is your app deciding what to put back into the context: short-term memory is the current conversation (message history for one thread), working memory is a small set of key facts kept in the prompt, and long-term memory is data stored in a database across sessions and pulled in when relevant, often by semantic search. Each type trades accuracy against tokens, cost and privacy.
Understand how JavaScript automatically frees memory using reachability and reference checks.
Diagnose memory growth, understand mark-and-sweep, and apply strategies to prevent leaks in web apps and Node services.