A legacy web app remains on-prem and you need a low-cost, reliable cloud-native monitor that switches its URL to a "Site is unavailable" page quickly and notifies Ops. What should you build?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a Cloud Monitoring uptime check for the URL. On failure, publish a message to Pub/Sub that triggers a Cloud Function to switch the URL to the "Site is unavailable" page and notify Ops..
Why this is the answer
The Cloud Monitoring uptime check is the most appropriate, low-cost, and reliable cloud-native solution. It continuously monitors the URL and, upon failure, can directly publish to Pub/Sub. Pub/Sub then reliably triggers a Cloud Function, which is ideal for executing the logic to switch the URL and notify operations. This serverless approach minimizes operational overhead and cost. Using Cloud Run or a Compute Engine VM for a scheduled job adds unnecessary cost and complexity for a simple URL check. Cloud Error Reporting is designed for application errors, not for monitoring URL availability, and wouldn't directly facilitate the URL switch or notification in this manner.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed