An App Engine request /product-details calls /sku-details for four products serially. Traces show high latency for the aggregate request. How do you reduce the request duration?
Choose an answer
Tap an option to check your answer.
Correct answer: Have /product-details issue the /sku-details requests in parallel..
Why this is the answer
The correct answer is to have /product-details issue the /sku-details requests in parallel. The problem states that /product-details calls /sku-details for four products serially, which inherently introduces latency as each call must complete before the next begins. Issuing these requests in parallel allows them to execute concurrently, significantly reducing the overall duration of the aggregate request. Increasing the instance class size might provide more CPU or memory, but it won't address the fundamental serial nature of the calls. Switching to SSD is irrelevant as App Engine standard environment instances don't directly use persistent disks in the same way as Compute Engine VMs, and the bottleneck is in the serial execution, not disk I/O. Caching /sku-details in a database could reduce the latency of individual calls if the data is static, but it doesn't solve the serial execution problem and introduces data staleness concerns.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed