Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Certified Generative AI Engineer Associate Exam - Topic 2 Question 34 Discussion

Posted by Cecil on Aug 18, 2026 at 09:14 PM

A Generative Al Engineer is building a production-ready LLM system which replies directly to customers. The solution makes use of the Foundation Model API via provisioned throughput. They are concerned that the LLM could potentially respond in a toxic or otherwise unsafe way. They also wish to perform this with the least amount of effort.

Which approach will do this?

Suggested Answer: A

The task is to prevent toxic or unsafe responses in an LLM system using the Foundation Model API with minimal effort. Let's assess the options.

Option A: Host Llama Guard on Foundation Model API and use it to detect unsafe responses

Llama Guard is a safety-focused model designed to detect toxic or unsafe content. Hosting it via the Foundation Model API (a Databricks service) integrates seamlessly with the existing system, requiring minimal setup (just deployment and a check step), and leverages provisioned throughput for performance.

Databricks Reference: 'Foundation Model API supports hosting safety models like Llama Guard to filter outputs efficiently' ('Foundation Model API Documentation,' 2023).

Option B: Add some LLM calls to their chain to detect unsafe content before returning text

Using additional LLM calls (e.g., prompting an LLM to classify toxicity) increases latency, complexity, and effort (crafting prompts, chaining logic), and lacks the specificity of a dedicated safety model.

Databricks Reference: 'Ad-hoc LLM checks are less efficient than purpose-built safety solutions' ('Building LLM Applications with Databricks').

Option C: Add a regex expression on inputs and outputs to detect unsafe responses

Regex can catch simple patterns (e.g., profanity) but fails for nuanced toxicity (e.g., sarcasm, context-dependent harm), requiring significant manual effort to maintain and update rules.

Databricks Reference: 'Regex-based filtering is limited for complex safety needs' ('Generative AI Cookbook').

Option D: Ask users to report unsafe responses

User reporting is reactive, not preventive, and places burden on users rather than the system. It doesn't limit unsafe outputs proactively and requires additional effort for feedback handling.

Databricks Reference: 'Proactive guardrails are preferred over user-driven monitoring' ('Databricks Generative AI Engineer Guide').

Conclusion: Option A (Llama Guard on Foundation Model API) is the least-effort, most effective approach, leveraging Databricks' infrastructure for seamless safety integration.


Get Premium Databricks Certified Generative AI Engineer Associate Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
18 comments · newest first
PE
Peggie 3 days ago
D is a bit passive. We need proactive measures.
BO
Bonita 8 days ago
Option C seems too complicated for quick checks.
NI
Nieves 14 days ago
I agree, but option B could work too. More control over responses.
LE
Lettie 19 days ago
I think option A is the best. Llama Guard sounds reliable.
ED
Edda 24 days ago
C) is too limited, we need a more robust solution.
CA
Caren 29 days ago
D) is too passive, we need proactive measures.
BE
Bettina 1 month ago
Wait, can regex really catch everything? Sounds risky!
GE
Georgeanna 1 month ago
I disagree, B) could be more effective with real-time checks.
DE
Denna 1 month ago
A) seems like the best option for safety.
MA
Mattie 2 months ago
C) could miss a lot of context, though.
DA
Dallas 2 months ago
D) is too passive, we need proactive measures!
ES
Esteban 2 months ago
Wait, can regex really catch everything?
SH
Sharen 2 months ago
I disagree, B) might be more effective in real-time.
VE
Veda 2 months ago
A) sounds like the best option for safety.
EL
Elza 3 months ago
D seems like it could help, but relying on users to report issues feels risky and reactive rather than proactive.
GL
Glendora 3 months ago
I practiced a similar question where regex was mentioned, but I wonder if C is too simplistic for this scenario.
VI
Viki 3 months ago
I'm not entirely sure, but I feel like B could work too since it involves checking responses before they go out.
FL
Fletcher 3 months ago
I remember discussing the importance of proactive measures in LLM safety, so I think A might be the best option.
0/2000 characters

Save Cancel