🌙 Dark Mode
Test Your Knowledge: AWS VPC and Terraform
1. What is the purpose of a VPC in AWS?
To provide a virtual network for AWS resources
To manage DNS records
To store data in the cloud
2. What does the CIDR block define in a VPC?
The IP address range for the VPC
The security group rules
The availability zone
3. What is the purpose of an internet gateway in a VPC?
To allow communication between the VPC and the internet
To encrypt data in transit
To store backups
4. What does the argument `map_public_ip_on_launch = true` do in Terraform?
Assigns a public IP to instances launched in the subnet
Encrypts data stored in the subnet
Restricts access to the subnet
5. What is the purpose of the `aws_route_table_association` resource in Terraform?
To associate a subnet with a route table
To create a new route table
To define security group rules
6. What is the purpose of a NAT gateway in a VPC?
To allow private subnets to access the internet
To encrypt data in transit
To store backups
7. What is the purpose of the `cidr_block` argument in the `aws_vpc` resource?
To define the IP address range for the VPC
To define security group rules
To specify the availability zone
8. What is the purpose of the `aws_internet_gateway` resource in Terraform?
To enable communication between the VPC and the internet
To encrypt data in transit
To store backups
9. What is the purpose of the `aws_subnet` resource in Terraform?
To define a range of IP addresses within a VPC
To create a new VPC
To define security group rules
10. What is the purpose of the `aws_route_table` resource in Terraform?
To define routing rules for a subnet
To create a new VPC
To define security group rules
Submit Quiz