Google Professional Cloud DevOps Engineer Question 257
Select 3Google Cloud PlatformYour team has deployed a new microservices-based application on Google Kubernetes Engine (GKE). However, users are reporting increased latency and intermittent errors. Upon investigation, you notice that some services are not emitting logs consistently, and the metrics for critical services are missing. What actions should you take to improve observability in this scenario?
- A
Ensure that all services use a consistent logging library and properly configured log sinks.
- B
Enable the Cloud Trace and Cloud Profiler APIs to gain deeper insights into application performance.
- C
Scale up the GKE cluster nodes to handle the increased traffic more effectively.
- D
Verify that the GKE Workload Identity is correctly configured to allow services to send logs and metrics to Cloud Monitoring.
- E
Enable Kubernetes audit logging to track API-level interactions within the cluster.
Show answer and explanation
Correct answers: A, B, D
Explanation
To address observability issues in a microservices environment, it is necessary to ensure consistent logging, utilize tools like Cloud Trace and Profiler for performance insights, and verify that services have the correct permissions to send logs and metrics to Cloud Monitoring. These actions help in identifying and resolving latency and error issues effectively.
- A. Correct.
Ensuring consistent logging across all services and configuring log sinks allows for centralized and reliable log collection, which is essential for observability.
- B. Correct.
Cloud Trace and Cloud Profiler are valuable tools to analyze performance bottlenecks and understand latency issues across microservices.
- C. Incorrect.
Scaling up the GKE cluster nodes addresses capacity issues but does not directly solve the observability problem of missing logs and metrics.
- D. Correct.
Correctly configuring GKE Workload Identity ensures that services have the necessary permissions to send logs and metrics to Cloud Monitoring, which is crucial for observability.
- E. Incorrect.
While Kubernetes audit logging provides insights into cluster activity, it does not directly address the missing logs and metrics from application services.