nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #157

Your team is designing a new application for deployment into Google Kubernetes Engine (GKE). You need to set up monitoring to collect and aggregate various application-level metrics in a centralized l

The correct answer is C. Install the OpenTelemetry client libraries in the application, configure Stackdriver as the export. To collect and aggregate application-level metrics in GKE with minimal effort using GCP services, leverage OpenTelemetry client libraries configured to export to Cloud Monitoring (formerly Stackdriver).

Submitted by joshua94· Apr 18, 2026Implementing service monitoring strategies

Question

Your team is designing a new application for deployment into Google Kubernetes Engine (GKE). You need to set up monitoring to collect and aggregate various application-level metrics in a centralized location. You want to use Google Cloud Platform services while minimizing the amount of work required to set up monitoring. What should you do?

Options

  • APublish various metrics from the application directly to the Stackdriver Monitoring API, and then
  • BInstall the Cloud Pub/Sub client libraries, push various metrics from the application to various
  • CInstall the OpenTelemetry client libraries in the application, configure Stackdriver as the export
  • DEmit all metrics in the form of application-specific log messages, pass these messages from the

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    81% (21)
  • D
    4% (1)

Why each option

To collect and aggregate application-level metrics in GKE with minimal effort using GCP services, leverage OpenTelemetry client libraries configured to export to Cloud Monitoring (formerly Stackdriver).

APublish various metrics from the application directly to the Stackdriver Monitoring API, and then

While publishing directly to the Cloud Monitoring API is possible, it requires more custom code and manual effort to format and send metrics compared to using standardized libraries like OpenTelemetry.

BInstall the Cloud Pub/Sub client libraries, push various metrics from the application to various

Cloud Pub/Sub is a messaging service, not primarily designed for direct metrics collection and aggregation; pushing metrics there would require additional processing and integration with another service to store and visualize them.

CInstall the OpenTelemetry client libraries in the application, configure Stackdriver as the exportCorrect

OpenTelemetry provides a vendor-neutral standard for instrumenting applications to generate telemetry data (metrics, traces, logs). By installing OpenTelemetry client libraries in the application and configuring Cloud Monitoring (Stackdriver) as the exporter, metrics are automatically collected and sent to a centralized GCP service with minimal custom integration code, fulfilling the requirement for centralized aggregation and ease of setup.

DEmit all metrics in the form of application-specific log messages, pass these messages from the

Emitting metrics as log messages is inefficient and less structured than dedicated metrics collection, requiring complex log parsing and potentially higher costs and latency for aggregation and visualization compared to native metrics services.

Concept tested: Application monitoring in GKE with OpenTelemetry

Source: https://cloud.google.com/stackdriver/docs/solutions/opentelemetry/

Topics

#Application Monitoring#OpenTelemetry#Google Cloud Monitoring#GKE

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice