GCP Associate Cloud Engineer Practice Question

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?

  • gcloud compute instance-templates create web-prod-tpl --machine-type=e2-standard-4 --image=cos-97-1690199160 --image-project=cos-cloud --metadata-from-file=startup-script=gs://corp-scripts/init.sh --labels=env=prod

  • gcloud compute instance-templates create web-prod-tpl --machine-type=e2-standard-4 --image-family=cos-stable --image-project=cos-cloud --metadata=startup-script=gs://corp-scripts/init.sh --labels=environment=prod

  • gcloud compute instance-templates create web-prod-tpl --machine-type=e2-standard-4 --image-family=cos-stable --image-project=cos-cloud --metadata=startup-script-url=gs://corp-scripts/init.sh --labels=env=prod

  • gcloud compute instance-templates create web-prod-tpl --machine-type=e2-standard-2 --image-family=cos-stable --image-project=cos-cloud --metadata=startup-script-url=gs://corp-scripts/init.sh --labels=env=prod

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