0
0
AWScloud~20 mins

Creating a custom VPC in AWS - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Custom VPC Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
VPC CIDR Block Size Calculation

You create a custom VPC with the CIDR block 10.0.0.0/20. How many IP addresses are available for use in this VPC?

A4096 IP addresses
B2048 IP addresses
C8192 IP addresses
D1024 IP addresses
Attempts:
2 left
💡 Hint

Remember that the number of IP addresses in a CIDR block is 2^(32 - prefix length).

Configuration
intermediate
2:00remaining
Subnet Creation in a Custom VPC

You have a VPC with CIDR block 192.168.0.0/16. You want to create a subnet with CIDR 192.168.1.0/24. Which statement is true about this subnet?

AThe subnet contains 256 IP addresses, but 5 are reserved by AWS.
BThe subnet contains 128 IP addresses, all usable by instances.
CThe subnet contains 512 IP addresses, but 5 are reserved by AWS.
DThe subnet contains 256 IP addresses, all usable by instances.
Attempts:
2 left
💡 Hint

A /24 subnet has 256 IP addresses, but AWS reserves some IPs.

security
advanced
2:00remaining
Security Group Behavior in a Custom VPC

You create a security group in your custom VPC that allows inbound SSH (port 22) from 0.0.0.0/0. What is the security implication of this configuration?

AOnly IP addresses within the VPC can connect via SSH to instances using this security group.
BNo IP addresses can connect via SSH because the rule is invalid.
COnly IP addresses explicitly whitelisted in the subnet can connect via SSH.
DAny IP address on the internet can attempt to connect via SSH to instances using this security group.
Attempts:
2 left
💡 Hint

Consider what 0.0.0.0/0 means in network rules.

service_behavior
advanced
2:00remaining
Internet Gateway Attachment Effect

You create a custom VPC and attach an Internet Gateway (IGW) to it. What effect does attaching the IGW have on the VPC?

AIt blocks all inbound traffic from the internet to the VPC.
BIt automatically assigns public IP addresses to all instances in the VPC.
CIt enables instances in public subnets to communicate with the internet if route tables are configured correctly.
DIt creates a VPN connection to AWS managed services.
Attempts:
2 left
💡 Hint

Think about what an Internet Gateway does in AWS networking.

Best Practice
expert
3:00remaining
Designing a Highly Available Custom VPC Architecture

You need to design a custom VPC architecture that supports high availability for a web application across two Availability Zones (AZs). Which design best meets this requirement?

ACreate one public subnet in a single AZ and multiple private subnets in the other AZ, with a single NAT Gateway in the public subnet.
BCreate one public subnet and one private subnet in each AZ, with a NAT Gateway in each public subnet for outbound internet access from private subnets.
CCreate multiple public subnets in one AZ only, and private subnets in both AZs, sharing a single NAT Gateway in the public subnet.
DCreate one public subnet and one private subnet in a single AZ only, with a NAT Gateway in the private subnet.
Attempts:
2 left
💡 Hint

Consider fault tolerance and redundancy across AZs.