
Ultimate access to all questions.
To identify the Go functions consuming the most CPU in your GKE-deployed application for optimization, what steps should you take?
(Optional code block if applicable, corrected for syntax/typos):
// Example placeholder for potential code needing correction
func highCPUFunction() {
for {
// CPU-intensive operations
}
}
// Example placeholder for potential code needing correction
func highCPUFunction() {
for {
// CPU-intensive operations
}
}
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.
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.