CV0-004 practice question 28 of 30
A cloud administrator needs to collect process-level, memory-usage tracking for the virtual machines that are part of an autoscaling group. Which of the following is the best way to accomplish the goal by using cloud-native monitoring services?
Full set: 254 questionsCloud-native monitoring services (like AWS CloudWatch, Azure Monitor, or Google Cloud's operations suite) provide high-level metrics from the hypervisor by default, such as overall CPU utilization for a VM. However, to collect detailed in-guest operating system data, such as process-level memory usage, it is necessary to install a dedicated monitoring agent. This agent software runs inside the VM, collects the specified metrics directly from the OS, and sends them to the cloud monitoring service. For an autoscaling group, the agent is installed on the base machine image, ensuring all new instances automatically report these detailed metrics, making it the most effective and scalable solution.
A. Configuring page file/swap metrics: This only tracks the usage of virtual memory on disk, which is an indicator of memory pressure, not a direct measurement of memory usage by individual processes.
C. Scheduling a script to collect the data: This is a custom, non-native solution. While possible, it requires manual development and maintenance and is less integrated and reliable than using the purpose-built agent provided by the cloud platform.
D. Enabling memory monitoring in the VM configuration: This option typically enables hypervisor-level memory metrics, which report the total memory consumed by the VM as a whole, but lack the visibility to report on individual processes running inside the guest OS.
1. Amazon Web Services (AWS) Documentation. The CloudWatch agent is required to collect guest OS-level metrics. "By default
EC2 instances send hypervisor-visible metrics to CloudWatch... To collect metrics from the operating system or from applications
you must install the CloudWatch agent."
Source: AWS Documentation
"The metrics that the CloudWatch agent collects
" Section: "Predefined metric sets for the CloudWatch agent."
2. Microsoft Azure Documentation. The Azure Monitor agent is used to collect in-depth data from the guest operating system of virtual machines. "Use the Azure Monitor agent to collect guest operating system data from Azure... virtual machines... It collects data from the guest operating system and delivers it to Azure Monitor."
Source: Microsoft Learn
"Azure Monitor agent overview
" Introduction section.
3. Google Cloud Documentation. The Ops Agent is Google's solution for collecting detailed telemetry from within Compute Engine instances. "The Ops Agent is the primary agent for collecting telemetry from your Compute Engine instances. It collects both logs and metrics." The agent can be configured to collect process metrics.
Source: Google Cloud Documentation
"Ops Agent overview
" What the Ops Agent collects section.
4. Armbrust
M.
et al. (2010). A View of Cloud Computing. This foundational academic paper from UC Berkeley discusses the challenges of cloud monitoring
implying the need for mechanisms beyond the hypervisor to understand application-level performance. The distinction between what the infrastructure provider can see (hypervisor-level) and what the user needs to see (in-guest) necessitates agent-based approaches for detailed monitoring.
Source: Communications of the ACM
53(4)
50-58. Section 5.3
"Monitoring and Auditing." DOI: https://doi.org/10.1145/1721654.1721672
Keep practicing
Take the free CV0-004 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CV0-004 practice questions
- Question 1Which of the following technologies should be used by a person who is visually impaired t…
- Question 2Which of the following migration types is best to use when migrating a highly available a…
- Question 3Which of the following describes the main difference between public and private container…
- Question 4A cloud engineer needs to migrate an application from on premises to a public cloud. Due …
- Question 5A company wants to create a few additional VDIs so support vendors and contractors have a…
- Question 6Which of the following cloud-native architecture designs is the most easily maintained, d…
