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?
- Install the Google Cloud Ops Agent on the virtual machine instances.Answer
- Enable serial console output logging in the instance metadata to stream boot messages to Cloud Logging.Answer
- CInstall the legacy Stackdriver Monitoring and Logging agents on the virtual machine instances.
- DAssign the primitive Owner role to administrators to bypass metadata restrictions when accessing log streams.
- EConfigure Managed Instance Group autoscaling directly against hypervisor memory metrics without an in-guest agent.
Answer
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.
Step-by-Step Solution
Key Concept
Compute Engine Operational Monitoring and Troubleshooting
Estimated Time:1m 30s