Event-driven automation: SOA-C03 study notes and practice questions
What to know about Event-driven automation for the SOA-C03 exam, from the Deployment, Provisioning, and Automation domain (22% of the exam guide), then 1 free question to test it. Part of the SOA-C03 study guide.
These questions ask how to run work automatically when something happens, without polling or servers.
Event sources
Source
Example
S3 event notifications
Object created or deleted → Lambda, SQS, SNS, or EventBridge
EventBridge rules
EC2 state change, Auto Scaling events, Health events, API calls via CloudTrail, findings
EventBridge Scheduler
Every night at 2:00 in a time zone
CloudWatch alarms
State change → EventBridge or SNS
DynamoDB Streams / Kinesis
Item changes → Lambda
SQS
Messages → Lambda event source mapping
Lambda for operations
Good for short tasks (up to 15 minutes): tag resources, clean up snapshots, notify teams, call APIs.
Needs an execution role with only the permissions it uses.
Asynchronous invocations retry twice by default; configure a dead-letter queue or on-failure destination to keep failed events.
Reserved concurrency can cap a function, or set to zero to stop it in an emergency.
Logs go to CloudWatch Logs; watch Errors, Throttles and Duration.
Avoiding loops
A function that writes to the same bucket or prefix that triggers it can call itself forever. Use separate buckets or prefixes for input and output, and filter events by prefix or suffix. Lambda’s recursive loop detection stops some loops automatically, but don’t rely on it.
Step Functions
For multi-step automation with waits, retries, branches and human approval, use AWS Step Functions instead of chaining Lambda functions.
Common traps
Polling with a cron job when an event source exists.
No DLQ or destination for important asynchronous events.
A function that writes back to the same location that triggers it creates a recursive loop. Separate input and output with key name prefix filters or a second bucket so that the function's writes do not match the trigger. Lambda can detect and stop some recursive loops, but the design should not rely on that.
Want more on Event-driven automation? The 5 full-length practice sets have 6 more Event-driven automation questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →