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?
- A.Import the self-hosted model into the guardrail as a custom content filter before each request
- B.Call the ApplyGuardrail API with the guardrail ID and the text to evaluate, without invoking a Bedrock model
- C.Deploy the guardrail as a container image to the EKS cluster alongside the model
- 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
- Step Functions Retry and Catch fields
- SQS FIFO message groups for ordering
- DynamoDB Streams for change processing
- EventBridge Scheduler one-time invocations
- Explicit deny in policy evaluation
- Hardening S3 bucket access settings
- Previewing stack updates with change sets
- Test traffic hook in ECS blue/green
- API Gateway REST canary release
- SQS visibility timeout for Lambda consumers
- Metric filters for log-based alarms