Courseiva
mediumMultiple Choice

AIF-C01 Practice Question: A developer is using the Amazon Bedrock Converse…

A developer is using the Amazon Bedrock Converse API to build a chat application. They want the model to maintain context across multiple turns. Which parameter should they set to ensure the conversation history is included?

⚠ Common exam trap

AWS often tests the distinction between stateless API calls and stateful conversation management, where candidates mistakenly think `system` or `inferenceConfig` handles history, but only `messages` carries the turn-by-turn dialogue.

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

✓

messages

The Converse API's `messages` parameter accepts an array of message objects, each with a `role` (user or assistant) and `content`. By including previous turns in this array, the model receives the full conversation history as context, enabling coherent multi-turn dialogue. Without it, each API call is stateless and the model has no memory of prior exchanges.

Answer analysis

Option-by-option breakdown

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

  • ✗

    inferenceConfig

    Why it's wrong here

    inferenceConfig carries generation settings such as maxTokens, temperature and stop sequences; it holds no turn history, so prior messages are dropped. The messages array is what preserves context. inferenceConfig is tempting because it configures each model call, and it would be correct when tuning output length, randomness or stopping behaviour.

  • ✓

    messages

    Why this is correct

    The messages parameter carries the ordered array of user and assistant turns sent to the model. Including prior turns in messages supplies the conversation history, enabling the model to maintain context across multiple turns as the stem requires.

  • ✗

    additionalModelRequestFields

    Why it's wrong here

    additionalModelRequestFields passes model-specific parameters that the standard Converse schema does not expose; it does not carry conversation turns. The messages array supplies that history. It is tempting as the catch-all for extra model settings, and it would be correct when enabling a provider-specific feature such as a particular top-k or reasoning option.

  • ✗

    system

    Why it's wrong here

    The system parameter supplies a single instruction that sets the model's role or tone across the conversation; it holds no prior user and assistant turns. The messages array carries that history. system is tempting because it shapes behaviour across turns, and it would be correct when defining persistent persona or guardrails.

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 →

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.