Courseiva

AIF-C01 Applications of Foundation Models Practice Question

A company is using Amazon Bedrock to build a conversational agent. They want to ensure the agent maintains context across multiple turns in a conversation. Which TWO strategies should the developer implement? (Choose two.)

⚠ Common exam trap

The trap here is assuming that Amazon Bedrock or the foundation models automatically maintain conversation state, when in fact they are stateless and require manual context management.

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

✓

Include the entire conversation history in each prompt sent to the model.

To maintain context across multiple turns, developers must include conversation history in each prompt. This can be done by sending the full history or by storing history externally and retrieving relevant parts. Foundation models are stateless, so context must be explicitly provided. Options suggesting built-in memory or session management are incorrect.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use Amazon Bedrock's session management feature to automatically persist conversation state.

    Why it's wrong here

    Amazon Bedrock does not provide a built-in session management feature that automatically persists conversation state. Foundation models are stateless, and developers must manage context themselves. Relying on such a feature would lead to loss of context. This option is a distractor because it sounds plausible but is not an actual Bedrock capability.

  • ✓

    Include the entire conversation history in each prompt sent to the model.

    Why this is correct

    Including the entire conversation history in each prompt allows the model to see previous exchanges and maintain context. This is a common technique for multi-turn conversations with foundation models, as they are stateless and do not remember previous interactions. However, it increases token usage and may hit context length limits, so it should be managed carefully.

  • ✗

    Enable the model's memory parameter to retain information across API calls.

    Why it's wrong here

    Foundation models on Amazon Bedrock do not have a memory parameter that retains information across API calls. Each API call is independent and stateless. There is no such parameter in the InvokeModel API. This option is incorrect because it assumes a feature that does not exist, leading to a misconception about model capabilities.

  • ✗

    Use a single API call with a streaming response to keep the connection open and maintain context.

    Why it's wrong here

    Streaming responses allow the model to return tokens incrementally, but they do not maintain context across separate API calls. Each API call is still independent. Keeping a connection open does not provide memory of previous interactions. This option confuses streaming with session persistence, which are unrelated concepts.

  • ✓

    Store conversation history in an external database and retrieve relevant turns to include in the prompt.

    Why this is correct

    Storing conversation history externally and selectively retrieving relevant turns to include in the prompt is an effective way to manage context while controlling token usage. This approach allows the developer to include only the most pertinent parts of the conversation, avoiding context length limits. It is a best practice for building scalable conversational agents with Amazon Bedrock.

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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

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.