Week 5 - Networking and Content Delivery in Cloud Flashcards

1
Q

What is an IPv4 Address?

A

An IPv4 address is a 32-bit binary number used to identify devices on a network, divided into four octets (8-bit groups), separated by dots (e.g., 192.168.0.1). Each octet can range from 0 to 255. These addresses are written in dotted decimal notation for human readability.

IPv4 addresses consist of two parts:
Network ID: Identifies the network the device belongs to.
Host ID: Identifies the specific device within that network.
The division between Network ID and Host ID is determined by the subnet mask.

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

What is Classless Inter-Domain Routing (CIDR)?

A

CIDR allows IP address allocation and routing without relying on predefined classes, using subnet masks to define variable-length prefixes (e.g., 192.168.0.0/24).

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

What is the OSI model, and what are it’s layers?

A

The OSI (Open Systems Interconnection) model standardizes network communication into 7 layers, each with specific functions:

  1. Physical: Transmits raw bits over a medium (e.g., cables, hubs).
  2. Data Link: Ensures reliable data transfer on a local network (e.g., switches, Wi-Fi).
  3. Network: Handles routing and addressing (e.g., IP, routers).
  4. Transport: Ensures reliable end-to-end communication (e.g., TCP, UDP).
  5. Session: Manages and maintains sessions (e.g., APIs, sockets).
  6. Presentation: Translates, encrypts, and compresses data (e.g., SSL, JPEG).
  7. Application: Interfaces with users and applications (e.g., HTTP, DNS).

The OSI model aids in troubleshooting, designing, and understanding network communication.

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

What is Amazon VPC and what does it allow you to do?

A

Amazon VPC allows you to create a logically isolated section of the AWS Cloud to launch resources in a virtual network that you define.

  • Belongs to a single AWS Region but spans multiple Availability Zones via subnets.
  • Each VPC is assigned one CIDR block (/16 to /28) with non-overlapping subnets.
  • AWS reserves five IP addresses per CIDR block.
  • Control networking resources like IP addresses, subnets, and configurations with multiple security layers for traffic control.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are route tables and their features in an Amazon VPC?

A

Each VPC has one main route table, and each subnet is associated with a route table, which multiple subnets can share. A route table includes two features: Destination (the target CIDR block for traffic) and Target (where traffic is sent, such as an Internet Gateway). By default, a route table contains a local route for VPC communication and cannot be deleted.

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

What is an Internet Gateway in an Amazon VPC, and what is its purpose?

A

An Internet Gateway is a scalable, redundant VPC component enabling communication between VPC instances and the internet. It acts as a target for internet-routable traffic in route tables and performs network address translation for public IPv4 addresses. To make a subnet public, attach the gateway to your VPC and route non-local traffic (e.g., 0.0.0.0/0) through it.

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

What is a Network Address Translation (NAT) Gateway and how does it work?

A

A NAT Gateway enables instances in a private subnet to access the internet. After creating the NAT gateway, update the associated route table for your private subnets to route internet-bound traffic through it, allowing private instances to communicate with the internet.

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

What is VPC Sharing and how does it work?

A

VPC Sharing allows multiple AWS accounts to create resources in shared, centrally-managed VPCs. The owner account shares one or more subnets with other accounts (participants) in the same AWS Organization, enabling resource sharing within a single VPC.

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

What is VPC Peering and what are its restrictions?

A

VPC Peering connects your VPC to other VPCs, allowing them to communicate. Restrictions include:

  1. IP address ranges must not overlap.
  2. Transitive peering is not supported (i.e., indirect connections between VPCs require explicit peering).
  3. Only one peering connection is allowed between the same two VPCs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is AWS Site-to-Site VPN?

A

AWS Site-to-Site VPN connects your VPC to remote networks, allowing secure communication between them. By default, instances launched in a VPC cannot communicate with remote networks until the VPN is established.

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

What is AWS Direct Connect?

A

AWS Direct Connect establishes a dedicated, private network connection between your VPC and a remote network. It helps reduce network costs, increase bandwidth throughput, and offer a more consistent network experience compared to internet-based connections, particularly for remote data centers far from AWS regions.

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

What is a VPC Endpoint?

A

A VPC Endpoint connects your VPC to supported AWS services privately. It includes interface endpoints, which use AWS PrivateLink to connect to services, and gateway endpoints, which provide a private connection to supported AWS services like S3 and DynamoDB.

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

What is AWS Transit Gateway?

A

AWS Transit Gateway is a hub-and-spoke connection model that acts as an alternative to VPC peering, enabling centralized connectivity between multiple VPCs and on-premises networks.

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

What are the general principles of VPC security in AWS?

A

VPC security aims to control incoming and outgoing traffic by building security into the VPC architecture. Best practices include isolating subnets, choosing appropriate gateway devices or VPN connections, and using firewalls like Security Groups and Network Access Control Lists (ACLs).

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

What are Security Groups in AWS and how do they work?

A

Security Groups act as a virtual firewall for your instances, controlling inbound and outbound traffic. They filter traffic at the instance level, not at the subnet level. Each instance in a subnet can be assigned a different set of Security Groups.

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

What are the rules and characteristics of Security Groups in AWS?

A

By default, Security Groups allow all outbound traffic and deny all inbound traffic. They are stateful, meaning the state information is retained even after a request is processed. All rules are evaluated before allowing traffic.

17
Q

What are Network Access Control Lists (ACLs) in AWS, and how do they work?

A

Network ACLs are virtual firewalls that control inbound and outbound traffic at the subnet level, not the instance level. Each subnet must be associated with a network ACL, and if none is explicitly associated, the default network ACL is applied. A subnet can only be associated with one ACL at a time, but an ACL can be associated with multiple subnets.

18
Q

What are the rules in Network Access Control Lists (ACLs) in AWS?

A

By default, Network ACLs deny all inbound and outbound traffic before any rules are added. Once rules are added, they allow all IPv4 traffic unless specified otherwise. Network ACLs have separate inbound and outbound rules that can either allow or deny traffic. Unlike security groups, ACLs are stateless, meaning no information about a request is retained after processing. Rules are evaluated in order within the rule list.

19
Q

What is Cloud Domain Name System (DNS) and how does it work in AWS?

A

DNS translates text-based domain names into IP addresses. Amazon Route 53 is AWS’s scalable and highly available cloud DNS service that performs this translation, helping users connect their domain names to numeric IP addresses.

20
Q

What are the 2 use cases of Amazon Router 53 Routing?

A
  1. Latency Routing: Used when you have resources in multiple AWS Regions and want to route traffic to the region providing the best latency. It directs users to the AWS endpoint that offers the fastest experience based on performance measurements.
  2. Failover Routing: Used for configuring backup and failover scenarios, enabling highly available Multi-Region architectures. It detects outages and redirects users to alternate locations where the application is available, based on health checks of each endpoint.
21
Q

What is a Content Delivery Network (CDN) and how does Amazon CloudFront address its benefits?

A

A Content Delivery Network (CDN) is a distributed system of cached servers that addresses network latency by delivering content from the server closest to the user. It caches static copies of content and reduces delays in delivering it to end-users.

Amazon CloudFront, Amazon’s CDN solution, offers the following advantages:

Fast and global: Delivers content quickly across the globe.
Security at the edge: Provides built-in protections like AWS Shield Standard to secure content delivery.
Highly programmable: Customizable features for specific application requirements.
Deep AWS integration: CloudFront is closely connected to AWS infrastructure and services.
Cost-effective: Pay-as-you-go pricing with no minimum commitments.