AWS AWS Networking and Content Delivery 2 β Questions and Answers
Question 1: What is a NAT Gateway used for in an AWS VPC?
- To allow instances in private subnets to initiate outbound internet connections without exposing them to inbound traffic (Correct answer)
- To route traffic between VPCs
- To connect VPCs to on-premises networks
- To provide high-availability DNS for VPC resources
Correct answer: To allow instances in private subnets to initiate outbound internet connections without exposing them to inbound traffic
A NAT Gateway allows instances in private subnets to connect to the internet or other AWS services while preventing unsolicited inbound connections.
Question 2: What is VPC Peering?
- A networking connection between two VPCs that allows traffic to route between them using private IP addresses (Correct answer)
- A connection between a VPC and an on-premises network
- A way to share subnets between AWS accounts
- A dedicated internet connection for a VPC
Correct answer: A networking connection between two VPCs that allows traffic to route between them using private IP addresses
VPC Peering creates a private networking connection between two VPCs, enabling resources in each VPC to communicate as if they are on the same network.
Question 3: Which AWS service provides a managed Web Application Firewall to protect web applications from common exploits?
- AWS WAF (Correct answer)
- AWS Shield
- AWS Network Firewall
- AWS Firewall Manager
Correct answer: AWS WAF
AWS WAF (Web Application Firewall) filters malicious web traffic and protects applications against common exploits like SQL injection and XSS.
Question 4: What is AWS Global Accelerator used for?
- To improve availability and performance of applications using the AWS global network (Correct answer)
- To distribute static content via CloudFront
- To manage DNS records globally
- To connect multiple VPCs across regions
Correct answer: To improve availability and performance of applications using the AWS global network
AWS Global Accelerator routes user traffic through the AWS global network infrastructure to improve performance and availability of your applications.
Question 5: What is an Elastic Load Balancer (ELB) in AWS?
- A service that automatically distributes incoming traffic across multiple targets like EC2 instances (Correct answer)
- A tool for scaling EC2 instances automatically
- A managed database load balancing service
- A CDN for distributing content
Correct answer: A service that automatically distributes incoming traffic across multiple targets like EC2 instances
Elastic Load Balancer automatically distributes incoming application traffic across multiple targets, ensuring no single resource is overwhelmed.
Question 6: Which type of AWS Elastic Load Balancer is best suited for routing HTTP and HTTPS traffic based on content?
- Application Load Balancer (ALB) (Correct answer)
- Network Load Balancer (NLB)
- Classic Load Balancer
- Gateway Load Balancer
Correct answer: Application Load Balancer (ALB)
Application Load Balancer (ALB) operates at Layer 7 and can route HTTP/HTTPS requests based on URL paths, hostnames, or headers.
What is a NAT Gateway used for in an AWS VPC?