Question 820

A global game relay uses AWS Global Accelerator and requires packets in the same established TCP flow to continue reaching the selected endpoint. What property prevents midflow destination changes?

  1. Add outbound endpoint IP addresses in subnets across at least two supported Availability Zones
  2. Rely on flow hashing and endpoint affinity within the standard accelerator
  3. Restrict endpoint-service allowed principals and require acceptance when appropriate
  4. Ensure endpoint health checks reflect the application's readiness rather than mere port reachability

Explanation

Correct Answer

B:

Global Accelerator consistently maps packets belonging to an established flow to the selected endpoint; traffic dial changes do not arbitrarily split an existing transport flow across endpoints.

Incorrect Answers

A:

Multiple subnet IPs in different AZs reduce dependence on a single AZ for DNS forwarding toward on-premises resolvers; redundant target resolvers should also be reachable; the operational gap would remain because the question requires a way to preserve transport-flow endpoint consistency.

C:

Endpoint-service permissions control which principals can request interface endpoints, while connection acceptance lets the provider approve eligible consumers before traffic flows; that still would not establish the requested outcome: preserve transport-flow endpoint consistency.

D:

Health-based routing is only as meaningful as the endpoint health signal; a basic open TCP listener can remain available while application dependencies fail; the scenario instead needs an action that will preserve transport-flow endpoint consistency.

Question 821

Thousands of subscribers download one private training file through CloudFront, but access should expire independently per subscriber without issuing a new distribution URL. Which control fits?

  1. Issue CloudFront signed URLs with per-request expiration and signature validation
  2. Use CloudFront signed cookies scoped to the relevant protected resources
  3. Enable CloudFront Origin Shield in a strategically chosen Region
  4. Switch to the S3 REST bucket origin and use CloudFront origin access control with a restrictive bucket policy

Explanation

Correct Answer

A:

A signed URL cryptographically restricts access to a specific resource and validity interval; CloudFront evaluates the signature before serving protected content from its cache.

Incorrect Answers

B:

Signed cookies let CloudFront authorize a viewer to access a set of protected files based on policy and signature, appropriate when a session fetches multiple related objects; that still would not establish the requested outcome: enforce individually expiring asset access.

C:

Origin Shield adds a centralized caching layer between regional caches and the origin, improving cache reuse for requests arriving through multiple regional caches and reducing duplicate fetches; the scenario instead needs an action that will enforce individually expiring asset access.

D:

S3 website endpoints are custom HTTP origins and do not support OAC; the regional REST endpoint can accept CloudFront-signed origin requests while public S3 access remains blocked; those conditions do not produce the required result: enforce individually expiring asset access.

Question 822

A security policy requires every CloudFront response to advertise HTTP Strict Transport Security while origin teams cannot coordinate header changes. What should the network team attach?

  1. Forward the Authorization header through an origin request policy on the noncached behavior
  2. Associate a CloudFront response headers policy that adds an HSTS header
  3. Switch to the S3 REST bucket origin and use CloudFront origin access control with a restrictive bucket policy
  4. Enforce HTTPS between viewers and CloudFront and set the CloudFront custom-origin protocol policy to HTTPS Only

Explanation

Correct Answer

B:

Response headers policies can insert security response headers at the CloudFront delivery layer without changing the cached object or requiring the origin to emit the header itself.

Incorrect Answers

A:

Origin request policies govern what reaches the origin independently of the cache policy; a behavior intended for protected requests must still avoid unsafe shared caching of authorized responses; that still would not establish the requested outcome: add consistent edge security response headers.

C:

S3 website endpoints are custom HTTP origins and do not support OAC; the regional REST endpoint can accept CloudFront-signed origin requests while public S3 access remains blocked; those conditions do not produce the required result: add consistent edge security response headers.

D:

Viewer protocol rules protect the first hop, while the custom-origin protocol policy controls encryption between CloudFront and the ALB; the origin must serve a certificate valid for the requested origin name; it changes a different aspect of the architecture rather than fulfilling the need to add consistent edge security response headers.

Question 823

An origin varies authorization decisions by a bearer token, but the token must reach the origin without fragmenting the cache key for public static assets. What configuration provides that separation?

  1. Forward the Authorization header through an origin request policy on the noncached behavior
  2. The cache key includes unnecessary query strings, fragmenting otherwise reusable objects
  3. Remove irrelevant request dimensions from the CloudFront cache key and test object correctness
  4. Invoke Lambda@Edge at the origin-request event and update the request origin

Explanation

Correct Answer

A:

Origin request policies govern what reaches the origin independently of the cache policy; a behavior intended for protected requests must still avoid unsafe shared caching of authorized responses.

Incorrect Answers

B:

If irrelevant tracking parameters form separate cache keys, edge caches store many variants even when origin content is identical, reducing cache-hit ratio; those conditions do not produce the required result: forward a header without making it a shared-cache discriminator.

C:

