Question 320

A company needs explicit packet deny rules for a known bad IPv4 range across multiple subnets. Which enforcement behavior matters?

  1. Review both inbound and outbound allow rules on the affected ENIs
  2. Apply Route 53 Resolver DNS Firewall domain rules to relevant VPCs
  3. Configure an AWS WAF geo-match rule on the supported web ACL
  4. Use stateless NACL deny rules in the applicable subnet associations

Explanation

Correct Answer

D:

The ordered NACL rule set evaluates every matching packet direction and can block identified sources without instance-by-instance rule changes.

Incorrect Answers

A:

Security groups filter both traffic directions, and overly broad outbound permissions can undermine restrictive inbound application topology; that addresses bidirectional ENI-level traffic-policy assessment, rather than explicit subnet-level denial of hostile CIDR traffic.

B:

DNS Firewall evaluates resolver queries against domain rule groups and can block specified malicious names before resolution; this belongs to domain-based protection of VPC DNS resolution, while the problem is explicit subnet-level denial of hostile CIDR traffic.

C:

WAF inspects inferred geographic source attributes on HTTP requests and can block requests that match the location policy; this changes geography-based web request enforcement, not the necessary explicit subnet-level denial of hostile CIDR traffic.

Question 321

Security reviewers require return traffic to pass through the same inspection appliance AZ as the initiating packet. What TGW control supports that?

  1. Restrict ingress with a security-group rule referencing the approved calling tier
  2. Route egress through an inspection or egress VPC with controlled NAT, firewall, and routing
  3. Keep stateful flow affinity and assess session impact during appliance scaling and replacement
  4. Enable appliance mode on the transit attachment used by the centralized inspection VPC
  5. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path

Explanation

Correct Answer

D:

Appliance mode preserves flow symmetry through a stateful inspection VPC attachment so connection tracking can evaluate both directions.

Incorrect Answers

A:

Stateful security groups can match source security-group identity rather than broadly allowing an entire VPC or unpredictable load-balancer addresses; that addresses stateful source-restricted access from load balancer to target, rather than stateful firewall flow symmetry across AZs.

B:

Centralized egress controls outbound paths at routing and firewall layers while workload subnets remain unexposed to an Internet gateway; this belongs to inspected outbound connectivity from private workloads, while the problem is stateful firewall flow symmetry across AZs.

C:

Stateful inspection depends on flow context; indiscriminate mid-session target changes can reset sessions even when the replacement is healthy; this changes session-state integrity under security appliance scaling, not the necessary stateful firewall flow symmetry across AZs.

E:

This produces managed stateful deep inspection of VPC flows: Network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; the stem instead tests stateful firewall flow symmetry across AZs.

Question 322

An organization wants to block DNS lookups to known command-and-control domains from VPC resolvers. Which service feature is designed for this?

  1. Create an AWS Firewall Manager policy for the relevant organization accounts and ALB resources
  2. Use stateless NACL deny rules in the applicable subnet associations
  3. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  4. Apply Route 53 Resolver DNS Firewall domain rules to relevant VPCs

Explanation

Correct Answer

D:

DNS Firewall evaluates resolver queries against domain rule groups and can block specified malicious names before resolution.

Incorrect Answers

A:

Firewall Manager centrally applies and audits supported protections across eligible accounts rather than relying on each workload team; that addresses organization-wide application firewall policy enforcement, rather than domain-based protection of VPC DNS resolution.

B:

The ordered NACL rule set evaluates every matching packet direction and can block identified sources without instance-by-instance rule changes; this belongs to explicit subnet-level denial of hostile CIDR traffic, while the problem is domain-based protection of VPC DNS resolution.

C:

Network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; this changes managed stateful deep inspection of VPC flows, not the necessary domain-based protection of VPC DNS resolution.

Question 323

A public application should deny requests from sanctioned geographies at the HTTP layer without modifying code. What should be used?

  1. Associate an AWS WAF web ACL with the CloudFront distribution at the supported global scope
  2. Configure an AWS WAF rate-based rule with the appropriate aggregation key
  3. Configure an AWS WAF geo-match rule on the supported web ACL
  4. Associate an AWS WAF web ACL with the Application Load Balancer

Explanation

Correct Answer

C:

WAF inspects inferred geographic source attributes on HTTP requests and can block requests that match the location policy.

Incorrect Answers

A:

CloudFront WAF integration evaluates viewer HTTP requests at the edge, before they reach the distribution's origin; that addresses edge-level web filtering for a CDN, rather than geography-based web request enforcement.

B:

WAF rate-based rules count recent matching web requests and can block or challenge clients that exceed configured thresholds; this belongs to per-source HTTP request-rate enforcement, while the problem is geography-based web request enforcement.

