Security

An application calls a model hosted outside Amazon Bedrock and must enforce a Bedrock guardrail before generation and before displaying responses. Which integration meets both requirements?

Show the answer

Correct answerC. Use ApplyGuardrail for inputs and outputs, enforcing its results in the application.

AWhy not this: An external model endpoint does not apply Bedrock guardrails merely because its request includes a guardrail identifier.

BWhy not this: Evaluation after display cannot prevent users from receiving disallowed responses.

CWhy this is right: Independent input and output evaluations let the application enforce guardrail results before generation and display.

DWhy not this: IAM cannot make an external model endpoint evaluate content with a Bedrock guardrail.

ApplyGuardrail evaluates content independently of model invocation, allowing an application to check external-model inputs and outputs and enforce the results. Attaching a Bedrock guardrail identifier to an external provider's request does not integrate that provider with Bedrock Guardrails.