Question 330

A company uses a dedicated inspection VPC, but spokes can bypass it by propagating direct routes to one another. Which architecture change fixes the bypass?

  1. Rework route tables to carry all protected paths through the firewall endpoints
  2. Validate failure routing behavior of the firewall appliance and inspection path through controlled failover tests
  3. Restrict spoke-to-spoke route propagation and force eligible destinations via the inspection attachment
  4. Route egress through an inspection or egress VPC with controlled NAT, firewall, and routing

Explanation

Correct Answer

C:

Routing must make the inspection hop the viable path; merely deploying firewalls does not ensure packets traverse them.

Incorrect Answers

A:

Firewall rules protect only traffic traversing their enforcement points; route bypass makes those policies ineffective; that addresses enforced packet path through inspection resources, rather than mandatory central inspection via transit routing.

B:

Whether traffic bypasses, drops, or reroutes on failure depends on the chosen firewall and routing architecture, not simply on a healthy policy configuration; this belongs to demonstrated fail-closed forwarding behavior, while the problem is mandatory central inspection via transit routing.

D:

In the inspected outbound connectivity from private workloads workflow, centralized egress controls outbound paths at routing and firewall layers while workload subnets remain unexposed to an Internet gateway; the current case needs mandatory central inspection via transit routing.

Question 331

An auditor asks whether an SCP blocking `ec2:AuthorizeSecurityGroupIngress` filters existing packet flows. What is the correct interpretation?

  1. Restrict spoke-to-spoke route propagation and force eligible destinations via the inspection attachment
  2. Keep stateful flow affinity and assess session impact during appliance scaling and replacement
  3. Treat SCPs as controls on permitted API actions, not as network dataplane firewalls
  4. Correlate AWS Config configuration history with CloudTrail API modification events

Explanation

Correct Answer

C:

Service control policies limit identities' effective AWS permissions; they do not replace security groups, NACLs, or firewall routing.

Incorrect Answers

A:

Routing must make the inspection hop the viable path; merely deploying firewalls does not ensure packets traverse them; that addresses mandatory central inspection via transit routing, rather than separation of organizational API governance and packet admission.

B:

Stateful inspection depends on flow context; indiscriminate mid-session target changes can reset sessions even when the replacement is healthy; this belongs to session-state integrity under security appliance scaling, while the problem is separation of organizational API governance and packet admission.

D:

In the detecting and attributing prolonged network policy drift workflow, config shows posture over time while CloudTrail records the principals and APIs that created permissive rules; the current case needs separation of organizational API governance and packet admission.

Question 332

Security policy forbids workloads from directly reaching an S3 bucket using general Internet egress. What bucket-level condition can reinforce an endpoint-only path?

  1. Apply an appropriately limited S3 gateway endpoint policy and bucket resource controls
  2. Permit endpoint ENI ingress on the service port from only the approved workload sources
  3. Configure supported interface VPC endpoint policies together with IAM and resource policies
  4. Add a bucket policy condition requiring access through the approved VPC endpoint, with necessary operational exceptions

Explanation

Correct Answer

D:

Resource policies can check the endpoint context of S3 requests and reject those arriving from disallowed network paths.

Incorrect Answers

A:

Endpoint policies constrain actions and resources used through an endpoint; complementary bucket policies can govern resource-side access; that addresses private endpoint access constrained to authorized storage resources, rather than resource-side enforcement of private endpoint origin.

B:

Interface endpoints use ENIs and security groups; traffic needs network admission at those endpoint interfaces; this belongs to private endpoint interface security-group authorization, while the problem is resource-side enforcement of private endpoint origin.

C:

Endpoint policy permissions are an additional authorization boundary for traffic using the endpoint, not a substitute for identity permissions; this changes authorization filtering on private AWS service endpoints, not the necessary resource-side enforcement of private endpoint origin.

Question 333

An operations team needs to ensure no security group opens database port 5432 to the global Internet across organizational accounts. What central managed control fits?

  1. Use organization-level IAM guardrails such as SCPs with compliant provisioning processes
  2. Permit endpoint ENI ingress on the service port from only the approved workload sources
  3. Apply Firewall Manager security-group policies or organization-wide compliance rules
  4. Create an AWS Firewall Manager policy for the relevant organization accounts and ALB resources
  5. Restrict the database security group to the application servers' security-group identity or narrow source CIDRs

Explanation

Correct Answer

C:

Central policy scans and enforces supported security-group posture at scale rather than relying on individual account owners to self-audit.

Incorrect Answers

A:

SCPs can limit API privileges of member-account identities while runtime packet exposure still requires load-balancer and VPC controls; that addresses preventive guardrails for risky public networking deployments, rather than centrally governed exposure of sensitive database ports.

