Google Cloud Professional Cloud Developer — Question 308

You are developing a discussion portal that is built on Cloud Run. Incoming external requests are routed through a set of microservices before a response is sent. Some of these microservices connect to databases. You need to run a load test to identify any bottlenecks in the application when it is under load. You want to follow Google-recommended practices. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because Cloud Trace is specifically designed to capture and analyze request timings, making it ideal for identifying bottlenecks during load testing. Option A focuses on heatmaps for bottleneck identification, which is less effective for detailed timing analysis. Option C discusses scraping metrics but does not offer the same granularity in request timing as Cloud Trace. Option D relies on log analysis, which can be less efficient and more cumbersome compared to using a dedicated tracing tool.