ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 212 - Professional Cloud Developer discussion

Report
Export

You recently deployed a Go application on Google Kubernetes Engine (GKE). The operations team has noticed that the application's CPU usage is high even when there is low production traffic. The operations team has asked you to optimize your application's CPU resource consumption. You want to determine which Go functions consume the largest amount of CPU. What should you do?

A.
Deploy a Fluent Bit daemonset on the GKE cluster to log data in Cloud Logging. Analyze the logs to get insights into your application code's performance.
Answers
A.
Deploy a Fluent Bit daemonset on the GKE cluster to log data in Cloud Logging. Analyze the logs to get insights into your application code's performance.
B.
Create a custom dashboard in Cloud Monitoring to evaluate the CPU performance metrics of your application.
Answers
B.
Create a custom dashboard in Cloud Monitoring to evaluate the CPU performance metrics of your application.
C.
Connect to your GKE nodes using SSH. Run the top command on the shell to extract the CPU utilization of your application.
Answers
C.
Connect to your GKE nodes using SSH. Run the top command on the shell to extract the CPU utilization of your application.
D.
Modify your Go application to capture profiling data. Analyze the CPU metrics of your application in flame graphs in Profiler.
Answers
D.
Modify your Go application to capture profiling data. Analyze the CPU metrics of your application in flame graphs in Profiler.
Suggested answer: D

Explanation:

https://cloud.google.com/profiler/docs/about-profiler

Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the source code that generated it, helping you identify the parts of your application that are consuming the most resources, and otherwise illuminating your applications performance characteristics.

https://cloud.google.com/profiler/docs

asked 18/09/2024
Fatawu Musah
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first