Question 140

A cross-account endpoint service is reachable from one AZ but not another for the same consumer. What is the most suitable design or configuration?

  1. Check enabled service AZs and the consumer endpoint's selected subnets
  2. Reassess the address plan or migrate the service path to a suitable PrivateLink/NAT pattern
  3. Have the endpoint service provider accept the connection when acceptance is required
  4. Inspect source and destination security groups and NACL rules
  5. Verify the provider's private DNS verification and consumer endpoint DNS settings

Explanation

Correct Answer

A:

The approach aligns endpoint-service availability with consumer zone placement; creating a second public DNS alias does not provision a missing endpoint subnet ENI, directly enabling zone-appropriate PrivateLink service access in this situation.

Incorrect Answers

B:

Although this setting avoids relying on unsupported overlap in a peering topology, route entries cannot disambiguate identical VPC CIDR destinations; this concerns resilient connectivity after address conflict changes, not the specified zone-appropriate PrivateLink service access.

C:

The proposed action completes the provider approval needed before endpoint traffic is active; security-group changes do not change the provider's endpoint approval state, supporting accepted private service consumer connection but leaving zone-appropriate PrivateLink service access unmet.

D:

This approach distinguishes network authorization from established peering route topology; peer activation and route correctness do not override security-group denial, which helps with permitted instance-level traffic over VPC peering instead of delivering zone-appropriate PrivateLink service access.

E:

This alternative checks how a PrivateLink service name maps to local endpoint ENIs; generic public Route 53 records do not necessarily control private endpoint DNS overrides, so it addresses correct private DNS mapping after provider changes rather than the required zone-appropriate PrivateLink service access.

Question 141

A company needs least-privilege database access from instances with a shared application security group, plus an explicit subnet-level deny for a hostile source CIDR. Which controls implement those separate restrictions? Choose TWO.

  1. Restrict the instance security group's egress rules to the proxy destination and port
  2. Create an inbound database security-group rule referencing the application security group
  3. Add a numbered deny rule to the subnet network ACL
  4. Add correct outbound ephemeral-port permissions and compatible inbound rules
  5. Rely on security-group connection tracking for return traffic

Explanation

Correct Answers

B:

This component authorizes stateful source membership rather than an entire shifting address range; security group references avoid maintaining fixed instance IP lists, contributing narrowly scoped database access from application instances to the combined requirement for narrowly scoped database access from application instances and CIDR-specific subnet boundary rejection.

C:

This component evaluates stateless subnet ingress and egress rules in number order; security groups allow approved traffic but do not contain explicit deny rules, contributing CIDR-specific subnet boundary rejection to the combined requirement for narrowly scoped database access from application instances and CIDR-specific subnet boundary rejection.

Incorrect Answers

A:

This approach limits initiations leaving resources attached to the group; broad 0.0.0.0/0 egress would let instances bypass the intended proxy, which helps with least-privilege EC2 outbound connection control instead of delivering narrowly scoped database access from application instances and CIDR-specific subnet boundary rejection.

D:

The proposed action handles stateless packet filtering in both directions of a connection; authorizing only the destination listener port ignores the client's return-port range, supporting completed bidirectional TCP sessions through a subnet ACL but leaving narrowly scoped database access from application instances and CIDR-specific subnet boundary rejection unmet.

E:

This approach permits return packets of established allowed flows under stateful evaluation; NACLs remain stateless and need appropriate rules in both directions, which helps with automatic response permission for established EC2 flows instead of delivering narrowly scoped database access from application instances and CIDR-specific subnet boundary rejection.

Question 142

A company requires fixed addresses at each enabled AZ and a TCP load-balancing endpoint for a vendor allowlist. What is the most suitable design or configuration?

  1. Add host-header listener rules on an Application Load Balancer
  2. Select a Network Load Balancer with a UDP listener and compatible target group
  3. Allocate Elastic IP addresses to an internet-facing Network Load Balancer where supported
  4. Enable Proxy Protocol v2 and configure the application to parse its header
  5. Enable cross-zone load balancing after evaluating costs and requirements
  6. Create an NLB TLS listener with the appropriate certificate

Explanation

Correct Answer

C:

This configuration 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, so it delivers zonal fixed-address TCP ingress under the stated constraints.

Incorrect Answers

A:

The proposed action evaluates HTTP Host headers to select a target group; DNS can point both names to the same ALB while its rules distinguish requests, supporting hostname-based virtual hosting with a single load balancer but leaving zonal fixed-address TCP ingress unmet.

B:

This approach handles supported transport-level protocols including UDP; an ALB focuses on HTTP and HTTPS rather than arbitrary UDP datagrams, which helps with regional UDP load balancing instead of delivering zonal fixed-address TCP ingress.

D:

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 zonal fixed-address TCP ingress.

E:

The proposed action 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, supporting cross-zone target utilization but leaving zonal fixed-address TCP ingress unmet.

F:

This approach 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, which helps with managed transport-layer TLS offload instead of delivering zonal fixed-address TCP ingress.

Question 143

A link-down alarm should open an incident and page the network on-call engineer. Which action directly resolves the stated problem?

  1. Use VPC-creation EventBridge events to invoke a Lambda policy-check workflow
  2. Schedule a serverless inventory and validation job with EventBridge Scheduler
  3. Send a CloudWatch alarm to SNS and the incident integration
  4. Orchestrate an approved automation workflow with Step Functions and scoped API operations

Explanation

Correct Answer

C:

With this choice, the selected action delivers notifications when the monitored threshold transitions state; a log delivery bucket alone does not send operational pages, providing automated notification on connectivity failures for the network described.

Incorrect Answers

A:

Although this setting reacts to new VPC creation events and runs focused automated network checks, a VPC-creation event filter does not detect subsequent security-group modification APIs; this concerns event-driven VPC-creation governance, not the specified automated notification on connectivity failures.

B:

The proposed action invokes defined audits on a predictable timetable; an event-only trigger would miss issues that arise without a captured change event, supporting recurring network configuration validation but leaving automated notification on connectivity failures unmet.

D:

This alternative coordinates retries, sequencing and error handling for network changes; a single manual CLI loop lacks workflow-state and recovery controls, so it addresses repeatable multi-account route-management operations rather than the required automated notification on connectivity failures.

Question 144

A real-time trading API uses TCP and must retain fixed public entry addresses while failing between healthy regional endpoints. What is the best next configuration decision?

  1. Put Amazon CloudFront in front of the origin with cacheable behaviors
  2. Publish the interface through Amazon API Gateway
  3. Deploy AWS Global Accelerator with regional endpoints
  4. Configure Route 53 geolocation routing for the public records

Explanation

Correct Answer

C:

The approach advertises static anycast IP addresses and routes supported traffic through the AWS global network; DNS caching at client networks will not delay a shift away from an unhealthy accelerator endpoint, directly enabling stable ingress IPs and rapid regional routing in this situation.

Incorrect Answers

A:

This alternative caches eligible HTTP objects near viewers and fetches the origin mainly on misses or revalidation; a cache policy can exclude unnecessary cookies and query strings from the cache key, so it addresses edge caching that lowers origin load rather than the required stable ingress IPs and rapid regional routing.

B:

Although this setting applies API request processing, authorization and usage controls before integrating with a backend, gateway stages and integration settings govern deployment independently of edge caching; this concerns managed REST API front-door controls, not the specified stable ingress IPs and rapid regional routing.

D:

This approach chooses a DNS response using the location of a query's source resolver or supported EDNS client-subnet information; a default geolocation record should handle requests whose location cannot be matched, which helps with continent-specific DNS answer selection instead of delivering stable ingress IPs and rapid regional routing.

Question 145

A CloudFront distribution must enforce HTTPS for viewers and also protect requests on the separate CloudFront-to-custom-origin hop. Which policy settings provide both TLS legs? Choose TWO.

  1. Use an HTTPS target group with compatible target certificates
  2. Set the custom origin protocol policy to HTTPS Only
  3. Use an NLB TCP listener that passes the TLS bytes to the targets
  4. Configure SNI-compatible certificates on the ALB HTTPS listener
  5. Configure the distribution's viewer HTTPS policy and a valid certificate

Explanation

Correct Answers

B:

