Professional Cloud Architect free question 2 / 10 · Domain 1: Designing and planning a cloud solution architecture
You put an external Application Load Balancer in front of a web application deployed in us-central1. A user in Germany pings the load balancer’s IP address and sees a round trip of about 1 millisecond. According to the “Optimize application latency with load balancing” page, how should this result be read?
- The GFE terminates TCP, so TTFB is also a value measured only up to the GFE, just like ping
- The load balancer forwards traffic within the region, so this value is the latency to the application
- The value is the latency to the nearest Google GFE, and the actual latency to the application is measured with TTFB
- The 1 ms is the value to the nearest GFE, and the latency to the application can be measured by pinging the VM
Show the answer and explanation
Answer: C
Why this is correct
The page says that with an external Application Load Balancer, Google Front Ends (GFEs) at the edge of Google’s global network terminate the TCP session and proxy the traffic. Pinging the load balancer shows only about 1 ms because it measures the round trip to the closest GFE, which is in the same city as the user. That is not the actual latency to the application in us-central1. An experiment with a protocol (ICMP) different from the application’s (HTTP) is misleading, so measure time to first byte (TTFB) with curl. In the page’s example, TTFB was 123 ms.
Why the other options are wrong
"The GFE terminates TCP, so TTFB is also a value measured only up to the GFE, just like ping" … The page says to measure latency to the application with curl, which reports time to first byte (TTFB); in the load-balanced setup TTFB was 123 ms. Unlike the 1 ms ping, TTFB includes the response from the application in us-central1.
"The 1 ms is the value to the nearest GFE, and the latency to the application can be measured by pinging the VM" … The page says that an experiment with a protocol (ICMP) different from the application’s (HTTP) is misleading, and that user latency should be measured with TTFB. Even without a load balancer, pinging the VM gave 110 ms while TTFB was 230 ms, so ping does not match the actual response latency.
"The load balancer forwards traffic within the region, so this value is the latency to the application" … Forwarding traffic unchanged within the region describes the external passthrough Network Load Balancer. The external Application Load Balancer terminates the session at the edge GFE, so this 1 ms is the round trip to the GFE, not the latency to the application.
Key point
With an external Application Load Balancer, round trips fall even for large files, SSL offload sharply reduces the extra TLS handshake latency, and client-side sessions can be upgraded to HTTP/2 automatically. Users who are already close to the application see little improvement on the first request.