Soru

Zorluk: ZorManaging Compute Engine Resources

A cloud operations team manages standalone Compute Engine VM instances hosting an enterprise web application. You need to configure the instances to send guest OS memory utilization metrics to Cloud Monitoring and ensure that the instances remain running without application downtime during scheduled infrastructure maintenance events. Which TWO actions should you perform? (Select 2 answers.)

  1. Install and configure the Google Cloud Ops Agent on the Compute Engine VM instances.Cevap
  2. Configure the VM instance host maintenance behavior setting to Migrate VM instance.Cevap
  3. C
    Install the legacy Stackdriver Monitoring Agent on the Compute Engine VM instances.
  4. D
    Configure the VM instance host maintenance behavior setting to Terminate VM instance.
  5. E
    Grant the primitive Owner role (roles/owner) to the default Compute Engine service account attached to the VM instances.

Cevap

To collect guest-level memory metrics and maintain continuous uptime during host maintenance, you must install the Google Cloud Ops Agent and set the host maintenance policy to 'Migrate VM instance'.
Collecting guest OS memory metrics in Compute Engine requires installing the unified Google Cloud Ops Agent, which reports RAM and disk performance metrics directly to Cloud Monitoring. To protect the application from downtime during Google Cloud host maintenance, configuring the 'On host maintenance' option to 'Migrate VM instance' leverages Google Cloud's Live Migration capability to keep the VM running uninterrupted on another physical host.

Adım Adım Çözüm

1
Determine the correct agent for guest-level metric collection on Compute Engine.
Identify that the Google Cloud Ops Agent combines logging and metrics collection into a unified, supported agent capable of capturing guest memory utilization.
Cloud Monitoring cannot capture OS-level memory metrics without an agent installed inside the guest OS.
2
Determine the correct maintenance policy setting to prevent downtime during hardware or host maintenance.
Set the 'On host maintenance' property to 'Migrate VM instance'.
Live Migration seamlessly transitions running VM instances to a new host during maintenance without resetting or stopping the instance.
3
Validate security and role requirements for metric export.
Avoid primitive roles like Owner, using standard predefined roles (such as Monitoring Metric Writer) attached to the service account.
Applying primitive roles grants excessive permissions across GCP resources.

Anahtar Kavram

Compute Engine Host Maintenance Policies and Guest-level Telemetry Collection via Ops Agent
Bu soruyu puanla