Question 300

One public NAT gateway opens connections to a single external IPv4 service until ErrorPortAllocation rises. No subnet routing or instance limits have been hit. What capacity change directly raises concurrent connections to that destination?

  1. Add supported secondary IPv4 addresses to the NAT gateway and associated public Elastic IP capacity as required
  2. Add an S3 gateway endpoint and assume it raises NAT source-port capacity to any internet destination
  3. Increase the private subnet CIDR size but keep the same NAT IPv4 addresses
  4. Scale EC2 instance count while keeping all traffic on the same NAT source address

Explanation

Correct Answer

A:

A NAT gateway supports up to about 55,000 concurrent connections to one destination per IPv4 address. Additional supported NAT IPv4 addresses expand available source-port allocations and reduce ErrorPortAllocation events.

Incorrect Answers

B:

An S3 gateway endpoint bypasses NAT for eligible S3 routes; it does not add source ports for a third-party external server.

C:

A larger subnet allows more workload IPs but does not increase the NAT gateway’s source IP and port combinations.

D:

More clients can intensify port exhaustion. The bottleneck is concurrent mappings per NAT IPv4 source and unique destination.

Question 301

A company wants network engineers to compare annual Direct Connect transport costs against highly variable VPN demand. What should a proper analysis include?

  1. Use IPv6 addresses and an egress-only internet gateway for outbound-only access
  2. Account for port or connection charges, carrier costs, data transfer, and utilization for each connectivity model
  3. Add another circuit path through a geographically distinct Direct Connect location
  4. Use a direct VPC peering connection for the high-volume path

Explanation

Correct Answer

B:

A dedicated circuit's economic fit depends on recurring transport fees and traffic profile, not just whether both paths are technically possible.

Incorrect Answers

A:

Native IPv6 provides globally routable addresses without IPv4 translation, while the egress-only gateway denies new inbound connections; that addresses removing unnecessary IPv4 NAT from suitable outbound workloads, rather than full-cost evaluation of dedicated versus Internet hybrid access.

C:

Multiple ports in one facility share environmental and cross-connect risks, so true site resilience needs location diversity; this changes reducing shared facility failure risk in hybrid networking, not the necessary full-cost evaluation of dedicated versus Internet hybrid access.

D:

In the minimizing unnecessary transit data-processing costs workflow, direct peering avoids routing through a charged transit hop, although it requires explicit peer administration and subnet routing; the current case needs full-cost evaluation of dedicated versus Internet hybrid access.

Question 302

An AWS WAF web ACL is already attached to an application load balancer. Auditors now require a managed ruleset focused on SQL injection request patterns because the application uses a relational database. What should be added to the existing web ACL?

  1. Add only a rate-based AWS WAF rule with an IP aggregation key
  2. Add an AWS WAF geography match rule that permits every country where customers live
  3. Add the AWSManagedRulesSQLiRuleSet managed rule group to the existing WAF web ACL
  4. Enable Network Load Balancer TCP proxy logging in front of the existing ALB

Explanation

Correct Answer

C:

The AWS-managed SQL database rule group contains detection for SQL injection-like request patterns. It supplements the already associated ALB web ACL without changing where that ACL is attached.

Incorrect Answers

A:

A rate rule identifies unusually frequent requests, but ordinary-rate requests can still contain SQL injection payloads. SQLi-specific inspection is needed for the stated attack class.

B:

Geography rules evaluate source location, not SQL syntax patterns in query parameters or request bodies. A permitted location is not evidence of a safe SQL request.

D:

Transport-layer TCP forwarding does not parse HTTP request parameters for SQL injection attempts. The already deployed WAF web ACL is the proper layer for managed SQLi rules.

Question 303

A company wants centrally managed stateless packet filtering on subnet boundaries, including explicit deny rules. Which VPC feature is appropriate?

  1. Associate an AWS WAF web ACL with the Application Load Balancer
  2. Apply network ACL allow and deny rules to the affected subnet
  3. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  4. Review both inbound and outbound allow rules on the affected ENIs
  5. Route egress through an inspection or egress VPC with controlled NAT, firewall, and routing

Explanation

Correct Answer

B:

NACLs evaluate inbound and outbound packets without connection state and support explicit deny actions at the subnet boundary.

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 stateless subnet-wide packet filtering with deny rules.

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 stateless subnet-wide packet filtering with deny rules.

D:

In the bidirectional ENI-level traffic-policy assessment workflow, security groups filter both traffic directions, and overly broad outbound permissions can undermine restrictive inbound application topology; the current case needs stateless subnet-wide packet filtering with deny rules.

E:

This produces inspected outbound connectivity from private workloads: Centralized egress controls outbound paths at routing and firewall layers while workload subnets remain unexposed to an Internet gateway; the stem instead tests stateless subnet-wide packet filtering with deny rules.

Question 304

An EC2 instance should accept inbound HTTPS only from an application ALB and permit return traffic automatically. What control should be configured?

  1. Restrict ingress with a security-group rule referencing the approved calling tier
  2. Restrict the database security group to the application servers' security-group identity or narrow source CIDRs
  3. Permit endpoint ENI ingress on the service port from only the approved workload sources
  4. Use an ALB HTTPS listener with restricted backend security-group access

Explanation

Correct Answer

A:

Stateful security groups can match source security-group identity rather than broadly allowing an entire VPC or unpredictable load-balancer addresses.

Incorrect Answers

B:

ENI-level security groups distinguish callers even when multiple hosts reside in one subnet that shares a NACL; this belongs to resource-specific database ingress separation, while the problem is stateful source-restricted access from load balancer to target.

C:

Interface endpoints use ENIs and security groups; traffic needs network admission at those endpoint interfaces; this changes private endpoint interface security-group authorization, not the necessary stateful source-restricted access from load balancer to target.

D:

In the controlled public TLS entry with nonpublic backend access workflow, the ALB provides public TLS ingress and forwards only permitted traffic to private targets whose security groups restrict caller sources; the current case needs stateful source-restricted access from load balancer to target.

Question 305

The application owner wants to deny an individual suspicious source IP without changing every EC2 security group. Which subnet-scoped mechanism directly supports deny entries?

  1. Add a narrow deny rule in the subnet network ACL ahead of broader allows
  2. Route egress through an inspection or egress VPC with controlled NAT, firewall, and routing
  3. Restrict ingress with a security-group rule referencing the approved calling tier
  4. Restrict the database security group to the application servers' security-group identity or narrow source CIDRs

Explanation

Correct Answer

A:

NACLs offer ordered deny rules at the subnet boundary, unlike security groups, which support allow rules but not explicit denies.

Incorrect Answers

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 blocking a specific source using an explicit network deny.

C:

Stateful security groups can match source security-group identity rather than broadly allowing an entire VPC or unpredictable load-balancer addresses; this changes stateful source-restricted access from load balancer to target, not the necessary blocking a specific source using an explicit network deny.

D:

In the resource-specific database ingress separation workflow, ENI-level security groups distinguish callers even when multiple hosts reside in one subnet that shares a NACL; the current case needs blocking a specific source using an explicit network deny.

Question 306

A private subnet should have no direct Internet route and send approved outbound requests through centralized inspection. Which network design supports this?

  1. Route egress through an inspection or egress VPC with controlled NAT, firewall, and routing
  2. Keep the instance in a private subnet without an Internet-routable ingress path
  3. Use a NAT gateway in a routed egress subnet with proper private subnet routes
  4. Send the IPv6 default route to an egress-only internet gateway

Explanation

Correct Answer

A:

Centralized egress controls outbound paths at routing and firewall layers while workload subnets remain unexposed to an Internet gateway.

Incorrect Answers

B:

Security controls start with routing and address exposure: without direct public ingress, Internet hosts cannot address the private interface directly; this belongs to no direct Internet ingress to private compute, while the problem is inspected outbound connectivity from private workloads.

C:

NAT gateway enables outbound-initiated IPv4 communication from private addresses without exposing those addresses as inbound endpoints; this changes egress without public IP assignment on workloads, not the necessary inspected outbound connectivity from private workloads.

D:

In the stateful-looking outbound-only IPv6 gateway control workflow, egress-only internet gateways allow IPv6 outbound connections and their replies without offering public initiation into the VPC; the current case needs inspected outbound connectivity from private workloads.

Question 307

Security policy requires a stateful packet firewall with domain filtering and IPS-style rules for VPC traffic. Which managed AWS service fits?

  1. Apply network ACL allow and deny rules to the affected subnet
  2. Manage eligible protections with AWS Firewall Manager under AWS Organizations
  3. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  4. Enable appliance mode on the transit attachment used by the centralized inspection VPC

Explanation

Correct Answer

C:

Network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints.

Incorrect Answers

A:

NACLs evaluate inbound and outbound packets without connection state and support explicit deny actions at the subnet boundary; that addresses stateless subnet-wide packet filtering with deny rules, rather than managed stateful deep inspection of VPC flows.

