GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER practice question 28 of 35

You have an application in production. It is deployed on Compute Engine virtual machine instances controlled by a managed instance group. Traffic is routed to the instances via a HTTP(s) load balancer. Your users are unable to access your application. You want to implement a monitoring technique to alert you when the application is unavailable. Which technique should you choose?

Full set: 265 questions
Answer options
A: Smoke tests
B: Stackdriver uptime checks Correct answer
C: Cloud Load Balancing - heath checks
D: Managed instance group - heath checks
Correct Answer:
B. Stackdriver uptime checks
Explanation

Cloud Monitoring uptime checks are specifically designed to verify the external availability of your application from a user's perspective. They periodically send requests from various global locations to your application's public endpoint (e.g., the load balancer's IP address). If the application fails to respond correctly, the check fails, and an associated alerting policy can be triggered to notify you. This directly addresses the requirement to be alerted when the application is unavailable to end-users, as it tests the entire request path.

Why Incorrect

A. Smoke tests are a form of software testing typically run after a deployment to verify basic functionality, not a continuous monitoring and alerting solution for production availability.
C. Cloud Load Balancing health checks are used internally by the load balancer to determine which backend instances are healthy enough to receive traffic, not to alert on overall service unavailability.
D. Managed instance group health checks are used by the instance group's auto-healing feature to automatically recreate unhealthy individual virtual machine instances, not for external service monitoring and alerting. ---

References

1. Google Cloud Documentation, Cloud Monitoring, "About uptime checks": "Uptime checks let you verify that your resources are available. You can configure uptime checks to send requests to URLs, virtual machines (VMs), APIs, and other resources from locations around the world... If a resource fails to respond to a request, Cloud Monitoring can send you a notification." This source directly supports the use of uptime checks for availability monitoring and alerting.

2. Google Cloud Documentation, Cloud Load Balancing, "Health checks overview": "Health checks are a critical component of Google Cloud load balancers and of MIGs. ... The load balancer uses health check status to determine where to send new connections." This clarifies that the primary purpose of load balancer health checks is traffic routing, not external alerting.

3. Google Cloud Documentation, Compute Engine, "Setting up health checking and autohealing": "Autohealing helps you recreate unhealthy instances in a MIG... To set up autohealing, you must define a health check that detects application failures and specify that the health check should be used for autohealing." This confirms that MIG health checks are for the self-healing of individual instances.

Scroll to Top