aws_networking Flashcards

1
Q

What is a Virtual Private Cloud (VPC)?

A

isolated network environment in AWS
launch and manage resources like EC2 instances

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

What is a subnet in a VPC?

A

A subnet is a range of IP addresses within a VPC, where resources like EC2 instances can be placed. Subnets can be designated as public or private based on their accessibility.

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

What is the difference between a public and a private subnet?

A

A public subnet has a route to the internet via an Internet Gateway, while a private subnet has no direct internet access and is typically used for backend resources.

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

What is an Internet Gateway in AWS?

A

An Internet Gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between resources in a VPC and the internet.

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

What is a NAT Gateway, and why is it used?

A

A NAT Gateway enables resources in a private subnet to access the internet while blocking inbound traffic, enhancing security by not exposing these resources directly to the internet.

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

What is VPC Peering?

A

VPC Peering allows two VPCs to communicate directly using private IP addresses, enabling seamless communication across VPCs in the same or different AWS accounts.

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

What is a Transit Gateway, and how is it different from VPC Peering?

A

A Transit Gateway allows multiple VPCs and on-premises networks to connect through a single point, offering a hub-and-spoke model that scales better than VPC Peering for complex networks.

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

What are CIDR blocks in the context of VPCs?

A

CIDR blocks are IP address ranges assigned to VPCs, which determine the range of IP addresses available for resources within the VPC.

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

Why is CIDR planning important in VPC design?

A

Proper CIDR planning ensures efficient use of IP addresses, minimizes the risk of overlapping IP ranges, and allows for future expansion.

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

What factors should be considered when assigning CIDR blocks in VPC design?

A

number of expected resources
the need for private/public subnets
future growth when assigning CIDR blocks.

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

How do security groups differ from Network ACLs (NACLs)?

A

Security groups act as virtual firewalls for instances, controlling inbound and outbound traffic at the instance level, while NACLs control traffic at the subnet level.

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

What is a default security group?

A

A default security group is automatically created in each VPC and allows all inbound traffic from instances in the same security group, while outbound traffic is unrestricted by default.

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

What is the purpose of Network ACLs?

A

Network ACLs (NACLs) are stateless filters that allow or deny traffic at the subnet level, providing an additional layer of security beyond security groups.

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

Can NACLs be used to block specific IP addresses?

A

Yes, NACLs can be used to block or allow specific IP addresses, but they are stateless, meaning you need to add rules for both inbound and outbound traffic.

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

What is subnetting?

A

Subnetting is dividing a larger network (e.g., a VPC) into smaller, logical sub-networks, or subnets, to control and organize resources.

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

What is the advantage of having multiple Availability Zones (AZs) in subnet planning?

A

Using multiple AZs provides high availability and fault tolerance, ensuring that resources remain accessible even if an AZ experiences issues.

17
Q

What is the purpose of a route table in a VPC?

A

defines how traffic is directed within a VPC and between subnets, as well as how traffic reaches the internet via an Internet Gateway or NAT Gateway.

18
Q

How do you route traffic from a private subnet to the internet?

A

To route traffic from a private subnet to the internet, use a NAT Gateway in a public subnet and configure the route table to direct traffic through the NAT Gateway.

19
Q

What are the main limitations of VPC Peering?

A

VPC Peering does not support transitive routing, meaning you cannot route traffic from one VPC to another through an intermediary VPC.

20
Q

What is the pricing model for Transit Gateways?

A

Transit Gateways are billed based on the number of attachments (VPCs or VPNs) and data transfer, making it scalable but potentially costly for complex networks.

21
Q

How do you ensure high availability when configuring NAT Gateways?

A

Deploy NAT Gateways in multiple AZs and configure private subnets to route through the NAT Gateway in the same AZ, providing redundancy.

22
Q

What is the maximum number of IP addresses available in a VPC?

A

Each VPC can be assigned a CIDR block of up to /16, providing up to 65,536 IP addresses, though smaller blocks can be allocated for smaller VPCs.

23
Q

How many IP addresses are reserved in each subnet, and why?

A

AWS reserves five IP addresses in each subnet for internal purposes, such as network management and routing.

24
Q

What is a default VPC, and what are its characteristics?

A

A default VPC is created by AWS in each region with a /16 CIDR block, public subnets, an Internet Gateway, and default security groups for immediate use.

25
Q

What is the difference between stateful and stateless security in AWS?

A

Stateful security (e.g., security groups) tracks connection state and automatically allows return traffic, while stateless security (e.g., NACLs) does not track connection state.

26
Q

What does CIDR stand for and why is it used?

A

CIDR stands for Classless Inter-Domain Routing. It is used to allocate IP addresses more efficiently and reduce the size of routing tables.

27
Q

How is a CIDR notation written

A

CIDR notation is written as an IP address followed by a forward slash and a number, like 192.168.1.0/24

28
Q

What does the number after the slash in CIDR notation (e.g., /24) represent?

A

The number indicates the number of bits used for the network portion of the address.

29
Q

How many IP addresses are available in a /24 subnet?

A

A /24 subnet has 256 IP addresses (254 usable for hosts).

30
Q

What does a /32 CIDR notation represent?

A

A /32 CIDR notation represents a single IP address.

31
Q
A