StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 4: Troubleshooting and Optimization

CloudWatch alarms with SNS notifications; structured logging and correlation IDs

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

An alarm is like a smoke detector for your application. It keeps checking a number, such as how many errors happened in the last minute, and when the number crosses a line you set, it goes off. On AWS, the usual way an alarm "rings" is by sending a message to an Amazon SNS topic, which is a broadcast channel that forwards the message to email, text messages or other programs. Good logs are the second half: when the alarm rings, you need to find out what happened. Writing logs in a tidy, consistent format (like filling in the same form every time) makes them easy to search. Giving each customer request its own tracking number, called a correlation ID, lets you follow that one request through every part of the system, like a parcel tracking number.

Monday morning at Willow Street Pharmacy's online refill service, Rosa from customer care walks over with a printout. A customer says her refill order vanished on Saturday night. You check: the fulfillment function had been failing for three hours on Saturday. There was an alarm. It went to ALARM state. Nobody received the email. And when you open the logs, you find thousands of free-text lines like "processing..." and "error occurred" across four log groups, with nothing tying any of them to Rosa's customer. Two problems, one bad weekend. Why did the alert never arrive, and how could you have found that one order in seconds?

Monitoring only helps if someone finds out when something goes wrong, and only if they can then work out why. Amazon CloudWatch alarms watch metrics and act when they cross a threshold, Amazon Simple Notification Service (SNS) delivers the alert to people and systems, and good logging practices, structured logs plus correlation IDs, make the follow-up investigation fast. The exam tests the moving parts of an alarm, the reasons notifications fail, and how to trace one request through many services.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan