Professional Cloud ArchitectAnalyze and optimize technical and business processesMedium

A software-as-a-service (SaaS) company is migrating its multi-tenant application to Google Cloud. The application's backend consists of microservices deployed on GKE, and it uses Cloud Memorystore for Redis as a caching layer. The company needs to implement a robust monitoring and alerting strategy to proactively detect performance bottlenecks, resource saturation, and application errors across its microservices and caching layer. Which Google Cloud service provides a comprehensive solution for this requirement?

  1. ACloud Logging.
  2. BCloud Monitoring.
  3. CCloud Trace.
  4. DCloud Audit Logs.
Show answer & explanation

Correct answer: B. Cloud Monitoring.

Cloud Monitoring provides comprehensive monitoring capabilities for Google Cloud services (like GKE and Memorystore) and custom application metrics. It allows you to collect metrics, create dashboards, set up alerts for performance bottlenecks and resource saturation, and proactively detect issues across the entire application stack.

Why the other options are wrong

  • A. Cloud Logging is primarily for collecting and storing logs from applications and infrastructure, not for collecting metrics, creating dashboards, or setting up alerts based on numeric thresholds.
  • C. Cloud Trace is specifically designed for distributed tracing, helping to identify latency issues within microservices by visualizing request flows, but it's not a comprehensive monitoring and alerting platform for metrics and resource utilization.
  • D. Cloud Audit Logs record administrative activities and data access events for auditing purposes, not for application performance monitoring or resource utilization alerts.

Google Cloud Operations Suite

A suite of services (formerly Stackdriver) for monitoring, logging, tracing, and debugging applications on Google Cloud.

  • Cloud Monitoring: Collects metrics, creates dashboards, sets alerts.
  • Cloud Logging: Collects and stores logs.
  • Cloud Trace: Provides distributed tracing for latency analysis.
  • Cloud Profiler: Identifies CPU/memory bottlenecks in code.

Memory trick: Monitor, Log, Trace, your app's health to embrace!

More Analyze and optimize technical and business processes questions