📝 Module 7 Quiz
Module 07 — Langfuse Deep Dive: Architecture & SDK
Answer all questions. You need 70% to pass.
1. In Langfuse's data model, what is a 'Generation' compared to a regular 'Span'?
A generation is identical to a span — just a naming convention
A generation is a special span type with LLM-specific fields: model, input/output, token usage, and cost
A generation represents a complete user request, while a span is a sub-operation
Generations are only available in the Cloud version of Langfuse
2. You're running SandSync in production on Fly.io. Which approach correctly configures Langfuse for local dev vs production without changing code?
Use two different Langfuse SDK instances, one per environment
Set LANGFUSE_BASE_URL as an environment variable: localhost:3100 locally, cloud.langfuse.com in production
Comment out the self-hosted config and uncomment the cloud config before deploying
Langfuse Cloud and self-hosted use different SDKs, so you must swap the import
3. What happens to buffered Langfuse events if you forget to call flushAsync() before a serverless function exits?
They are automatically flushed by the SDK's background worker
They are queued in Langfuse's cloud buffer and delivered within 60 seconds
Events in the current batch window (up to 5 seconds) are lost — never delivered
The SDK throws an error reminding you to flush
Submit Quiz
Cancel