Dive into AWS Amazon VPC with these 30 essential MCQs. Covering key topics like VPC core concepts, subnets, CIDR blocks, IP addressing, routing, and internet gateways, this comprehensive set helps enhance your understanding of Amazon VPC. Designed for AWS certification preparation, these questions will strengthen your grasp of network setup and connectivity.
Multiple-Choice Questions
1. VPC Core Concepts and Setup
What does VPC stand for in AWS? a) Virtual Private Cloud b) Virtual Public Cloud c) Virtual Protocol Control d) Virtual Proxy Configuration
A VPC in AWS spans: a) A single availability zone b) A single region c) Multiple regions d) Multiple accounts
By default, a newly created VPC includes: a) An internet gateway b) A main route table c) Predefined subnets d) DNS hostnames enabled
How many VPCs can you create per AWS account by default? a) 1 b) 5 c) 10 d) 20
A default VPC comes with: a) Public and private subnets b) Default security group and route table c) Internet gateway pre-attached d) All of the above
2. Subnets, CIDR Blocks, and IP Addressing
What is the purpose of a subnet in a VPC? a) Isolate traffic between regions b) Partition a VPC’s IP address range c) Define DNS resolution rules d) Enable private DNS
What does CIDR stand for? a) Common Internet Domain Routing b) Classless Inter-Domain Routing c) Custom Internet Data Routing d) Cloud Integration Data Routing
A /24 CIDR block provides how many usable IP addresses? a) 254 b) 256 c) 512 d) 128
A subnet can span: a) Multiple VPCs b) A single availability zone c) Multiple regions d) Multiple availability zones
Which IP address range is reserved for private networking in IPv4? a) 10.0.0.0/8 b) 172.16.0.0/12 c) 192.168.0.0/16 d) All of the above
What happens when a subnet is marked as public? a) It is connected to an internet gateway b) It allows all traffic by default c) It requires a NAT gateway d) It has no route table attached
A primary requirement for a private subnet is: a) A route to the internet b) A NAT gateway for outbound traffic c) DNS hostnames enabled d) Public IPs assigned
Overlapping CIDR blocks between VPCs in peering connections result in: a) Increased latency b) Route conflicts c) Enhanced connectivity d) Automatic address resolution
The smallest CIDR block supported by AWS for a VPC is: a) /16 b) /28 c) /24 d) /32
How do you calculate the usable IPs in a subnet? a) Subtract 1 IP for the gateway b) Subtract 2 IPs for DNS servers c) Subtract 5 IPs for reserved addresses d) Subtract 3 IPs for NAT
3. Routing and Internet Gateways
A route table in a VPC is used to: a) Enable cross-region replication b) Define network traffic rules c) Assign IP addresses d) Configure VPNs
What is the purpose of an internet gateway in AWS? a) Provide a route to the internet b) Control inbound traffic to private subnets c) Manage network firewalls d) Assign public IPs to instances
By default, a route table in a custom VPC includes: a) A route to the internet b) A route to the VPC’s CIDR block c) No routes at all d) A route to the nearest edge location
What is a key requirement for a subnet to communicate with the internet? a) Elastic IP assigned b) Route table with a route to the internet gateway c) NAT gateway in the subnet d) Security group with public access
How many internet gateways can a VPC have? a) 1 b) 2 c) 5 d) Unlimited
A NAT gateway is required when: a) Private subnets need outbound internet access b) Public subnets need internet access c) DNS queries need routing d) Load balancers are configured
A main route table automatically: a) Allows inbound traffic b) Contains a route to local CIDR blocks c) Blocks all traffic by default d) Disables route propagation
Which component connects an on-premises network to a VPC? a) Internet gateway b) Virtual private gateway c) Transit gateway d) NAT gateway
What is the purpose of route propagation? a) To automatically update subnets with new IPs b) To allow dynamic route updates via VPN or Direct Connect c) To manage overlapping CIDR blocks d) To synchronize route tables
A custom VPC without an internet gateway will: a) Allow internet-bound traffic b) Block all inbound and outbound traffic c) Only allow private communication within the VPC d) Be automatically deleted
Elastic IP addresses are primarily used to: a) Assign static public IPs to resources b) Configure DNS resolution c) Route private IPs to public domains d) Manage load balancing
A NAT gateway is required to: a) Route private subnet traffic to the internet b) Allow SSH access to instances c) Manage edge location connectivity d) Enable multi-region networking
Route tables can be associated with: a) Entire VPCs b) Individual subnets c) Availability zones d) Internet gateways
What protocol is required for routing between VPCs in a peering connection? a) BGP b) HTTP c) TCP/IP d) No additional protocol is required
A VPC endpoint allows private connectivity to: a) Public internet services b) AWS services like S3 without an internet gateway c) On-premises data centers d) Regional internet locations
Answers Table
Qno
Answer
1
a) Virtual Private Cloud
2
b) A single region
3
b) A main route table
4
c) 10
5
d) All of the above
6
b) Partition a VPC’s IP address range
7
b) Classless Inter-Domain Routing
8
a) 254
9
b) A single availability zone
10
d) All of the above
11
a) It is connected to an internet gateway
12
b) A NAT gateway for outbound traffic
13
b) Route conflicts
14
b) /28
15
c) Subtract 5 IPs for reserved addresses
16
b) Define network traffic rules
17
a) Provide a route to the internet
18
b) A route to the VPC’s CIDR block
19
b) Route table with a route to the internet gateway
20
a) 1
21
a) Private subnets need outbound internet access
22
b) Contains a route to local CIDR blocks
23
b) Virtual private gateway
24
b) To allow dynamic route updates via VPN or Direct Connect
25
c) Only allow private communication within the VPC
26
a) Assign static public IPs to resources
27
a) Route private subnet traffic to the internet
28
b) Individual subnets
29
d) No additional protocol is required
30
b) AWS services like S3 without an internet gateway