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 multi-turn conversation application. The developer wants the model to adopt a specific persona and follow strict formatting rules for all responses. Which approach should the developer take?

⚠ Common exam trap

The AWS AI Practitioner exam often tests the distinction between system prompts and user messages, trapping candidates who think repeating instructions in every user message is necessary or that temperature alone can enforce formatting rules.

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

✓

Set the persona and formatting instructions in the system prompt

The Amazon Bedrock Converse API supports a system prompt that allows developers to set global instructions, such as persona and formatting rules, which persist across the entire conversation. This is the correct approach because system prompts are designed to define the model's behavior and constraints without needing to repeat them in every user message, ensuring consistency and efficiency.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Include the persona and formatting instructions in every user message

    Why it's wrong here

    Including persona and formatting instructions in every user message would force the model to re-interpret the directives at each turn, risking inconsistency or drift in adherence across a multi-turn conversation. The Converse API supports a dedicated `system` parameter that persists such instructions across the entire session, which this approach bypasses. It is tempting because embedding instructions directly in prompts works for stateless single-turn calls, where no persistent context is needed.

  • ✗

    Use few-shot examples in the first user message only

    Why it's wrong here

    Few-shot examples placed only in the first user message are not guaranteed to persist across later turns, so persona and formatting rules can drift. It is tempting because few-shot prompting genuinely steers style, and would work for a single-turn request where the examples and task sit in one prompt.

  • ✗

    Adjust the temperature to 0 to force deterministic formatting

    Why it's wrong here

    Temperature 0 makes sampling greedy and repeatable, but determinism does not encode a persona or enforce a formatting schema. It is tempting because low temperature reduces random variation, and would be the right setting when the requirement is reproducible, near-identical outputs rather than persona and format compliance.

  • ✓

    Set the persona and formatting instructions in the system prompt

    Why this is correct

    The system prompt is processed as high-priority context preceding user turns, so persona and formatting rules placed there persist across every turn of the multi-turn conversation. This satisfies the requirement for consistent behaviour throughout the dialogue.

About these practice questions

One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.