Skill 2.4.3
Implement audit trail management for regulated workloads, including for AI services.
Key Concepts
Enable an organisation CloudTrail trail with management events, S3 and Lambda data events where needed, Athena over the log archive or Security Lake for queries (CloudTrail Lake closed to new customers in May 2026), AWS Config history, VPC Flow Logs, ELB and CloudFront access logs, and Bedrock or application audit logs.
Use session tags and source identity on role sessions so actions trace back to the human user; protect logs with Object Lock and log file validation.
For AI services, CloudTrail records Bedrock and AgentCore API calls (who invoked which model, guardrail or agent), model invocation logging records the content of prompts and responses, Bedrock Guardrails traces show which policies intervened, and AgentCore Observability traces show each reasoning step and tool call an agent made. Together they let auditors reconstruct what an AI system was asked, what it answered and what actions it took, and they should follow the same retention and immutability rules as other audit logs.