Google Cloud Professional Cloud DevOps Engineer — Question 154
Your company processes IoT data at scale by using Pub/Sub, App Engine standard environment, and an application written in Go. You noticed that the performance inconsistently degrades at peak load. You could not reproduce this issue on your workstation. You need to continuously monitor the application in production to identify slow paths in the code. You want to minimize performance impact and management overhead. What should you do?
Answer options
- A. Use Cloud Monitoring to assess the App Engine CPU utilization metric.
- B. Install a continuous profiling tool into Compute Engine. Configure the application to send profiling data to the tool.
- C. Periodically run the go tool pprof command against the application instance. Analyze the results by using flame graphs.
- D. Configure Cloud Profiler, and initialize the cloud.google.com/go/profiler library in the application.
Correct answer: D
Explanation
The correct answer, D, is ideal because Cloud Profiler provides low-overhead continuous profiling that minimizes impact while offering insights into application performance in production. Options A and B do not specifically address continuous profiling for code paths, and option C requires manual execution and analysis, which is less efficient than a continuous solution.