AWS Certified AI Practitioner (AIF-C01) — Question 307
A bank is building a chatbot to answer customer questions about opening a bank account. The chatbot will use public bank documents to generate responses. The company will use Amazon Bedrock and prompt engineering to improve the chatbot’s responses.
Which prompt engineering technique meets these requirements?
Answer options
- A. Complexity-based prompting
- B. Zero-shot prompting
- C. Few-shot prompting
- D. Directional stimulus prompting
Correct answer: D
Explanation
Directional stimulus prompting is the correct choice because it guides the model by providing a specific hint or stimulus, such as key points from the public bank documents, to steer the output generation. Zero-shot and few-shot prompting focus on learning from zero or a few examples respectively, rather than dynamically integrating external reference stimuli. Complexity-based prompting is primarily used to handle complex, multi-step reasoning tasks rather than guiding responses based on document queries.