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.)
- Install and configure the Google Cloud Ops Agent on the Compute Engine VM instances.Answer
- Configure the VM instance host maintenance behavior setting to Migrate VM instance.Answer
- CInstall the legacy Stackdriver Monitoring Agent on the Compute Engine VM instances.
- DConfigure the VM instance host maintenance behavior setting to Terminate VM instance.
- EGrant the primitive Owner role (roles/owner) to the default Compute Engine service account attached to the VM instances.
Answer
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.
Step-by-Step Solution
Key Concept
Compute Engine Host Maintenance Policies and Guest-level Telemetry Collection via Ops Agent