AWS module 5.3 VPC networking Flashcards

(24 cards)

1
Q

Explain the TWO purposes of an Internet Gateway and how it interacts with route tables.

A
  1. It acts as a target in route tables to allow internet-bound traffic (e.g., 0.0.0.0/0 → IGW).
  2. It performs Network Address Translation (NAT) for instances with public IPs, enabling communication between private AWS networks and the internet.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How would you make a subnet public? Give the full configuration steps.

A

A subnet becomes public when:

It has a route table with a route to an Internet Gateway (0.0.0.0/0 → IGW)

Instances in the subnet have public IPv4 or Elastic IP addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why can a subnet NOT be considered public just by attaching an Internet Gateway to the VPC?

A

Because the subnet must explicitly use a route table that directs internet traffic to the IGW. Without this route, traffic cannot leave the subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the purpose of a NAT Gateway and how it differs from an Internet Gateway.

A

NAT Gateway:
* Allows private subnet instances to access the internet
* Blocks incoming connections from the internet

Internet Gateway:
* Allows both inbound and outbound communication (if permitted)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why must a NAT Gateway be placed in a public subnet?

A

Because it needs direct access to the Internet Gateway to forward traffic from private subnets to the internet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What additional requirement is needed when creating a NAT Gateway, and why?

A

An Elastic IP address must be attached.

Reason:
It provides a static public IP for outbound communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

After creating a NAT Gateway, what must be updated for private subnets to access the internet?

A

The route table associated with private subnets must include:
0.0.0.0/0 → NAT Gateway

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Explain what VPC sharing is and its purpose.

A

VPC sharing allows multiple AWS accounts in the same organisation to use subnets within a shared VPC.

Purpose:
* Centralised networking
* Resource sharing across accounts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why does AWS recommend using a NAT Gateway instead of a NAT Instance?

A

Because NAT Gateway:
* Is managed by AWS
* Provides higher availability
* Offers better bandwidth
* Requires less administrative effort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What permissions do participants have in shared subnets?

A

They can:
* View
* Create
* Modify
* Delete resources within the shared subnets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain VPC peering and its main function.

A

VPC peering connects two VPCs to allow private communication using internal IP addresses, as if they are in the same network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do route tables enable communication in VPC peering?

A

Each VPC must add a route:
* Destination → other VPC CIDR block
* Target → Peering connection ID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

List THREE restrictions of VPC peering.

A

CIDR blocks must not overlap

Only one peering connection per VPC pair

No transitive peering (A → B → C is NOT allowed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Explain what “no transitive peering” means with an example.

A

If VPC A is connected to B, and B to C,
A cannot communicate with C through B.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can a VPC connect to an on-premises (remote) network?

A

Using a Site-to-Site VPN:

Steps:
* Attach Virtual Private Gateway to VPC
* Configure route tables
* Update security groups
* Configure VPN connection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a major limitation of VPN connections in cloud networking?

A

Answer:
Performance can degrade due to internet latency, especially if the data centre is far from the AWS region

17
Q

What is AWS Direct Connect and when should it be used?

A

A dedicated private connection between on-premises infrastructure and AWS.

Used when:
* Low latency is required
* Stable and consistent performance is needed

18
Q

What is a VPC Endpoint (Gateway Endpoint) and what is its purpose?

A

A gateway that allows access to AWS services (e.g., S3, DynamoDB) without using the internet.

19
Q

Why is traffic through a VPC Endpoint considered more secure?

A

Because it does not leave the AWS network, reducing exposure to public internet threats.

20
Q

What is AWS PrivateLink and how does it improve security?

A

PrivateLink provides private connectivity to AWS services and applications via VPC interface endpoints.

It improves security by:
* Eliminating exposure to the public internet
* Keeping traffic within AWS infrastructure

21
Q

Compare VPC Peering vs PrivateLink in terms of connectivity.

A

VPC Peering:
* Full network-to-network connection
* Bidirectional

PrivateLink:
* Service-level connection
* More controlled and secure
* No full network exposure

22
Q

A company wants private instances to access the internet but prevent inbound connections. Design the architecture.

A
  • Private subnet for instances
  • NAT Gateway in a public subnet
  • Internet Gateway attached to VPC
  • Route table:

Private subnet → NAT Gateway

Public subnet → Internet Gateway

23
Q

If a private subnet has a route to an Internet Gateway, will it work? Why or why not?

A

No.
Because instances do not have public IP addresses, so they cannot communicate directly with the internet even if the route exists.

24
Q

Why is Elastic IP important in NAT Gateway architecture but not necessarily in public instances?

A

Because NAT Gateway requires a static public IP to represent all private instances, whereas public instances can use dynamic public IPs.