All jobs / AI engineer / LLM APIs

AI engineer interview question · 3–5 years

You switch the assistant to streaming. What changes for your backend beyond “the text appears sooner”?

The strongest answer

Only time to first token improves. Failures can now land mid-answer, so I handle partial output, cancel upstream when the client disconnects, and accept that I cannot validate or moderate the full reply before it shows

Why it works

Right — streaming moves the first byte, not the last. One success-or-failure becomes a sequence that can break halfway, and an abandoned stream can keep generating, and billing, unless you cancel it.

What a good answer covers

Answers that fall short

Who gets asked this

More LLM APIs questions