AIF-C01 Fundamentals of Generative AI Practice Question
Exhibit
Refer to the exhibit.
Exhibit:
```
{
"outputText": "The quick brown fox...",
"stopReason": "max_tokens"
}
```A developer invoked an Amazon Bedrock model and received this output. What does the stopReason field indicate?
⚠ Common exam trap
The AWS AI Practitioner exam often tests the distinction between `max_tokens` (a user-set limit) and the model's natural completion (`end_turn`), tricking candidates into choosing 'natural stopping point' when the field explicitly indicates a forced truncation.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The model reached the maximum token limit set in the request
The `stopReason` field in Amazon Bedrock model responses indicates why the model stopped generating tokens. When set to `end_turn` or `stop_sequence`, it means the model reached a natural stopping point or encountered a user-defined stop sequence. However, if the value is `max_tokens`, it explicitly means the model stopped because it reached the maximum token limit specified in the `max_tokens` request parameter. Option C correctly identifies this behavior.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A content filter blocked the output
Why it's wrong here
Content filter stops are indicated by 'content_filtered'.
- ✗
The input prompt was too long
Why it's wrong here
Input length issues cause a different error, not captured in stopReason.
- ✓
The model reached the maximum token limit set in the request
Why this is correct
The stopReason 'max_tokens' explicitly indicates the output was truncated due to the token limit.
- ✗
The model reached a natural stopping point
Why it's wrong here
A natural stop would show 'stop' or 'end_turn', not 'max_tokens'.
Go deeper
Related to this question
About these practice questions
This AIF-C01 question is part of Courseiva's 619-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.