Deploying Applications to AWS Flashcards

1
Q

What is a subnet?

A

A subnet, short for subnetwork, is a division of an IP network into smaller networks. It helps manage network traffic efficiently and enables better organization and security by grouping devices into logical segments. Each subnet has its own unique range of IP addresses.

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

What is the purpose of subnetting?

A

The purpose of subnetting is to divide a large network into smaller, more manageable subnetworks. This helps improve network performance, efficiency, and security.

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

What is CIDR notation?

A

CIDR (Classless Inter-Domain Routing) notation is a compact representation of an IP address and its associated subnet mask. It consists of the IP address followed by a forward slash and a number representing the number of bits in the subnet mask. For example, “192.168.1.0/24” represents an IP address in the subnet 192.168.1.0 with a subnet mask of 255.255.255.0.

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

What is a subnet mask?

A

A subnet mask is a 32-bit binary number used to divide an IP address into network and host portions. It determines which portion of an IP address is the network address and which portion is the host address. Subnet masks are represented in decimal form, such as “255.255.255.0” for a Class C network.

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

What is the difference between a subnet and a VLAN?

A

A subnet is a logical division of an IP network, whereas a VLAN (Virtual Local Area Network) is a logical division of a physical network infrastructure. Subnets operate at the network layer (Layer 3) of the OSI model, while VLANs operate at the data link layer (Layer 2). Subnets divide networks based on IP addresses, while VLANs divide networks based on MAC addresses or port numbers.

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

What is the maximum number of hosts in a subnet with a subnet mask of /28?

A

With a subnet mask of /28, there are 4 bits available for host addresses, allowing for 2^4 - 2 = 14 hosts per subnet. The subtraction of 2 accounts for the network address and the broadcast address, which cannot be assigned to hosts.

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

What is NAT?

A

NAT, short for Network Address Translation, is a technique used in networking to modify network address information in the IP header of packets while they are in transit across a traffic routing device. It enables the translation of private IP addresses used within a local network to public IP addresses used on the internet, allowing multiple devices within the private network to share a single public IP address for outgoing traffic. NAT helps conserve public IP addresses and enhances network security by hiding internal network structure from external entities.

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

What are the main types of NAT?

A

The main types of NAT are:

Static NAT: Maps a private IP address to a single public IP address permanently.
Dynamic NAT: Maps private IP addresses to public IP addresses from a pool of available addresses dynamically.
PAT (Port Address Translation): Maps multiple private IP addresses to a single public IP address by using different source port numbers.

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

What is the difference between NAT and PAT?

A

NAT (Network Address Translation) translates private IP addresses to public IP addresses, while PAT (Port Address Translation) translates both IP addresses and port numbers. PAT allows multiple devices within a private network to share a single public IP address by using different source port numbers for each connection.

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

What is the purpose of NAT traversal?

A

NAT traversal (Network Address Translation traversal) enables communication between devices behind NAT devices, such as routers or firewalls, and devices on external networks. It allows applications and services to function correctly despite the presence of NAT, by using techniques like NAT traversal protocols (e.g., STUN, TURN, and ICE) to establish and maintain connections.

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

What are some advantages of using NAT?

A

Advantages of using NAT include:

Conservation of public IP addresses by allowing multiple devices to share a single public IP address.
Enhanced network security by hiding internal IP addresses and topology from external networks.
Simplified network management as it eliminates the need to assign public IP addresses to individual devices within a private network.
Facilitation of IPv4 to IPv6 transition by allowing IPv4-only devices to communicate over IPv6 networks through NAT64 translation mechanisms.

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

What is the function of network ports in computer networking?

A

Network ports serve as communication endpoints that allow different applications and services to send and receive data over a network. They enable devices to distinguish between different types of network traffic and direct data packets to the appropriate destination service or application.

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

How are network ports identified?

A

Network ports are identified by numerical values ranging from 0 to 65535. These port numbers are standardized for common services, with well-known ports reserved for specific applications or protocols.

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

What is the difference between a TCP port and a UDP port?

A

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are two common transport layer protocols. TCP ports provide reliable, connection-oriented communication, ensuring data delivery and sequencing. UDP ports, on the other hand, offer faster, connectionless communication but do not guarantee delivery or sequencing.

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

What is a well-known port?

A

A well-known port is a port number reserved by the Internet Assigned Numbers Authority (IANA) for a specific service or application. Examples include port 80 for HTTP, port 443 for HTTPS, and port 25 for SMTP.

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

What is port forwarding?

A

Port forwarding, also known as port mapping, is a networking technique that redirects network traffic from one network port on a router or firewall to another port on a different device within the local network. It is commonly used to allow external access to services or applications hosted on devices behind the router or firewall.

17
Q

Why are ports categorized as either “well-known,” “registered,” or “dynamic/private”?

A

Ports are categorized based on their numerical range and assigned usage. Well-known ports (0-1023) are reserved for standard services and protocols. Registered ports (1024-49151) are available for user-defined services or applications. Dynamic/private ports (49152-65535) are used for temporary connections and client-side applications.

18
Q

What is a URL and what are its components?

A

A URL (Universal Resource Locator) identifies resources on the internet. It has four main components: the scheme (like HTTP or HTTPS), the domain name (like example.com), the path, and the resource. The path and resource specify the location on the server.