AWS Certified AI Practitioner AIF-C01 Practice Question
While using Amazon Bedrock, a developer finds that zero-shot prompts produce inconsistent JSON. The developer adds two example requests and their correct JSON responses before each new query, without changing the model itself. Which prompt engineering technique is the developer applying?
Including multiple input-output examples in the same prompt is called few-shot prompting. By showing the model a handful of representative pairs, the developer guides it toward the desired structure and style without any parameter updates. Zero-shot prompting supplies no examples, chain-of-thought prompting asks the model to reveal intermediate reasoning steps, and Retrieval-Augmented Generation relies on an external knowledge store-none of these match the described approach.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is few-shot prompting?
Open an interactive chat with Bash
How does few-shot prompting differ from zero-shot prompting?
Open an interactive chat with Bash
Can few-shot prompting be used for other tasks besides JSON generation?
Open an interactive chat with Bash
AWS Certified AI Practitioner AIF-C01
Applications of Foundation Models
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .