Question 490

A TCP service behind Network Load Balancer requires the original connecting client's address and port in a protocol header consumed by an application that cannot rely on source-IP preservation. Which feature should be enabled on the target group?

  1. Enable X-Forwarded-For headers on a Network Load Balancer TCP listener
  2. Create a Route 53 TXT record containing every active client's IP address
  3. Enable Proxy Protocol v2 on the Network Load Balancer target group and update the backend to parse it
  4. Attach a VPC gateway endpoint policy that permits the original client CIDR

Explanation

Correct Answer

C:

Proxy Protocol v2 adds connection metadata at the start of a proxied stream, including client addressing information. The application must explicitly understand this binary header; enabling it without backend support can break request parsing.

Incorrect Answers

A:

X-Forwarded-For is an HTTP header normally added by application-layer proxies, not a reliable NLB TCP listener mechanism for arbitrary byte streams. The backend expects Proxy Protocol metadata.

B:

DNS TXT records do not convey a unique live TCP connection's source address and port to a backend process. The data must accompany each connection at the transport proxy boundary.

D:

Endpoint policies govern supported private service access and do not pass connection source metadata to an NLB target. They cannot supply the requested protocol header.

Question 491

An Application Load Balancer target group marks an HTTP service unhealthy even though GET / is successful. The application requires a Host header matching its internal virtual-host name and returns 404 for health probes that lack that name. Which correction should be evaluated?

  1. Point the ALB listener at a public Route 53 CNAME for the custom hostname
  2. Disable all target health checks and let the load balancer forward to the broken targets
  3. Provide a dedicated health-check endpoint that returns the expected success response for the ALB health-check Host header, or adapt the application's virtual-host handling
  4. Attach a CloudFront Origin Access Control policy to the ALB target group

Explanation

Correct Answer

C:

An ALB health check uses a Host header based on the target address and listener port, rather than necessarily using the client-facing hostname. The application must serve a valid health response for the actual probe request if it is to pass target health checks.

Incorrect Answers

A:

A listener DNS mapping does not change the Host header sent by the target-group health check. The backend's virtual-host routing would still reject the probe.

B:

Target groups depend on health checks to identify usable destinations. Disabling their intended readiness signal removes failure detection and does not fix the virtual-host mismatch.

D:

Origin Access Control is a CloudFront mechanism for supported origins, not an ALB health-check Host header configuration. It cannot alter target-group probe behavior.

Question 492

An engineer wants workload A to use VPC B as a hop to VPC C through A-B and B-C peerings. Which action directly resolves the stated problem?

  1. Enable the VPC peering DNS resolution options
  2. Add the peer CIDR route to the peering connection in relevant VPC subnet route tables
  3. Add a direct A-C peer or migrate to an appropriate transit service
  4. Renumber one VPC or adopt a suitable endpoint-based connectivity pattern

Explanation

Correct Answer

C:

The approach creates an explicit path because peer links are nontransitive; B cannot act as a peering transit router for arbitrary third-party destinations, directly enabling valid A-to-C private routing in this situation.

Incorrect Answers

A:

This alternative allows qualifying public hostname resolution across peered VPCs to return private addresses; this does not replace Route 53 private hosted-zone association for arbitrary private names, so it addresses private DNS resolution for peered instance hostnames rather than the required valid A-to-C private routing.

B:

Although this setting forwards private destination packets over the peer link, the peer VPC must also have an appropriate return route; this concerns source subnet reachability through VPC peering, not the specified valid A-to-C private routing.

D:

This approach avoids the overlapping-CIDR restriction on VPC peering; adding more-specific routes cannot make an unsupported overlapping peering connection valid, which helps with viable connectivity with conflicting network address plans instead of delivering valid A-to-C private routing.

Question 493

A manufacturer has private or transit Direct Connect virtual interfaces in two separated locations, both connected to its Direct Connect gateway. It wants traffic to travel directly between the two on-premises locations over AWS's backbone without detouring through a VPC in a Region. What feature should be enabled?

  1. Configure a public VIF only and expect all private site-to-site prefixes to traverse it
  2. Create a VPC NAT gateway in one Region to relay all on-premises traffic
  3. Add a Route 53 weighted record for each data center router's private address
  4. Enable AWS Direct Connect SiteLink on the eligible virtual interfaces at both locations

Explanation

Correct Answer

D:

SiteLink permits private site-to-site traffic between eligible Direct Connect locations over the AWS network while avoiding a transit through an AWS Region. The enabled virtual interfaces must participate in the Direct Connect gateway design.

Incorrect Answers

A:

Public VIFs are for AWS public endpoint routing, not SiteLink's private or transit virtual-interface path. A public VIF alone does not implement the requested private branch-to-branch connectivity.

B:

A NAT gateway translates outbound traffic from supported VPC subnets and is not a substitute for the Direct Connect SiteLink branch-to-branch backbone path.

C:

DNS record weighting influences client name resolution, not direct BGP route exchange or the network path between on-premises Direct Connect locations.

Question 494

