Your team must create an instance template for an autoscaled managed instance group. Requirements: use an E2 machine with 4 vCPUs and 16 GB RAM, boot from the latest Container-Optimized OS image without hard-coding a version, attach the label env=prod, and execute a startup script stored at gs://corp-scripts/init.sh. Which gcloud command meets all of these requirements?
The command that satisfies every requirement specifies the e2-standard-4 machine type (4 vCPUs, 16 GB RAM), uses --image-family=cos-stable with --image-project=cos-cloud to always pull the latest stable Container-Optimized OS image, sets the metadata key startup-script-url to reference the script in Cloud Storage, and applies the env=prod label via --labels. Each alternative command fails at least one requirement by either hard-coding an image version, using the wrong metadata key or flag, supplying an incorrect label key, or selecting an unsuitable machine type.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a managed instance group in Google Cloud Platform?
Open an interactive chat with Bash
What is the role of an instance template in GCP?
Open an interactive chat with Bash
What is the Container-Optimized OS image in GCP?
Open an interactive chat with Bash
What is the purpose of the --image-family and --image-project flags in gcloud commands?
Open an interactive chat with Bash
How does the startup-script-url metadata function for instance templates?
Open an interactive chat with Bash
What is the benefit of using labels in an instance template, and how are they applied?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .