How to Build a PHI-Redacted Audit Trail for FM Prompts
Short answer
C Store prompt-completion pairs in S3 with Object Lock compliance mode, tag-based lifecycle retention, and Lambda redaction of patient data.
Question
Which solution will meet these requirements?
Key Takeaways
You must satisfy auditability, PHI redaction of stored records, and healthcare retention simultaneously; the trap is assuming a Bedrock-native guardrail/flow pipeline covers storage-side redaction and retention obligations.
This AIP-C01 scenario tests how a healthcare app can keep a complete, immutable audit trail of foundation-model prompt-completion pairs while never persisting protected health information. The winning design pairs S3 Object Lock in compliance mode with tag-based lifecycle retention and a Lambda redaction step, which is why option C is correct.
Common mistake: Learners most often pick B, believing Amazon Bedrock Flows and Guardrails sensitive-information filters detect PHI and enforce retention. Guardrails masks PII during model interaction but does not redact already-stored logs, does not provide an immutable audit store, and does not implement healthcare retention policies.
Expert Analysis
Why the Answer Is Correct
Option C is the only choice that satisfies every clause of the requirement set at once. S3 Object Lock in compliance mode creates write-once-read-many storage, so the prompt-completion audit trail cannot be altered or purged early, which is exactly what an audit trail of all prompts and completions demands. Tag-based S3 Lifecycle policies give the company an enforcement point for healthcare-specific retention periods applied to PHI-tagged objects, and the Lambda function redacts patient information after processing so that stored records carry no PHI. Because redaction happens as part of processing rather than at the end of a retention window, the company still tracks each prompt-completion pair while keeping persistent records clean.
Why the Other Options Are Wrong
Option A leaves PHI intact in S3 until a retention period expires and then deletes it, which violates the explicit requirement to redact any PHI from stored records, and default server-side encryption is a transport-at-rest control rather than a redaction or retention mechanism. Option B leans on Amazon Bedrock Prompt Management and Flows to detect PHI, but those services orchestrate prompts and pipelines rather than perform clinical PHI detection, and Guardrails sensitive-information filters operate on model interactions instead of guaranteeing redacted stored logs plus enforced healthcare retention. Option D puts patient data into an Amazon Bedrock knowledge base, which is a retrieval corpus for RAG rather than an immutable prompt-completion audit log, and a retention Lambda without Object Lock cannot prevent records from being modified. None of A, B, or D delivers compliance-mode immutability alongside redaction and lifecycle-based retention.
Community Comment Notes
A single commenter, TNT87, argued for option B, repeating the option wording that the team should "Use Amazon Bedrock Prompt Management and Amazon Bedrock Flows to detect PHI" and closing with "Ans B." That reasoning addresses masking during inference but never establishes an immutable audit trail or a healthcare retention mechanism, which are explicit requirements in the stem. The comment also assumes Guardrails can enforce retention on S3 logs, when the option only offers generic S3 retention settings. On the exam, weight the words compliance mode, redact, and retention policies, since those three together point to option C.
Official Reference
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html
- https://docs.aws.amazon.com/bedrock/latest/userguardrails.html
These links open the official vendor documentation in a new tab.
Exam Strategy
Scan the stem for three obligations — immutable audit trail, redaction of stored PHI, and enforced retention — then eliminate any option that satisfies only one or two. Bedrock-native wording (Flows, Guardrails, knowledge base) is often a distractor when the requirement is about storage governance.
Frequently Asked Questions
Why isn't Amazon Bedrock Guardrails enough to redact PHI for this audit trail?
Why does the audit trail need S3 Object Lock in compliance mode?
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
TNT87 👍 1 Answered BUse Amazon Bedrock Prompt Management and Amazon Bedrock Flows to detect PHI. Configure Amazon Bedrock Guardrails to use sensitive information filters to mask PHI automatically. Store logs in Amazon S3 and configure appropriate retention settings. Ans B
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AIP-C01 Questions
Access 110 questions with complete answers and detailed explanations.
View Full AIP-C01 Practice Test →