Modern HTTP Knowledge Check 4
Modern HTTP Knowledge Check 4
animation
http
protocols
InlineKnowledgeCheck({
containerId: "kc-http-modern-4",
question: "An ESP32-based sensor node with 320KB RAM needs to communicate with a cloud REST API. What is the PRIMARY constraint when choosing between HTTP/2 and HTTP/3?",
options: [
{"text": "HTTP/2 requires more RAM than HTTP/3", "feedback": "Incorrect — reversed: QUIC moves loss recovery, encryption and stream buffering into the client stack."},
{"text": "HTTP/3 typically needs more RAM than HTTP/2 (roughly 64 KB vs 32 KB for QUIC + crypto state)", "feedback": "Correct. QUIC adds crypto and stream buffers; check your library's real footprint."},
{"text": "Both protocols have identical memory requirements", "feedback": "Incorrect. They use different transport, compression, and buffering machinery, so equality cannot be inferred; measure the chosen implementations."},
{"text": "ESP32 cannot support either HTTP/2 or HTTP/3", "feedback": "Incorrect — with 320 KB, both fit in typical budgets; ESP-IDF supports HTTP/2 through nghttp2. Check the selected stack."}
],
correctIndex: 1,
explanation: "HTTP/3 typically needs more RAM than HTTP/2 because QUIC owns loss recovery, crypto and stream buffering. Roughly 64 KB versus 32 KB is a rule of thumb; check your library's real footprint.",
difficulty: "intermediate"
})