This component uses TLS when CloudFront establishes connections to the configured origin; viewer HTTPS does not automatically guarantee every origin fetch uses TLS, contributing encrypted CDN-to-origin traffic to the combined requirement for encrypted browser-to-CDN traffic and encrypted CDN-to-origin traffic.

E:

This component enforces TLS on the client-to-edge hop according to the selected policy; an HTTPS origin configuration alone does not secure the viewer hop, contributing encrypted browser-to-CDN traffic to the combined requirement for encrypted browser-to-CDN traffic and encrypted CDN-to-origin traffic.

Incorrect Answers

A:

This approach initiates TLS from the ALB to its backend targets; selecting an HTTPS listener protects only the client-facing leg, which helps with protected ALB-to-target application hop instead of delivering encrypted browser-to-CDN traffic and encrypted CDN-to-origin traffic.

C:

Although this setting forwards transport data without terminating the client's TLS session, an NLB TLS listener would terminate the client-facing TLS session at the load balancer; this concerns backend-controlled TLS termination, not the specified encrypted browser-to-CDN traffic and encrypted CDN-to-origin traffic.

D:

The proposed action chooses a server certificate based on the client-supplied name; forcing one certificate to cover unrelated names can cause hostname validation failures, supporting multi-tenant HTTPS identities on one ALB but leaving encrypted browser-to-CDN traffic and encrypted CDN-to-origin traffic unmet.

Question 146

An inter-Region TGW peering attachment is active but learned CIDRs are missing in the other Region. Which action provides the required behavior?

  1. Add explicit static routes to the peering attachment on both relevant TGW tables
  2. Inspect the attachment's associated TGW table and its destination routes
  3. Remove or correct the matching blackhole route after policy approval
  4. Reconfigure required attachment propagations or static entries in the new table

Explanation

Correct Answer

A:

The approach supplies the route entries that peering does not propagate dynamically; propagation controls for VPC attachments cannot announce routes over TGW peering, directly enabling usable inter-Region transit routes in this situation.

Incorrect Answers

B:

This approach evaluates which route table is consulted when traffic enters the hub; changing propagation in an unrelated table would not repair this ingress lookup, which helps with missing transit route at the source attachment's policy table instead of delivering usable inter-Region transit routes.

C:

This alternative removes the more-specific discard condition for the selected CIDR; traffic matching a more-specific blackhole will not use the broader forwarding entry, so it addresses restoration of traffic previously denied by TGW rather than the required usable inter-Region transit routes.

D:

Although this setting restores eligible network destinations to the table used by the moved attachment, association selects a table, but does not populate every needed route; this concerns route visibility after transit segmentation changes, not the specified usable inter-Region transit routes.

Question 147

An internal service certificate must be revoked immediately because its key was exposed. Which action provides the required behavior?

  1. Revoke the affected private CA certificate and publish supported revocation information
  2. Request an ACM public certificate with successful domain validation
  3. Distribute the private CA trust anchor to intended client trust stores
  4. Define AWS Private CA subordinate CA and issuance controls

Explanation

Correct Answer

A:

This configuration tells relying parties that the compromised certificate should no longer be trusted; merely removing the certificate from one server does not invalidate all copies, so it delivers controlled PKI response to exposed keys under the stated constraints.

Incorrect Answers

B:

The proposed action obtains publicly trusted certificates for supported integrated services; a certificate from an internal private CA is not automatically trusted by internet browsers, supporting public domain TLS identity and trust but leaving controlled PKI response to exposed keys unmet.

C:

This approach establishes certificate-chain trust for privately issued endpoint certificates; server-side certificate installation alone does not make clients trust a private issuer, which helps with accepted private-service TLS validation instead of delivering controlled PKI response to exposed keys.

D:

This alternative delegates private certificate issuance within a governed PKI hierarchy; a single unrestricted public certificate issuance workflow cannot enforce internal machine identity policy, so it addresses controlled workload certificate identities rather than the required controlled PKI response to exposed keys.

Question 148

A primary website origin returns repeated 5xx responses and the operator wants CloudFront to use a standby origin for eligible requests. What should the network specialist configure?

  1. Use a CloudFront cache policy that disables caching for the API behavior
  2. Add the rendition parameter to the CloudFront cache policy's cache key
  3. Create a CloudFront origin group with primary and secondary origins
  4. Forward the header using a CloudFront origin request policy without including it in the cache key

