答案: C
This question maps to the Responsible Generative AI and Generative AI Application Monitoring domains of the AWS Certified Generative AI Developer - Professional (AIP-C01) exam. The core requirements are cross-demographic fairness measurement, real-time monitoring of fairness metrics, threshold-based alerts, weekly performance comparison of two prompt variants, and minimal custom development. The suggested solution uses Amazon SageMaker Clarify, AWS's purpose-built tool for bias detection and fairness evaluation for both traditional ML and generative AI workloads including those running on Amazon Bedrock. SageMaker Clarify natively calculates standard fairness metrics across defined demographic groups without requiring custom statistical analysis code. Publishing these metrics to CloudWatch enables real-time monitoring, and CloudWatch composite alarms can be configured to trigger alerts when the 15% discrepancy threshold between groups is breached. CloudWatch also supports scheduled weekly report generation to compare the fairness performance of the two prompt variants, eliminating the need to build custom reporting tools. This approach fully addresses all requirements with the lowest custom development overhead.
Option Analysis:
A. Incorrect. This approach requires developing custom Lambda functions to perform post-processing fairness analysis on model outputs, which introduces significant custom development effort that is not required with purpose-built tools. Default Amazon Bedrock API metrics do not include fairness or bias metrics, so custom logic to calculate cross-demographic recommendation discrepancy increases operational overhead, violating the least custom development requirement.
B. Incorrect. Amazon Bedrock Guardrails are designed for content policy enforcement, such as filtering harmful content, redacting PII, and blocking non-compliant responses, not for measuring statistical fairness and recommendation bias across demographic groups. The InvocationsIntervened metric only tracks when guardrails modify or block a response, which does not measure discrepancies in recommendation quality or relevance between demographic cohorts, so it cannot meet the fairness evaluation requirement.
C. Correct. As noted in the answer analysis, Amazon SageMaker Clarify is purpose-built for fairness and bias evaluation for generative AI workloads integrated with Amazon Bedrock. It natively computes required fairness metrics across predefined demographic groups with no custom analysis logic required. Publishing these metrics to Amazon CloudWatch enables real-time monitoring, and CloudWatch composite alarms can be configured to trigger alerts when the 15% discrepancy threshold is breached. CloudWatch also supports scheduled weekly reports to compare the performance of the two prompt variants, fully addressing all requirements with minimal custom development effort.
D. Incorrect. Amazon Bedrock model evaluation jobs are designed for offline, batch evaluation of model and prompt performance, not real-time continuous monitoring of fairness metrics. Additionally, the InvocationsIntervened metric is tied to Bedrock Guardrails, which do not measure cross-demographic recommendation fairness, so this approach cannot meet the real-time alerting and fairness measurement requirements.
Key Concepts:
1. Responsible Generative AI Fairness Evaluation: SageMaker Clarify provides pre-built, compliant bias detection and fairness metric calculation for generative AI workloads, eliminating the need to build custom statistical analysis logic for cross-cohort performance measurement, a core competency for the AIP-C01 exam.
2. Generative AI Monitoring Integration: AWS generative AI services including Amazon Bedrock and SageMaker integrate natively with Amazon CloudWatch for metric storage, threshold-based alerting, and scheduled reporting, reducing custom development overhead for production generative AI application monitoring.
3. Prompt Variant Performance Benchmarking: When comparing multiple prompt variants for production generative AI applications, purpose-built evaluation tools such as SageMaker Clarify reduce the overhead of building custom benchmarking and bias detection pipelines, a common use case tested in the AIP-C01 exam.
References:
Amazon SageMaker Clarify Fairness and Bias Detection, https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-fairness-and-bias-detection.html
Evaluate Generative AI Models Using Amazon Bedrock and SageMaker Clarify, https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-sagemaker-clarify.html