
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.
The correct answer is 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. This solution leverages Google Cloud's native services to monitor the application's uptime in a cloud-native way. Cloud Monitoring can effectively check the application's availability, and the use of Pub/Sub and Cloud Functions allows for an automated and scalable response to any downtime. Moreover, this approach is cost-effective as it uses managed services, which reduces the need for maintaining custom scripts or additional infrastructure.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
TerramEarth manufactures heavy equipment for the mining and agricultural industries, and they have a legacy web application that cannot be migrated to the cloud. The application is critical for their operations, and they need a cloud-native way to monitor it. In case the application goes down, the URL should quickly point to a 'Site is unavailable' page, and the Ops team should be notified immediately. Considering the need for reliability and cost-effectiveness, what solution should TerramEarth implement?
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.