Courseiva

AIF-C01 Fundamentals of Generative AI Practice Question

A developer is building a customer-facing chatbot using Amazon Bedrock. To ensure the chatbot does not generate offensive or inappropriate content, which AWS feature should they implement?

⚠ Common exam trap

A common pitfall in this exam is assuming that prompt engineering with system prompts or adjusting model parameters like temperature can reliably block offensive content. While these techniques can influence behavior, they do not provide enforceable, policy-based safeguards. Amazon Bedrock Guardrails must be used to define and enforce content filters, denied topics, and sensitive information filters at inference time.

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

✓

Amazon Bedrock Guardrails

Amazon Bedrock Guardrails is the correct choice because it provides configurable safeguards that allow developers to define denied topics, content filters (e.g., hate, insults, sexual content), and sensitive information filters to prevent the model from generating offensive or inappropriate responses. Unlike prompt engineering or parameter tuning, Guardrails enforce policy-based constraints at inference time, independent of the underlying model's behavior.

Answer analysis

Option-by-option breakdown

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

  • ✗

    AWS Identity and Access Management (IAM) policies

    Why it's wrong here

    IAM policies govern which principals may invoke Bedrock models and APIs; they do not inspect generated text for offensive content. They are tempting because they are the standard AWS access-control mechanism, and would be correct for restricting who can call a model or which models are permitted.

  • ✓

    Amazon Bedrock Guardrails

    Why this is correct

    Amazon Bedrock Guardrails applies configurable content filters and denied-topic policies that intercept harmful prompts and responses at inference time. This directly satisfies the requirement to stop offensive or inappropriate output in a customer-facing chatbot, independent of the underlying foundation model.

  • ✗

    Prompt engineering with system prompts

    Why it's wrong here

    System prompts steer tone and behaviour but are probabilistic instructions the model can be talked past, so they cannot guarantee filtering of offensive output. They are tempting because they shape responses cheaply, and would be correct for controlling persona, style or refusal behaviour rather than enforcing content moderation.

  • ✗

    Increasing the model temperature parameter

    Why it's wrong here

    Raising temperature increases output randomness, making offensive or inappropriate generations likelier rather than preventing them. It is tempting because it is a tunable inference parameter, and would be correct when the goal is more varied, creative or diverse chatbot responses.

About these practice questions

This AIF-C01 question is part of Courseiva's 862-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.