DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
AI for Frontend Developers Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
AI for Frontend Developers
A developer implements per-user chat by storing one giant shared messages array across ALL of a user's separate conversations, tagging each message with a conversationId field. What's wrong with this?
A
Nothing — this is the standard, correct approach
B
It mixes unrelated conversations' history into one structure and risks sending irrelevant/cross-conversation context to the API if not carefully filtered per request
C
The API requires a single shared array by design
D
This approach is required for prompt caching to work
Check Answer