D:

In the application-layer web request filtering workflow, WAF evaluates application-layer request properties and managed or custom rules to block malicious HTTP patterns before forwarding; the current case needs geography-based web request enforcement.

Question 324

An administrator needs to distinguish ingress rules from egress rules in security groups during an audit. What should be enforced?

  1. Route outbound web requests through an authenticated filtering proxy with enforced egress paths
  2. Permit endpoint ENI ingress on the service port from only the approved workload sources
  3. Use stateless NACL deny rules in the applicable subnet associations
  4. Review both inbound and outbound allow rules on the affected ENIs

Explanation

Correct Answer

D:

Security groups filter both traffic directions, and overly broad outbound permissions can undermine restrictive inbound application topology.

Incorrect Answers

A:

An application-aware proxy can evaluate HTTP host or URL context beyond simple IP and port access controls; that addresses higher-layer outbound web destination governance, rather than bidirectional ENI-level traffic-policy assessment.

B:

Interface endpoints use ENIs and security groups; traffic needs network admission at those endpoint interfaces; this belongs to private endpoint interface security-group authorization, while the problem is bidirectional ENI-level traffic-policy assessment.

C:

The ordered NACL rule set evaluates every matching packet direction and can block identified sources without instance-by-instance rule changes; this changes explicit subnet-level denial of hostile CIDR traffic, not the necessary bidirectional ENI-level traffic-policy assessment.

Question 325

A threat model demands that inspection fail closed if a central firewall target becomes unavailable. What architecture concern must be addressed?

  1. Validate failure routing behavior of the firewall appliance and inspection path through controlled failover tests
  2. Enable appliance mode on the transit attachment used by the centralized inspection VPC
  3. Restrict spoke-to-spoke route propagation and force eligible destinations via the inspection attachment
  4. Keep stateful flow affinity and assess session impact during appliance scaling and replacement

Explanation

Correct Answer

A:

Whether traffic bypasses, drops, or reroutes on failure depends on the chosen firewall and routing architecture, not simply on a healthy policy configuration.

Incorrect Answers

B:

Appliance mode preserves flow symmetry through a stateful inspection VPC attachment so connection tracking can evaluate both directions; this belongs to stateful firewall flow symmetry across AZs, while the problem is demonstrated fail-closed forwarding behavior.

C:

Routing must make the inspection hop the viable path; merely deploying firewalls does not ensure packets traverse them; this changes mandatory central inspection via transit routing, not the necessary demonstrated fail-closed forwarding behavior.

D:

In the session-state integrity under security appliance scaling workflow, stateful inspection depends on flow context; indiscriminate mid-session target changes can reset sessions even when the replacement is healthy; the current case needs demonstrated fail-closed forwarding behavior.

Question 326

An IPv6-only application in a private subnet must call a public IPv4-only HTTPS API without giving the instances IPv4 addresses. Which AWS translation design enables the request?

  1. Route the synthesized IPv4-only destination through an IPv6 egress-only internet gateway
  2. Publish a public AAAA address for the IPv4-only service without a translator
  3. Use an ordinary IPv4 NAT route without DNS64 and expect IPv6-only applications to send IPv4 packets
  4. Enable subnet DNS64 and route the 64:ff9b::/96 NAT64 prefix to an appropriate NAT gateway

Explanation

Correct Answer

D:

Route 53 Resolver DNS64 synthesizes an IPv6 destination for IPv4-only names. The NAT gateway translates packets addressed to 64:ff9b::/96 into IPv4 for external connectivity; IPv6 egress-only IGW alone cannot reach IPv4 destinations.

Incorrect Answers

A:

An egress-only internet gateway forwards IPv6 Internet traffic but does not perform IPv6-to-IPv4 protocol translation.

B:

A DNS response alone cannot make a service with only an IPv4 listener accept native IPv6 packets. A dual-stack ALB or native IPv6-serving endpoint is still required for IPv6 client connectivity.

C:

IPv6-only clients cannot originate IPv4 connections directly. DNS64 and a NAT64 route supply the IPv6-to-IPv4 bridge.

Question 327

An internet-facing dualstack application’s security group permits TCP 443 from an authorized IPv4 range, but approved IPv6 clients time out. How must ingress be updated?

  1. Add a TCP 443 ingress security-group rule for the approved IPv6 client CIDR
  2. Expand only the IPv4 security-group source to 0.0.0.0/0
  3. Change only the IPv6 subnet route while retaining the IPv4-only ingress security group
  4. Add an IPv6 egress security-group rule but no IPv6 ingress permission
  5. Create a NAT gateway for IPv4 clients to translate the failing IPv6 inbound connections

Explanation

Correct Answer

A:

