AWS Certified Developer Associate (#104)

An application on AWS is using third-party APIs. The Developer needs to monitor API errors in the code, and wants to receive notifications if failures go above a set threshold value. How can the Developer achieve these requirements?

Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.