Picking the best LLM for an application's own attributes
Choosing an LLM for a GenAI application means matching model attributes—context length, latency/throughput, cost, quality on the target task, and licensing/deployment constraints—to the application's requirements rather than always picking the largest or newest model. On Databricks, this decision also involves whether to use a hosted foundation model via Foundation Model APIs, a fine-tuned/custom model served on Model Serving, or an open-source model registered in Unity Catalog/MLflow.
1 · Learn the must-know
- Larger or more capable models generally cost more and have higher latency, so a smaller/cheaper model that meets quality requirements is often the better production choice.
- Context window size matters when the application needs to process long documents or maintain long conversation history; exceeding the context window requires chunking or retrieval strategies.
- Task type matters: some models are optimized for chat/instruction-following, others for code generation, embeddings, or summarization, so the model family should match the use case.
- Licensing and deployment constraints (open-source vs. proprietary, commercial-use terms, data residency/governance needs) can eliminate otherwise strong candidates.
- Foundation Model APIs on Databricks let teams query and compare multiple pay-per-token or provisioned-throughput models without managing infrastructure, easing evaluation before committing to one model.
- Evaluation should be empirical: use representative prompts/datasets and metrics (accuracy, latency, cost per request) via tools like MLflow evaluation to compare candidate models before final selection.
2 · Check your understanding
A Generative AI Engineer is building a real-time customer support chat widget embedded in a Databricks App. Product requirements specify a median end-to-end response latency under 800 milliseconds, and the widget only needs to answer short, single-turn factual questions about store hours and return policies. Which model should the engineer select from the Mosaic AI Foundation Model APIs?
What you have tried across Databricks GenAI Engineer's objectives, not a readiness score.
Design Applications10.71% of the exam*0 of 6 tried
Data Preparation14.29% of the exam*0 of 8 tried
Application Development23.21% of the exam*0 of 13 tried
Assembling and Deploying Applications26.79% of the exam*0 of 15 tried
Governance7.14% of the exam*0 of 4 tried
Evaluation and Monitoring17.86% of the exam*0 of 10 tried
* Our estimate. Databricks publishes no section weights.
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.