MCPA-LEVEL-1 practice question 14 of 15

An API implementation is deployed on a single worker on CloudHub and invoked by external API clients (outside of CloudHub). How can an alert be set up that is guaranteed to trigger AS SOON AS that API implementation stops responding to API invocations?

Full set: 95 questions
Answer options
A: Implement a heartbeat/health check within the API and invoke it from outside the Anypoint Platform and alert when the heartbeat does not respond
B: Configure a "worker not responding" alert in Anypoint Runtime Manager Correct answer
C: Handle API invocation exceptions within the calling API client and raise an alert from that API client when the API Is unavailable
D: Create an alert for when the API receives no requests within a specified time period
Correct Answer:
B. Configure a "worker not responding" alert in Anypoint Runtime Manager
Explanation

The most reliable and immediate method to be notified when an API implementation on a CloudHub worker stops responding is by using the built-in alerting features of the Anypoint Platform. The "worker not responding" alert is specifically designed for this purpose. Anypoint Runtime Manager proactively monitors the health of each CloudHub worker. If a worker crashes, becomes unresponsive, or loses connectivity with the platform, this alert is triggered automatically by the platform itself, ensuring a notification is sent as soon as the issue is detected, independent of any incoming API traffic or external monitoring systems.

Why Incorrect

A. Implement a heartbeat/health check within the API and invoke it from outside the Anypoint Platform and alert when the heartbeat does not respond This requires custom development within the API and relies on an external system for polling and alerting, which is less direct than using the platform's native monitoring capabilities.
C. Handle API invocation exceptions within the calling API client and raise an alert from that API client when the API Is unavailable This approach is reactive and not guaranteed. An alert would only trigger if a client actively tries to call the API during the outage; no traffic means no alert.
D. Create an alert for when the API receives no requests within a specified time period This alerts on traffic patterns, not the health of the API implementation. A lack of requests could be normal (e.g., overnight), leading to false positives. ---

References

1. MuleSoft Documentation, "Alerts in Anypoint Platform": This document lists the standard alerts available. Under the "Standard Alerts" section, it explicitly describes the "Worker not responding" alert: "Triggered when a CloudHub worker has stopped communicating with the platform. This might indicate that the worker has become unresponsive or has crashed." This confirms it is the designated tool for this scenario.

2. MuleSoft Documentation, "Create and Manage Alerts": This guide details the configuration of alerts in Runtime Manager. It shows that "Worker not responding" is a selectable condition when creating an alert for a CloudHub application, reinforcing that this is a standard, platform-managed feature for monitoring worker health.

Scroll to Top