🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 52 minutes remaining!

GCP Associate Cloud Engineer Practice Question

Your company has about 500 Compute Engine VMs running Debian and CentOS across several projects. A critical CVE must be fixed on every VM within two days. Security says patches must run in a single 4-hour maintenance window, you must avoid logging in to instances, and you must produce a success/failure report afterward. With the least operational effort, what should you do?

  • Create new instance templates using the latest OS images, migrate all workloads into new managed instance groups during the window, and delete the original VMs afterward.

  • Write a Cloud Function that uses OS Login over SSH to connect to every VM during the window, run the appropriate yum or apt commands, and export the output to Cloud Logging for later analysis.

  • Enable VM Manager by turning on the OS Config API in each project, verify the OS Config agent is installed on every VM, and schedule a patch deployment that targets the Debian and CentOS instances during the maintenance window.

  • Build custom patched images for Debian and CentOS, store them in Artifact Registry, and use Terraform to destroy and recreate each VM from the new images during the maintenance window.

GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot