AIF-C01 Applications of Foundation Models Practice Question
Exhibit
Refer to the exhibit.
```json
{
"output": {
"message": {
"content": [
{
"text": "The answer is 42"
}
],
"role": "assistant"
}
},
"stop_reason": "end_turn"
}
```A developer receives the above response from invoking a Bedrock model. Which field indicates that the model completed its response normally?
⚠ Common exam trap
It's easy for candidates to confuse the `output` container or the `text` field with the completion indicator, overlooking the dedicated `stop_reason` field that explicitly signals normal termination.
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
✓
stop_reason
The `stop_reason` field in the Bedrock response indicates why the model stopped generating text. A value of `"stop"` or `"end_turn"` (depending on the model) signals that the model completed its response normally, as opposed to hitting a token limit, content filter, or other interruption.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
output
Why it's wrong here
There is no output field in a Bedrock InvokeModel response; the payload nests results under specific keys such as generation or completions. It is tempting as a generic wrapper name, but stopReason is the field reporting normal completion.
- ✓
stop_reason
Why this is correct
The `stop_reason` field reports why generation halted, returning `end_turn` when the model finished naturally rather than hitting the `max_tokens` limit or a stop sequence. This directly satisfies the stem's requirement to identify normal completion, distinguishing it from truncation or content filtering.
- ✗
text
Why it's wrong here
The text field carries the generated content itself, not the completion status. It is tempting because it holds the model's answer, but the stopReason field signals normal completion; text appears regardless of whether generation finished or was truncated.
- ✗
role
Why it's wrong here
The role field identifies the message author, such as user or assistant, in conversational payloads. It is tempting because it appears alongside content, but it conveys speaker identity, not completion status; stopReason indicates the model finished normally.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AIF-C01 question from scratch — 862 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.