nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #10

Your team is designing a new application for deployment both inside and outside Google Cloud Platform (GCP). You need to collect detailed metrics such as system resource utilization. You want to use…

The correct answer is A. Import the Stackdriver Profiler package, and configure it to relay function timing data to. Stackdriver Profiler (now Cloud Profiler) can be enabled by simply importing its package into the application and initializing it with minimal configuration, making it the lowest-effort option. It continuously collects CPU and memory usage data from the running application and…

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

Question

Your team is designing a new application for deployment both inside and outside Google Cloud Platform (GCP). You need to collect detailed metrics such as system resource utilization. You want to use centralized GCP services while minimizing the amount of work required to set up this collection system. What should you do?

Options

  • AImport the Stackdriver Profiler package, and configure it to relay function timing data to
  • BImport the Stackdriver Debugger package, and configure the application to emit debug messages
  • CInstrument the code using a timing library, and publish the metrics via a health check endpoint
  • DInstall an Application Performance Monitoring (APM) tool in both locations, and configure an

How the community answered

(24 responses)
  • A
    83% (20)
  • B
    8% (2)
  • C
    4% (1)
  • D
    4% (1)

Explanation

Stackdriver Profiler (now Cloud Profiler) can be enabled by simply importing its package into the application and initializing it with minimal configuration, making it the lowest-effort option. It continuously collects CPU and memory usage data from the running application and streams it to Stackdriver regardless of whether the app is running inside or outside GCP. Option B (Stackdriver Debugger) is for capturing application state at specific code locations, not resource metrics. Option C requires custom instrumentation and hosting a health endpoint, adding development work. Option D (installing an APM tool in both locations) requires significantly more setup and management overhead.

Topics

#Cloud Profiler#Application Performance Monitoring#Resource Utilization#Observability

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice