Courseiva
hardMultiple 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 conversational agent. The agent needs to maintain context across multiple turns of dialogue. Which parameter should be used to provide the conversation history?

⚠ Common exam trap

Many candidates confuse the 'system' parameter (which sets the assistant's behavior) with the 'messages' parameter (which holds the dialogue history), leading them to incorrectly concatenate history into the system prompt.

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 'messages' parameter with an array of previous messages

The Amazon Bedrock Converse API uses the 'messages' parameter to pass an array of previous message objects, each with a 'role' (user or assistant) and 'content'. This array represents the full conversation history, allowing the model to maintain context across multiple turns of dialogue.

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 'additionalModelRequestFields' parameter with a custom field

    Why it's wrong here

    The Converse API carries dialogue turns in the dedicated messages array, not in additionalModelRequestFields, which passes provider-specific inference parameters through to the model. It is tempting because that field does accept arbitrary JSON, but it exists for model tuning options, not for structured conversation history.

  • ✗

    The 'system' parameter with a concatenated history

    Why it's wrong here

    The system parameter holds instructions and persona guidance, not prior user and assistant turns; concatenating history there discards the role structure the model needs. It is tempting because system prompts can carry large text blocks, but they are for behaviour-setting, whereas the messages array is the correct home for multi-turn history.

  • ✗

    The 'inferenceConfig' parameter with maxTokens set to a high value

    Why it's wrong here

    maxTokens caps the length of the generated response; it does not transmit any prior dialogue, so the agent still sees only the current turn. It is tempting because raising it appears to give the model room to remember, but token limits govern output length, while conversation history belongs in the messages array.

  • ✓

    The 'messages' parameter with an array of previous messages

    Why this is correct

    The Converse API is stateless, so context must be supplied each call. Passing prior turns as an array of role-tagged message objects in 'messages' lets the model see the full dialogue history and maintain continuity across turns.

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.