Security group IPv4 and IPv6 CIDR rules are separate. An IPv4-only source rule does not authorize IPv6 packets; allow the approved IPv6 range explicitly without broadly opening unrelated ports.

Incorrect Answers

B:

An IPv4 CIDR authorizes IPv4 packets only. Expanding it cannot permit IPv6 clients and would expose more IPv4 sources.

C:

Routing reachability cannot override a security group that has no matching IPv6 HTTPS allow rule. The instance or load-balancer security group must explicitly permit the IPv6 source range and destination port.

D:

Stateful return traffic is automatically allowed for admitted connections, but an inbound connection still requires an ingress rule.

E:

A NAT gateway is not a public IPv6 inbound authorization mechanism for a dualstack application. IPv6 inbound requires supported IPv6 addressing, routes and security controls rather than IPv4 NAT translation.

Question 328

An intrusion prevention appliance is scaling across multiple AZs; a single fixed EC2 firewall cannot meet availability requirements. Which managed appliance insertion strategy helps?

  1. Manage eligible protections with AWS Firewall Manager under AWS Organizations
  2. Keep stateful flow affinity and assess session impact during appliance scaling and replacement
  3. Use a multi-AZ Gateway Load Balancer and compatible endpoint routing to appliance targets
  4. Front the virtual appliances with Gateway Load Balancer and expose GWLB endpoints

Explanation

Correct Answer

C:

Gateway Load Balancer routes flows to available firewall appliance instances through transparent endpoints, improving scaling and failure handling.

Incorrect Answers

A:

Firewall Manager coordinates supported WAF, Shield, network firewall, and security-group policies organization-wide; that addresses centralized multi-account network security policy rollout, rather than highly available virtual firewall insertion.

B:

Stateful inspection depends on flow context; indiscriminate mid-session target changes can reset sessions even when the replacement is healthy; this belongs to session-state integrity under security appliance scaling, while the problem is highly available virtual firewall insertion.

D:

In the scalable inline third-party firewall appliances workflow, gateway Load Balancer transparently distributes encapsulated flows to virtual appliances, while endpoints provide route-table insertion points; the current case needs highly available virtual firewall insertion.

Question 329

A team wants to filter egress to approved HTTPS domains using a controlled application proxy, not just ports and destination CIDRs. What solution element is needed?

  1. Associate an AWS WAF web ACL with the Application Load Balancer
  2. Send the IPv6 default route to an egress-only internet gateway
  3. Route outbound web requests through an authenticated filtering proxy with enforced egress paths
  4. Configure an AWS WAF geo-match rule on the supported web ACL

Explanation

Correct Answer

C:

An application-aware proxy can evaluate HTTP host or URL context beyond simple IP and port access controls. A proxy can apply user identity, hostname and URL policies while routing forces workloads to use that controlled path.

Incorrect Answers

A:

WAF evaluates application-layer request properties and managed or custom rules to block malicious HTTP patterns before forwarding; that addresses application-layer web request filtering, rather than higher-layer outbound web destination governance.

B:

Egress-only internet gateways allow IPv6 outbound connections and their replies without offering public initiation into the VPC; this belongs to stateful-looking outbound-only IPv6 gateway control, while the problem is higher-layer outbound web destination governance.

D:

In the geography-based web request enforcement workflow, WAF inspects inferred geographic source attributes on HTTP requests and can block requests that match the location policy; the current case needs higher-layer outbound web destination governance.

Question 330

A company uses a dedicated inspection VPC, but spokes can bypass it by propagating direct routes to one another. Which architecture change fixes the bypass?

  1. Rework route tables to carry all protected paths through the firewall endpoints
  2. Validate failure routing behavior of the firewall appliance and inspection path through controlled failover tests
  3. Restrict spoke-to-spoke route propagation and force eligible destinations via the inspection attachment
  4. Route egress through an inspection or egress VPC with controlled NAT, firewall, and routing

Explanation

Correct Answer

C:

Routing must make the inspection hop the viable path; merely deploying firewalls does not ensure packets traverse them.

Incorrect Answers

A:

Firewall rules protect only traffic traversing their enforcement points; route bypass makes those policies ineffective; that addresses enforced packet path through inspection resources, rather than mandatory central inspection via transit routing.

B:

Whether traffic bypasses, drops, or reroutes on failure depends on the chosen firewall and routing architecture, not simply on a healthy policy configuration; this belongs to demonstrated fail-closed forwarding behavior, while the problem is mandatory central inspection via transit routing.

D:

In the inspected outbound connectivity from private workloads workflow, centralized egress controls outbound paths at routing and firewall layers while workload subnets remain unexposed to an Internet gateway; the current case needs mandatory central inspection via transit routing.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests