You want to view the memory usage of your application deployed on Compute Engine.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.C.
https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-instancesTo view the memory usage of an application deployed on Compute Engine, there are multiple options available within the Google Cloud Platform (GCP) ecosystem. The four options listed in the exam question are as follows:
A. Install the Stackdriver Client Library: The Stackdriver Client Library is a client-side library that allows you to programmatically interact with the Stackdriver Monitoring API. It enables you to gather and analyze monitoring data, such as metrics and logs, from your GCP resources. However, installing the Stackdriver Client Library alone will not provide you with a way to view the memory usage of your application on Compute Engine.
B. Install the Stackdriver Monitoring Agent: The Stackdriver Monitoring Agent is an agent that runs on your Compute Engine instances and collects system and application metrics. The agent can be used to collect memory usage data, as well as CPU usage, disk utilization, network traffic, and more. The collected data is sent to Stackdriver Monitoring, where it can be viewed and analyzed using the Stackdriver Metrics Explorer.
C. Use the Stackdriver Metrics Explorer: The Stackdriver Metrics Explorer is a web-based tool that allows you to explore and visualize metrics data collected by Stackdriver Monitoring. You can use it to view the memory usage of your application deployed on Compute Engine, as well as other metrics such as CPU usage, disk utilization, and network traffic. The Metrics Explorer provides a flexible and powerful interface for filtering, grouping, and visualizing your metrics data.
D. Use the Google Cloud Platform Console: The Google Cloud Platform Console is the web-based user interface for managing your GCP resources. You can use it to view the status and configuration of your Compute Engine instances, as well as the metrics data collected by Stackdriver Monitoring. While the Console does not provide the same level of flexibility and customization as the Metrics Explorer, it can be a quick and easy way to view the memory usage of your application without installing any additional tools.
In summary, to view the memory usage of an application deployed on Compute Engine, the recommended options are to either install the Stackdriver Monitoring Agent or use the Stackdriver Metrics Explorer. The choice between these options will depend on your specific use case and requirements.