
Answer-first summary for fast verification
Answer: Import the Cloud Profiler package, and configure it to relay function timing data to Cloud Operations for further analysis.
The correct answer is **D**. Cloud Profiler is a GCP service designed for collecting detailed metrics such as system resource utilization, both inside and outside of GCP. It's a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. This approach leverages a centralized GCP service, minimizing the setup effort required. - **Option A** suggests using an APM tool, which is effective but not as efficient as using a centralized GCP service like Cloud Profiler. - **Option B** involves instrumenting the code and using a health check endpoint, which is less efficient than using Cloud Profiler. - **Option C** mentions Cloud Debugger, which is not suitable for collecting detailed metrics and is being deprecated as of May 2023.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team is developing a new application for deployment both within and outside Google Cloud Platform (GCP). The goal is to collect detailed metrics like system resource utilization using centralized GCP services with minimal setup effort. What is the best approach?
A
Install an Application Performance Monitoring (APM) tool in both locations, and configure an export to a central data storage location for analysis.
B
Instrument the code using a timing library, and publish the metrics via a health check endpoint that is scraped by Cloud Monitoring.
C
Import the Cloud Debugger package, and configure the application to emit debug messages with timing information.
D
Import the Cloud Profiler package, and configure it to relay function timing data to Cloud Operations for further analysis.
No comments yet.