Auditors want to run SQL queries over a year of API activity across several accounts, for example "who deleted tables in March". Which AWS capability fits best?
- Exam domain
- Data Operations and Support22% of the exam
- Difficulty
- Medium
- In this mock
- 21 questions on this domainPractise this domain
Why the exam asks this
Task Statement 4.4: Prepare logs for audit.
Objective in the exam guide: Use AWS CloudTrail Lake for centralized logging queries; extract logs for audits; deploy logging and monitoring solutions for auditing.
Audits ask specific questions across long periods and many accounts. Queryable, central audit logs answer them in minutes.
Why A is the answer
AWS CloudTrail Lake, which stores events in event data stores you can query with SQL
CloudTrail Lake collects CloudTrail events and lets you query them with SQL, including across accounts.
Remember: SQL over audit history: AWS CloudTrail Lake.
How it works
AWS CloudTrail records API activity in your accounts.
CloudTrail Lake stores those events in event data stores and lets you query them with SQL.
It can collect events across accounts, which suits central audit questions.
Clues in the question
The words that point to the answer, and what each one tells you.
- SQL queries over a year of API activity
- Queryable audit storage.
- Across several accounts
- Central collection.
In detail
- CloudTrail trails deliver logs to S3; CloudTrail Lake adds managed storage and SQL querying.
- Retention is configured per event data store.
Side by side with look-alikes
| Service | Answers who did what, with SQL? |
|---|---|
| CloudTrail Lake | Yes |
| CloudWatch metrics | No |
| Lifecycle rules | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. AWS CloudTrail Lake, which stores events in event data stores you can query with SQLRight
SQL over audit history: AWS CloudTrail Lake.
B. Amazon CloudWatch metricsWrongMost tempting
Metrics are counts, not records of who did what.
Why it tempts: CloudWatch is the central monitoring service. But metrics are numbers over time, not a record of who called which API.
C. S3 Lifecycle rulesWrong
Lifecycle rules manage storage.
D. AWS Glue DataBrewWrong
DataBrew prepares data, it is not an audit log store.
In practice
- Set event data store retention to match audit requirements.
Use case
An illustrative scenario, not a real incident.
An auditor runs one SQL query in CloudTrail Lake and lists every DeleteTable call in March across four accounts.
See how it works
flowchart LR A1["Account 1"] --> L["CloudTrail Lake event data store"] A2["Account 2"] --> L A3["Account 3"] --> L L --> Q["SQL: who deleted tables in March?"]
How to read this chart
- "Account 1" leads to "CloudTrail Lake event data store".
- "Account 2" leads to "CloudTrail Lake event data store".
- "Account 3" leads to "CloudTrail Lake event data store".
- "CloudTrail Lake event data store" leads to "SQL: who deleted tables in March?".