Skip to main content

Associate Cloud Engineer practice question · Planning and implementing a cloud solution

A team is planning a Compute Engine VM with a non-boot Persistent Disk for application data.

A team is planning a Compute Engine VM with a non-boot Persistent Disk for application data. Current data is about 200 GB, and growth over the next year is uncertain but could be large. They want to keep storage costs low without risking an outage later. Which sizing approach best matches how Persistent Disk works?

  • ASize the disk for current and near-term needs, then increase its size while the VM keeps running as data grows, and resize the file system afterward
  • BSize the disk for the largest growth you might ever need, then reduce its size later if that growth does not happen
  • CSize the disk for current needs, then stop the VM, take a snapshot, and restore it to a larger disk once it fills
  • DSize the disk for current needs, then increase it later and rely on Compute Engine to expand the data disk's file system automatically
Show the answer and explanation

Correct answer: A) Size the disk for current and near-term needs, then increase its size while the VM keeps running as data grows, and resize the file system afterward

Persistent Disks can be grown online but never shrunk, so size them for realistic near-term needs and grow them later. For non-boot data disks, resize the file system manually after each increase.

Why each option is right or wrong

  • A) Correct. You can increase a Persistent Disk's size at any time, even while it is attached to a running VM, so starting at a realistic size avoids paying for unused capacity. For a non-boot data disk, you must then resize the partition and file system manually (for example, with resize2fs on Linux).
  • B) Incorrect. A Persistent Disk can only be increased, not decreased. To get a smaller disk you must create a new one and copy the data, and you pay for both disks until you delete the original. Oversizing up front therefore locks in the cost.
  • C) Incorrect. Online resizing works on disks attached to running VMs, so you don't need to stop the VM or restore from a snapshot to add capacity. That workflow causes avoidable downtime.
  • D) Incorrect. Compute Engine can automatically resize the root partition and file system only for boot disks created from supported public images. For a non-boot data disk, you must resize the partition and file system manually after increasing the disk size.
Exam domain
Planning and implementing a cloud solution · ~30% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.