Smaller cache-key cardinality improves reuse of an unchanged representation; security-sensitive or response-varying fields must remain properly isolated to avoid mixing distinct content; it changes a different aspect of the architecture rather than fulfilling the need to forward a header without making it a shared-cache discriminator.

D:

An origin-request Lambda@Edge function runs on eligible cache misses and can modify origin-routing fields; a viewer-request hook does not provide the same origin-selection behavior; the operational gap would remain because the question requires a way to forward a header without making it a shared-cache discriminator.

Question 824

The application must choose an origin according to a signed request attribute only when CloudFront is about to contact an origin, not on every viewer request. Which edge hook supports origin selection?

  1. Switch to the S3 REST bucket origin and use CloudFront origin access control with a restrictive bucket policy
  2. Forward the Authorization header through an origin request policy on the noncached behavior
  3. Enable CloudFront Origin Shield in a strategically chosen Region
  4. Invoke Lambda@Edge at the origin-request event and update the request origin

Explanation

Correct Answer

D:

An origin-request Lambda@Edge function runs on eligible cache misses and can modify origin-routing fields; a viewer-request hook does not provide the same origin-selection behavior.

Incorrect Answers

A:

S3 website endpoints are custom HTTP origins and do not support OAC; the regional REST endpoint can accept CloudFront-signed origin requests while public S3 access remains blocked; those conditions do not produce the required result: select an origin on cache misses.

B:

Origin request policies govern what reaches the origin independently of the cache policy; a behavior intended for protected requests must still avoid unsafe shared caching of authorized responses; it changes a different aspect of the architecture rather than fulfilling the need to select an origin on cache misses.

C:

Origin Shield adds a centralized caching layer between regional caches and the origin, improving cache reuse for requests arriving through multiple regional caches and reducing duplicate fetches; the operational gap would remain because the question requires a way to select an origin on cache misses.

Question 825

A team has placed an Amazon S3 static website endpoint behind CloudFront and wants to prevent visitors from bypassing CloudFront with direct bucket reads. Which migration permits origin access control?

  1. Switch to the S3 REST bucket origin and use CloudFront origin access control with a restrictive bucket policy
  2. Enforce HTTPS between viewers and CloudFront and set the CloudFront custom-origin protocol policy to HTTPS Only
  3. Permit the CloudFront distribution principal the required KMS key usage through a suitably constrained key policy
  4. Enable CloudFront Origin Shield in a strategically chosen Region

Explanation

Correct Answer

A:

S3 website endpoints are custom HTTP origins and do not support OAC; the regional REST endpoint can accept CloudFront-signed origin requests while public S3 access remains blocked.

Incorrect Answers

B:

Viewer protocol rules protect the first hop, while the custom-origin protocol policy controls encryption between CloudFront and the ALB; the origin must serve a certificate valid for the requested origin name; the operational gap would remain because the question requires a way to secure an S3 origin behind CloudFront.

C:

OAC signs S3 origin requests, but SSE-KMS data access additionally requires KMS authorization; an S3 bucket policy alone cannot grant use of an otherwise denied key; it is not the action that directly makes the system secure an S3 origin behind CloudFront.

D:

Origin Shield adds a centralized caching layer between regional caches and the origin, improving cache reuse for requests arriving through multiple regional caches and reducing duplicate fetches; that still would not establish the requested outcome: secure an S3 origin behind CloudFront.

Question 826

A globally distributed application needs a publicly accessible CloudFront distribution to use a custom TLS hostname. Its ACM certificate exists only in an application Region. Where must a compatible ACM certificate be provisioned?

  1. Enforce HTTPS between viewers and CloudFront and set the CloudFront custom-origin protocol policy to HTTPS Only
  2. Request or import the CloudFront viewer certificate in US East (N. Virginia)
  3. Invoke Lambda@Edge at the origin-request event and update the request origin
  4. Enable CloudFront Origin Shield in a strategically chosen Region

Explanation

Correct Answer

B:

CloudFront custom viewer certificates managed by ACM are sourced from us-east-1 even if the distribution's origins and application workloads run elsewhere.

Incorrect Answers

A:

Viewer protocol rules protect the first hop, while the custom-origin protocol policy controls encryption between CloudFront and the ALB; the origin must serve a certificate valid for the requested origin name; the operational gap would remain because the question requires a way to attach a valid CloudFront viewer certificate.

C:

An origin-request Lambda@Edge function runs on eligible cache misses and can modify origin-routing fields; a viewer-request hook does not provide the same origin-selection behavior; that still would not establish the requested outcome: attach a valid CloudFront viewer certificate.

D:

Origin Shield adds a centralized caching layer between regional caches and the origin, improving cache reuse for requests arriving through multiple regional caches and reducing duplicate fetches; the scenario instead needs an action that will attach a valid CloudFront viewer certificate.

Question 827

