Automation Quiz
Test your knowledge of triggers, actions, webhooks, and cron schedules.
Course Recap: Automation Fundamentals
Review these core concepts before the quiz. Every question draws directly from these fundamentals.
Automation Triggers
A trigger is the event that starts an automation. Nothing happens until the trigger fires. There are three fundamental types, and choosing the right one determines the reliability and responsiveness of your entire workflow.
Real-time. An external system sends an HTTP POST to your URL the instant an event occurs. Zero delay. Used for: payment events, form submissions, GitHub commits, Slack messages.
Time-based. Fires on a cron schedule — every hour, every day at 9 AM, every Monday at noon. Used for: daily reports, data sync, cleanup tasks, digest emails.
Internal. Fires when something changes in your own system — a database row updates, a user signs up, a file is uploaded. Used for: user onboarding, status changes, threshold alerts.
Workflow Design
A workflow is a sequence of steps that processes data from trigger to final action. Good workflow design means thinking about data flow, error handling, and what happens when things go wrong.
API Integration
APIs are how your automation talks to external services. Every automation platform is fundamentally an API orchestrator — it calls APIs on your behalf in a sequence you define.
Error Handling
Production automations fail. The difference between amateur and professional automation is how failures are handled.
Production Patterns
These patterns separate hobbyist automations from production-grade systems.
Cron Expression Quick Reference
Cron expressions control schedule triggers. The format has five fields: minute hour day-of-month month day-of-week.
# Every minute
* * * * *
# Every day at midnight
0 0 * * *
# Every Monday at 9 AM
0 9 * * 1
# Every 5 minutes
*/5 * * * *
# First day of every month at noon
0 12 1 * *
# Weekdays at 8:30 AM
30 8 * * 1-5
Webhook Security Essentials
Webhooks are publicly accessible URLs. Anyone who discovers the URL can send fake data to your automation. Securing your webhooks is not optional — it prevents attackers from triggering false actions in your system.
Most services (Stripe, GitHub, Slack) sign their webhook payloads with a secret key. Your code should verify the signature before processing the data. If the signature does not match, reject the request — it was not sent by the real service.
Never expose a webhook over plain HTTP. Without encryption, anyone on the network path can read the payloads, which may contain customer data, financial information, or authentication tokens.
Webhook payloads include a timestamp. Reject payloads older than 5 minutes — they could be replay attacks where someone captured a valid webhook and resent it later to trigger duplicate actions.
Return a 200 response immediately, then process the payload in a background job. If your webhook takes too long to respond, the sender will retry — causing duplicate processing. Accept fast, process later.
Automation Architecture Patterns
As your automations grow from single workflows to interconnected systems, these architecture patterns keep everything manageable.
Systems communicate by emitting and consuming events. When a payment succeeds, it emits a "payment.succeeded" event. Multiple systems can react independently — billing creates an invoice, support creates an onboarding ticket, analytics logs the conversion. Each consumer is decoupled from the others.
A queue sits between producer and consumer. The producer adds messages to the queue, the consumer processes them at its own pace. This handles traffic spikes — if 1000 orders arrive in one second, the queue absorbs them and the consumer processes them steadily. No data is lost.
If an external API fails repeatedly, the circuit breaker "opens" and stops sending requests for a cooldown period. This prevents your automation from hammering a broken service and gives it time to recover. After the cooldown, the breaker "half-opens" and sends a test request to check if the service is back.
Automation Debugging Checklist
When an automation stops working, follow this systematic approach instead of guessing.