Courseiva
mediumMultiple ChoiceObjective-mapped

Google ACE Practice Question: A company recently deployed a web application on…

A company recently deployed a web application on a managed instance group (MIG) behind a regional external HTTP(S) load balancer. The application is a Python Flask app running on Compute Engine VMs. After a code update that caused increased response times under load, users report intermittent 503 errors. You examine the load balancer logs and see that the backend instances are periodically marked as unhealthy. The health check is configured to query the /health endpoint every 5 seconds with a healthy threshold of 2 and a timeout of 1 second. The application's /health endpoint returns 200 OK, but sometimes takes up to 1.5 seconds to respond. What is the most likely cause of the health check failures?

⚠ Common exam trap

Google Cloud often tests the distinction between a health check timing out versus the instance being truly unhealthy—candidates may incorrectly attribute intermittent 503s to overload (Option A) rather than recognizing that the health check timeout value is the direct cause when the endpoint response time exceeds it.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The health check response timeout is too low for the application's increased response time.

The health check is configured with a timeout of 1 second, but the /health endpoint now takes up to 1.5 seconds to respond due to the code update. Since the health check waits only 1 second for a response, any request that takes longer than that will be considered a failure, causing the backend to be marked unhealthy and triggering 503 errors. This is a classic mismatch between health check timeout and application response time.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The instances are overloaded and failing health checks intermittently.

    Why it's wrong here

    Overloaded instances usually exhibit broad performance degradation: user requests time out or return 5xx errors, not just health-check probes. If CPU or memory were saturated, the load balancer would also report elevated error rates for real traffic, whereas the symptoms here are specifically false negative health checks after a code update. Additionally, the health check's 1-second timeout is the direct trigger—overload alone would not explain why a response arriving at 1.5 seconds is classified as failed.

  • The health check response timeout is too low for the application's increased response time.

    Why this is correct

    A managed instance group health check has a configurable timeout that defines how long the probe waits for a response before marking the instance unhealthy. After the change, the application's /health endpoint consistently returns 200 but only after ~1.5 seconds, which exceeds the 1-second timeout. This creates false negatives: the instance is healthy, but the probe gives up too early and the instance is removed from load balancing. Increasing the timeout (or reducing endpoint latency) resolves the issue.

  • The health check firewall rule is missing or misconfigured.

    Why it's wrong here

    Health check probes come from Google's well-known ranges such as 35.191.0.0/16 and 130.211.0.0/16, so a missing firewall rule would block all probes and make the instance unhealthy from the very beginning, regardless of code changes. A misconfigured firewall also typically causes connection timeouts or resets rather than a 200 response that arrives after the timeout threshold. Since the issue appeared only after the deployment and the /health endpoint returns 200, a firewall problem is not the root cause.

  • The health check is checking the wrong port.

    Why it's wrong here

    A wrong port setting would cause the health check to attempt a TCP connection or HTTP request to a port the application doesn't listen on, producing immediate connection refused or timeout errors on every probe. This failure mode would be present before and after the code deployment, and it would not depend on the application's response time. Because the /health endpoint returns 200 on the configured port, the port number is correct and this option cannot explain the post-update behavior.

About these practice questions

Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.