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 5 Question 30 Discussion

Posted by Sarina on May 30, 2026 at 05:23 PM

A Generative Al Engineer would like an LLM to generate formatted JSON from emails. This will require parsing and extracting the following information: order ID, date, and sender email. Here's a sample email:

They will need to write a prompt that will extract the relevant information in JSON format with the highest level of output accuracy.

Which prompt will do that?

Suggested Answer: B

Problem Context: The goal is to parse emails to extract certain pieces of information and output this in a structured JSON format. Clarity and specificity in the prompt design will ensure higher accuracy in the LLM's responses.

Explanation of Options:

Option A: Provides a general guideline but lacks an example, which helps an LLM understand the exact format expected.

Option B: Includes a clear instruction and a specific example of the output format. Providing an example is crucial as it helps set the pattern and format in which the information should be structured, leading to more accurate results.

Option C: Does not specify that the output should be in JSON format, thus not meeting the requirement.

Option D: While it correctly asks for JSON format, it lacks an example that would guide the LLM on how to structure the JSON correctly.

Therefore, Option B is optimal as it not only specifies the required format but also illustrates it with an example, enhancing the likelihood of accurate extraction and formatting by the LLM.


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
17 comments · newest first
RE
Rebecka 21 days ago
I feel confident with B. It’s straightforward and effective.
LE
Lenna 27 days ago
B ensures the output is precise and structured.
IL
Iluminada 1 month ago
C is not useful. Human-readable format isn't what we need.
SH
Shonda 1 month ago
B definitely stands out for clarity and accuracy.
PA
Paris 1 month ago
I like D too, but it doesn't provide an example like B.
MI
Mila 2 months ago
Option A is too vague. It lacks a specific example.
DE
Denae 2 months ago
Agreed! The example helps understand the format.
CI
Ciara 2 months ago
I think option B is the best. It gives a clear example.
PA
Pamella 2 months ago
Not sure if any of these prompts will work perfectly.
BE
Ben 2 months ago
D is solid, but B just edges it out for clarity.
KA
Karima 2 months ago
Wait, why would anyone choose C? It's not JSON!
ED
Edmond 3 months ago
I think A is too wordy. B is more concise.
KE
Keith 3 months ago
Option B is the best choice! It gives a clear example.
LE
Lenita 3 months ago
I’m a bit confused about the difference between A and D. They both seem to ask for JSON, but I feel like A gives more context.
AA
Aaron 3 months ago
I think I saw a similar question where the prompt needed to be very explicit about the output format. That makes me lean towards option A.
CH
Chuck 3 months ago
I'm not entirely sure, but I feel like option B might be too vague without clear instructions on the format.
TA
Tanesha 3 months ago
I remember practicing prompts that required specific formatting, so I think options A and D might be the best since they specify JSON format.
0/2000 characters

Save Cancel