B:

Interface endpoints use ENIs and security groups; traffic needs network admission at those endpoint interfaces; this belongs to private endpoint interface security-group authorization, while the problem is centrally governed exposure of sensitive database ports.

D:

In the organization-wide application firewall policy enforcement workflow, firewall Manager centrally applies and audits supported protections across eligible accounts rather than relying on each workload team; the current case needs centrally governed exposure of sensitive database ports.

E:

This produces resource-specific database ingress separation: ENI-level security groups distinguish callers even when multiple hosts reside in one subnet that shares a NACL; the stem instead tests centrally governed exposure of sensitive database ports.

Question 334

A custom network firewall cannot preserve packet flows after an autoscaling event because replacement instances lack the prior session state. What design principle matters?

  1. Keep stateful flow affinity and assess session impact during appliance scaling and replacement
  2. Enable appliance mode on the transit attachment used by the centralized inspection VPC
  3. Use a multi-AZ Gateway Load Balancer and compatible endpoint routing to appliance targets
  4. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path

Explanation

Correct Answer

A:

Stateful inspection depends on flow context; indiscriminate mid-session target changes can reset sessions even when the replacement is healthy.

Incorrect Answers

B:

Appliance mode preserves flow symmetry through a stateful inspection VPC attachment so connection tracking can evaluate both directions; this belongs to stateful firewall flow symmetry across AZs, while the problem is session-state integrity under security appliance scaling.

C:

Gateway Load Balancer routes flows to available firewall appliance instances through transparent endpoints, improving scaling and failure handling; this changes highly available virtual firewall insertion, not the necessary session-state integrity under security appliance scaling.

D:

In the managed stateful deep inspection of VPC flows workflow, network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; the current case needs session-state integrity under security appliance scaling.

Question 335

A subnet must deny all inbound traffic from one address while permitting established flows for other sources. Which ACL characteristic requires care?

  1. Permit the required outbound response port range to the calling networks
  2. Use a NAT gateway in a routed egress subnet with proper private subnet routes
  3. Send the IPv6 default route to an egress-only internet gateway
  4. Configure ordered inbound and outbound NACL entries with appropriate return-path allowances

Explanation

Correct Answer

D:

NACLs are stateless, so response packets require explicit matching permissions despite any inbound allow decisions.

Incorrect Answers

A:

Stateless ACLs evaluate response packets independently; an inbound 443 allow does not automatically permit outbound ephemeral return traffic; that addresses complementary stateless response permissions, rather than ordered stateless filtering with complete return traffic.

B:

NAT gateway enables outbound-initiated IPv4 communication from private addresses without exposing those addresses as inbound endpoints; this belongs to egress without public IP assignment on workloads, while the problem is ordered stateless filtering with complete return traffic.

C:

Egress-only internet gateways allow IPv6 outbound connections and their replies without offering public initiation into the VPC; this changes stateful-looking outbound-only IPv6 gateway control, not the necessary ordered stateless filtering with complete return traffic.

Question 336

An AWS service is accessible through a VPC interface endpoint but its endpoint security group blocks inbound TCP 443 from application subnets. What should change?

  1. Add a bucket policy condition requiring access through the approved VPC endpoint, with necessary operational exceptions
  2. Configure supported interface VPC endpoint policies together with IAM and resource policies
  3. Consume the vendor API through an authorized PrivateLink interface endpoint
  4. Permit endpoint ENI ingress on the service port from only the approved workload sources

Explanation

Correct Answer

D:

Interface endpoints use ENIs and security groups; traffic needs network admission at those endpoint interfaces.

Incorrect Answers

A:

Resource policies can check the endpoint context of S3 requests and reject those arriving from disallowed network paths; that addresses resource-side enforcement of private endpoint origin, rather than private endpoint interface security-group authorization.

B:

Endpoint policy permissions are an additional authorization boundary for traffic using the endpoint, not a substitute for identity permissions; this belongs to authorization filtering on private AWS service endpoints, while the problem is private endpoint interface security-group authorization.

C:

Consumer endpoints expose a local private interface to a selected service and do not establish general-purpose reciprocal VPC routes; this changes narrowly scoped private vendor-service access, not the necessary private endpoint interface security-group authorization.

Question 337

A public-facing CloudFront distribution needs one standardized WAF web ACL across deployments. What association point is correct?

  1. Apply Firewall Manager security-group policies or organization-wide compliance rules
  2. Associate an AWS WAF web ACL with the CloudFront distribution at the supported global scope
  3. Configure an AWS WAF geo-match rule on the supported web ACL
  4. Associate an AWS WAF web ACL with the Application Load Balancer

Explanation

Correct Answer

B:

CloudFront WAF integration evaluates viewer HTTP requests at the edge, before they reach the distribution's origin.

Incorrect Answers

A:

Central policy scans and enforces supported security-group posture at scale rather than relying on individual account owners to self-audit; that addresses centrally governed exposure of sensitive database ports, rather than edge-level web filtering for a CDN.

C:

WAF inspects inferred geographic source attributes on HTTP requests and can block requests that match the location policy; this changes geography-based web request enforcement, not the necessary edge-level web filtering for a CDN.

D:

In the application-layer web request filtering workflow, WAF evaluates application-layer request properties and managed or custom rules to block malicious HTTP patterns before forwarding; the current case needs edge-level web filtering for a CDN.

Question 338

A company stores secrets in backend application responses, but wants to prevent caching of these responses by its CDN. Which network-policy adjustment is crucial?

  1. Permit the required outbound response port range to the calling networks
  2. Associate an AWS WAF web ACL with the CloudFront distribution at the supported global scope
  3. Set CloudFront cache policies and response cache directives to prevent sensitive personalized response reuse
  4. Restrict the database security group to the application servers' security-group identity or narrow source CIDRs

Explanation

Correct Answer

C:

Shared edge caches must not reuse private user content across callers; proper cache-key and cache-control policy are essential confidentiality boundaries.

Incorrect Answers

A:

Stateless ACLs evaluate response packets independently; an inbound 443 allow does not automatically permit outbound ephemeral return traffic; that addresses complementary stateless response permissions, rather than avoidance of cross-user leakage through edge caching.

B:

CloudFront WAF integration evaluates viewer HTTP requests at the edge, before they reach the distribution's origin; this belongs to edge-level web filtering for a CDN, while the problem is avoidance of cross-user leakage through edge caching.

D:

In the resource-specific database ingress separation workflow, ENI-level security groups distinguish callers even when multiple hosts reside in one subnet that shares a NACL; the current case needs avoidance of cross-user leakage through edge caching.

Question 339

A multi-account environment needs protection at three different network layers: HTTP injection against an ALB, stateful inspection of routed VPC flows, and isolation of tenant VPCs at the transit hub. Which THREE controls correspond to those requirements? Choose THREE.

  1. Segment attachments using separate TGW route-table associations and propagation restrictions
  2. Apply an appropriately limited S3 gateway endpoint policy and bucket resource controls
  3. Apply network ACL allow and deny rules to the affected subnet
  4. Use stateless NACL deny rules in the applicable subnet associations
  5. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  6. Associate an AWS WAF web ACL with the Application Load Balancer

Explanation

Correct Answers

A:

Transit routing tables create forwarding domains; a shared attachment hub need not imply universal VPC reachability; this covers the routing-based isolation among tenant VPCs component of the combined scenario.

E:

Network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; this covers the managed stateful deep inspection of VPC flows component of the combined scenario.

F:

WAF evaluates application-layer request properties and managed or custom rules to block malicious HTTP patterns before forwarding; this covers the application-layer web request filtering component of the combined scenario.

Incorrect Answers

B:

Endpoint policies constrain actions and resources used through an endpoint; complementary bucket policies can govern resource-side access; this belongs to private endpoint access constrained to authorized storage resources, while the problem is HTTP WAF, routed stateful inspection, and transit tenant isolation.

C:

NACLs evaluate inbound and outbound packets without connection state and support explicit deny actions at the subnet boundary; this changes stateless subnet-wide packet filtering with deny rules, not the necessary HTTP WAF, routed stateful inspection, and transit tenant isolation.

D:

In the explicit subnet-level denial of hostile CIDR traffic workflow, the ordered NACL rule set evaluates every matching packet direction and can block identified sources without instance-by-instance rule changes; the current case needs HTTP WAF, routed stateful inspection, and transit tenant isolation.

Question 340

A new central network firewall is deployed but routes to an attachment skip the firewall subnets. Why is this insecure?

  1. Rework route tables to carry all protected paths through the firewall endpoints
  2. Use appropriate alert rules in a stateful Network Firewall rule group
  3. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  4. Manage eligible protections with AWS Firewall Manager under AWS Organizations

Explanation

Correct Answer

A:

Firewall rules protect only traffic traversing their enforcement points; route bypass makes those policies ineffective.

Incorrect Answers

B:

Alert actions can log matching traffic observations without requiring immediate blocking for every trial signature; this belongs to nonblocking stateful threat detection, while the problem is enforced packet path through inspection resources.

C:

Network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; this changes managed stateful deep inspection of VPC flows, not the necessary enforced packet path through inspection resources.

D:

In the centralized multi-account network security policy rollout workflow, firewall Manager coordinates supported WAF, Shield, network firewall, and security-group policies organization-wide; the current case needs enforced packet path through inspection resources.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests