Let’s Get Certified
Module 03 / 17 · Detection

Design a queryable security log archive

An auditor asks which role read a particular S3 object yesterday. An organization trail contains IAM policy changes but no object reads. Why could the requested event be missing?

Design a queryable security log archive

Choose data sources around the events needed, configure an organization trail, normalize records and deliver them to subscribers.

Work through the decision

An auditor asks which role read a particular S3 object yesterday. An organization trail contains IAM policy changes but no object reads. Why could the requested event be missing?

Check your reasoning

Check whether the trail selected S3 object-level read data events for that bucket at the time. Management events describe control-plane actions. Adding a selector now records future activity and cannot reconstruct a historical read.

Cert Espresso · 12:39

Interpret the evidence

CloudTrail data events
Enable supported resource-level operations such as S3 object reads on the selected resources and account for volume.
VPC Flow Logs
Capture network flow metadata such as endpoints and accept/reject decisions. Payloads and IAM identity are outside that record.
Route 53 Resolver query logging
Records DNS queries handled by configured VPC resolvers, subject to caching and service behavior.
Amazon Security Lake
Centralizes supported sources using a common security schema and provides governed subscriber access.

Practice the guide skills

  1. For an object read, a security group change, a rejected TCP flow and a DNS query, identify the necessary event source. Explain which ones include caller identity. Watch 12:39
  2. Set a trail’s account and Region coverage and data-event selectors. Mark an example action inside and outside the selectors. Watch 13:23
  3. Design a protected log archive with delivery permissions, lifecycle rules and separate analyst access. Choose Security Lake when normalized multi-source records are required. Watch 15:15
  4. Compare querying a retained log archive in Athena with inspecting recent operational events in Logs Insights. Restrict time and account before expanding the query. Watch 19:47
  5. Normalize the identity, request, resource and event-time fields across two sources. Preserve original records so a reviewer can check the join. Watch 20:13
  6. Choose resolver logs, VPC Flow Logs or a load balancer access log for a question about DNS names, network flows or individual HTTP requests. Watch 15:35

Official objectives for this lesson

Explain an evidence gap before querying

A store selects CloudTrail management events and S3 object writes for a single evidence bucket. Its audit question concerns four actions.

UpdateTrail                    Management write
PutObject to evidence bucket   Selected data write
GetObject from evidence bucket Data read
PutObject to another bucket    Data write outside selector

Expect the first two in the trail if delivery succeeded. The third is a read and the fourth is outside the resource scope. Keep a dated record of selectors so an investigator can distinguish an excluded event from a broken delivery path.

Related lesson · Keep telemetry usable across accounts

Knowledge check

Design a queryable security log archive quiz

Answer 3 questions. Check each answer for an explanation.