A stateful inspection VPC sees asymmetric paths when requests and responses use different AZs across Transit Gateway. What should the network specialist configure?

  1. Enable appliance mode for the inspection VPC TGW attachment
  2. Add the remote CIDR route with the transit gateway as the destination target
  3. Enable propagation of the shared-services attachment into the required tables
  4. Add a more specific TGW blackhole route for the denied destination

Explanation

Correct Answer

A:

The approach keeps flow routing aligned to the same attachment AZ for stateful appliances; appliance mode does not automatically insert a firewall into a route path, directly enabling symmetric inspection attachment routing by flow in this situation.

Incorrect Answers

B:

This approach directs matching VPC packets from the subnet toward TGW; the TGW's own table also needs the appropriate destination routes, which helps with packet forwarding from a workload VPC to TGW instead of delivering symmetric inspection attachment routing by flow.

C:

This alternative installs eligible VPC CIDRs as propagated gateway routes; propagation does not force the source attachment to associate with multiple tables, so it addresses shared-services destination discovery across permitted transit segments rather than the required symmetric inspection attachment routing by flow.

D:

Although this setting rejects matches rather than forwarding them to an attachment, destination longest-prefix matching still determines which route applies; this concerns explicit dropped traffic for disallowed prefixes, not the specified symmetric inspection attachment routing by flow.

Question 495

A distributed compute application requires low-latency message passing and high-throughput inter-node communication. Which change is the most appropriate?

  1. Place the cluster in a cluster placement group when supported
  2. Enable and verify ENA support and drivers on a compatible instance
  3. Profile packet rate and use suitable instance networking capabilities with ENA
  4. Select supported EC2 instances with Elastic Fabric Adapter and appropriate placement
  5. Attach multiple compatible elastic network interfaces to the EC2 instance

Explanation

Correct Answer

D:

This configuration supports optimized HPC communication patterns with an EFA network interface; an ordinary ENI offers baseline networking but not the EFA communication path, so it delivers tightly coupled cluster networking performance under the stated constraints.

Incorrect Answers

A:

Although this setting co-locates eligible instances to optimize low-latency network communication, spread placement distributes instances to distinct hardware and serves a different goal; this concerns tightly placed single-AZ compute networking, not the specified tightly coupled cluster networking performance.

B:

The proposed action uses enhanced networking capabilities for higher packet-processing performance; increasing a subnet CIDR does not change instance network driver capability, supporting improved EC2 packet throughput and latency but leaving tightly coupled cluster networking performance unmet.

C:

This approach considers packet-per-second limits and accelerated I/O efficiency; raw advertised gigabits per second do not describe every small-packet workload limit, which helps with higher sustainable EC2 packet-processing rate instead of delivering tightly coupled cluster networking performance.

E:

Although this setting presents separate interface identities, addresses and security group attachments, placement group settings do not create additional logical interfaces; this concerns multi-homed EC2 appliance connectivity, not the specified tightly coupled cluster networking performance.

Question 496

An NLB routes too much load to one AZ while targets are spread across enabled zones and zonal distribution is undesirable. What should the network specialist configure?

  1. Create an NLB TLS listener with the appropriate certificate
  2. Enable Proxy Protocol v2 and configure the application to parse its header
  3. Enable cross-zone load balancing after evaluating costs and requirements
  4. Allocate Elastic IP addresses to an internet-facing Network Load Balancer where supported

Explanation

Correct Answer

C:

This configuration permits load-balancer nodes to distribute requests to healthy targets in other enabled AZs; availability-zone affinity and possible data processing charges should be examined, so it delivers cross-zone target utilization under the stated constraints.

Incorrect Answers

A:

This alternative performs TLS termination at the network load balancer before forwarding to its target group; a raw TCP listener would normally pass encrypted bytes to the targets, so it addresses managed transport-layer TLS offload rather than the required cross-zone target utilization.

B:

Although this setting conveys source-connection metadata to compatible targets before the application payload, this requires target support and must account for health-check connections; this concerns delivery of original client metadata to backend software, not the specified cross-zone target utilization.

D:

This approach provides stable public IP addressing for NLB zonal nodes; an ALB DNS name can change node IP addresses and is not configured with Elastic IPs, which helps with zonal fixed-address TCP ingress instead of delivering cross-zone target utilization.

Question 497

A partner must connect to an internal service privately from its AWS account rather than using public internet ingress. What should the network specialist configure?

  1. Integrate an ALB HTTPS listener with AWS WAF and private target groups
  2. Place the application behind an approved identity-aware access proxy or VPN
  3. Create an inbound database security-group rule referencing the application security group
  4. Apply appropriate NLB security-group and backend network controls where supported
  5. Expose the service through PrivateLink endpoint-service access
  6. Combine supported AWS Shield protections with WAF at the eligible web entry points

Explanation

Correct Answer

E:

This configuration creates an approved private interface endpoint path from consumer VPCs; an internet-facing ALB would still expose a public endpoint, so it delivers partner-specific private application ingress under the stated constraints.

Incorrect Answers

A:

