SOA-C02 Monitoring, Logging, and Remediation Practice Question
A company needs to monitor for unauthorized changes to critical IAM policies. The SysOps administrator must receive notifications within minutes of any change. Which combination of AWS services should the administrator use?
⚠ Common exam trap
This question tests the distinction between event-driven (CloudTrail + EventBridge) and polling-based (AWS Config, Lambda periodic checks) approaches. Candidates often mistakenly choose AWS Config or Lambda because they assume 'detect changes' implies periodic evaluation, missing the real-time requirement.
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 AWS CloudTrail to log IAM changes, and create a CloudWatch Events rule that triggers an SNS notification when specific API calls are made.
AWS CloudTrail logs all IAM API calls (e.g., PutRolePolicy, AttachRolePolicy) as events. A CloudWatch Events rule (now called Amazon EventBridge rule) can be configured to match these specific API calls and trigger an SNS topic, delivering near-instant notifications within minutes. This combination provides real-time, event-driven monitoring without polling or delays.
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 AWS CloudTrail to log IAM changes, and create a CloudWatch Events rule that triggers an SNS notification when specific API calls are made.
Why this is correct
CloudTrail records all IAM management events as API calls, including high-risk actions like `PutUserPolicy` or `DeleteUser`. An EventBridge/CloudWatch Events rule can match on event source and event name, then invoke an SNS topic within seconds. This gives a near-real-time, event-driven alert without polling or manual inspection, making it the only fully purpose-built combination.
- ✗
Use AWS Config rules to detect changes and send notifications via SNS.
Why it's wrong here
AWS Config is a resource-compliance service that evaluates recorded configurations against rules and can publish notifications to SNS, but it is not an API-call logging service. Its evaluations run periodically (for example, every 15 minutes or hourly) or on detected configuration changes, and delivery can lag several minutes. That delay means a policy change could go unnoticed until the next evaluation cycle, so it cannot satisfy a strict near-real-time monitoring requirement.
- ✗
Use CloudWatch Logs to monitor IAM activity and create a metric filter to trigger an alarm.
Why it's wrong here
CloudWatch Logs has no native way to ingest IAM API calls; you would first need to configure CloudTrail to export trails to CloudWatch Logs and then create a metric filter to count occurrences of the specific event names. Log delivery from CloudTrail to CloudWatch Logs is asynchronous and can take up to several minutes, and metric alarms also poll on one-minute or coarser periods. The added setup and latency makes this an indirect, harder-to-maintain alternative rather than the recommended solution.
- ✗
Use a Lambda function that periodically checks IAM policies and sends an SNS message if changes are detected.
Why it's wrong here
A scheduled Lambda function that snapshots and compares IAM policies is a polling mechanic rather than an event-driven one. It can miss changes that are made and reverted between invocations, leaving no record of the unauthorized attempt, and its detection delay equals the chosen cron interval. It also duplicates functionality that CloudTrail already provides, creating extra custom code and cost without improving timeliness.
Go deeper
Related to this question
About these practice questions
This SOA-C02 question is part of Courseiva's 1,169-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SOA-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 SOA-C02 exam.