Home › GCP Associate Cloud Engineer › cloudcomputing › gcpoperations › 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.
Related questions
A team needs to deploy infrastructure-as-code on Google Cloud. Which combination of tools An auditor needs an immutable record of who took what action against Google Cloud APIs in Which Kubernetes-native autoscaler on GKE adjusts the NUMBER of replicas of a Deployment bAn organisation wants to centralise audit logs from multiple Google Cloud projects into onWhen viewing logs in Cloud Logging, what is the purpose of a 'log sink' configured to routWhich networking feature would you use to give a private (no external IP) VM outbound inteWhich Google Cloud agent (installable on Compute Engine VMs and on-prem servers) collects Where in Google Cloud do you create alerting policies based on metrics like CPU > 80% for