This approach combines layer-seven TLS ingress and web request filtering before backend forwarding; exposing the backend instances directly would bypass the web front door, which helps with layered HTTP perimeter protection for private applications instead of delivering partner-specific private application ingress.

B:

This alternative requires authenticated access before sensitive network endpoints are reachable; allowing the entire internet CIDR through a security group does not meet access control intent, so it addresses authenticated administrative ingress isolation rather than the required partner-specific private application ingress.

C:

Although this setting authorizes stateful source membership rather than an entire shifting address range, security group references avoid maintaining fixed instance IP lists; this concerns narrowly scoped database access from application instances, not the specified partner-specific private application ingress.

D:

The proposed action limits permitted transport connections according to source network policy; WAF is not natively an arbitrary TCP payload firewall for an NLB, supporting restricted layer-four public ingress but leaving partner-specific private application ingress unmet.

F:

This alternative applies complementary network-scale and HTTP request threat mitigations; a single subnet ACL cannot inspect both global floods and web attack signatures, so it addresses layered perimeter resilience for public services rather than the required partner-specific private application ingress.

Question 498

An operations dashboard needs low-friction alerting on VPC flow records by using CloudWatch Logs filters. What should the network specialist configure?

  1. Inspect the ACCEPT and REJECT actions in VPC Flow Log records
  2. Send VPC Flow Logs to CloudWatch Logs
  3. Enable VPC Flow Logs at the VPC scope
  4. Deliver VPC Flow Logs to Amazon S3 in a suitable format

Explanation

Correct Answer

B:

With this choice, the selected action delivers flow metadata to log groups that support filters and analytics; logging to an S3 bucket alone will not create CloudWatch Logs filter events, providing flow-data integration with CloudWatch log analysis for the network described.

Incorrect Answers

A:

The proposed action identifies whether captured network flows were allowed or denied by network controls; flow logs do not reveal application payload content or every packet-level failure cause, supporting reachability evidence at flow-record granularity but leaving flow-data integration with CloudWatch log analysis unmet.

C:

This alternative records selected flow metadata for supported network interfaces across the VPC; a subnet-only log would miss interfaces outside the chosen subnet, so it addresses broad IP-flow visibility over changing workloads rather than the required flow-data integration with CloudWatch log analysis.

D:

Although this setting stores flow-log records in an object store suitable for later analysis, CloudWatch alarms can analyze metrics but are not an object-archive delivery substitute; this concerns durable searchable flow records in S3, not the specified flow-data integration with CloudWatch log analysis.

Question 499

An AWS Network Firewall stateless rule matches inbound TCP connections to port 22 from a blocked network. Other packets must continue to the stateful inspection engine, but these matched packets must be rejected immediately. Which rule action meets the requirement?

  1. Apply the stateless DROP action to the matching rule, with a suitable rule priority
  2. Use the stateless PASS action and rely on the stateful engine to reconsider the same packet
  3. Use stateless FORWARD_TO_STATEFUL and assume the stateful engine implicitly denies all traffic
  4. Configure a CloudWatch dashboard without a traffic-enforcement rule

Explanation

Correct Answer

A:

In AWS Network Firewall, a matching stateless DROP action stops further inspection and discards the packet. Other packets can follow the policy's forward-to-stateful default, preserving full stateful analysis for traffic not matching this deny rule.

Incorrect Answers

B:

Stateless PASS immediately permits the matching packet without sending it to the stateful rules engine. That is the opposite of an immediate deny for the blocked SSH source range.

C:

FORWARD_TO_STATEFUL delegates inspection rather than dropping the packet at the stateless stage. A stateful policy may allow flows unless corresponding deny rules are defined, so forwarding does not guarantee the requested immediate reject.

D:

CloudWatch dashboards can display firewall metrics but do not enforce policy on packets. Observability alone would leave the disallowed connections subject to whatever current firewall actions apply.

Question 500

An ACM public certificate request has completed domain ownership validation but fails with a Certification Authority Authorization error. The domain has a CAA issue record permitting only an unrelated certificate authority. What should the DNS administrator correct?

  1. Update the applicable CAA authorization so an Amazon-supported CA can issue the requested ACM public certificate, then retry issuance
  2. Add a TLSA record only and leave the restrictive CAA rule in place
  3. Change the load balancer's target health-check threshold to one
  4. Disable Route 53 Resolver DNSSEC validation inside an unrelated VPC

Explanation

Correct Answer

A:

CAA issue records constrain which certificate authorities may issue certificates for a domain. ACM needs a permitted Amazon CA issuer value when restrictive CAA records are present; changing the appropriate record resolves the authorization conflict.

Incorrect Answers

B:

A TLSA record expresses DANE-related certificate associations and does not override DNS CAA restrictions used in public CA issuance decisions. ACM could remain blocked by the CAA policy.

C:

Target health check thresholds affect backend reachability status after deployment and do not determine which public certificate authorities are authorized by the domain's CAA records.

D:

A VPC's recursive DNSSEC validation setting is not the authoritative CAA permission for this public domain. Disabling validation is unrelated to the certificate issuance rejection.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests