Google Cloud Professional Cloud DevOps Engineer — Question 47
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?
Answer options
- A. Import the Stackdriver Profiler package, and configure it to relay function timing data to Stackdriver for further analysis.
- B. Import the Stackdriver Debugger package, and configure the application to emit debug messages with timing information.
- C. Instrument the code using a timing library, and publish the metrics via a health check endpoint that is scraped by Stackdriver.
- D. Install an Application Performance Monitoring (APM) tool in both locations, and configure an export to a central data storage location for analysis.
Correct answer: A
Explanation
The correct answer is A because using the Stackdriver Profiler allows for efficient collection of detailed function timing data, which is ideal for analyzing performance metrics with minimal setup. Options B and C focus on debugging and custom instrumentation, which require more manual effort and may not provide the same level of centralized monitoring. Option D involves installing an APM tool, which adds unnecessary complexity compared to utilizing existing GCP services.