Soru

Zorluk: OrtaManaging Compute Engine Resources

An infrastructure administrator needs to collect detailed system memory metrics from running Compute Engine virtual machines and inspect early stage kernel boot messages for instances that fail to start. Which TWO configuration actions should the administrator take to accomplish these operational tasks?

  1. Install the Google Cloud Ops Agent on the virtual machine instances.Cevap
  2. Enable serial console output logging in the instance metadata to stream boot messages to Cloud Logging.Cevap
  3. C
    Install the legacy Stackdriver Monitoring and Logging agents on the virtual machine instances.
  4. D
    Assign the primitive Owner role to administrators to bypass metadata restrictions when accessing log streams.
  5. E
    Configure Managed Instance Group autoscaling directly against hypervisor memory metrics without an in-guest agent.

Cevap

The correct actions are installing the Google Cloud Ops Agent on the virtual machines and enabling serial console output logging in instance metadata.
Installing the Google Cloud Ops Agent allows collection of system-level metrics such as memory and disk utilization from within the guest OS. Enabling serial port console output logging in instance metadata captures early kernel and boot log streams and sends them to Cloud Logging, enabling remote troubleshooting for unbootable virtual machines.

Adım Adım Çözüm

1
Deploy the telemetry collection agent inside the OS
In-guest memory metrics are captured and sent to Cloud Monitoring
Hypervisors only view allocated RAM bounds; an in-guest agent like the Google Cloud Ops Agent is required to read detailed internal memory utilization.
2
Enable serial port logging in metadata
Kernel startup output is captured and visible in Cloud Logging
Setting the metadata key serial-port-logging-enable=true enables Google Cloud to stream console output to Cloud Logging, allowing troubleshooting of instances that fail before establishing network connectivity.

Anahtar Kavram

Compute Engine Operational Monitoring and Troubleshooting
Tahmini Süre:1m 30s
Bu soruyu puanla