Google Professional Cloud DevOps Engineer

Google Professional Cloud DevOps Engineer

Get started today

Ultimate access to all questions.


When deploying a JVM application on Compute Engine, you need to monitor the peak number of live threads in the instance. Which two actions should you take to achieve this?





Explanation:

Options B and D are incorrect because they pertain to enabling monitoring on GKE, not Compute Engine. Option E is incorrect as it is used for installing the logging agent, not for capturing JVM metrics. The correct actions are installing the necessary JVM configuration files (Option A) and the Cloud Monitoring Agent (Option C) on the Compute Engine instance to capture application-level metrics. Reference: https://cloud.google.com/monitoring/agent/plugins/jvm