Courseiva
Applications of Foundation ModelseasyMultiple ChoiceObjective-mapped

AIF-C01 Applications of Foundation Models Practice Question

Exhibit

Refer to the exhibit.

{
    "outputText": "Artificial intelligence is...",
    "stopReason": "stop_sequence"
}

A developer invokes an Amazon Bedrock model and receives the above response. What does the 'stopReason' field indicate?

⚠ Common exam trap

Candidates often confuse 'stop' (normal completion via stop sequence) with 'length' (token limit reached), as both end generation but have different implications for response completeness and cost.

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 a defined stop sequence.

The 'stopReason' field in an Amazon Bedrock response indicates why the model stopped generating tokens. When set to 'stop', it means the model encountered a defined stop sequence (such as a special token like <|endoftext|> or a user-specified string) and halted generation normally. This is the expected behavior for a successful, complete response.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The model encountered an error.

    Why it's wrong here

    Errors return an exception, not a stopReason field.

  • The model reached a defined stop sequence.

    Why this is correct

    'stop_sequence' indicates the model encountered a user-defined stop sequence.

  • The model hit the maximum token limit.

    Why it's wrong here

    The stop reason for hitting max tokens is 'max_tokens'.

  • The model stopped due to a safety filter.

    Why it's wrong here

    A safety filter would produce a 'content_filter' stop reason.

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 →

How Courseiva writes practice questions · Editorial policy

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.