AWS Certified AI Practitioner (AIF-C01) — Question 214
A grocery store wants to create a chatbot to help customers find products in the store. The chatbot must check the inventory in real time and provide the product location in the store.
Which prompt engineering technique should the store use to build the chatbot?
Answer options
- A. Zero-shot prompting
- B. Few-shot prompting
- C. Least-to-most prompting
- D. Reasoning and acting (ReAct) prompting
Correct answer: D
Explanation
The correct answer is D, as Reasoning and acting (ReAct) prompting allows the chatbot to reason through the current inventory status and provide accurate product locations. The other options, such as Zero-shot and Few-shot prompting, may not provide the necessary context for real-time inventory checks, and Least-to-most prompting might not be as effective for immediate responses.