ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 153 - Professional Cloud DevOps Engineer discussion

Report
Export

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?

A.
Install a continuous profiling tool into Compute Engine. Configure the application to send profiling data to the tool.
Answers
A.
Install a continuous profiling tool into Compute Engine. Configure the application to send profiling data to the tool.
B.
Periodically run the go tool pprof command against the application instance. Analyze the results by using flame graphs.
Answers
B.
Periodically run the go tool pprof command against the application instance. Analyze the results by using flame graphs.
C.
Configure Cloud Profiler, and initialize the [email protected]/go/profiler library in the application.
Answers
C.
Configure Cloud Profiler, and initialize the [email protected]/go/profiler library in the application.
D.
Use Cloud Monitoring to assess the App Engine CPU utilization metric.
Answers
D.
Use Cloud Monitoring to assess the App Engine CPU utilization metric.
Suggested answer: C

Explanation:

The correct answer is C) Configure Cloud Profiler, and initialize the cloud.google.com/go/profiler library in the application.

According to the Google Cloud documentation, Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications1. Cloud Profiler can help you identify slow paths in your code and optimize the performance of your applications. Cloud Profiler supports applications written in Go that run on App Engine standard environment2. To use Cloud Profiler, you need to configure it in your Google Cloud project and initialize the cloud.google.com/go/profiler library in your application code3. You can then use the Cloud Profiler interface to analyze the profiling data and visualize the results by using flame graphs4. Cloud Profiler has minimal performance impact and management overhead, as it only samples a small fraction of the application activity and does not require any additional infrastructure or agents.

The other options are incorrect because they do not meet the requirements of minimizing performance impact and management overhead. Option A is incorrect because it requires installing a continuous profiling tool into Compute Engine, which is an additional infrastructure that needs to be managed and maintained. Option B is incorrect because it requires periodically running the go tool pprof command against the application instance, which is a manual and disruptive process that can affect the application performance. Option D is incorrect because it only uses Cloud Monitoring to assess the App Engine CPU utilization metric, which is not enough to identify slow paths in the code or optimize the application performance.

Cloud Profiler documentation, Overview. Profiling Go applications, Supported environments. Profiling Go applications, Using Cloud Profiler. Analyzing data, Analyzing data.

asked 18/09/2024
Peter Lam
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first