Curated

Networking and Content Delivery (5.1–5.3)

0 votes

Questions54

  1. Question 1

    Networking and Content Delivery

    A private subnet routes 0.0.0.0/0 to an available public NAT gateway with an Elastic IP address, but instances cannot reach the internet. Security controls permit traffic, and the NAT gateway's subnet route table contains only the local route; what should the administrator add?

    Show the answer

    Correct answerC. A default route to an internet gateway in the NAT gateway's subnet

    AWhy not this: A direct internet gateway route bypasses NAT and does not translate the instances' private IPv4 addresses.

    BWhy not this: A virtual private gateway provides VPN connectivity, not the missing internet path for the public NAT gateway.

    CWhy this is right: The NAT gateway's subnet needs an internet gateway route to forward translated traffic to the internet.

    DWhy not this: Routing the NAT gateway's subnet back to the same NAT gateway does not provide an internet path.

    A public NAT gateway needs a route from its subnet to an attached internet gateway for internet egress. Routing the private subnet directly to the internet gateway bypasses NAT and does not provide internet access to instances that have only private IPv4 addresses.

    Open this question
  2. Question 2

    Networking and Content Delivery

    Which VPC control provides stateful traffic filtering for an EC2 instance's network interface?

    Show the answer

    Correct answerB. A security group

    AWhy not this: A network ACL applies stateless allow and deny rules at the subnet boundary.

    BWhy this is right: A security group filters traffic for associated network interfaces and tracks allowed connections.

    CWhy not this: A route table selects traffic destinations and targets rather than providing stateful filtering.

    DWhy not this: An internet gateway enables internet connectivity rather than providing configurable stateful traffic filtering.

    A security group provides stateful filtering for associated network interfaces, automatically permitting response traffic for allowed connections. A network ACL filters traffic at the subnet boundary and is stateless.

    Open this question
  3. Question 3

    Networking and Content Delivery

    Instances with IPv6 addresses must initiate connections to internet services without accepting internet-initiated connections. Which route target should the administrator use for ::/0?

    Show the answer

    Correct answerD. An egress-only internet gateway

    AWhy not this: A public NAT gateway provides IPv4 egress and can support NAT64, but it is not the target for native IPv6 internet egress.

    BWhy not this: An internet gateway supports IPv6 traffic in both directions and does not itself prevent internet-initiated connections.

    CWhy not this: An interface VPC endpoint provides private access to a specific service, not general IPv6 internet access.

    DWhy this is right: An egress-only internet gateway permits instance-initiated IPv6 traffic and return traffic without allowing unsolicited inbound connections.

    An egress-only internet gateway permits outbound IPv6 connections and their return traffic while preventing internet-initiated connections. A public NAT gateway provides IPv4 internet egress, not native IPv6-to-IPv6 egress.

    Open this question
  4. Question 4

    Networking and Content Delivery

    An HTTPS server's subnet network ACL allows inbound TCP 443, but outbound rule 100 denies all traffic and rule 110 allows TCP 1024–65535 to the client CIDR. Routes and security groups permit the connections; what change will allow replies while preserving the deny for other outbound traffic?

    Show the answer

    Correct answerD. Renumber the outbound ephemeral-port allow rule to 90

    AWhy not this: HTTPS replies target client ephemeral ports, not destination port 443, and rule 100 would still deny them first.

    BWhy not this: The blocked traffic is outbound; an inbound allow rule cannot permit the server's replies.

    CWhy not this: Rule 105 would still be evaluated before rule 110, so the deny would continue to block replies.

    DWhy this is right: Rule 90 permits replies to client ephemeral ports before rule 100 denies remaining outbound traffic.

    Network ACLs are stateless and evaluate rules in ascending numerical order, stopping at the first match. Moving the outbound ephemeral-port allow rule before the deny permits replies; allowing outbound TCP 443 would target the server port rather than the client's destination port.

    Open this question
  5. Question 5

    Networking and Content Delivery

    A VPC has a Route 53 Resolver forwarding rule for example.com that sends queries to on-premises DNS servers. Records for acme.example.com are in a Route 53 public hosted zone and must be resolved by Resolver, while all other example.com names are still forwarded on premises. What should the engineer do?

    Show the answer

    Correct answerB. Create a system rule for acme.example.com.

    AWhy not this: A system rule for the parent domain would stop forwarding every other example.com name that still needs on-premises resolution.

    BWhy this is right: The more specific system rule takes precedence for the subdomain, so Resolver resolves it while the parent domain stays forwarded.

    CWhy not this: A forwarding rule sends queries to target DNS servers instead of having Resolver resolve them.

    DWhy not this: An inbound endpoint accepts DNS queries from external networks; it does not change which rule handles the VPC's own queries.

    A forwarding rule applies to its domain and all of its subdomains, and when rules overlap Resolver uses the most specific one. A system rule for acme.example.com makes Resolver answer that subdomain itself while example.com stays forwarded. A system rule for example.com would stop the forwarding that other names still need.

    Open this question
  6. Question 6

    Networking and Content Delivery

    Which Route 53 record configuration maps a zone apex to an Application Load Balancer?

    Show the answer

    Correct answerD. An A alias record

    AWhy not this: An NS record identifies authoritative name servers rather than an application endpoint.

    BWhy not this: An MX record identifies mail servers rather than a load balancer.

    CWhy not this: A CNAME maps one DNS name to another but cannot be used at the zone apex.

    DWhy this is right: An A alias record supports mapping the zone apex to an Application Load Balancer.

    An A alias record can map a zone apex to an Application Load Balancer. A CNAME record cannot be created at the zone apex.

    Open this question
  7. Question 7

    Networking and Content Delivery

    Two VPCs in the same account are peered, but a private hosted zone is associated only with VPC A. Instances in VPC B use Amazon-provided DNS and cannot resolve its records; how should an engineer provide resolution with the least operational overhead?

    Show the answer

    Correct answerB. Associate the private hosted zone with VPC B.

    AWhy not this: Publishing the records changes their visibility instead of providing access to the existing private namespace.

    BWhy this is right: A private hosted zone can be associated with multiple VPCs, providing direct resolution without additional endpoints.

    CWhy not this: An inbound endpoint would require additional DNS forwarding configuration and cost that a zone association avoids.

    DWhy not this: Peering DNS resolution settings do not make a private hosted zone associated with one VPC available to its peer.

    Associating the private hosted zone with VPC B makes its records available through that VPC's Resolver. Peering DNS resolution settings do not extend private hosted zone associations to the peer VPC.

    Open this question
  8. Question 8

    Networking and Content Delivery

    An on-premises DNS server forwards queries to a Route 53 Resolver inbound endpoint over AWS Direct Connect; small responses succeed, but truncated UDP responses fail when retried over TCP. The endpoint security group permits only UDP port 53 from that server; what should an engineer change?

    Show the answer

    Correct answerD. Allow inbound TCP port 53 from the DNS server.

    AWhy not this: Record TTLs control caching duration, not whether TCP retries can reach the Resolver endpoint.

    BWhy not this: Direct Connect gateways do not have a DNS resolution setting that permits traffic through endpoint security groups.

    CWhy not this: An outbound endpoint forwards VPC-originated queries to other DNS servers; it does not permit inbound TCP retries.

    DWhy this is right: Allowing TCP port 53 lets the server retry truncated DNS responses using the required transport.

    DNS clients can retry truncated UDP responses over TCP, so the inbound endpoint must accept TCP port 53 from the DNS server. An outbound endpoint handles queries leaving the VPC and does not fix blocked inbound TCP queries.

    Open this question
  9. Question 9

    Networking and Content Delivery

    VPC A's transit gateway attachment is associated with route table X, but VPC B's propagated route exists only in table Y. VPC routes and filtering permit communication, and B's return path is valid. Which change enables A to reach B without changing attachment associations?

    Show the answer

    Correct answerB. Propagate B's attachment into table X

    AWhy not this: Subnet filtering already permits communication and cannot supply a missing transit gateway route.

    BWhy this is right: Propagation installs B's route in X, which handles traffic arriving from A's attachment.

    CWhy not this: Security group filtering already permits communication and cannot change transit gateway route lookup.

    DWhy not this: Adding A's route to Y does not give X a route to B; the return path is already valid.

    Traffic entering through A's attachment uses its associated transit gateway route table, X, so X needs a route to B. Propagating A into Y does not supply the missing destination route in X.

    Open this question
  10. Question 10

    Networking and Content Delivery

    An EC2 web server receives HTTPS requests, but responses to client TCP port 55000 are blocked. Its security group permits HTTPS, but its custom network ACL permits inbound TCP 443 and outbound TCP 443 only, followed by default deny rules. Which change permits the responses?

    Show the answer

    Correct answerB. Allow outbound TCP 1024–65535 in the network ACL

    AWhy not this: The blocked response leaves the subnet, so an inbound network ACL rule does not permit it.

    BWhy this is right: This outbound rule permits the response's destination port, 55000, through the stateless network ACL.

    CWhy not this: Security groups automatically permit return traffic for allowed inbound connections.

    DWhy not this: The client ephemeral port is the response destination, not an inbound listening port on the server.

    Network ACLs are stateless, so an outbound rule must permit responses to client ephemeral ports, including 55000. Security groups are stateful and already permit responses to allowed inbound requests.

    Open this question
  11. Question 11

    Networking and Content Delivery

    Instances with public IP addresses in a subnet routed to an internet gateway serve HTTPS. Their security group allows inbound TCP 443, and the subnet's network ACL allows inbound TCP 443 and outbound TCP 443 only. Clients' connections time out. What should the engineer change?

    Show the answer

    Correct answerA. Add an outbound network ACL rule allowing TCP 1024-65535 to 0.0.0.0/0.

    AWhy this is right: The stateless network ACL must explicitly allow responses leaving for the clients' ephemeral ports.

    BWhy not this: Security groups are stateful, so return traffic for allowed inbound connections is already permitted.

    CWhy not this: The inbound requests already arrive on port 443; the blocked traffic is the outbound responses.

    DWhy not this: A NAT gateway handles connections that private instances start, not responses from public instances to inbound clients.

    Network ACLs are stateless, so responses to clients, which go to the clients' ephemeral ports, need their own outbound rule. Security groups are stateful and already allow the return traffic for an allowed inbound connection.

    Open this question
  12. Question 12

    Networking and Content Delivery

    A private subnet routes IPv4 internet traffic to an available public NAT gateway with an Elastic IP address, and filtering permits the traffic. The NAT gateway's subnet route table contains only the VPC local route. Which change restores internet access?

    Show the answer

    Correct answerC. Route the NAT subnet's default traffic to an internet gateway

    AWhy not this: A virtual private gateway provides VPN connectivity, not the required public NAT gateway internet path.

    BWhy not this: Routing the NAT gateway's subnet back to that NAT gateway does not provide an internet exit.

    CWhy this is right: A default route to the VPC's internet gateway provides the public NAT gateway's missing internet path.

    DWhy not this: Private instances without public IPv4 addresses cannot obtain IPv4 internet access through an internet gateway alone.

    A public NAT gateway needs a route from its subnet to an internet gateway for internet access. Routing private instances directly to an internet gateway does not provide the address translation they require.

    Open this question
  13. Question 13

    Networking and Content Delivery

    Which VPC endpoint feature can restrict the Amazon S3 buckets accessible through that endpoint?

    Show the answer

    Correct answerB. Endpoint policy

    AWhy not this: A network ACL filters network traffic by addresses, protocols, and ports, not S3 bucket identities.

    BWhy this is right: An endpoint policy can specify which S3 bucket resources may be accessed through the endpoint.

    CWhy not this: A route table directs traffic by destination address, not by S3 bucket authorization.

    DWhy not this: A DHCP option set supplies network configuration such as DNS settings, not resource access permissions.

    An endpoint policy can restrict the S3 resources accessible through a VPC endpoint. A subnet route table selects network paths but does not authorize access to individual buckets.

    Open this question
  14. Question 14

    Networking and Content Delivery

    Instances must access AWS Secrets Manager through an existing interface endpoint using its standard Regional hostname. VPC DNS support and DNS hostnames are enabled, but private DNS is disabled and the endpoint security group has no inbound rules; which changes are required? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Enable private DNS on the interface endpoint.D. Allow inbound TCP 443 from the instances on the endpoint security group.

    AWhy this is right: Private DNS makes the standard Secrets Manager hostname resolve to the interface endpoint's private IP addresses.

    BWhy not this: An internet gateway is not required for connections to an interface endpoint.

    CWhy not this: Interface endpoints do not use gateway endpoint-style prefix-list routes.

    DWhy this is right: The endpoint security group must allow incoming HTTPS connections from the client instances.

    Private DNS maps the standard Regional service hostname to endpoint private IP addresses, and the endpoint security group must permit HTTPS from clients. Interface endpoints use network interfaces, not service prefix-list routes.

    Open this question
  15. Question 15

    Networking and Content Delivery

    On-premises applications must access Amazon S3 through an existing AWS Direct Connect private virtual interface, without public IP destinations or application hostname changes. The connected VPC has an S3 gateway endpoint, and on-premises DNS can forward queries to Route 53 Resolver; which additional design meets these requirements?

    Show the answer

    Correct answerC. Create an S3 interface endpoint with private DNS for inbound Resolver queries and forward S3 DNS queries to an inbound Resolver endpoint.

    AWhy not this: An S3 gateway endpoint cannot be extended to on-premises clients through Direct Connect.

    BWhy not this: A public virtual interface accesses public AWS IP addresses, violating the private-destination requirement.

    CWhy this is right: The interface endpoint provides reachable private IPs, and inbound Resolver queries can resolve standard S3 names to them.

    DWhy not this: A public NAT gateway still accesses public S3 destinations and does not meet the private-destination requirement.

    An S3 interface endpoint supports private access from on premises over Direct Connect. Private DNS for inbound Resolver queries preserves standard S3 hostnames; an S3 gateway endpoint cannot be used directly from on premises.

    Open this question
  16. Question 16

    Networking and Content Delivery

    VPC A is peered with VPC B, and VPC B is peered with VPC C; their CIDRs do not overlap. Instances in A must communicate privately with instances in C; which change provides connectivity without a central routing service?

    Show the answer

    Correct answerB. Create an A-to-C peering connection and configure routes and security rules.

    AWhy not this: VPC peering does not provide automatic route propagation or transitive routing.

    BWhy this is right: A direct peering connection provides the missing path when routes and security controls allow it.

    CWhy not this: A NAT gateway in a peer VPC does not enable transit through peering connections.

    DWhy not this: Peering connections cannot carry transit traffic through an intermediate VPC.

    VPC peering is nontransitive, so A and C need a direct peering connection with appropriate routes and security rules. Adding routes through B does not make the existing peerings transitive.

    Open this question
  17. Question 17

    Networking and Content Delivery

    A provider must expose an internal TCP service to a customer's VPC with an overlapping IPv4 CIDR. The customer must initiate private connections without access to the provider's other resources; which design meets these requirements?

    Show the answer

    Correct answerB. Publish a Network Load Balancer endpoint service and create a customer interface endpoint.

    AWhy not this: VPC peering does not support overlapping CIDR blocks.

    BWhy this is right: AWS PrivateLink provides service-specific private access without routing between the overlapping VPC address spaces.

    CWhy not this: Gateway endpoints provide access to Amazon S3 or DynamoDB, not a provider's custom TCP service.

    DWhy not this: Transit gateway routing cannot resolve overlapping destination CIDRs by propagating those routes.

    AWS PrivateLink exposes a specific service through interface endpoints without requiring nonoverlapping VPC CIDRs. VPC peering cannot connect VPCs with overlapping CIDRs.

    Open this question
  18. Question 18

    Networking and Content Delivery

    An application has a primary endpoint and a standby endpoint. DNS should return the standby only when the primary fails its health check; which Route 53 configuration should an engineer use?

    Show the answer

    Correct answerB. Failover records with primary health monitoring

    AWhy not this: Latency routing selects a healthy endpoint based on latency rather than a primary-and-standby relationship.

    BWhy this is right: Failover routing returns the healthy primary and switches to the secondary when the primary becomes unhealthy.

    CWhy not this: Multivalue answer routing can return multiple healthy endpoints instead of enforcing a standby relationship.

    DWhy not this: Equal weights distribute responses between healthy endpoints instead of reserving one as a standby.

    Failover routing uses a primary resource while it is healthy and a secondary resource when the primary is unhealthy. Weighted routing distributes DNS responses rather than reserving an endpoint strictly for standby use.

    Open this question
  19. Question 19

    Networking and Content Delivery

    Which Route 53 routing policy directs users to the AWS Region that provides the lowest latency?

    Show the answer

    Correct answerB. Latency routing

    AWhy not this: Weighted routing distributes responses according to assigned relative weights.

    BWhy this is right: Latency routing selects the configured AWS Region with the best latency for the user.

    CWhy not this: Geolocation routing uses geographic origin, not measured latency to AWS Regions.

    DWhy not this: Geoproximity routing uses geographic distance and optional bias rather than measured latency.

    Latency routing selects a Region using AWS latency measurements. Geolocation routing instead uses the geographic location of the DNS query's origin.

    Open this question
  20. Question 20

    Networking and Content Delivery

    An engineer is enabling DNS query logging for a Route 53 public hosted zone. Which statements correctly describe its configuration or logging behavior? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. The logs capture DNS queries received by Route 53 authoritative name servers.C. The CloudWatch Logs log group must be in US East (N. Virginia).E. A CloudWatch Logs resource policy must permit Route 53 to write logs.

    AWhy not this: Queries answered from a recursive resolver's cache do not reach Route 53 authoritative name servers.

    BWhy this is right: Public hosted zone query logs record queries that reach Route 53 authoritative name servers.

    CWhy this is right: Public hosted zone query logging requires its CloudWatch Logs log group to be in us-east-1.

    DWhy not this: VPC associations configure Resolver query logging, not public hosted zone query logging.

    EWhy this is right: CloudWatch Logs needs a resource policy granting Route 53 permission to create log streams and publish events.

    Public hosted zone query logging uses a CloudWatch Logs log group in us-east-1, requires write permission, and records queries reaching Route 53 authoritative servers. Resolver cache hits do not reach those servers; VPC associations apply to Resolver query logging.

    Open this question
  21. Question 21

    Networking and Content Delivery

    A Route 53 weighted record group contains endpoints with weights 80, 20, and 0, each with a health check. Both positive-weight endpoints become unhealthy while the zero-weight endpoint remains healthy; what will Route 53 do?

    Show the answer

    Correct answerD. Return the healthy zero-weight endpoint

    AWhy not this: Unhealthy positive-weight records do not cause NXDOMAIN when a healthy zero-weight record is available.

    BWhy not this: Equal selection does not apply because a healthy zero-weight endpoint is available while the others are unhealthy.

    CWhy not this: Route 53 considers the healthy zero-weight endpoint before falling back to unhealthy positive-weight endpoints.

    DWhy this is right: A healthy zero-weight record becomes eligible when every positive-weight record is unhealthy.

    Route 53 considers healthy zero-weight records when all positive-weight records are unhealthy. A zero weight excludes a record from normal weighted selection, but does not prevent this health-based fallback.

    Open this question
  22. Question 22

    Networking and Content Delivery

    For a failed request, AWS WAF logs show a rule match under nonTerminatingMatchingRules with action COUNT and a final action of ALLOW. The matching ALB access log shows elb_status_code=503, target_status_code=-, and actions_executed=fixed-response. What should the operator inspect first?

    Show the answer

    Correct answerA. The ALB listener's matching rule and action

    AWhy this is right: The fixed-response action identifies the listener configuration as the source of the HTTP 503.

    BWhy not this: COUNT is nonterminating, and the final ALLOW confirms that WAF did not block this request.

    CWhy not this: A fixed response is generated without forwarding to a target, so target return-path filtering does not explain it.

    DWhy not this: No target response was recorded; the load balancer executed a fixed-response action instead.

    The WAF match only counted the request, and the final action allowed it. The ALB explicitly executed a fixed response without a target status, so inspect the matching listener rule rather than target application errors.

    Open this question
  23. Question 23

    Networking and Content Delivery

    Clients receive HTTP 502 responses through an Application Load Balancer. Matching access log entries show elb_status_code=502, target_status_code=502, and actions_executed=forward. What should the operator conclude?

    Show the answer

    Correct answerA. The target returned the error to the load balancer

    AWhy this is right: The target status identifies the target's response, and the forwarding action confirms the request path.

    BWhy not this: A fixed-response action would be identified as fixed-response rather than forward.

    CWhy not this: A terminating WAF block would prevent forwarding to the target.

    DWhy not this: The target status records an HTTP response from the target, contradicting failure before forwarding.

    A recorded target_status_code of 502 shows that the target returned HTTP 502, and forward confirms forwarding occurred. A load-balancer-generated 502 without a target response would not have a target HTTP status code.

    Open this question
  24. Question 24

    Networking and Content Delivery

    A subnet route table has overlapping destination routes. How does Amazon VPC choose the route for a packet?

    Show the answer

    Correct answerA. Use the longest matching destination prefix

    AWhy this is right: The longest matching prefix identifies the most specific destination route.

    BWhy not this: VPC route tables do not measure latency to choose between overlapping destination routes.

    CWhy not this: The console's display order does not control route selection.

    DWhy not this: Route creation time does not determine which overlapping destination route is selected.

    Amazon VPC selects the most specific matching destination, using longest prefix matching. Route creation time and display order do not determine route priority.

    Open this question
  25. Question 25

    Networking and Content Delivery

    Which logs identify the AWS WAF rule that terminated evaluation of a blocked web request?

    Show the answer

    Correct answerA. AWS WAF web ACL logs

    AWhy this is right: Web ACL logs include terminatingRuleId and action for evaluated requests.

    BWhy not this: Resolver query logs record DNS queries, not WAF rule matches.

    CWhy not this: Flow logs describe network traffic metadata, not web ACL rule evaluation.

    DWhy not this: ALB access logs do not identify the specific WAF rule that terminated evaluation.

    AWS WAF web ACL logs include the terminating rule ID and action for a request. ALB access logs can indicate WAF involvement but do not provide the terminating WAF rule ID.

    Open this question
  26. Question 26

    Networking and Content Delivery

    An EC2 instance cannot accept a client's TCP connection. Its network interface's VPC Flow Logs show REJECT for the matching inbound traffic. What should the operator investigate next?

    Show the answer

    Correct answerD. The security group and network ACL rules

    AWhy not this: The matching flow record shows traffic reached the interface, making DNS resolution the wrong next focus.

    BWhy not this: An HTTP response requires application-layer communication and does not explain rejected inbound packets.

    CWhy not this: A CloudFront cache lifetime does not explain rejection at an EC2 network interface.

    DWhy this is right: Either control can reject traffic; the flow-log action alone does not identify which rule caused it.

    REJECT indicates that the traffic was not permitted, so inspect security group and network ACL rules. An application HTTP error occurs after network delivery and does not explain this flow-log rejection.

    Open this question
  27. Question 27

    Networking and Content Delivery

    An AWS WAF web ACL has an Allow rule at priority 10 and a managed rule group at priority 20 with no action overrides. Requests matching both are allowed; what should the auditor conclude?

    Show the answer

    Correct answerA. The Allow action ends evaluation before the managed rule group.

    AWhy this is right: A matching Allow rule terminates web ACL evaluation before later rules can inspect the request.

    BWhy not this: The default action does not override a matching rule's terminating action.

    CWhy not this: Without overrides, managed rules retain their configured actions; the earlier Allow explains the result.

    DWhy not this: Lower numeric priorities run first, so priority 10 is evaluated before priority 20.

    AWS WAF evaluates rules from lowest numeric priority, and Allow is a terminating action. The default action applies only when evaluation reaches the end without a terminating match.

    Open this question
  28. Question 28

    Networking and Content Delivery

    Route 53 Resolver query logs show that queries matching a DNS Firewall domain list have the action ALERT, but clients still resolve those domains. What should the auditor conclude?

    Show the answer

    Correct answerC. The matching rule records queries without blocking resolution.

    AWhy not this: DNS Firewall domain lists match domain names, not resolved destination IP addresses.

    BWhy not this: Queries bypassing Route 53 Resolver would not produce these matching Resolver log records.

    CWhy this is right: ALERT monitors matching queries while allowing DNS resolution to continue.

    DWhy not this: A recorded DNS Firewall match indicates that an associated rule evaluated the query.

    The DNS Firewall ALERT action logs matching queries but allows resolution to continue. A missing rule group association would not produce a matching DNS Firewall ALERT action for those queries.

    Open this question
  29. Question 29

    Networking and Content Delivery

    Which AWS service provides automatic baseline DDoS protection without requiring a paid protection subscription?

    Show the answer

    Correct answerD. AWS Shield Standard

    AWhy not this: Route 53 Resolver DNS Firewall filters DNS queries rather than providing baseline DDoS protection.

    BWhy not this: AWS Network Firewall filters VPC network traffic through deployed firewalls and configured policies.

    CWhy not this: AWS WAF evaluates web requests against configured rules; it is not the automatic baseline DDoS protection service.

    DWhy this is right: AWS Shield Standard automatically provides baseline DDoS protection at no additional charge.

    AWS Shield Standard automatically provides baseline protection against common network and transport layer DDoS attacks at no additional charge. AWS WAF filters web requests through configured web ACL rules rather than supplying this automatic baseline protection.

    Open this question
  30. Question 30

    Networking and Content Delivery

    An AWS Network Firewall policy has a matching stateless Pass rule and a stateful rule intended to drop the same traffic. Routes traverse the firewall endpoint; why does the traffic pass?

    Show the answer

    Correct answerB. The stateless Pass action bypasses stateful inspection.

    AWhy not this: A stateful default action does not explain traffic that never reaches the stateful engine.

    BWhy this is right: Stateless Pass permits the packet without sending it to the stateful inspection engine.

    CWhy not this: Stateless default actions apply to unmatched traffic, not traffic matching an explicit Pass rule.

    DWhy not this: The firewall processes stateless rules before deciding whether to forward packets for stateful inspection.

    A matching stateless Pass action allows the packet without forwarding it to the stateful engine. Forward to stateful rules is the action needed for stateful inspection; stateless default actions apply only when no stateless rule matches.

    Open this question
  31. Question 31

    Networking and Content Delivery

    A CloudFront origin group has primary and secondary origins, with HTTP 503 configured to trigger failover. The primary returns 503 for both GET and POST requests; what will CloudFront do?

    Show the answer

    Correct answerC. Fail over GET requests but return the primary's error for POST requests

    AWhy not this: GET supports origin failover; POST is not a supported failover method.

    BWhy not this: A matching status code does not override the request-method restrictions on origin failover.

    CWhy this is right: GET supports origin failover, whereas POST does not, even when its response status matches a configured failover status.

    DWhy not this: An eligible GET request can fail over when the primary returns a configured 503 response.

    CloudFront origin failover supports GET, HEAD, and OPTIONS requests, so eligible GET requests can use the secondary origin. Configuring 503 as a failover status does not enable failover for POST requests.

    Open this question
  32. Question 32

    Networking and Content Delivery

    A UDP application runs behind Network Load Balancers in two AWS Regions. Clients require fixed public IP addresses and routing to healthy regional endpoints; what should an engineer configure?

    Show the answer

    Correct answerB. Global Accelerator with regional endpoint groups

    AWhy not this: Latency routing selects DNS answers but does not provide fixed global frontend IP addresses.

    BWhy this is right: Global Accelerator supports UDP, static anycast IP addresses, and health-based routing to regional endpoints.

    CWhy not this: Failover routing changes DNS answers rather than providing fixed global frontend IP addresses.

    DWhy not this: CloudFront serves HTTP and HTTPS traffic, not an application's arbitrary UDP traffic.

    AWS Global Accelerator provides static anycast IP addresses and routes UDP traffic to healthy endpoints across Regions. Route 53 routing policies return DNS answers but do not provide a fixed global set of frontend IP addresses.

    Open this question
  33. Question 33

    Networking and Content Delivery

    A subscription website uses CloudFront to deliver many restricted video segments. Which access mechanism lets an authenticated viewer retrieve those files without changing each file's URL?

    Show the answer

    Correct answerA. CloudFront signed cookies

    AWhy this is right: Signed cookies let CloudFront validate viewer access to multiple restricted files while preserving their URLs.

    BWhy not this: Origin access control authenticates CloudFront to an origin; it does not authorize individual viewers.

    CWhy not this: Geographic restrictions filter requests by location rather than subscription authorization.

    DWhy not this: Signed URLs include authorization information in the URL, contrary to the requirement to leave file URLs unchanged.

    CloudFront signed cookies authorize access to multiple restricted files without changing their URLs. Signed URLs place authorization information in each URL and are better suited to individual resources.

    Open this question
  34. Question 34

    Networking and Content Delivery

    Three Route 53 weighted records for the same name and type have weights of 90, 10, and 0, each with a health check. Only the weight-90 record is unhealthy; which records will Route 53 select for new authoritative DNS answers?

    Show the answer

    Correct answerD. Only the weight-10 record

    AWhy not this: The unhealthy weight-90 record is excluded while a healthy record remains available.

    BWhy not this: A zero-weight record is not preferred over a healthy record with a nonzero weight.

    CWhy not this: A healthy record with a nonzero weight remains available, so the zero-weight record does not participate.

    DWhy this is right: The weight-10 record is the only healthy record with a nonzero weight.

    Route 53 excludes the unhealthy weight-90 record and uses the healthy weight-10 record. The weight-0 record gets no traffic while a healthy record with a positive weight is available.

    Open this question
  35. Question 35

    Networking and Content Delivery

    A multiplayer game uses UDP on a custom port. Players around the world need lower latency, and the game client must connect to two static IP addresses that do not change when backend Regions are added or replaced. Which service meets these requirements?

    Show the answer

    Correct answerB. AWS Global Accelerator

    AWhy not this: CloudFront delivers HTTP and HTTPS content and does not carry custom UDP game traffic.

    BWhy this is right: Global Accelerator provides two static anycast IP addresses and routes TCP or UDP traffic to the best Regional endpoint.

    CWhy not this: Latency-based DNS records return different addresses per Region, so the client does not get fixed IP addresses.

    DWhy not this: An NLB's Elastic IP addresses belong to one Region and do not route players through the nearest edge location.

    Global Accelerator gives an accelerator two static anycast IP addresses, carries TCP and UDP traffic over the AWS global network from the nearest edge location, and routes it to endpoints in one or more Regions. CloudFront serves HTTP and HTTPS content and does not proxy custom UDP traffic.

    Open this question
  36. Question 36

    Networking and Content Delivery

    A replaced image must stop being served from CloudFront caches before its TTL expires, without changing its URL. What should an operator create?

    Show the answer

    Correct answerA. A cache invalidation

    AWhy this is right: An invalidation removes the specified cached object before its TTL expires.

    BWhy not this: An origin request policy controls values forwarded to the origin, not removal of cached objects.

    CWhy not this: A response headers policy modifies response headers, not existing object retention.

    DWhy not this: A cache behavior selects request-handling settings; it does not explicitly remove an existing cached object.

    A cache invalidation removes the specified object from CloudFront caches before expiration, allowing subsequent requests to retrieve the replacement. A cache behavior configures request handling but is not the mechanism for removing an existing cached object.

    Open this question
  37. Question 37

    Networking and Content Delivery

    An application returns different product prices based on the currency query parameter. CloudFront forwards this parameter to the origin through an origin request policy, but cached responses show the wrong currency. Which change fixes the caching issue?

    Show the answer

    Correct answerC. Add currency to the cache policy's query strings.

    AWhy not this: A response header does not add the viewer's query parameter to the cache key.

    BWhy not this: Access logs help investigate requests but do not change how responses are cached.

    CWhy this is right: Including currency in the cache key separates cached responses by currency value.

    DWhy not this: A longer default TTL retains incorrectly shared responses longer.

    Including currency in the cache key creates separate cached responses for each currency. An origin request policy forwards values to the origin but does not, by itself, include them in the cache key.

    Open this question
  38. Question 38

    Networking and Content Delivery

    CloudFront continues serving a cached 503 response after an origin recovers. The error response has no caching headers, and its Error Caching Minimum TTL is 300 seconds. Which change reduces how long future 503 responses remain cached?

    Show the answer

    Correct answerD. Reduce the Error Caching Minimum TTL.

    AWhy not this: DNS TTL controls name-resolution caching, not cached HTTP error responses.

    BWhy not this: Connection attempts control origin connection retries, not retention of cached errors.

    CWhy not this: Connection timeout controls how long CloudFront waits to establish an origin connection, not error cache duration.

    DWhy this is right: A shorter error caching duration lets CloudFront retry the recovered origin sooner for future cached errors.

    Error Caching Minimum TTL controls how long CloudFront caches an error when origin caching headers do not extend that duration. Origin connection settings affect attempts to reach the origin, not retention of an already cached 503 response.

    Open this question
  39. Question 39

    Networking and Content Delivery

    An origin returns Cache-Control: no-cache, no-store, private, but CloudFront reuses its responses for 60 seconds. The matching cache policy has a minimum TTL of 60 seconds and a default TTL of 300 seconds. Which change makes CloudFront honor these origin directives?

    Show the answer

    Correct answerA. Set the minimum TTL to 0 seconds.

    AWhy this is right: A zero minimum TTL allows CloudFront to honor the origin's restrictive caching directives.

    BWhy not this: Default TTL applies when origin freshness information is absent and does not override the minimum TTL.

    CWhy not this: Forwarding a request header does not change CloudFront's treatment of the origin's response directives.

    DWhy not this: A maximum TTL of 60 seconds still permits caching for the configured 60-second minimum.

    A positive minimum TTL makes CloudFront cache responses for at least that duration, even with no-cache, no-store, or private directives. Setting minimum TTL to zero allows those directives to prevent reuse; changing default TTL does not remove the minimum.

    Open this question
  40. Question 40

    Networking and Content Delivery

    Which actions reduce recurring network charges for unused resources? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersD. Release unassociated Elastic IP addresses.E. Delete unused interface VPC endpoints.

    AWhy not this: Flow logs add logging costs and do not remove charges for unused networking resources.

    BWhy not this: Adding endpoint Availability Zones adds endpoint-hour charges.

    CWhy not this: Additional allocated Elastic IP addresses incur additional public IPv4 charges.

    DWhy this is right: AWS charges for allocated public IPv4 addresses, including unassociated Elastic IP addresses.

    EWhy this is right: Interface endpoints incur hourly charges while provisioned, even without traffic.

    Releasing unused Elastic IP addresses removes their public IPv4 charges, and deleting unused interface endpoints removes their endpoint-hour charges. Adding endpoint Availability Zones increases billed endpoint hours rather than reducing them.

    Open this question
  41. Question 41

    Networking and Content Delivery

    Two nonoverlapping VPCs use a transit gateway only to communicate with each other, and no centralized or transitive routing is needed. Which replacement removes transit gateway attachment and processing charges while preserving direct private IP connectivity?

    Show the answer

    Correct answerB. A VPC peering connection

    AWhy not this: An interface endpoint exposes a particular service rather than providing general private IP connectivity between VPCs.

    BWhy this is right: VPC peering supports direct connectivity without transit gateway attachment or processing charges; data transfer charges can still apply.

    CWhy not this: A Site-to-Site VPN introduces connection charges and requires a customer gateway rather than directly replacing VPC routing.

    DWhy not this: A private NAT gateway translates addresses and incurs charges; it does not independently connect the VPCs.

    VPC peering provides direct private connectivity without connection-hour or peering processing charges, although applicable data transfer charges remain. An interface endpoint provides access to a specific service, not general routing between VPCs.

    Open this question
  42. Question 42

    Networking and Content Delivery

    Private subnets in two Availability Zones share one zonal NAT gateway; the remote subnet incurs $90 monthly in cross-AZ charges for NAT traffic. A second zonal NAT gateway would add $35 monthly in fixed charges, with total NAT processing charges unchanged; which design minimizes monthly cost?

    Show the answer

    Correct answerA. Add a NAT gateway remotely and route that subnet through it.

    AWhy this is right: Local NAT routing removes $90 in cross-AZ charges for $35 in added fixed charges, saving $55 monthly.

    BWhy not this: An unused additional gateway adds fixed charges without changing the traffic path.

    CWhy not this: Moving the shared gateway shifts the cross-AZ path to the other subnet rather than providing local egress for each.

    DWhy not this: Keeping the existing design retains the $90 monthly cross-AZ charge.

    Routing the remote subnet through a NAT gateway in its own Availability Zone removes $90 in cross-AZ charges while adding $35, saving $55 monthly. Provisioning a gateway without changing routes adds cost without removing the cross-AZ traffic.

    Open this question
  43. Question 43

    Networking and Content Delivery

    An application serves frequently requested, unchanged images from an Application Load Balancer to users worldwide. Which change can reduce origin data transfer and request load while improving delivery latency?

    Show the answer

    Correct answerD. Cache the images with Amazon CloudFront.

    AWhy not this: Resolver query logging records DNS queries and does not reduce image delivery traffic.

    BWhy not this: Global Accelerator improves network routing but forwards requests rather than serving cached images.

    CWhy not this: AWS WAF filters web requests but does not cache images to reduce repeated origin transfers.

    DWhy this is right: CloudFront serves cached images from edge locations, reducing origin requests and improving latency.

    CloudFront caches images at edge locations, reducing repeated origin requests and potentially lowering delivery costs. Global Accelerator optimizes network paths but does not cache content or reduce origin requests.

    Open this question
  44. Question 44

    Networking and Content Delivery

    EC2 instances in private subnets transfer large volumes of data to Amazon S3 in the same Region through a NAT gateway. Which change reduces networking charges while keeping the instances private?

    Show the answer

    Correct answerB. Create an S3 gateway endpoint for the subnet route tables.

    AWhy not this: Interface endpoints incur hourly and data processing charges; a gateway endpoint is the lower-cost choice for this traffic.

    BWhy this is right: A gateway endpoint routes regional S3 traffic without NAT processing charges and has no additional endpoint charges.

    CWhy not this: Additional NAT gateways add hourly charges without eliminating NAT processing charges for S3 traffic.

    DWhy not this: An internet gateway alone does not provide internet connectivity for instances that have only private IPv4 addresses.

    An S3 gateway endpoint avoids NAT gateway processing charges for S3 traffic and has no hourly or data processing charges. Interface endpoints also provide private connectivity, but have hourly and data processing charges.

    Open this question
  45. Question 45

    Networking and Content Delivery

    A virtual private gateway learns an on-premises /16 through both a Direct Connect private virtual interface and a BGP Site-to-Site VPN, plus a more-specific /24 through the VPN. Traffic to the /24 uses the VPN, but policy requires Direct Connect for the entire /16 when available and VPN failover for that entire range. Which change meets these requirements?

    Show the answer

    Correct answerA. Withdraw the VPN /24 advertisement while retaining its /16.

    AWhy this is right: Matching /16 routes allow Direct Connect preference while preserving VPN coverage for the entire range.

    BWhy not this: Customer-router local preference controls that router's outbound selection, not the virtual private gateway's selection.

    CWhy not this: AS-path changes do not override the VPN route's more-specific destination prefix.

    DWhy not this: Keeping only the VPN /24 preserves the unwanted path and removes VPN failover for the rest of the /16.

    The VPN /24 wins by longest prefix match. Removing it leaves identical /16 advertisements, for which the virtual private gateway prefers Direct Connect, while retaining VPN failover; AS-path prepending cannot override a more-specific prefix.

    Open this question
  46. Question 46

    Networking and Content Delivery

    Why can on-premises clients not use an Amazon S3 gateway endpoint through an AWS Site-to-Site VPN?

    Show the answer

    Correct answerD. Gateway endpoints support access only from their VPC.

    AWhy not this: Direct Connect cannot provide on-premises access through an S3 gateway endpoint either.

    BWhy not this: Gateway endpoints allow private access without requiring public client IP addresses.

    CWhy not this: Gateway endpoints carry client requests to S3, not only traffic originating from S3.

    DWhy this is right: Gateway endpoint access does not extend to on-premises clients across hybrid connections.

    An S3 gateway endpoint cannot be accessed from on premises through VPN or Direct Connect; it provides access from its VPC. Direct Connect does not remove this restriction.

    Open this question
  47. Question 47

    Networking and Content Delivery

    An application in a VPC must access AWS Secrets Manager through an interface VPC endpoint using the service's standard Regional hostname. VPC DNS support and DNS hostnames are enabled, and network ACLs permit traffic. Which configurations are required? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Allow inbound TCP 443 from the application in the endpoint security group.B. Enable private DNS on the interface endpoint.

    AWhy this is right: The endpoint security group must permit HTTPS connections from the application.

    BWhy this is right: Private DNS resolves the standard Regional service hostname to the interface endpoint's private IP addresses.

    CWhy not this: A NAT gateway provides a public service path rather than access through the interface endpoint.

    DWhy not this: Service prefix-list routes are used by gateway endpoints, not interface endpoints.

    Private DNS makes the standard service hostname resolve to the endpoint's private addresses, and the endpoint security group must permit HTTPS from the application. Interface endpoints use network interfaces, not the prefix-list routes used by gateway endpoints.

    Open this question
  48. Question 48

    Networking and Content Delivery

    A CloudFront distribution lists /images/* before /images/private/* in its ordered cache behaviors; only the latter uses the CachingDisabled policy. Requests for /images/private/logo.png still receive cached responses. Which change fixes this without disabling caching for other images?

    Show the answer

    Correct answerD. Move /images/private/* before /images/*.

    AWhy not this: An origin request policy does not change which cache behavior matches a request.

    BWhy not this: The default behavior is used only when no ordered path pattern matches.

    CWhy not this: Invalidation removes cached objects but leaves requests matching the caching-enabled behavior.

    DWhy this is right: The private path must match before the broader images path for its caching policy to apply.

    CloudFront applies the first matching ordered cache behavior, not the most specific path pattern. Moving the private path first applies CachingDisabled; invalidation alone removes existing objects but permits caching again under the broader behavior.

    Open this question
  49. Question 49

    Networking and Content Delivery

    On-premises clients can reach an EC2 instance by private IP over Site-to-Site VPN but cannot resolve its name in a Route 53 private hosted zone associated with the VPC. Which change enables name resolution?

    Show the answer

    Correct answerA. Configure an inbound Resolver endpoint and conditional forwarding from on-premises DNS.

    AWhy this is right: Conditional forwarding sends private-zone queries to inbound endpoint IP addresses reachable over the VPN.

    BWhy not this: Outbound endpoints forward VPC queries to external resolvers rather than accepting on-premises queries.

    CWhy not this: VPN routes contain IP prefixes, not DNS domain names.

    DWhy not this: Customer gateway devices do not provide the VPC DNS hostnames setting or access to private hosted zones.

    A Route 53 Resolver inbound endpoint accepts DNS queries from on-premises resolvers for VPC-associated private hosted zones. An outbound endpoint serves the opposite direction: forwarding queries from the VPC to external DNS servers.

    Open this question
  50. Question 50

    Networking and Content Delivery

    A Network Monitor ICMP probe fails because an on-premises firewall blocks ICMP but permits TCP port 443 to a listening server. How should the operator obtain network measurements without changing the firewall?

    Show the answer

    Correct answerB. Change the probe to TCP destination port 443.

    AWhy not this: Changing packet size does not make ICMP traffic pass a firewall that blocks ICMP.

    BWhy this is right: A TCP probe to the permitted listening port can measure the network path without allowing ICMP.

    CWhy not this: Flow logs do not replace the active probe's packet-loss and round-trip-time measurements.

    DWhy not this: ICMP does not use destination ports; a TCP probe is required to target TCP port 443.

    Network Monitor supports TCP probes with a destination port, allowing measurements through the permitted TCP path. ICMP does not use TCP or UDP destination ports, so assigning port 443 to an ICMP probe is not a solution.

    Open this question