
Answer-first summary for fast verification
Answer: Create a Cloud Monitoring uptime check to validate the application URL. If it fails, put a message in a Pub/Sub queue that triggers a Cloud Function to switch the URL to the "Site is unavailable" page, and notify the Ops team.
Option C is the correct answer because it uses Cloud Monitoring's uptime check, which is specifically designed for monitoring application availability and can monitor external URLs (including on-premises applications) without requiring agents. The Pub/Sub and Cloud Function integration provides an event-driven, serverless approach that only triggers when the application is down, minimizing costs compared to polling-based solutions. This approach is cloud-native, highly reliable, and cost-effective as it avoids continuous resource consumption. Option A (Cloud Run scheduled job) and Option B (Compute Engine cron job) both use polling mechanisms that run every minute regardless of application status, resulting in higher costs and less efficiency. Option D (Cloud Error Reporting) is unsuitable as it's designed for application error tracking within Google Cloud services, not for monitoring external application availability.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are designing a monitoring solution for a legacy on-premises web application for TerramEarth. The goal is to have a URL automatically display a "Site is unavailable" page as quickly as possible when the application fails, and to notify the operations team. The solution must be highly reliable and built for minimal cost. What is your recommended approach?
A
Create a scheduled job in Cloud Run to invoke a container every minute. The container will check the application URL. If the application is down, switch the URL to the "Site is unavailable" page, and notify the Ops team.
B
Create a cron job on a Compute Engine VM that runs every minute. The cron job invokes a Python program to check the application URL. If the application is down, switch the URL to the "Site is unavailable" page, and notify the Ops team.
C
Create a Cloud Monitoring uptime check to validate the application URL. If it fails, put a message in a Pub/Sub queue that triggers a Cloud Function to switch the URL to the "Site is unavailable" page, and notify the Ops team.
D
Use Cloud Error Reporting to check the application URL. If the application is down, switch the URL to the "Site is unavailable" page, and notify the Ops team.
No comments yet.