- A
Use Amazon Athena to query the CloudTrail logs by creating a table partitioned by account, region, and date.
Athena allows efficient SQL querying of the log data.
- B
Enable AWS CloudTrail Lake and create a new event data store that includes the historical logs.
Why wrong: CloudTrail Lake may not include historical logs without additional setup.
- C
Download all log files from the S3 bucket for the last 30 days and parse them locally.
Why wrong: This is time-consuming and inefficient.
- D
Use Amazon CloudWatch Logs Insights to query the logs from the member account.
Why wrong: Logs are in S3, not CloudWatch Logs.
Quick Answer
The answer is to use Amazon Athena to query the CloudTrail logs by creating a table partitioned by account, region, and date. This is the most efficient approach because Athena leverages partition pruning, allowing it to scan only the specific S3 prefixes that match your filters—such as the target account ID, the last 30 days, and the relevant region—rather than reading the entire centralized log bucket. On the AWS Certified Security Specialty SCS-C02 exam, this scenario tests your understanding of cost-optimized log analysis at scale, often appearing as a trap where candidates might suggest exporting logs to a database or using CloudTrail Lake, which are slower or more expensive. The key insight is that Athena’s serverless SQL engine directly queries the existing S3 structure without data movement, making it ideal for cross-account investigations triggered by GuardDuty findings. Memory tip: think “partition to prune” — partitioning by account, region, and date lets Athena skip irrelevant data, just like a librarian skipping entire shelves to find a single book.
SCS-C02 Threat Detection and Incident Response Practice Question
This SCS-C02 practice question tests your understanding of threat detection and incident response. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Your organization uses AWS Organizations with 50 member accounts. You are the security administrator for the root account. You have enabled AWS CloudTrail in all accounts and centralized the logs in an S3 bucket in the root account. You also enabled Amazon GuardDuty in the root account and have delegated an administrator account. Recently, you received an alert from GuardDuty about a potential credential compromise in a member account. The finding indicates that an IAM user in that account made an API call from an unusual IP address. You need to quickly gather all CloudTrail events for that user from the last 30 days across all accounts. The logs are stored in a single S3 bucket with a prefix structure like 'AWSLogs/<account-id>/CloudTrail/<region>/<year>/<month>/<day>'. What is the MOST efficient way to query these logs?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Use Amazon Athena to query the CloudTrail logs by creating a table partitioned by account, region, and date.
Amazon Athena is the most efficient way to query CloudTrail logs stored in S3 because it allows you to run SQL queries directly on the data without moving or downloading it. By creating a table partitioned by account, region, and date, you can quickly filter for the specific IAM user's events across all 50 accounts for the last 30 days, leveraging partition pruning to scan only the relevant log files. This approach minimizes data scanned and cost, while providing near-instant results.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use Amazon Athena to query the CloudTrail logs by creating a table partitioned by account, region, and date.
Why this is correct
Athena allows efficient SQL querying of the log data.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Enable AWS CloudTrail Lake and create a new event data store that includes the historical logs.
Why it's wrong here
CloudTrail Lake may not include historical logs without additional setup.
- ✗
Download all log files from the S3 bucket for the last 30 days and parse them locally.
Why it's wrong here
This is time-consuming and inefficient.
- ✗
Use Amazon CloudWatch Logs Insights to query the logs from the member account.
Why it's wrong here
Logs are in S3, not CloudWatch Logs.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may think CloudTrail Lake (Option B) is the only way to query CloudTrail logs efficiently, but Athena is actually the native, cost-effective solution for querying CloudTrail logs stored in S3 without additional ingestion steps.
Detailed technical explanation
How to think about this question
Athena uses PrestoDB under the hood to execute SQL queries on data in S3, and when you define a table with partitions (e.g., using Hive-style partitioning like `AWSLogs/<account-id>/CloudTrail/<region>/<year>/<month>/<day>`), Athena can perform partition pruning to skip scanning irrelevant directories. For example, querying `WHERE account_id = '123456789012' AND date >= '2025-02-01'` will only scan the specific account's log files for that date range, drastically reducing data scanned and cost. In a real-world incident response scenario, this allows a security analyst to retrieve all API calls for a compromised IAM user across 50 accounts in seconds, rather than hours.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Threat Detection and Incident Response — study guide chapter
Learn the concepts, then practise the questions
- →
Threat Detection and Incident Response practice questions
Targeted practice on this topic area only
- →
All SCS-C02 questions
1,738 questions across all exam domains
- →
AWS Certified Security Specialty SCS-C02 study guide
Full concept coverage aligned to exam objectives
- →
SCS-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SCS-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Threat Detection and Incident Response practice questions
Practise SCS-C02 questions linked to Threat Detection and Incident Response.
Security Logging and Monitoring practice questions
Practise SCS-C02 questions linked to Security Logging and Monitoring.
Identity and Access Management practice questions
Practise SCS-C02 questions linked to Identity and Access Management.
Management and Security Governance practice questions
Practise SCS-C02 questions linked to Management and Security Governance.
Infrastructure Security practice questions
Practise SCS-C02 questions linked to Infrastructure Security.
Data Protection practice questions
Practise SCS-C02 questions linked to Data Protection.
SCS-C02 fundamentals practice questions
Practise SCS-C02 questions linked to SCS-C02 fundamentals.
SCS-C02 scenario practice questions
Practise SCS-C02 questions linked to SCS-C02 scenario.
SCS-C02 troubleshooting practice questions
Practise SCS-C02 questions linked to SCS-C02 troubleshooting.
Practice this exam
Start a free SCS-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SCS-C02 question test?
Threat Detection and Incident Response — This question tests Threat Detection and Incident Response — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use Amazon Athena to query the CloudTrail logs by creating a table partitioned by account, region, and date. — Amazon Athena is the most efficient way to query CloudTrail logs stored in S3 because it allows you to run SQL queries directly on the data without moving or downloading it. By creating a table partitioned by account, region, and date, you can quickly filter for the specific IAM user's events across all 50 accounts for the last 30 days, leveraging partition pruning to scan only the relevant log files. This approach minimizes data scanned and cost, while providing near-instant results.
What should I do if I get this SCS-C02 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more ways this is tested on SCS-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A security team needs to analyze historical CloudTrail logs across multiple AWS accounts to detect patterns of suspicious activity. Which solution provides the MOST cost-effective and scalable analysis?
medium- ✓ A.Aggregate logs into a central S3 bucket and query with Amazon Athena
- B.Stream logs to Amazon Elasticsearch Service and use Kibana
- C.Load logs into Amazon Redshift for analysis
- D.Use Amazon CloudWatch Logs Insights across all accounts
Why A: Aggregating CloudTrail logs into a central S3 bucket and querying with Amazon Athena is the most cost-effective and scalable solution because Athena uses a serverless, pay-per-query model with no infrastructure to manage, and it can directly analyze large volumes of structured log data stored in S3 using standard SQL. This approach avoids the cost of provisioning and maintaining dedicated clusters (as with Redshift or Elasticsearch) and avoids the per-GB ingestion and storage fees of CloudWatch Logs Insights, making it ideal for historical analysis across multiple accounts.
Last reviewed: Jun 24, 2026
This SCS-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.