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…
Question
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)- A83% (20)
- B8% (2)
- C4% (1)
- D4% (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
Community Discussion
No community discussion yet for this question.