Security

An application logs incoming prompts before sending them to Bedrock, where a guardrail masks detected email addresses in responses. Users receive masked responses, but developers find email addresses in application logs. Which change addresses the exposure while preserving sanitized diagnostic content?

Show the answer

Correct answerC. Redact email addresses before the application emits log records.

AWhy not this: Additional response filtering does not change prompts already written to application logs.

BWhy not this: Private connectivity protects transmission but does not sanitize application log records.

CWhy this is right: Redacting at the logging boundary prevents raw email addresses from entering diagnostic logs.

DWhy not this: A denied topic policy does not sanitize records written before the model request is evaluated.

The exposure occurs when the application writes raw prompts, so redaction must occur before log emission. Response masking does not sanitize an earlier application log entry.