Explanation

Correct Answer

C:

This configuration invokes configured origin failover when eligible methods encounter selected errors; origin failover cannot be assumed to retry unsafe write operations such as POST, so it delivers edge-origin failover for supported HTTP methods under the stated constraints.

Incorrect Answers

A:

This alternative bypasses edge object reuse while retaining CDN HTTPS delivery and origin connectivity; request forwarding alone does not ensure that sensitive response bodies are not cached, so it addresses per-request dynamic responses without shared cached state rather than the required edge-origin failover for supported HTTP methods.

B:

Although this setting controls which request parameters distinguish cached objects at the edge, the origin may receive a parameter without the edge varying the cache entry unless it is in the cache key; this concerns correct caching of variant-specific responses, not the specified edge-origin failover for supported HTTP methods.

D:

This approach forwards selected request values to the origin independently of cache variation; forwarding values as part of the cache key would reduce cache hit ratio, which helps with header forwarding without needless cache fragmentation instead of delivering edge-origin failover for supported HTTP methods.

Question 149

A company has two Direct Connect connections in separate facilities but users sometimes traverse only one due to route policy. What should the network specialist configure?

  1. Review longest-prefix selection before applying BGP preference changes
  2. Simulate primary Direct Connect failure and observe BGP route convergence
  3. Deploy Site-to-Site VPN as a failover path and adjust routing priorities
  4. Review BGP preferences and advertisements on both circuits

Explanation

Correct Answer

D:

The approach determines which valid session's routes are selected and available for backup; additional physical links do not force desired routing distribution, directly enabling correct primary-secondary Direct Connect behavior in this situation.

Incorrect Answers

A:

This approach recognizes that more-specific routing matches can override broad path preference; comparing AS_PATH for different-length prefixes does not override destination longest-match logic, which helps with predictable forwarding with mixed BGP prefix lengths instead of delivering correct primary-secondary Direct Connect behavior.

B:

This alternative verifies that the alternate tunnel carries real traffic when the preferred path disappears; an idle VPN status page alone is not evidence of end-to-end recovery, so it addresses tested hybrid link failover rather than the required correct primary-secondary Direct Connect behavior.

C:

Although this setting retains an alternate IPsec path when the primary private circuit becomes unavailable, both primary and backup must advertise compatible destinations with sensible preference; this concerns backup hybrid routing over an independent transport, not the specified correct primary-secondary Direct Connect behavior.

Question 150

A network administrator wants an SNS notification if a firewall drop metric exceeds a justified baseline. Which change is the most appropriate?

  1. Compare time-aligned service metrics with CloudTrail change records
  2. Examine TargetResponseTime and target HTTP code CloudWatch metrics
  3. Create a CloudWatch alarm on the relevant firewall or derived metric
  4. Alarm on per-tunnel VPN TunnelState metrics in CloudWatch
  5. Include Direct Connect ConnectionState and appropriate error counters

Explanation

Correct Answer

C:

The approach applies a threshold and evaluation window to a measured security signal; CloudWatch dashboards show data but are not themselves notification rules, directly enabling automated drop-rate anomaly alerting in this situation.

Incorrect Answers

A:

The proposed action combines operational signal timing with configuration mutation history; checking only current route tables omits the event that triggered the change, supporting change-correlated network incident diagnosis but leaving automated drop-rate anomaly alerting unmet.

B:

This approach distinguishes slow target processing and target-generated error rates; front-end DNS TTL values do not explain target application latency, which helps with quantitative load-balancer-to-backend performance diagnosis instead of delivering automated drop-rate anomaly alerting.

D:

Although this setting evaluates AWS-provided tunnel state against alert conditions, an aggregate monthly data-transfer chart would not identify which tunnel dropped; this concerns early degraded-resiliency notification, not the specified automated drop-rate anomaly alerting.

E:

The proposed action tracks link state independently of the amount of traffic transferred; low throughput can mean idle workloads, not necessarily a failed circuit, supporting observability of hybrid physical or connection faults but leaving automated drop-rate anomaly alerting unmet.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests