Module 3
Hallucination drills
Each item is a confident, wrong answer an AI produced. Pick the flaw. Your answer is checked on the server -- the fix is revealed only after you commit.
- event-loopProving timer order with a two-line experimentcode
- event-loopFreeMaking a heavy parse non-blockingcode
- event-loopHow Node contains a slow handlerprose
- event-loopYielding to the loop between work batchescode
- v8-memoryFast buffer allocation with a built-in guardcode
- v8-memoryWhen V8 schedules garbage collectionprose
- v8-memoryA cache that cleans up after itselfcode
- v8-memorySizing the heap for a buffer-heavy serviceprose
- streams-backpressureStreaming a CSV into a database one record at a timecode
- streams-backpressureWhat highWaterMark guaranteesprose
- streams-backpressureA one-line uppercase transformcode
- streams-backpressureError handling for a pipe chaincode
- errors-reliabilityGuarding a file read with try/catchcode
- errors-reliabilityWhat an unhandled rejection does to a serviceprose
- errors-reliabilityFreeA clean exit after writing a reportcode
- errors-reliabilityCentralized error handling for an Express APIcode
- modules-packagingUsing require inside an ES modulecode
- modules-packagingHow many times a module executesprose
- modules-packagingTwo modules that require each othercode
- modules-packagingmain versus exports in package.jsonprose
- concurrency-scalingSharing a counter with a worker threadcode
- concurrency-scalingAn in-process cache behind clusterprose
- concurrency-scalingPassword hashing in a request handlercode
- concurrency-scalingHow cluster distributes connectionsprose
- http-networkingAdding a header after streaming beginscode
- http-networkingWhether Node reuses outbound connectionsprose
- http-networkingReading a JSON body in a raw Node servercode
- http-networkingDNS in the HTTP client hot pathprose
- securityFreeWhat a JWT hides from the clientprose
- securityConstant-time comparison for API keyscode
- securityA session token from Math.randomcode
- securityFreezing the prototype to stop pollutionprose
- performance-observabilityLogging every request to a filecode
- performance-observabilityA non-blocking delay from the timers modulecode
- performance-observabilityReading throughput off a single benchmark runprose
- performance-observabilityWhether an unbounded cache can leakprose
- ai-workflowAn AI-written test that proves the fixcode
- ai-workflowA test claiming a validator rejects bad inputcode
- ai-workflowAn assistant citing a config defaultprose
- ai-workflowA parallel refactor of sequential awaitscode