Bedrock Prompt Management & Guardrails Detection

Implement prompt engineering strategies and governance for FM interactions. Implement input and output safety controls.
Answer Correct answer: A, D — Use Prompt Management to specify inputs and output format, and create a guardrail with the insults filter set to detect.

A company is using Amazon Bedrock to design an application to help researchers apply for grants. The application is based on an Amazon Nova Pro foundation model (FM). The application contains four required inputs and must provide responses in a consistent text format. The company wants to receive a notification in Amazon Bedrock if a response contains bullying language. However, the company does not want to block all flagged responses. The company creates an Amazon Bedrock flow that takes an input prompt and sends it to the Amazon Nova Pro FM. The Amazon Nova Pro FM provides a response. Which additional steps must the company take to meet these requirements? (Choose two.)

  1. Use Amazon Bedrock Prompt Management to specify the required inputs as variables. Select an Amazon Nova Pro FM. Specify the output format for the response. Add the prompt to the prompts node of the flow. Correct Answer
  2. Create an Amazon Bedrock guardrail that applies the hate content filter. Set the filter response to block. Add the guardrail to the prompts node of the flow.
  3. Create an Amazon Bedrock prompt router. Specify an Amazon Nova Pro FM. Add the required inputs as variables to the input node of the flow. Add the prompt router to the prompts node. Add the output format to the output node.
  4. Create an Amazon Bedrock guardrail that applies the insults content filter. Set the filter response to detect. Add the guardrail to the prompts node of the flow. Correct Answer
  5. Create an Amazon Bedrock application inference profile that specifies an Amazon Nova Pro FM. Specify the output format for the response in the description. Include a tag for each of the input variables. Add the profile to the prompts node of the flow.

Community Insight

The question tests the distinction between guardrail 'detect' and 'block' actions, and the use of Prompt Management for enforcing consistent prompt structures and output formats.

This scenario tests configuring Amazon Bedrock Prompt Management for structured inputs and output formats, alongside Bedrock Guardrails set to detect rather than block. The correct choices are A and D, ensuring consistent formatting and notification-only content filtering.

Choosing B instead of D because it uses the hate filter and blocks the response, violating the requirement to only notify without blocking.

Community Discussion (5 comments)

rosnl 👍 1 Selected: AD
A and D. Provides both requirement. D is kind of given in the way it says detect only, not block, as per the question.
Chibuzo1 👍 1 Selected: AD
Why A is correct: Bedrock Prompt Management is exactly the right tool for structured, consistent prompting with required inputs. It lets you define variables (the four required inputs), lock in an FM (Nova Pro), Why D is correct: The guardrail requirement has two precise constraints: detect bullying language without blocking responses. "Bullying" falls under the insults content filter category in Bedrock Guardrails (not "hate," which covers discrimination based on identity).
shuvo_123 👍 1 Selected: AD
Requirement 1 The application contains four required inputs and must provide responses in a consistent text format. This is exactly what Amazon Bedrock Prompt Management is designed for: Define prompt templates. Define required input variables. Enforce a consistent output structure. Reuse prompts within Bedrock Flows. Hence - Option A Requirement 2 Receive a notification if a response contains bullying language, but do not block all flagged responses. In Bedrock Guardrails: Bullying language falls under the Insults content category. To flag content without blocking it, use Detect rather than Block. Hence Option D Finally A,D
Bansel 👍 1 Selected: AD
We need: Prompt variables → enforce required inputs Output formatting → consistent structure Guardrails with detection only → notification without blocking. A. Use Amazon Bedrock Prompt Management D. Create a Bedrock Guardrail with insult detection
GiorgioGss 👍 1 Selected: AD
B - guardrail will block and we need it to pass C - used for routing between multiple models E - mainly for model selection and metadata

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Option A correctly uses Amazon Bedrock Prompt Management to define the four required input variables and enforce a consistent output format, which is then added to the flow's prompt node. Option D correctly creates a guardrail with the insults content filter (which covers bullying) and sets the response to 'detect', allowing the application to receive notifications without blocking the flagged responses.

Why the Other Options Are Wrong

Option B is incorrect because setting the filter response to 'block' violates the requirement to not block flagged responses, and 'hate' is less appropriate than 'insults' for bullying. Option C is incorrect because a prompt router is used to dynamically route prompts to different models based on intent, not to enforce input variables and output formats for a single model. Option E is incorrect because an inference profile is used for tracking metrics and costs across models, not for defining prompt variables and output formatting.

Community Comment Notes

The community consensus strongly supports A and D. As Chibuzo1 noted, "Bedrock Prompt Management is exactly the right tool for structured, consistent prompting". Users also correctly identified that D meets the constraint to "detect bullying language without blocking responses".

Official Reference

Exam Strategy

When a question requires consistent formatting and defined input variables in Bedrock, look for Prompt Management. For guardrails, carefully distinguish between 'detect' (notify/flag) and 'block' (intervene) based on the exact wording of the requirements.

Related Analysis

Practice All AIP-C01 Questions

Access 110 questions with complete answers and detailed explanations.

View Full AIP-C01 Practice Test →

← Back to AIP-C01 Study Guide