A single GCE VM must host multiple containerized services, each requiring its own RFC1918 address. What is the recommended Google Cloud configuration?
Choose an answer
Tap an option to check your answer.
Correct answer: Assign alias IP ranges to the VM's NIC using secondary ranges from the subnet..
Why this is the answer
Assigning alias IP ranges to the VM's NIC using secondary ranges from the subnet is the recommended approach. This allows a single VM to host multiple containerized services, each with its own internal RFC1918 IP address, without requiring multiple network interfaces. The alias IPs are drawn from a secondary IP range defined on the subnet, making them routable within the VPC network. Attaching multiple external IP addresses is incorrect because the requirement is for RFC1918 (internal) addresses, not external ones. Creating a separate subnet for each container and adding multiple NICs is overly complex and inefficient for this use case; alias IPs provide a simpler solution. Running one container per VM and scaling horizontally is a valid architectural pattern for some scenarios but doesn't address the specific requirement of hosting multiple containers on a single VM each needing its own RFC1918 address.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed