Bitpath

Lesson 1 · Unit 04

Cloud networking

Subnets, public and private, firewall rules, and DNS and a CDN in front

13 exercisesabout 3 min

What you practise

  • Private networks and subnets, public against private, firewall rules, DNS, a CDN in front

Try a question from this lesson

Pick one

A database only ever talks to the app servers beside it. Which is the safest place for its network interface?

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

A private network, cut into subnets

You get a private network: your own address range inside a region, such as 10.0.0.0/16. You cut it into subnets, each in one zone.

A subnet is public if its route table has a route to an internet gateway. Without one it is private.

Private machines still need updates and outside APIs. A NAT gateway in a public subnet carries their outbound traffic and lets only the replies back.

AWS: VPC, subnets, internet gateway, NAT gateway.

internet
   |
[ public subnet ]   load balancer, NAT
   |
[ private subnet ]  app servers
   |
[ private subnet ]  database

Concept

Firewall rules

Every machine sits behind a set of firewall rules saying which sources may reach which ports.

AWS calls the set a security group. It holds allow rules only: anything not allowed is refused.

It is stateful: when a request is allowed in, its reply is let back out automatically, with no second rule.

A rule's source can be an address range or another group. "Only the app group may reach the database on 5432" names no IP address, so it stays true as servers come and go.

10 more exercises in the app

  • 4× multiple choice
  • 1× type the answer
  • 1× fill the blanks
  • 2× true or false
  • 1× order the lines
  • 1× match the pairs

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy