Practice free →
HomeGCP Associate Cloud Engineercloudcomputinggcpoperations › A subnet was created with /24 (256 addresses) an…

A subnet was created with /24 (256 addresses) and is running out. Which Google Cloud operation lets you keep the subnet (and its IP space already in use) but ADD capacity?

AMigrate every VM in the subnet to BigQuery
BExpand the subnet's primary IP range to a larger CIDR (e.g. /23 or /22)
CConvert the subnet into a Cloud SQL database
DDelete the subnet and recreate it with a new name in a different region
Answer & Solution
Correct answer: B. Expand the subnet's primary IP range to a larger CIDR (e.g. /23 or /22)
Subnets on GCP can be expanded to a larger CIDR in-place (the new range must be a superset and not overlap). The other options describe destructive or nonsensical operations.
Solve this in the app — GCP Associate Cloud Engineer practice & 24k+ MCQs →
Related questions