A payment gateway uses Route 53 weighted records to shift 10% of new DNS answers toward a staging endpoint. What limits how quickly already-cached answers reflect a changed weight?

  1. Create a Route 53 alias A record targeting the load balancer
  2. Enable DNSSEC validation for the VPC's Route 53 Resolver where supported
  3. Configure suitable record TTL values and allow recursive resolver caches to age out
  4. Enable DNS64 on the relevant subnets for Route 53 Resolver to synthesize AAAA records

Explanation

Correct Answer

C:

Weighted routing influences new authoritative answers; recursive resolvers may reuse an earlier response until its TTL expires, so changing weights does not instantly redirect every client.

Incorrect Answers

A:

Route 53 alias records can point the zone apex at supported AWS resources, including an ALB, without placing a disallowed CNAME record alongside the apex SOA and NS records; it is not the action that directly makes the system predict propagation of weighted DNS answers.

B:

Resolver validation checks cryptographic DNSSEC integrity of applicable DNS responses; it is separate from signing the organization's own authoritative hosted zones; that still would not establish the requested outcome: predict propagation of weighted DNS answers.

D:

DNS64 translates IPv4 address records into synthesised IPv6 addresses for IPv6-only clients; a NAT64-capable egress path must also exist for packets to reach IPv4 services; those conditions do not produce the required result: predict propagation of weighted DNS answers.

Question 828

An ALB target group speaks gRPC. The health RPC returns gRPC status 0, but targets remain unhealthy because the matcher was copied from an HTTP target group. What should be corrected?

  1. Set the ALB HTTP success-code matcher to 200 regardless of the target-group protocol version
  2. Replace the ALB with an NLB because ALBs cannot check gRPC services
  3. Disable target health checks so the listener can send traffic to every target
  4. Use a gRPC health-check matcher that includes gRPC status code 0 and an appropriate gRPC check path

Explanation

Correct Answer

D:

The ALB gRPC matcher accepts gRPC status codes, not HTTP status codes. Set the matcher to the service's expected successful code and target the callable health RPC.

Incorrect Answers

A:

HTTP status 200 and gRPC status 0 refer to different success-code namespaces. A gRPC target-group matcher must use supported gRPC codes.

B:

Application Load Balancers support gRPC target groups and gRPC health checks, so switching load-balancer type is unnecessary for this cause.

C:

Disabling checks does not establish that targets are ready and removes a useful failure-detection control rather than fixing the matcher.

Question 829

An organization delegates only the child zone api.partner.example to a different authoritative DNS provider. The parent example zone remains in Route 53. What must change?

  1. Associate the private hosted zone with the inbound endpoint's VPC B or use a supported forwarding architecture
  2. Publish the child zone's authoritative NS delegation in the parent public hosted zone
  3. Expect an NXDOMAIN from the private zone when no matching private record exists
  4. Use the most-specific matching Resolver rule, eu.corp.example

Explanation

Correct Answer

B:

The parent DNS zone must direct recursive resolvers to the child zone's authoritative name servers; changing the parent zone's registrar NS would delegate the entire parent domain instead.

Incorrect Answers

A:

An inbound Resolver endpoint resolves using the DNS view of its VPC, so a private hosted zone available only in another VPC is not automatically available across the connection; the scenario instead needs an action that will delegate a child DNS namespace.

C:

Associated private-zone answers take precedence for matching namespaces; a missing name in that zone is not automatically resolved from the public hosted zone of the same name; it changes a different aspect of the architecture rather than fulfilling the need to delegate a child DNS namespace.

D:

Route 53 Resolver chooses the forwarding rule whose domain suffix matches most specifically; the broader parent rule does not override a narrower rule for the nested namespace; the operational gap would remain because the question requires a way to delegate a child DNS namespace.

Question 830

A health check must represent the reachability of a private database endpoint with no public IP. What supported Route 53 design allows this private signal to affect DNS failover?

  1. Publish an application health metric to CloudWatch and base the Route 53 health check on its alarm
  2. Sign the Route 53 public hosted zone and publish its DS information at the parent delegation
  3. Enable DNSSEC validation for the VPC's Route 53 Resolver where supported
  4. Enable Evaluate Target Health for the relevant Route 53 alias records

Explanation

Correct Answer

A:

Standard Route 53 endpoint health checkers test public endpoints, whereas an alarm-based health check can reflect a custom probe that runs inside private connectivity.

Incorrect Answers

B:

Authoritative DNSSEC signing produces authenticated records, while the parent DS record allows validating resolvers to connect those signatures to the domain's delegation chain; it changes a different aspect of the architecture rather than fulfilling the need to monitor a private endpoint for DNS failover.

C:

Resolver validation checks cryptographic DNSSEC integrity of applicable DNS responses; it is separate from signing the organization's own authoritative hosted zones; the operational gap would remain because the question requires a way to monitor a private endpoint for DNS failover.

D:

Alias target-health evaluation can use the health of supported AWS targets for routing decisions, reducing reliance on separate manually maintained IP-based checks; it is not the action that directly makes the system monitor a private endpoint for DNS failover.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests