Amazon AWS Certified Advanced Networking – Specialty ANS-C01 Practice Test Questions and Exam Dumps Part 12 Q221-240

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

 

Question 221. Which BGP attribute is commonly used to influence outbound path selection within an autonomous system?

  1. MED
  2. AS_PATH
  3. Local preference
  4. Origin

Correct Answer: 3. Local preference

Explanation:

BGP local preference is used within an autonomous system to influence which available path should be preferred for outbound traffic. A higher local preference is generally preferred, allowing administrators to select a preferred exit point when multiple connections are available. In an AWS hybrid architecture, this can be useful when an organization has redundant Direct Connect or VPN paths and wants to establish a preferred route for traffic leaving its network. Local preference is different from AS_PATH prepending, which is commonly used to influence inbound traffic from neighboring networks. Understanding the direction in which BGP attributes influence routing decisions is important when designing predictable hybrid connectivity.

Question 222. A company advertises the same network prefix through two Direct Connect connections and wants one connection to be less preferred for inbound traffic. Which technique can be used?

  1. AS_PATH prepending
  2. Increasing local preference
  3. Adding a security group rule
  4. Changing the DNS TTL

Correct Answer: 1. AS_PATH prepending

Explanation:

AS_PATH prepending can be used to influence inbound BGP path selection by making one advertised route appear longer. An organization can add additional instances of its autonomous system number to the AS_PATH for the route advertised over the less-preferred connection. External BGP speakers generally consider a shorter AS_PATH more attractive when comparing otherwise suitable routes, so the prepended path may become less preferred. This technique is useful in multihomed environments where an organization wants to influence which Direct Connect path receives inbound traffic. It is important to remember that BGP path selection can involve multiple attributes and policies, so AS_PATH prepending influences path selection rather than guaranteeing a particular traffic flow.

Question 223. Which Direct Connect feature allows multiple physical connections to be combined into a logical link for increased bandwidth and improved resiliency?

  1. Direct Connect gateway
  2. Link Aggregation Group (LAG)
  3. Transit VIF
  4. Public VIF

Correct Answer: 2. Link Aggregation Group (LAG)

Explanation:

A Direct Connect Link Aggregation Group, or LAG, allows multiple eligible Direct Connect connections to be treated as a logical group using standard link aggregation concepts. This can simplify management and allow multiple connections to contribute to the overall connectivity architecture. LAGs can be useful when an organization needs greater aggregate capacity or wants to organize multiple connections as part of a resilient Direct Connect deployment. However, a LAG does not automatically eliminate every failure domain; organizations should still consider physical location, devices, facilities, and independent connectivity paths when designing high availability. Capacity and configuration requirements must also be considered when determining whether a LAG is appropriate.

Question 224. Which Direct Connect virtual interface is intended for connectivity to AWS services with publicly advertised IP addresses?

  1. Private VIF
  2. Transit VIF
  3. Public VIF
  4. VPN VIF

Correct Answer: 3. Public VIF

Explanation:

A public virtual interface allows an on-premises network connected through Direct Connect to access AWS public services using publicly advertised AWS IP prefixes. The traffic can use the Direct Connect connection rather than traversing the public internet. This is different from a private VIF, which provides private connectivity to VPC resources, and a transit VIF, which supports connectivity through a Direct Connect gateway to supported Transit Gateway environments. The choice of VIF should match the intended destination and network architecture. Public VIF connectivity can be useful when organizations need predictable private connectivity to AWS public service endpoints while maintaining centralized control over their hybrid network infrastructure.

Question 225. Which AWS feature can help simplify route management when the same set of CIDR prefixes must be referenced by multiple VPC route tables or network security configurations?

  1. Managed prefix list
  2. CloudFront cache policy
  3. Route 53 health check
  4. Internet Gateway

Correct Answer: 1. Managed prefix list

Explanation:

A managed prefix list allows a collection of CIDR blocks to be represented as a reusable network object. Instead of repeatedly entering the same set of prefixes in different configurations, administrators can reference the prefix list where supported. This can simplify network administration and reduce configuration errors when multiple resources need to use the same destinations. Prefix lists can be particularly helpful in environments with shared services, centralized network ranges, or frequently updated address collections. AWS-managed prefix lists can represent AWS service networks, while customer-managed prefix lists can be created for organizational address ranges. They provide a convenient abstraction for maintaining groups of related network prefixes.

Question 226. Which AWS networking service can provide private access from a VPC to an AWS service without requiring the workload to have a public IP address?

  1. VPC endpoint
  2. Internet Gateway only
  3. Public VIF only
  4. Route 53 public hosted zone

Correct Answer: 1. VPC endpoint

Explanation:

VPC endpoints allow workloads in a VPC to access supported AWS services or endpoint services without requiring public internet connectivity. Depending on the service, an organization can use a gateway endpoint or an interface endpoint. Gateway endpoints are commonly used for Amazon S3 and DynamoDB, while interface endpoints use elastic network interfaces and private IP addresses for supported services. This architecture is especially useful for private subnets where administrators want to minimize or eliminate dependencies on NAT Gateways and Internet Gateways. Endpoint policies and security controls can further restrict access. VPC endpoints therefore provide an important building block for private AWS service connectivity.

Question 227. Which AWS service allows a network administrator to analyze the configured network path between two supported resources without manually testing every route and security rule?

  1. AWS Network Manager
  2. VPC Reachability Analyzer
  3. Amazon CloudFront
  4. AWS Shield

Correct Answer: 2. VPC Reachability Analyzer

Explanation:

VPC Reachability Analyzer analyzes network configurations to determine whether a path exists between supported source and destination resources. It evaluates relevant networking components, including route tables, security groups, network ACLs, and other supported configuration elements. This can help administrators identify where a connectivity path is blocked without having to manually inspect every component. For example, if an EC2 instance cannot reach another resource, Reachability Analyzer can identify a routing or security configuration that prevents the path. It is a configuration-analysis tool rather than a packet capture service. This makes it particularly useful for systematic troubleshooting of complex VPC connectivity problems.

Question 228. Which feature provides metadata about network flows but does not capture the full packet payload?

  1. Traffic Mirroring
  2. VPC Flow Logs
  3. Packet Capture
  4. Gateway Load Balancer

Correct Answer: 2. VPC Flow Logs

Explanation:

VPC Flow Logs provide metadata about network traffic rather than complete packet contents. Depending on the configured format, records can contain information such as source and destination addresses, ports, protocols, packet counts, byte counts, timestamps, and whether traffic was accepted or rejected. This makes Flow Logs useful for identifying communication patterns, investigating rejected traffic, and supporting security analysis. Traffic Mirroring serves a different purpose because it can copy packet traffic for deeper inspection by supported monitoring or security appliances. Flow Logs are therefore generally more lightweight for broad network visibility, while packet-level analysis requires a more specialized mechanism.

Question 229. An organization needs to inspect traffic from multiple VPCs using third-party firewall appliances. Which combination can provide scalable appliance insertion into the traffic path?

  1. Gateway Load Balancer and Gateway Load Balancer endpoints
  2. Route 53 and CloudFront
  3. NAT Gateway and public VIF
  4. S3 gateway endpoint and Internet Gateway

Correct Answer: 1. Gateway Load Balancer and Gateway Load Balancer endpoints

Explanation:

Gateway Load Balancer (GWLB) is designed to make it easier to deploy and scale third-party virtual network appliances such as firewalls and intrusion prevention systems. Gateway Load Balancer endpoints allow traffic from other VPCs to reach the appliance service privately. This architecture can be combined with routing controls so that traffic is directed through the inspection appliances before reaching its final destination. GWLB distributes traffic across healthy appliance instances and helps simplify appliance fleet management. In larger environments, organizations can combine GWLB with Transit Gateway to create centralized inspection architectures. Correct route-table configuration remains essential because the desired inspection path must be explicitly established.

Question 230. Which AWS service is designed to provide centralized private connectivity to a service provider’s application without exposing the provider’s VPC network to the consumer?

  1. AWS PrivateLink
  2. VPC peering
  3. Internet Gateway
  4. NAT Gateway

Correct Answer: 1. AWS PrivateLink

Explanation:

AWS PrivateLink provides private connectivity between a consumer VPC and a published endpoint service. The consumer creates an interface VPC endpoint, while the service provider typically exposes the service through a Network Load Balancer. The consumer does not need direct network-level connectivity to the provider’s VPC, which helps preserve network isolation and simplifies cross-account service consumption. This is particularly useful for SaaS providers and organizations offering shared internal services to multiple AWS accounts. Unlike VPC peering, PrivateLink does not create broad bidirectional network connectivity between the VPCs. Instead, it provides controlled access to the specific service that the provider has published.

Question 231. Which VPC routing feature can direct traffic destined for a specific CIDR block to a Transit Gateway attachment?

  1. Route table entry
  2. Security group
  3. Network ACL
  4. DHCP option set

Correct Answer: 1. Route table entry

Explanation:

A VPC route table determines where traffic is directed based on destination IP prefixes. An administrator can create a route with a destination CIDR block and specify a Transit Gateway as the target, provided the appropriate Transit Gateway attachment exists. When traffic matches the route, the VPC forwards it toward the Transit Gateway, where additional Transit Gateway routing determines the next destination. Security groups and network ACLs control traffic permissions but do not determine the primary next-hop destination. DHCP option sets provide configuration information such as DNS settings and do not act as packet-forwarding mechanisms. Correct route-table configuration is therefore essential when connecting VPCs to centralized network architectures.

Question 232. What happens when a VPC route table contains both a broad route and a more specific route that match the same destination traffic?

  1. The broad route is always selected
  2. The route with the longest matching prefix is selected
  3. Both routes are always used simultaneously
  4. The route with the oldest creation time is selected

Correct Answer: 2. The route with the longest matching prefix is selected

Explanation:

When multiple routes match a destination, AWS uses the most specific matching route, commonly described as longest prefix match. For example, a route for a broad network such as a large CIDR can coexist with a route covering a smaller portion of that network. Traffic destined for the smaller, more specific range follows the specific route, while other traffic can continue to use the broader route. This behavior allows administrators to create routing exceptions without replacing an entire routing policy. Understanding longest prefix matching is particularly important when troubleshooting VPCs containing routes to Transit Gateway, VPC peering, VPN, NAT Gateway, and other targets.

Question 233. Which AWS service provides private, low-latency connectivity between applications and supported AWS services using the AWS network rather than the public internet?

  1. AWS PrivateLink
  2. Amazon Route 53 public DNS
  3. Internet Gateway
  4. Public VIF

Correct Answer: 1. AWS PrivateLink

Explanation:

AWS PrivateLink provides private connectivity between VPC resources and supported services through private IP addresses. Consumer applications can access an endpoint service without requiring public internet routing or direct VPC-to-VPC connectivity. The architecture is especially useful when a service provider wants to expose a specific application or service to other accounts while maintaining isolation from the rest of the provider’s network. Interface endpoints create network interfaces within the consumer VPC, and endpoint policies and service permissions can provide additional control. PrivateLink is therefore a service-oriented connectivity mechanism rather than a general-purpose routing solution such as VPC peering or Transit Gateway.

Question 234. Which Route 53 routing policy chooses a resource based primarily on the geographic location of the DNS requester?

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

Correct Answer: 3. Geolocation routing

Explanation:

Route 53 geolocation routing allows DNS responses to be configured according to the geographic location associated with the DNS query. Administrators can define routing rules based on locations such as continents, countries, or certain states in the United States. This can be useful when an organization needs to provide different content or endpoints to users in different geographic areas. Geolocation routing differs from latency-based routing, which attempts to direct users to resources based on measured network latency. Weighted routing distributes responses according to configured proportions, while failover routing is designed around primary and secondary resources and health evaluation.

Question 235. Which Route 53 routing policy is designed to direct users to the AWS resource that provides the lowest network latency from the user’s location?

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

Correct Answer: 2. Latency-based routing

Explanation:

Latency-based routing directs DNS queries to the resource associated with the Region that Route 53 determines can provide the lowest latency for the requesting user. This can help applications improve responsiveness for globally distributed users when equivalent resources are deployed across multiple AWS Regions or supported locations. Route 53 evaluates latency measurements and returns the appropriate resource according to its routing configuration. This differs from geolocation routing, which uses geographic location rather than measured network latency. Latency-based routing can be particularly useful for globally distributed applications where reducing network distance and improving response time are important considerations.

Question 236. Which CloudFront configuration determines how CloudFront handles requests differently based on URL path patterns?

  1. Cache behavior
  2. Security group
  3. Route table
  4. Transit Gateway route table

Correct Answer: 1. Cache behavior

Explanation:

CloudFront cache behaviors allow administrators to define how requests matching particular path patterns should be processed. Different cache behaviors can specify settings such as the allowed HTTP methods, cache policy, origin request policy, viewer protocol behavior, and associated origin. For example, requests matching one path can be directed to one origin while requests matching another path are handled differently. This allows a single CloudFront distribution to support multiple application components with distinct caching and forwarding requirements. Cache behaviors operate within the CloudFront distribution and are separate from VPC route tables, which control network-layer routing within a VPC.

Question 237. Which CloudFront security feature is recommended for controlling access from CloudFront to an Amazon S3 origin without requiring the S3 bucket to be publicly accessible?

  1. Origin Access Control
  2. Public VIF
  3. NAT Gateway
  4. Transit Gateway Connect

Correct Answer: 1. Origin Access Control

Explanation:

CloudFront Origin Access Control (OAC) helps secure an Amazon S3 origin by allowing CloudFront to access the bucket while the bucket itself can remain private. The S3 bucket policy can be configured to permit the CloudFront distribution to retrieve objects, preventing direct public access to those objects when the overall configuration is properly secured. OAC is the modern mechanism for controlling CloudFront access to S3 origins and supports important security features such as signed requests. This approach reduces the need to expose the S3 bucket publicly simply to serve content through CloudFront. Proper bucket policies and CloudFront configuration are still required for the complete security design.

Question 238. Which AWS service can protect applications against distributed denial-of-service attacks at the AWS network edge?

  1. AWS Shield
  2. AWS Direct Connect
  3. AWS Transit Gateway
  4. Amazon Route 53 Resolver

Correct Answer: 1. AWS Shield

Explanation:

AWS Shield is a managed DDoS protection service designed to help protect AWS applications and resources from distributed denial-of-service attacks. AWS Shield Standard provides automatic protection for many AWS services, while Shield Advanced provides additional capabilities for organizations with more demanding DDoS protection and response requirements. Shield operates differently from AWS WAF. WAF focuses on filtering web requests according to configured application-layer rules, while Shield provides DDoS protection at the network and transport layers and integrates with supported AWS services. Organizations can use Shield and WAF together as part of a layered security architecture for internet-facing applications.

Question 239. Which network connectivity option provides an encrypted tunnel between a customer gateway device and AWS using IPsec?

  1. AWS Site-to-Site VPN
  2. AWS Direct Connect
  3. VPC peering
  4. AWS PrivateLink

Correct Answer: 1. AWS Site-to-Site VPN

Explanation:

AWS Site-to-Site VPN establishes encrypted IPsec tunnels between a customer gateway device and AWS. It is commonly used to connect on-premises networks with VPCs or Transit Gateway environments over an underlying IP network. The encryption provided by IPsec protects the traffic as it crosses the network between the customer environment and AWS. Site-to-Site VPN can support static or dynamic routing depending on the configuration, and multiple tunnels provide additional resilience. Direct Connect provides dedicated connectivity but is not itself an IPsec VPN service. PrivateLink and VPC peering solve different connectivity problems and do not create an equivalent encrypted site-to-site tunnel.

Question 240. Which architecture is generally used to provide resilient hybrid connectivity by combining a primary Direct Connect connection with a VPN backup path?

  1. Direct Connect with Site-to-Site VPN backup
  2. CloudFront with Route 53 weighted routing
  3. VPC peering with NAT Gateway
  4. Gateway endpoint with Internet Gateway

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

Explanation:

Combining Direct Connect with Site-to-Site VPN can provide a resilient hybrid connectivity architecture. Direct Connect can serve as the preferred path because it provides dedicated connectivity, while an IPsec VPN connection can provide a backup path if the primary connection becomes unavailable. Routing protocols and appropriate route preferences can be configured to establish the intended primary and secondary behavior. For higher resilience, organizations may also deploy redundant Direct Connect connections and multiple VPN tunnels across appropriate failure domains. The objective is to avoid a single connectivity failure disconnecting the hybrid environment. Careful routing, monitoring, and failover testing are important to verify that the backup path behaves as expected.