exam questions

Exam AWS Certified AI Practitioner AIF-C01 All Questions

View all questions & answers for the AWS Certified AI Practitioner AIF-C01 exam

Exam AWS Certified AI Practitioner AIF-C01 topic 1 question 218 discussion

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?

  • A. Zero-shot prompting
  • B. Few-shot prompting
  • C. Least-to-most prompting
  • D. Reasoning and acting (ReAct) prompting
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nand2804
2 weeks, 2 days ago
Selected Answer: D
eAct prompting (Reasoning and Acting) is a prompt engineering technique that: Combines step-by-step reasoning (e.g., analyzing a customer's request) With actions, such as calling external tools or APIs, like inventory systems or product databases Is ideal for use cases requiring real-time interaction with external data sources In this case, the chatbot must: Interpret the user’s query (reasoning) Query the real-time inventory system (acting) Respond with location details This makes ReAct prompting the most suitable approach.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...