Volume 13 · Chapter 2 — Mock Interviews and Rapid-Fire Revision

Mock Interview: Foundations and Networking

Goutham Mayaluri 7 min read AWSCloudNetworking

2.1 Introduction

This chapter is a mock interview covering AWS foundations and networking, with representative questions and strong, structured model answers. Read each question, form your own answer aloud, then compare - noting how each model answer leads with the direct point, reasons through the why, and names trade-offs. These are the areas an interview typically opens with, so fluency here sets the tone.

Mock Interview

Why do banks use AWS, and how do they keep sensitive workloads secure on it?

Banks adopt AWS because it delivers elasticity, high availability, better disaster recovery, and faster delivery while still allowing strict, auditable controls. Elasticity absorbs transaction spikes like payday without paying for peak capacity year-round; multiple Availability Zones and Regions give far better availability and DR than a single data centre; and new products ship faster. They keep sensitive workloads secure through the shared responsibility model: AWS secures the infrastructure, and the bank secures what it puts on top - private networking so core systems have no public exposure, IAM with least privilege and no stored credentials, encryption in transit and at rest with managed keys, and full audit logging. So it’s not adoption despite sensitivity but because the cloud provides elasticity and resilience while supporting the exact controls regulated finance requires - a well-architected environment is often more controlled and auditable than a legacy data centre.

Mock Interview

Explain Regions, Availability Zones, and why multi-AZ matters.

A Region is an isolated geographic area of data centres, chosen for data residency and compliance, latency, service availability, and cost - for a bank, residency law often decides it. An Availability Zone is one of several physically separate data centres within a Region, with independent power, cooling, and networking, linked by low-latency private connections. Multi-AZ matters because it’s the primary way to achieve high availability within a Region: data centres do fail, so if your application and database all live in one AZ, that failure is an outage, whereas spreading across two or three AZs behind a load balancer, with the database running a standby in another AZ and automatic failover, means losing a whole AZ removes only part of your capacity and the system keeps serving. It’s the expected production default, and none of it is automatic - you must design subnets, load balancers, and databases to span AZs deliberately.

Mock Interview

What makes a subnet public or private, and how do the internet and NAT gateways fit?

A subnet is public or private based purely on its route table, not a checkbox. A public subnet’s default route 0.0.0.0/0 points to an internet gateway, giving two-way internet access to resources with a public IP; a private subnet has no route to the internet gateway. An internet gateway connects the VPC to the internet, and for something to be reachable from it, three things must hold: the subnet is routed to the IGW, the resource has a public IP, and security rules allow the traffic. A NAT gateway, placed in a public subnet, lets private-subnet resources make outbound connections - for patches or external APIs - while blocking all inbound, so the private tier gets outbound access without being reachable. So load balancers go in public subnets, sensitive app and database tiers in private subnets, and the whole distinction comes down to routing - which is why diagnosing connectivity always starts with the route table. For resilience, deploy a NAT gateway per AZ.

Mock Interview

Security group versus network ACL - when does the difference matter?

A security group is a resource-level firewall that’s stateful and allow-only, and it can reference other security groups; a network ACL is a subnet-level firewall that’s stateless and supports allow and deny rules. The difference matters most in two situations. First, troubleshooting a half-working connection: because NACLs are stateless, allowing traffic one direction doesn’t allow the return, so a connection that times out mid-way often means a NACL needs an explicit return-traffic rule - whereas a security group, being stateful, automatically allows the response. Second, designing least-privilege access: because security groups can reference other groups, I build a tier chain - the database group allows only the app group on the database port - which stays correct as Auto Scaling changes instances, unlike IP-based rules. So I use security groups for primary fine-grained stateful control and NACLs as a coarse subnet guardrail that can also explicitly deny bad IP ranges, and the stateful-versus-stateless distinction is the key practical thing to remember.

Mock Interview

How would you connect a bank's data centre to AWS and tie together many VPCs?

For the on-premises link I’d use Direct Connect as the primary connection, because it’s a dedicated private link giving consistent low latency, higher bandwidth, and traffic that never touches the public internet - what a bank needs for its core systems and branches - with a Site-to-Site VPN as encrypted failover, since a single link is a single point of failure. For tying together many VPCs, I’d use a Transit Gateway as a central hub that every VPC and the on-premises connection attaches to, rather than VPC peering, because peering is non-transitive and needs a full mesh that grows with the square of the VPC count and becomes unmanageable - Transit Gateway gives centralized, segmentable routing so, say, non-production can’t reach production. Where I only need to share a single service, including with a partner, I’d use PrivateLink so the service appears as a private IP with no internet exposure and no IP-range-overlap concern. So: Direct Connect (VPN backup) for on-prem, Transit Gateway as the hub, PrivateLink for single-service sharing - each chosen for the bank’s priorities of privacy, reliability, and manageable scale.

Mock Interview

What do Route 53 and CloudFront contribute to a global banking application?

Route 53 is managed DNS whose routing policies and health checks turn DNS into a traffic-management and resilience tool: latency-based routing serves users from the nearest Region, and failover routing with health checks automatically directs traffic to a standby Region if the primary becomes unhealthy - the mechanism that shifts users during a regional event, though DNS TTL caching affects how fast that propagates. CloudFront is the CDN that caches content at edge locations near users, which simultaneously reduces latency (served from nearby), reduces origin load and egress cost (fewer requests reach the origin, less data leaves the Region), and adds a security layer (attach a WAF to filter attacks at the edge, absorb DDoS, terminate TLS, and restrict the origin to CloudFront-only). Together they give the bank fast global delivery, automatic regional failover, and an edge that shields and accelerates the platform - which is why they sit at the front of a well-designed global system.

2.7 Chapter Revision Notes

  • Banks adopt AWS for elasticity, availability, DR, and speed while keeping strict auditable controls via the shared responsibility model.
  • Region (isolated geographic area) vs AZ (separate data centre within a Region); multi-AZ is the HA baseline and is never automatic.
  • Public vs private subnet = routing; internet gateway (two-way, public) and NAT gateway (outbound-only, private) control internet access.
  • Security group (stateful, allow-only, group-referencing) vs NACL (stateless, allow+deny) - the stateful/stateless difference drives troubleshooting.
  • Direct Connect + VPN backup for on-prem, Transit Gateway hub for many VPCs, PrivateLink for single services; Route 53 + CloudFront for global delivery and failover.