B:

Firewall Manager coordinates supported WAF, Shield, network firewall, and security-group policies organization-wide; this belongs to centralized multi-account network security policy rollout, while the problem is managed stateful deep inspection of VPC flows.

D:

In the stateful firewall flow symmetry across AZs workflow, appliance mode preserves flow symmetry through a stateful inspection VPC attachment so connection tracking can evaluate both directions; the current case needs managed stateful deep inspection of VPC flows.

Question 308

A Gateway Load Balancer already distributes traffic to firewall appliances, but the appliances cannot receive its encapsulated packets because an appliance subnet ACL blocks the transport port. Which port and protocol should be permitted?

  1. Open TCP port 6081 but leave UDP 6081 blocked to the firewall targets
  2. Allow the Gateway Load Balancer GENEVE traffic on UDP port 6081 to the registered appliances
  3. Configure TGW route-table associations only and assume this opens the appliance subnet ACL
  4. Allow IPsec UDP 4500 from the GWLB to firewall appliances

Explanation

Correct Answer

B:

Gateway Load Balancer delivers traffic to firewall targets encapsulated in GENEVE over UDP port 6081. The appliance network ACL must permit that transport in addition to relevant health checks.

Incorrect Answers

A:

GENEVE carried by Gateway Load Balancer uses UDP 6081. A TCP rule for the same numeric port does not permit its packets.

C:

Transit routing controls next hops, not subnet ACL packet admission for encapsulated GENEVE traffic. The UDP 6081 packets still encounter the subnet NACL in the data plane.

D:

UDP 4500 is used for IPsec NAT traversal, not GWLB GENEVE encapsulation on UDP 6081. Permit the documented GENEVE UDP encapsulation instead of the unrelated IPsec NAT-T port.

Question 309

A company uses several AWS accounts and must enforce consistent WAF policies on ALBs created by business units. Which service provides organization-wide policy management?

  1. Apply Firewall Manager security-group policies or organization-wide compliance rules
  2. Create an AWS Firewall Manager policy for the relevant organization accounts and ALB resources
  3. Evaluate AWS Shield protection, including Shield Advanced for expanded capabilities where justified
  4. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  5. Use an ALB HTTPS listener with restricted backend security-group access

Explanation

Correct Answer

B:

Firewall Manager centrally applies and audits supported protections across eligible accounts rather than relying on each workload team.

Incorrect Answers

A:

Central policy scans and enforces supported security-group posture at scale rather than relying on individual account owners to self-audit; that addresses centrally governed exposure of sensitive database ports, rather than organization-wide application firewall policy enforcement.

C:

Shield provides DDoS-focused protections for supported AWS resources, distinct from custom HTTP request conditions in WAF; this changes network and transport DDoS defense for public endpoints, not the necessary organization-wide application firewall policy enforcement.

D:

In the managed stateful deep inspection of VPC flows workflow, network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; the current case needs organization-wide application firewall policy enforcement.

E:

This produces controlled public TLS entry with nonpublic backend access: The ALB provides public TLS ingress and forwards only permitted traffic to private targets whose security groups restrict caller sources; the stem instead tests organization-wide application firewall policy enforcement.

Question 310

An Internet-facing API suffers a volumetric DDoS attack that exhausts upstream resources. Which AWS service supplies managed DDoS protection at the edge?

  1. Evaluate AWS Shield protection, including Shield Advanced for expanded capabilities where justified
  2. Use an ALB HTTPS listener with restricted backend security-group access
  3. Configure supported interface VPC endpoint policies together with IAM and resource policies
  4. Manage eligible protections with AWS Firewall Manager under AWS Organizations

Explanation

Correct Answer

A:

Shield provides DDoS-focused protections for supported AWS resources, distinct from custom HTTP request conditions in WAF.

Incorrect Answers

B:

The ALB provides public TLS ingress and forwards only permitted traffic to private targets whose security groups restrict caller sources; this belongs to controlled public TLS entry with nonpublic backend access, while the problem is network and transport DDoS defense for public endpoints.

C:

Endpoint policy permissions are an additional authorization boundary for traffic using the endpoint, not a substitute for identity permissions; this changes authorization filtering on private AWS service endpoints, not the necessary network and transport DDoS defense for public endpoints.

D:

In the centralized multi-account network security policy rollout workflow, firewall Manager coordinates supported WAF, Shield, network firewall, and security-group policies organization-wide; the current case needs network and transport DDoS defense for public endpoints.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests