What is an Amazon VPC, and what two main capabilities does it provide for AWS resources?
A Virtual Private Cloud is a logically isolated virtual network within AWS where resources can be launched.
It provides:
* Isolation from other AWS networks
* Full control over networking configuration (IP ranges, subnets, routing, gateways)
Which networking components can be configured inside an AWS VPC?
Why is a VPC described as logically isolated rather than physically isolated?
Because AWS customers share the same physical infrastructure, but networking rules and configurations isolate each VPC logically.
What is the relationship between VPCs, Regions, and Availability Zones?
What is a subnet in AWS VPC networking?
A subnet is a range of IP addresses within a VPC used to divide the VPC into smaller networks.
How do subnets relate to Availability Zones in AWS?
Each subnet exists in only one Availability Zone, but a VPC can contain multiple subnets across multiple AZs
What are the two types of AWS subnets and how do they differ?
Public subnet
* Has access to the internet through an Internet Gateway
Private subnet
* No direct internet access
What happens when you create a VPC with a CIDR block?
You assign the range of private IPv4 addresses that resources in that VPC can use.
Example:
10.0.0.0/16
Why cannot the CIDR block of a VPC be changed after creation?
Because the entire VPC networking structure (subnets, routing, resources) depends on the original address range.
What is the largest and smallest IPv4 CIDR block allowed when creating an AWS VPC?
Largest:
/16 → 65,536 addresses
Smallest:
/28 → 16 addresses
Why must subnet CIDR blocks not overlap within a VPC?
Overlapping IP ranges would cause routing conflicts and prevent AWS from determining the correct destination network.
In a subnet with CIDR block 10.0.0.0/24, why are only 251 addresses usable?
AWS reserves 5 IP addresses in every subnet.
Reserved addresses:
* Network address
* Router/internal communication
* DNS server
* Future use
* Broadcast address
Which IP addresses are reserved in AWS for subnet 10.0.0.0/24?
Address Purpose
10.0.0.0 Network address
10.0.0.1 Internal communication
10.0.0.2 DNS server
10.0.0.3 Future use
10.0.0.255 Broadcast
What is the difference between a public IPv4 address and an Elastic IP address in AWS?
Public IPv4
* Automatically assigned
* Can change when instance stops/starts
Elastic IP
* Manually allocated
* Static address
* Can be remapped to different instances
Why might AWS charge for Elastic IP addresses?
To discourage users from reserving unused public IP addresses, which are limited global resources.