How to Monitor Demographic Fairness Across Two Bedrock Prompt Variants?
A retail company has a generative AI (GenAI) product recommendation application that uses Amazon Bedrock. The application suggests products to customers based on browsing history and demographics. The company needs to implement fairness evaluation across multiple demographic groups to detect and measure bias in recommendations between two prompt approaches. The company wants to collect and monitor fairness metrics in real time. The company must receive an alert if the fairness metrics show a discrepancy of more than 15% between demographic groups. The company must receive weekly reports that compare the performance of the two prompt approaches. Which solution will meet these requirements with the LEAST custom development effort?
Community Insight
The question tests whether you map demographic fairness measurement to SageMaker Clarify instead of assuming Bedrock Guardrails content filters or offline model evaluation jobs provide group-bias metrics.
SageMaker Clarify is the AWS service purpose-built to measure bias across demographic groups, and publishing its fairness metrics to CloudWatch enables threshold alarms and weekly comparison reporting. Bedrock Guardrails and model evaluation jobs do not natively supply continuous demographic fairness metrics for the two prompt variants.
Learners often choose Bedrock Guardrails because InvocationsIntervened sounds like a fairness metric, but content filters intervene on unsafe content, not on disparate recommendation outcomes across demographic groups.
Community Discussion (25 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Amazon SageMaker Clarify is the AWS service purpose-built for measuring bias across demographic groups, so it directly satisfies the fairness-evaluation requirement rather than forcing custom scoring. Publishing Clarify's bias metrics into CloudWatch gives a managed metric store and alarm engine: a CloudWatch alarm can fire when the group disparity exceeds 15%, and dashboards can support weekly comparison of the two prompt variants. Option C still needs some plumbing from Bedrock outputs into Clarify, but that is far less custom development than building Lambda post-processing or inventing fairness metrics from Guardrails. The combination of Clarify for measurement and CloudWatch for alerting/reporting is the only option that names a true fairness metric source.Why the Other Options Are Wrong
Option A requires custom metrics plus EventBridge-triggered Lambda post-processing and custom fairness logic, which is exactly the custom development the question wants to minimize. Option B repurposes Bedrock Guardrails content filters and InvocationsIntervened, but those metrics report content-policy interventions, not demographic fairness or a 15% disparity between groups. Option D uses Bedrock model evaluation jobs for an offline prompt-variant comparison and then alarms on Guardrails InvocationsIntervened; model evaluation is not continuous monitoring, and InvocationsIntervened has no demographic-group fairness dimension. None of those alternatives can natively produce the required demographic fairness metric.Community Comment Notes
GiorgioGss captures the elimination logic by noting that A is "Too Much Custom Development" and that "Guardrails Are Not Fairness Evaluation Tools." blieskies makes the positive case for C, observing that "Guardrails can't score outputs on bias but this is what Sagemaker Clarify specifically does." Gaparod reinforces why D fails, saying model evaluation jobs "are not designed for continuous real-time monitoring" and that "InvocationsIntervened metrics are tied to Guardrails, not fairness." Some learners argued for D because Bedrock model evaluation natively compares prompt variants, but that only covers the offline comparison and not the continuous group-disparity alarm.Official Reference
Exam Strategy
When an option names a managed service that directly matches the required ML metric, such as SageMaker Clarify for bias/fairness, prefer it over custom Lambda analysis or repurposed guardrail metrics. Check whether each option can actually produce demographic-group fairness metrics; offline evaluation jobs and content filters cannot satisfy continuous group-disparity alerting.
Frequently Asked Questions
Why can't Bedrock Guardrails monitor demographic fairness?
Guardrails content filters and InvocationsIntervened measure policy interventions on unsafe content, not disparate recommendation outcomes across demographic groups; they cannot compute Clarify-style bias metrics.
Why is Bedrock Model Evaluation insufficient for real-time fairness alerts?
Model evaluation jobs provide offline comparisons of prompt variants; they do not natively emit continuous demographic-group fairness metrics or trigger >15% CloudWatch alarms.
Related Analysis
Practice All AIP-C01 Questions
Access 110 questions with complete answers and detailed explanations.
View Full AIP-C01 Practice Test →