GCP Associate Cloud Engineer Practice Question

You need to create an autoscaled managed instance group (MIG) that will run a stateless payment-processing service. Requirements are:

  • Each VM must have 4 vCPUs and 8 GB RAM using an e2 family custom shape.
  • The boot disk must use the latest Debian image.
  • Every VM must carry the labels env=prod and team=payments.
  • A startup script must download the application binary from a Cloud Storage bucket and start the service. Which approach satisfies all requirements while minimizing post-deployment manual steps?
  • Create an instance template that sets machine type e2-custom-4-8192, uses the debian-11 image family, contains the labels env=prod and team=payments, and includes a metadata key startup-script that downloads and launches the binary; then build the MIG from this template.

  • Define an autohealing health check that calls a script which downloads the binary, and attach firewall tags that represent env and team labels instead of setting them in the template.

  • Create an empty instance template and rely on the Instance Group Manager overrides to inject labels and the startup script when the MIG is created.

  • Create the MIG first with the default e2-standard-4 template and Debian image, then run gcloud compute instances update on the group members to add the labels and startup script.

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