Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your company is configuring a custom mode VPC network named custom-vpc to host localized application workloads. The network already has an active subnet in the us-central1 region with a primary IP range of 10.0.1.0/24.
You need to add a new subnet for resources that will be deployed in the europe-west1 region while ensuring network isolation and preventing IP address conflicts.
Which gcloud command should you run to create the new subnet?
gcloud compute networks subnets create subnet-eu --network=custom-vpc --region=europe-west1 --range=10.0.1.0/24This command attempts to create a new subnet named subnet-eu in the europe-west1 region using the primary IP range 10.0.1.0/24.
us-central1 is already allocated the CIDR block 10.0.1.0/24. All primary and secondary CIDR ranges within a single VPC network must be completely unique and non-overlapping.The existing subnet in us-central1 used a different IP range (such as 10.0.0.0/24 or 172.16.0.0/24), leaving 10.0.1.0/24 entirely unallocated within the VPC network.
gcloud compute networks subnets update custom-vpc --region=europe-west1 --add-subnets=10.0.2.0/24This option attempts to modify the VPC network by invoking gcloud compute networks subnets update against the network name custom-vpc with an invalid --add-subnets flag.
gcloud compute networks subnets create command.subnets update command is used to alter properties of an existing subnet (such as adding secondary CIDR ranges or enabling Private Google Access), and it does not recognize an --add-subnets flag.custom-vpc is the name of the VPC network, not the name of an existing subnet to be updated.subnets create, deleted via subnets delete, or updated via subnets update.gcloud compute networks, while subnetwork-level commands reside under gcloud compute networks subnets.You were modifying an existing subnet to add a secondary IP range using the valid --add-secondary-ranges flag on a pre-existing subnet resource.
gcloud compute networks subnets create subnet-eu --network=custom-vpc --global --range=10.0.2.0/24This option attempts to provision a subnet with a --global flag rather than specifying a target Google Cloud geographic region.
--region parameter to determine the physical data center location where the subnet's IP addresses and associated VM interfaces will reside.--global flag with gcloud compute networks subnets create generates a command-line syntax error.You were configuring a truly global networking resource, such as a global firewall rule, Cloud Armor security policy, or global external HTTP(S) load balancer frontend.
gcloud compute networks subnets create subnet-eu --network=custom-vpc --region=europe-west1 --range=10.0.2.0/24gcloud compute networks subnets create command isThe gcloud compute networks subnets create command is the standard Google Cloud CLI method used to create a new regional subnetwork within a custom mode Virtual Private Cloud (VPC) network.
--network=custom-vpc and --region=europe-west1 assigns the subnetwork to the correct VPC and places it in the required European geographic region to support localized resource deployment.10.0.2.0/24 is completely unique and does not overlap with the existing 10.0.1.0/24 range in us-central1, satisfying VPC routing requirements.europe-west1 receive internal IP addresses from this designated CIDR block, facilitating granular firewall rule definitions and routing policies.
This command uses valid gcloud syntax, targets the designated region (europe-west1), and assigns a non-overlapping CIDR block (10.0.2.0/24), making it the correct and optimal solution for expanding the custom VPC topology.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated