Amazon AWS Certified Advanced Networking – Specialty ANS-C01 Practice Test Questions and Exam Dumps Part 18 Q341-360

View Full Amazon AWS Certified Advanced Networking – Specialty ANS-C01 Exam Dumps and Practice Test Dumps

 

Question 341. Which VPC feature allows an administrator to assign additional private IP addresses to an existing elastic network interface?

  1. Secondary private IP addresses
  2. Elastic Load Balancer
  3. Internet Gateway
  4. Route 53 Resolver

Correct Answer: 1. Secondary private IP addresses

Explanation:

Elastic network interfaces can have multiple private IP addresses assigned to them. These are commonly called secondary private IP addresses and can be useful when an application needs multiple addresses on the same network interface. They can support various architectures, including applications that host multiple services or network appliances that require additional addressing. The primary private IP address remains associated with the interface throughout its lifecycle, while secondary addresses can be added or removed as needed, subject to service limits. An Internet Gateway provides internet connectivity, Route 53 Resolver handles DNS resolution, and load balancers distribute application traffic. Therefore, secondary private IP addresses provide the required functionality.

Question 342. Which VPC component provides a virtual network interface that can be attached to an EC2 instance and has security groups associated with it?

  1. Route table
  2. Elastic network interface
  3. Network ACL
  4. Internet Gateway

Correct Answer: 2. Elastic network interface

Explanation:

An Elastic Network Interface, or ENI, is a logical networking component within a VPC that can be attached to an EC2 instance. An ENI has attributes such as a private IP address, optional secondary private IP addresses, a MAC address, and associated security groups. Additional ENIs can be useful for network appliances, multi-homed instances, or applications requiring separate interfaces. Route tables determine how traffic is forwarded, while network ACLs provide subnet-level traffic controls. An Internet Gateway provides a path between a VPC and the internet. Because the question specifically asks for a network interface that attaches to an EC2 instance and has security groups, the ENI is the correct answer.

Question 343. A company has two subnets in different Availability Zones and wants resources in both subnets to communicate using private IPv4 addresses. Which AWS networking capability provides the underlying VPC connectivity?

  1. The VPC’s local route
  2. NAT Gateway
  3. Internet Gateway
  4. Public virtual interface

Correct Answer: 1. The VPC’s local route

Explanation:

A VPC automatically includes a local route for its own CIDR range in its route tables. This route enables resources in different subnets within the same VPC to communicate using private IP addresses, including when the subnets are located in different Availability Zones. No VPC peering or Internet Gateway is required for communication within the same VPC. Security groups and network ACLs still control whether the traffic is permitted. A NAT Gateway is designed primarily for outbound IPv4 internet connectivity from private subnets, while an Internet Gateway provides internet connectivity for public resources. Therefore, the local route is the fundamental routing mechanism for communication between subnets within a VPC.

Question 344. Which routing principle determines which route is selected when a destination matches multiple entries in an AWS VPC route table?

  1. First-created route
  2. Longest prefix match
  3. Lowest subnet ID
  4. Highest Availability Zone number

Correct Answer: 2. Longest prefix match

Explanation:

AWS VPC routing uses the longest prefix match principle when multiple routes can match a destination address. The most specific route, meaning the route with the longest matching network prefix, is selected over a broader route. For example, a route targeting 10.0.0.0/16 is less specific than one targeting 10.0.1.0/24, so traffic destined for the latter range can use the more specific /24 route. This principle is fundamental to designing precise routing behavior in VPCs and Transit Gateway environments. Route creation order, subnet identifiers, and Availability Zone numbering do not determine which VPC route is selected.

Question 345. An administrator has a route table containing 10.0.0.0/8 and 10.10.0.0/16. Where will traffic destined for 10.10.5.20 be routed?

  1. Through the 10.0.0.0/8 route
  2. Through the 10.10.0.0/16 route
  3. Through the default route only
  4. Through both routes simultaneously

Correct Answer: 2. Through the 10.10.0.0/16 route

Explanation:

The destination address 10.10.5.20 matches both the 10.0.0.0/8 and 10.10.0.0/16 prefixes. AWS routing selects the longest matching prefix, meaning the more specific /16 route takes precedence over the broader /8 route. This behavior allows administrators to create broad default routing behavior while adding specific routes for particular networks or destinations. Only the selected route is used for the forwarding decision; the traffic is not automatically distributed across both matching routes. Understanding longest prefix matching is particularly important when troubleshooting unexpected traffic paths or designing complex VPC and Transit Gateway route tables.

Question 346. Which network component controls inbound and outbound traffic at the subnet level and is stateless?

  1. Security group
  2. Network ACL
  3. Route table
  4. NAT Gateway

Correct Answer: 2. Network ACL

Explanation:

A network access control list, or network ACL, operates at the subnet level and can control both inbound and outbound traffic using ordered allow and deny rules. Network ACLs are stateless, meaning a response to an allowed inbound request must also be explicitly permitted by the appropriate outbound rule, and vice versa. Security groups operate at the network-interface level and are stateful, so return traffic for an allowed connection is automatically permitted. Route tables determine where traffic is sent but do not act as security filters. NAT Gateways provide address translation for outbound IPv4 connectivity. Therefore, the stateless subnet-level security control is the network ACL.

Question 347. Which characteristic distinguishes a security group from a network ACL?

  1. Security groups are stateful, while network ACLs are stateless
  2. Security groups operate only on routers
  3. Network ACLs are attached directly to individual ENIs
  4. Security groups require explicit return rules

Correct Answer: 1. Security groups are stateful, while network ACLs are stateless

Explanation:

Security groups and network ACLs provide complementary traffic-control mechanisms, but they operate differently. Security groups are associated with network interfaces and are stateful. When an inbound or outbound connection is permitted by a security group, return traffic associated with that connection is automatically allowed. Network ACLs are associated with subnets and are stateless, so administrators must explicitly configure appropriate rules in both directions. Network ACL rules are also evaluated in rule-number order. Understanding these differences is important when troubleshooting connectivity because traffic may be allowed by a security group but blocked by a network ACL, or vice versa. The stateful behavior of security groups is the key distinction.

Question 348. A network administrator wants to simplify security group management across multiple VPCs by defining reusable collections of IP addresses. Which feature should be considered?

  1. Managed prefix list
  2. Route 53 health check
  3. NAT Gateway
  4. Transit Gateway Connect

Correct Answer: 1. Managed prefix list

Explanation:

A managed prefix list is a collection of CIDR blocks that can be referenced in supported networking configurations, including security group rules and route tables. Instead of repeatedly entering the same set of network ranges, administrators can maintain the addresses centrally in a prefix list and reference it from multiple resources. This can simplify operations when IP ranges change because the prefix list can be updated rather than modifying every individual rule. AWS-managed prefix lists can also represent AWS service ranges, while customer-managed prefix lists allow organizations to define their own collections. The feature therefore provides reusable network-address definitions and helps reduce configuration duplication.

Question 349. Which AWS feature can be used to reference a centrally maintained collection of CIDR blocks in multiple VPC route tables?

  1. Managed prefix list
  2. CloudFront distribution
  3. Route 53 Resolver endpoint
  4. WAF web ACL

Correct Answer: 1. Managed prefix list

Explanation:

Managed prefix lists allow organizations to maintain a reusable collection of CIDR blocks that can be referenced by supported VPC networking resources. When the collection changes, administrators can update the prefix list rather than manually changing every route or security rule that references those addresses. This is particularly useful in large environments where the same destinations must be referenced across many VPCs. Prefix lists can help simplify route-table administration and security-group configuration while reducing the possibility of inconsistent address definitions. CloudFront, Resolver endpoints, and WAF web ACLs have different functions and do not provide a centralized reusable CIDR collection for VPC routing.

Question 350. Which VPC configuration is required for a subnet to be considered public?

  1. It must contain a NAT Gateway
  2. Its route table must have a route to an Internet Gateway
  3. It must use only private IP addresses
  4. It must have a Transit Gateway attachment

Correct Answer: 2. Its route table must have a route to an Internet Gateway

Explanation:

A subnet is generally considered public when its route table contains a route that provides access to an Internet Gateway, typically a default route such as 0.0.0.0/0 pointing to the Internet Gateway. Resources in the subnet also need suitable public addressing and security controls if they are expected to communicate directly with the internet. A NAT Gateway is normally deployed to provide outbound internet connectivity for private subnets and does not itself make a subnet public. Transit Gateway connectivity is unrelated to the public-subnet definition. Therefore, the presence of an appropriate route from the subnet toward an Internet Gateway is the key characteristic of a public subnet.

Question 351. An EC2 instance in a private subnet needs outbound IPv4 internet access but should not accept unsolicited inbound internet connections. Which architecture is appropriate?

  1. Private subnet route to a NAT Gateway in a public subnet
  2. Private subnet route directly to an Internet Gateway
  3. Public virtual interface only
  4. VPC peering to an internet VPC

Correct Answer: 1. Private subnet route to a NAT Gateway in a public subnet

Explanation:

A common AWS architecture places EC2 instances without public IPv4 addresses in a private subnet and routes their internet-bound IPv4 traffic to a NAT Gateway located in a public subnet. The public subnet has a route to an Internet Gateway, allowing the NAT Gateway to communicate with internet destinations using its public IPv4 address. The private instances can initiate outbound connections, while unsolicited inbound connections from the internet cannot directly reach those instances through the NAT Gateway. This design separates application resources from direct internet exposure. A private subnet should not normally route directly to an Internet Gateway when the instances lack public addressing and require NAT-based outbound IPv4 access.

Question 352. A company has private subnets in three Availability Zones and wants resilient outbound internet connectivity. Which NAT Gateway design provides Availability Zone-level redundancy?

  1. Deploy one NAT Gateway in a single Availability Zone
  2. Deploy a NAT Gateway in each Availability Zone and route each subnet to its local NAT Gateway
  3. Use one Internet Gateway per subnet
  4. Use VPC peering between the private subnets

Correct Answer: 2. Deploy a NAT Gateway in each Availability Zone and route each subnet to its local NAT Gateway

Explanation:

For resilient private-subnet internet egress, organizations can deploy a NAT Gateway in each Availability Zone and configure the private subnets in each Availability Zone to use their local NAT Gateway. This design reduces dependency on a NAT Gateway located in another Availability Zone and helps maintain connectivity if one Availability Zone experiences an outage. It can also avoid unnecessary cross-AZ data transfer for traffic that otherwise would traverse another Availability Zone to reach the NAT Gateway. A single NAT Gateway creates a centralized dependency, while Internet Gateways and VPC peering do not provide NAT functionality. Therefore, deploying NAT Gateways per Availability Zone is a common resilient architecture.

Question 353. Which AWS service can provide private connectivity between an on-premises network and AWS using a dedicated network connection rather than the public internet?

  1. AWS Direct Connect
  2. Amazon CloudFront
  3. AWS WAF
  4. Amazon Route 53

Correct Answer: 1. AWS Direct Connect

Explanation:

AWS Direct Connect provides dedicated network connectivity between a customer environment and AWS Direct Connect locations. It can provide more consistent network characteristics than internet-based connectivity and is commonly used for hybrid architectures requiring predictable bandwidth and private connectivity. Direct Connect supports different virtual interface types depending on the required destination, including private and public connectivity models and transit connectivity through appropriate configurations. Site-to-Site VPN can be used as an encrypted internet-based alternative or backup path. CloudFront is a content delivery service, WAF provides web application protection, and Route 53 provides DNS functionality. Therefore, Direct Connect is the appropriate service for dedicated hybrid network connectivity.

Question 354. A company wants encrypted connectivity between its on-premises network and AWS but also wants a dedicated Direct Connect path for primary connectivity. Which architecture provides an additional encrypted backup path?

  1. Direct Connect combined with Site-to-Site VPN
  2. CloudFront combined with WAF
  3. VPC peering combined with NAT Gateway
  4. Route 53 combined with S3

Correct Answer: 1. Direct Connect combined with Site-to-Site VPN

Explanation:

A common resilient hybrid architecture uses AWS Direct Connect as the primary connectivity path and AWS Site-to-Site VPN as a backup. Direct Connect provides dedicated connectivity, while the VPN establishes encrypted IPsec tunnels over the internet. BGP can be used where appropriate to exchange routes dynamically and help manage path selection and failover. This design reduces dependence on a single connectivity mechanism and can provide continuity if the Direct Connect path becomes unavailable. CloudFront and WAF address application delivery and web security, while VPC peering and NAT Gateway solve different VPC networking requirements. Therefore, Direct Connect with Site-to-Site VPN is an appropriate redundant hybrid connectivity pattern.

Question 355. Which AWS service can provide private connectivity from a consumer VPC to a service hosted in another VPC without requiring full network-level connectivity between the VPCs?

  1. AWS PrivateLink
  2. Internet Gateway
  3. NAT Gateway
  4. VPC Flow Logs

Correct Answer: 1. AWS PrivateLink

Explanation:

AWS PrivateLink provides private connectivity from consumer VPCs to supported services without requiring full network-level connectivity between the consumer and provider VPCs. The service provider commonly publishes an endpoint service backed by a Network Load Balancer, while consumers create interface VPC endpoints in their own VPCs. This model provides controlled service-level access rather than broad VPC-to-VPC routing. It can also simplify connectivity when VPC CIDR ranges overlap because direct routing between the networks is not required. Internet Gateways and NAT Gateways provide internet connectivity, while VPC Flow Logs provide traffic metadata. PrivateLink is therefore well suited for privately consuming services across VPC boundaries.

Question 356. Which AWS service allows an organization to expose applications from multiple VPCs through a consistent application networking layer with service-to-service connectivity?

  1. Amazon VPC Lattice
  2. AWS Direct Connect
  3. Route 53 Resolver
  4. NAT Gateway

Correct Answer: 1. Amazon VPC Lattice

Explanation:

Amazon VPC Lattice provides an application networking layer designed to connect and manage services across VPCs and accounts. It can help organizations establish consistent service-to-service communication while applying policies and simplifying service discovery. VPC Lattice is focused on application-level connectivity rather than acting as a general-purpose IP routing hub like Transit Gateway. This distinction is important when selecting an architecture: Transit Gateway is generally used for network-level connectivity among VPCs and hybrid attachments, whereas VPC Lattice addresses communication among application services. Direct Connect provides on-premises connectivity, Resolver handles DNS resolution, and NAT Gateway provides IPv4 translation. Therefore, VPC Lattice matches the application networking requirement.

Question 357. A company wants to connect several VPCs in a hub-and-spoke architecture while avoiding a full mesh of VPC peering connections. Which service is appropriate?

  1. AWS Transit Gateway
  2. Amazon S3 gateway endpoint
  3. Route 53 geolocation routing
  4. CloudFront

Correct Answer: 1. AWS Transit Gateway

Explanation:

AWS Transit Gateway provides a centralized hub for connecting multiple VPCs and supported hybrid network attachments. In a hub-and-spoke model, each VPC can connect to the Transit Gateway rather than establishing individual peering relationships with every other VPC. This significantly simplifies the network topology as the number of VPCs increases. Transit Gateway route tables can then be used to control which attachments can communicate and to implement segmentation. VPC peering can provide direct connectivity but becomes operationally complex in large full-mesh environments because each additional VPC can require multiple peer relationships. S3 endpoints and CloudFront solve service-specific problems rather than general VPC interconnection.

Question 358. Which VPC connectivity method is non-transitive, meaning a VPC cannot automatically use one peering connection to reach another VPC?

  1. VPC peering
  2. Transit Gateway
  3. Cloud WAN
  4. Direct Connect gateway

Correct Answer: 1. VPC peering

Explanation:

VPC peering connections are non-transitive. If VPC A is peered with VPC B and VPC B is peered with VPC C, VPC A cannot automatically send traffic through VPC B to reach VPC C using those peering connections. A separate connectivity mechanism is required between A and C. This behavior is one reason Transit Gateway is often considered for larger network architectures, because it provides a centralized routing hub with route-table controls. Cloud WAN also provides centralized global networking capabilities. Understanding VPC peering’s non-transitive nature is important when designing multi-VPC networks and troubleshooting why traffic cannot traverse an intermediate peered VPC.

Question 359. Which AWS service provides global application traffic management using static anycast IP addresses and regional endpoint health checks?

  1. AWS Global Accelerator
  2. Amazon Route 53 Resolver
  3. AWS Network Firewall
  4. Amazon VPC Lattice

Correct Answer: 1. AWS Global Accelerator

Explanation:

AWS Global Accelerator provides static anycast IP addresses that serve as stable entry points for applications. Client traffic enters the AWS global network through an appropriate edge location and is routed toward healthy application endpoints in supported AWS Regions. Global Accelerator uses health checks to determine endpoint availability and can direct traffic away from unhealthy endpoints. This makes it useful for applications requiring globally distributed endpoints, predictable IP addresses, and improved network-path performance. Route 53 Resolver is focused on DNS resolution, Network Firewall performs network traffic inspection, and VPC Lattice provides service networking. Therefore, Global Accelerator is the service matching the combination of static anycast addresses and endpoint health-based traffic management.

Question 360. A company wants users to access an application through a domain name while Route 53 directs them to the AWS Region with the lowest network latency. Which routing policy should be used?

  1. Weighted routing
  2. Latency-based routing
  3. Geolocation routing
  4. Failover routing

Correct Answer: 2. Latency-based routing

Explanation:

Route 53 latency-based routing directs DNS queries to the resource associated with the AWS Region that provides the lowest measured network latency for the requesting user or resolver, among the configured Regions. This can help applications serve users from a geographically appropriate AWS Region based on network performance rather than simply assigning users according to fixed geographic boundaries. Weighted routing distributes traffic according to configured proportions, while geolocation routing uses the geographic location associated with the requester. Failover routing is designed around primary and secondary resources and health checks. Latency-based routing is therefore the appropriate policy when the objective is to direct users toward a Region based on network latency.