Bitzu

Associate Cloud Engineer ยท Compute Engine: choosing, launching and scaling

VM Manager

OS Config agent, patch management, OS inventory, guest policies, enabling VM Manager on a project and its prerequisites.

Key points

  • VM Manager manages OS maintenance across a VM fleet through the OS Config agent.
  • It offers patch management, OS inventory and OS policies.
  • Enable the OS Config API (osconfig.googleapis.com), set enable-osconfig=TRUE in project or instance metadata, run a supported image with the agent, attach a service account (no roles needed), and give VMs without public internet Private Google Access.

Source: https://docs.cloud.google.com/compute/docs/manage-os

Practice questions

Single choice

Which API must be enabled in a project to use VM Manager?

  1. Cloud Build API
  2. OS Config API
  3. Cloud Asset API
  4. Service Networking API
Show answer

Answer: B. OS Config API

VM Manager is served by the OS Config API, osconfig.googleapis.com. The others are unrelated services.

Select all that apply

Which capabilities does VM Manager provide?

  1. Patch management
  2. OS inventory data
  3. OS policies for desired configuration
  4. HTTP load balancing
  5. Autoscaling of instance groups
Show answer

Answer: A. Patch management, B. OS inventory data, C. OS policies for desired configuration

Patch management, OS inventory and OS policies are VM Manager features. Load balancing and autoscaling belong to other services.

True or false

True or false: the service account attached to a VM must hold special IAM roles for the OS Config agent to work.

Show answer

Answer: False

False. A service account must be attached, but it needs no IAM roles for the agent itself.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module