Cloud Engineer Interview Question

Walk me through how you would design a VPC for a production workload.

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Pick a CIDR block big enough to grow that does not overlap anything you might peer with later, then split it across at least three availability zones. Use public subnets only for load balancers and NAT, private subnets for compute, and isolated subnets with no outbound route for databases. Control traffic with security groups referencing each other rather than IP ranges, and turn on flow logs from day one.

Why interviewers ask this

Network design is difficult to change once workloads are running, so the interviewer wants to see that you plan for growth and blast radius rather than accepting a default VPC. They listen for CIDR planning against future peering, tiering by trust level, per zone redundancy, and whether you understand security groups as stateful and network ACLs as a coarse second layer.

How to structure your answer

  • Start with CIDR sizing and avoiding future overlap.
  • Describe the subnet tiers and what lives in each.
  • Cover availability zone spread and per zone gateways.
  • Explain your traffic controls and observability.

Example answer

Spoken example, first person

I start with addressing, because that is the decision you cannot undo cheaply. I pick a block with plenty of headroom and I check it against every other network we might one day peer with or connect back to the office, since overlapping ranges are what turn a simple connection into a months long renumbering project. Then three availability zones, and a subnet per tier per zone. Public subnets hold only the load balancer and NAT gateways. Private subnets hold the application, which reaches the internet outbound through NAT. Databases sit in isolated subnets with no route out at all. For control, I lean on security groups referencing other security groups rather than CIDR ranges, so the rule reads as the app tier may reach the database on the database port, and it stays correct when instances change. Network ACLs I keep coarse, mainly as a blunt block. Flow logs go on immediately, because the day you need to prove what talked to what you cannot retroactively enable them. I also add gateway endpoints for object storage, which keeps that traffic off NAT.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • Why put a NAT gateway in every zone rather than sharing one?
  • How would you connect this VPC to twenty others without a full mesh?
  • What is the practical difference between a security group and a network ACL?

Related cloud engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot