CertKeen

AWS Developer Associate (DVA-C03) · Free practice question 7 of 12

ApplyGuardrail API for any model

Copperline Insurance runs a self-hosted open-source model on Amazon EKS but wants to use the same Amazon Bedrock guardrail it uses for Bedrock models to check user prompts and model replies. How can it do this?

  1. A.Import the self-hosted model into the guardrail as a custom content filter before each request
  2. B.Call the ApplyGuardrail API with the guardrail ID and the text to evaluate, without invoking a Bedrock model
  3. C.Deploy the guardrail as a container image to the EKS cluster alongside the model
  4. D.Guardrails cannot be used with models outside Bedrock, so the policies must be rewritten in application code
Show answer and explanation

Correct answer: B. Call the ApplyGuardrail API with the guardrail ID and the text to evaluate, without invoking a Bedrock model

Why: The ApplyGuardrail API evaluates text against a configured guardrail independently of model invocation, so it can screen inputs and outputs for models hosted anywhere. Guardrails do not import models as filters and are not deployable container images. Because ApplyGuardrail exists, there is no need to rewrite the policies by hand.

More free AWS Developer Associate (DVA-C03) questions