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 1Question 39
    Medium1 markMultiple Choice
    Domain 4.5: Managing networking resourcesVPCgcloudDomain 4.5

    GCP ACE · Question 39 · Domain 4.5: Managing networking resources

    You have a custom VPC with a subnet 10.0.0.0/24. You are running out of IP addresses in this subnet and need to expand it to 10.0.0.0/20. There are running VMs in the subnet. Which command should you use?

    Answer options:

    A.

    gcloud compute networks subnets update ... --range=10.0.0.0/20

    B.

    gcloud compute networks subnets expand-ip-range ... --prefix-length=20

    C.

    You must delete the subnet and recreate it with the new range.

    D.

    You must stop all VMs before expanding the subnet.

    How to approach this question

    Remember the specific gcloud command for expanding subnets and that it can be done dynamically.

    Full Answer

    B.gcloud compute networks subnets expand-ip-range ... --prefix-length=20✓ Correct
    gcloud compute networks subnets expand-ip-range
    In Google Cloud, you can expand the IP range of an existing subnet without any downtime or impact to running VMs. The command is `gcloud compute networks subnets expand-ip-range [SUBNET_NAME] --prefix-length=20`. You cannot shrink a subnet, only expand it.

    Common mistakes

    Believing that network changes require VM downtime or subnet recreation.
    Question 38All questionsQuestion 40

    Practice the full GCP Associate Cloud Engineer Practice Exam 1

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
    View all 50 questions →