For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeGCP Associate Cloud Engineer (ACE)GCP Associate Cloud Engineer Practice Exam 2Question 19
    Medium1 markMultiple Choice
    Domain 3.1: Deploying and implementing Compute Engine resourcesgcloudCompute EngineInstance Creation

    GCP ACE · Question 19 · Domain 3.1: Deploying and implementing Compute Engine resources

    You need to create a new Compute Engine instance named 'web-server-01' in the 'us-central1-a' zone using the e2-medium machine type. The instance should use a specific custom service account: 'web-sa@my-project.iam.gserviceaccount.com'.

    Which gcloud command should you use?

    Answer options:

    A.

    gcloud compute instances create web-server-01 --zone=us-central1-a --machine-type=e2-medium --service-account=web-sa@my-project.iam.gserviceaccount.com

    B.

    gcloud compute instances start web-server-01 --zone=us-central1-a --type=e2-medium --sa=web-sa@my-project.iam.gserviceaccount.com

    C.

    gcloud compute create instance web-server-01 --zone=us-central1-a --machine-type=e2-medium --service-account=web-sa@my-project.iam.gserviceaccount.com

    D.

    gcloud compute instances create web-server-01 --zone=us-central1-a --machine-type=e2-medium --scopes=web-sa@my-project.iam.gserviceaccount.com

    How to approach this question

    Recall the standard structure of gcloud compute commands: gcloud compute [RESOURCE] [ACTION] [NAME] [FLAGS].

    Full Answer

    A.gcloud compute instances create web-server-01 --zone=us-central1-a --machine-type=e2-medium --service-account=web-sa@my-project.iam.gserviceaccount.com✓ Correct
    The correct command structure is `gcloud compute instances create [INSTANCE_NAME]`. The flags required to meet the scenario are `--zone`, `--machine-type`, and `--service-account`.

    Common mistakes

    Confusing the `--service-account` flag with the `--scopes` flag.
    Question 18All questionsQuestion 20

    Practice the full GCP Associate Cloud Engineer Practice Exam 2

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01Your company is migrating to Google Cloud and needs to establish a resource hierarchy. You have t...EasyQ02You are managing access to a GCP project. You need to grant 15 developers the ability to view Com...MediumQ03You have created a new GCP project using the Cloud Console. You want to deploy a Cloud Function u...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...EasyQ05Your finance team wants to perform complex SQL analysis on your GCP billing data to understand co...Medium
    View all 50 questions →