🌍 All Study Guides📊 Dashboard📰 Blog💡 About
AWS Certified AI Practitioner • STUDY MODE

Practice Quiz

QUESTION 1 OF 4

A company is designing a safety validation pipeline. They need to evaluate user inputs for sensitive information, such as social security numbers and custom proprietary patterns, and mask them. To minimize latency and cost, they want to perform this validation directly on the inputs without invoking any foundation models. How should they configure this solution using Amazon Bedrock Guardrails?

A
Invoke the ApplyGuardrail API directly, utilizing probabilistic detection for sensitive entities and configuring custom regular expression patterns for the proprietary data.Correct Answer
B
Invoke the foundation model via the InvokeModel API, utilizing only predefined standard filters to automatically mask the proprietary patterns.
C
Invoke the ApplyGuardrail API directly, but rely entirely on predefined entity filters because custom regular expression patterns are not supported.
D
Invoke the ApplyGuardrail API directly, and configure it to scan the model reasoning content blocks for potential sensitive data.
Explanation:

Amazon Bedrock Guardrails can be invoked directly via the ApplyGuardrail API without making calls to foundation models. Additionally, its sensitive information filters support both probabilistic detection of entities (such as SSNs) and configuring custom regular expression patterns. Finally, reasoning content blocks are explicitly excluded from Guardrails protections.

QUESTION 2 OF 4

Under the Standard tier of Amazon Bedrock Guardrails, how is the detection of undesirable content extended when processing code elements?

A
Undesirable content detection is extended to harmful content introduced within comments, variable names, function names, and string literals.Correct Answer
B
Undesirable content detection is extended to analyze code syntax errors and model reasoning content blocks.
C
Undesirable content detection is restricted only to string literals, disabling comments and variable name scanning to reduce latency.
D
Undesirable content detection is extended to detect and block external API endpoints and URL paths referenced in the code.
Explanation:

With the Standard tier, Amazon Bedrock Guardrails extends its ability to detect undesirable content inside code elements, which specifically includes comments, variable and function names, and string literals. Reasoning content blocks are always excluded.

QUESTION 3 OF 4

An organization is deploying a Retrieval-Augmented Generation (RAG) system using Amazon Bedrock. To optimize security and filter accuracy, developers need to configure Bedrock Guardrails to evaluate only a specific section of the input prompt instead of the entire text. Which interface or method supports this capability?

A
The evaluation of only a specific section of the input prompt is exclusively supported via the AWS SDK.Correct Answer
B
The evaluation of only a specific section of the input prompt must be configured within the AWS Management Console.
C
The evaluation of only a specific section of the input prompt must be configured using the Bedrock Guardrails management console.
D
The evaluation of only a specific section of the input prompt must be configured within the Amazon Bedrock Playground.
Explanation:

According to the official AWS documentation, the capability to evaluate only a specific section of an input prompt (such as in RAG or conversational setups) is exclusively available through the AWS SDK. This selective evaluation capability is not supported in the AWS Management Console, including the Bedrock Playground or the Bedrock Guardrails management console.

QUESTION 4 OF 4

When configuring Amazon Bedrock Guardrails, which feature is designed specifically to detect model response hallucinations that are factually inaccurate, introduce new ungrounded details relative to the source material, or are completely irrelevant to the user's query?

A
Sensitive information filters
B
Content filters
C
Contextual grounding checksCorrect Answer
D
ApplyGuardrail API filters
Explanation:

Contextual grounding checks are specifically designed to help detect hallucinations in model responses. They identify responses that are not grounded (either because they are factually inaccurate or add new information) in the source document, or are irrelevant to the user's query.

Ready to test your recall?

A company is designing a safety validation pipeline. They need to evaluate user inputs for sensitive information, such as social security numbers and custom proprietary patterns, and mask them. To minimize latency and cost, they want to perform this validation directly on the inputs without invoking any foundation models. How should they configure this solution using Amazon Bedrock Guardrails?

A
Invoke the ApplyGuardrail API directly, utilizing probabilistic detection for sensitive entities and configuring custom regular expression patterns for the proprietary data.
B
Invoke the foundation model via the InvokeModel API, utilizing only predefined standard filters to automatically mask the proprietary patterns.
C
Invoke the ApplyGuardrail API directly, but rely entirely on predefined entity filters because custom regular expression patterns are not supported.
D
Invoke the ApplyGuardrail API directly, and configure it to scan the model reasoning content blocks for potential sensitive data.

How confident are you in this answer?