Professional Cloud Developer Exam QuestionsBrowse all questions from this exam

Professional Cloud Developer Exam - Question 54


You want to view the memory usage of your application deployed on Compute Engine.

What should you do?

Show Answer
Correct Answer: BC

To view detailed memory usage of an application deployed on Compute Engine, you need to install the Stackdriver Monitoring Agent. The agent collects system-level and third-party application metrics, which include memory usage. Once installed, these metrics can be accessed through the Google Cloud Console or the Stackdriver Metrics Explorer.

Discussion

11 comments
Sign in to comment
StelSenOption: B
Feb 19, 2021

Option-B is correct. https://cloud.google.com/monitoring/api/metrics_agent#agent-memory (By default Memory metrics is not collected). To double confirm. Just goto Console->Operations->Monitoring->Dashboards->VM Instances->Memory Tab (Assume you have VM running already). You will see a info message saying that No agents detected. Monitoring agents collect memory metrics, disk metrics, and more. Learn more about agents and how to manage them across multiple VMs.

Ram02
Sep 9, 2021

Correct, see following link for more detail https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-instances

dxxdd7Option: B
Jan 25, 2021

For me B si the correct answer as you can not read memory usage directly from stackdriver without the monitoring agent

saurabh1805Option: C
Nov 9, 2020

C is correct answer.

elan1302
Feb 19, 2021

I think option B and C are correct answer - you need to install stack driver manager on VM to push logs into stack driver and then you can use stack driver metrics to view the metrics.

syu31svcOption: B
Jul 4, 2021

https://cloud.google.com/monitoring/agent B is correct

tomato123Option: B
Aug 20, 2022

B is correct

dwbi_shrikantOption: D
Mar 4, 2021

Option: D

nqthien041292Option: B
Apr 27, 2022

Vote B

RajanOption: B
Sep 20, 2023

I would go with B.

santoshchauhanOption: B
Mar 8, 2024

B. Install the Stackdriver Monitoring Agent. The Stackdriver Monitoring Agent allows you to collect more system-level and third-party application metrics than what is provided by default with Google Cloud's operations suite. By installing the agent on your Compute Engine instances, you can collect detailed memory usage metrics, which can then be viewed in the Google Cloud Console or through the Metrics Explorer in Google Cloud's operations suite (formerly Stackdriver).

thewalkerOption: C
Jul 17, 2024

The best answer here is C. Use the Stackdriver Metrics Explorer. Here's why: Stackdriver Metrics Explorer: The Stackdriver Metrics Explorer is a powerful tool for visualizing and analyzing metrics collected from your Google Cloud resources. It allows you to view various metrics, including memory usage, over time. You can filter and group metrics based on different criteria, making it easy to identify trends and potential issues.

thewalker
Jul 17, 2024

Let's look at why the other options are less suitable: A. Install the Stackdriver Client Library: The Stackdriver Client Library is used for programmatically interacting with Stackdriver from your application code. While it can be used to collect and send metrics, it's not the primary tool for viewing memory usage. B. Install the Stackdriver Monitoring Agent: The Stackdriver Monitoring Agent is responsible for collecting metrics from your Compute Engine instances. It's a necessary component for monitoring, but it doesn't provide a user interface for viewing metrics. D. Use the Google Cloud Platform Console: The Google Cloud Platform Console provides a general overview of your resources, but it doesn't offer the same level of detail and flexibility as the Stackdriver Metrics Explorer for viewing memory usage.