48What is cross-site WebSocket hijacking, and how do you secure a real-time or AI-streaming WebSocket API end to end?▼mediumNewMicrosoftGoogleCloudflare◆ premiumA WebSocket starts as an HTTP request that carries the user's cookies and skips CORS. The scored answer explains the hijack, then the controls that a long-lived connection needs that a normal request does not.Open full answer →
19Practical coding: find the top source IPs in an auth log, then do it again for an unbounded stream with fixed memory.▼mediumNewCrowdStrikePalo Alto NetworksGoogle◆ premiumThe first half is a Counter. The follow-up, an infinite stream and a memory cap, is the actual question: interviewers want a heavy-hitters algorithm and an honest statement of what it guarantees.Open full answer →
26Write a sanitiser that keeps links and images in streamed model Markdown inert until they are validated.▼hardNewMicrosoftGoogleOpenAI◆ premiumRendering is an outbound channel. The scored answer removes images, rewrites unapproved links, strips raw HTML, and only releases streamed text once it can no longer turn into something dangerous.Open full answer →
30Architect the guardrail pipeline for a customer-facing financial assistant, including how you guard streamed responses.▼hardNewJPMorgan ChaseMicrosoftGoogle◆ premiumThe regulator does not care which classifier you used. The design that scores puts authorisation and commitments in code, uses classifiers where they are good, and decides in advance what happens when a streamed answer goes wrong halfway.Open full answer →