New Year Sale 2026! 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 1 Question 22 Discussion

Actual exam question for Databricks's Databricks Certified Generative AI Engineer Associate exam
Question #: 22
Topic #: 1
[All Databricks Certified Generative AI Engineer Associate Questions]

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?

Show Suggested Answer Hide Answer
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.


Contribute your Thoughts:

0/2000 characters
Vanda
11 hours ago
Wait, why would you want a human-readable format? That's not JSON!
upvoted 0 times
...
Laurel
6 days ago
I think D works too, but B is more specific.
upvoted 0 times
...
Raelene
11 days ago
B) is the clear winner here. Structured data is the way of the future!
upvoted 0 times
...
Yasuko
16 days ago
Option B is the way to go. Extracting the data and formatting it in JSON is exactly what the question is asking for.
upvoted 0 times
...
Dahlia
21 days ago
B) is the way to go. Gotta love that structured JSON output!
upvoted 0 times
...
Hollis
26 days ago
B) is the correct answer. It provides a clear and specific prompt that asks the LLM to extract the required information and return it in the desired JSON format.
upvoted 0 times
...
Deonna
1 month ago
I feel like option A is a bit vague compared to B and D. It doesn't provide an example, which might lead to less accurate output.
upvoted 0 times
...
Brittani
1 month ago
I think option C is definitely wrong since it asks for a human-readable format instead of JSON. That doesn't fit the requirement.
upvoted 0 times
...
Gerald
1 month ago
I'm not entirely sure, but I feel like the example in option B might help the model understand what exactly is expected.
upvoted 0 times
...
Alva
2 months ago
I remember we practiced prompts that needed to specify the output format clearly. I think options B and D are similar in that regard.
upvoted 0 times
...
Lai
2 months ago
I'm a little confused by the different options. Option C seems to be asking for a different output format, so I'll probably go with option D to make sure I'm meeting the requirements.
upvoted 0 times
...
Levi
2 months ago
Option B looks good to me. The example JSON format is really helpful, and I feel confident I can extract the required information from the email and return it in the correct structure.
upvoted 0 times
...
Aileen
2 months ago
I agree, B is straightforward and precise.
upvoted 0 times
...
Tamesha
2 months ago
Option B is the best choice! Clear and concise.
upvoted 0 times
...
Marti
3 months ago
I think option B is the best. It gives a clear example.
upvoted 0 times
...
Ashleigh
3 months ago
Option A is too wordy. B is concise.
upvoted 0 times
...
Bambi
3 months ago
I'm a bit unsure about this one. The instructions seem straightforward, but I want to make sure I understand the expected output format correctly. I'll probably go with option D to play it safe.
upvoted 0 times
...
Lisha
3 months ago
I think option B is the best approach here. It provides a clear example of the expected JSON format, which will help me structure my response accurately.
upvoted 0 times
Lavonna
2 months ago
I agree, option B is very clear. The example helps a lot.
upvoted 0 times
...
...

Save Cancel