Versioning prompts and managing their lifecycle
Databricks uses MLflow's Prompt Registry (built on Unity Catalog) to version, govern, and promote prompt templates independently of application code, mirroring how MLflow Model Registry manages model versions. This lets engineers track prompt history, compare versions, and control which version is live in production without redeploying the app.
1 · Learn the must-know
- Prompts are registered as immutable versioned objects (e.g., via
mlflow.genai.register_prompt) in Unity Catalog, so each edit creates a new version rather than overwriting the old one. - Prompt aliases (such as 'production' or 'staging') can be reassigned to point at different versions, enabling promotion/rollback of a prompt without changing application code.
- Prompt templates use double-curly-brace variables (e.g., {{question}}) that are filled in at inference time, keeping the template reusable across contexts.
- The MLflow UI/API lets you view full prompt version history, diff two versions, and see lineage linking a prompt version to the runs or model versions that used it.
- Loading a prompt in code by alias (not hardcoded text) decouples app logic from prompt content, so prompt updates don't require code redeploys.
- Prompt registration and lifecycle management works alongside standard MLflow experiment tracking, so prompt changes can be correlated with evaluation metrics to decide promotion.
2 · Check your understanding
After promoting prompt version 6 to production for a support-ticket summarization agent, evaluation runs in MLflow show a drop in the faithfulness metric compared to version 5, while latency and token cost are unchanged. The engineer needs to restore prior quality immediately with minimal downtime. What should they do?
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.