FinSight has an automated ML pipeline in CodePipeline that stages new S3 datasets into training-buckets. Before any dataset is used for training, security requires detection of PII and automatic blocking of pipeline progress if PII is found. Which integration approach using Amazon Macie will allow the pipeline to conditionally proceed or fail based on PII findings?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable Amazon Macie continuous classification for the S3 bucket or run an on-demand Macie classification job for the new dataset; route Macie findings to Amazon EventBridge and add a pre-training pipeline Lambda/Step Function step that inspects the findings and aborts the pipeline if PII above the threshold is detected..
Why this is the answer
The correct approach leverages Macie's ability to detect PII and integrates its findings into the pipeline's control flow. Macie can perform continuous classification or on-demand jobs to identify sensitive data in S3. Routing these findings to EventBridge allows for automated, event-driven reactions. A Lambda function or Step Functions workflow can then consume these events, analyze the Macie findings (e.g., checking for PII above a defined threshold), and programmatically halt the CodePipeline execution if PII is detected, preventing its use in training. Incorrect options: S3 Block Public Access and S3 Access Point policies control access, not content. Macie doesn't automatically prevent access based on PII findings in a way that directly fails a pipeline step; it reports findings. Amazon Comprehend is excellent for natural language processing and PII detection within text, but Macie is specifically designed for comprehensive data security and PII discovery across S3, including various file types, making it the primary tool for this use case. The statement that Macie is "only for discovery jobs" is incorrect. S3 Object Lock prevents object deletion or modification, not PII detection or automatic skipping by SageMaker based on content. SageMaker does not inherently integrate with Object Lock for PII-based skipping.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed