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.

Question 341

A security architect wants to isolate outbound connections from workloads to a vendor's AWS API without granting the vendor any inbound reachability to internal VPC CIDRs. What service is appropriate?

  1. Configure supported interface VPC endpoint policies together with IAM and resource policies
  2. Publish the selected service through PrivateLink with approved endpoint consumers
  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

C:

Consumer endpoints expose a local private interface to a selected service and do not establish general-purpose reciprocal VPC routes.

Incorrect Answers

A:

Endpoint policy permissions are an additional authorization boundary for traffic using the endpoint, not a substitute for identity permissions; that addresses authorization filtering on private AWS service endpoints, rather than narrowly scoped private vendor-service access.

B:

PrivateLink limits network exposure to a specific service endpoint without requiring full routed adjacency between customer and provider address ranges; this belongs to least-exposure private application connectivity, while the problem is narrowly scoped private vendor-service access.

D:

In the private endpoint interface security-group authorization workflow, interface endpoints use ENIs and security groups; traffic needs network admission at those endpoint interfaces; the current case needs narrowly scoped private vendor-service access.

Question 342

A database should accept only approved application sources, and the surrounding subnet must explicitly deny a known malicious CIDR. Which TWO controls fit their respective scopes? Choose TWO.

  1. Segment attachments using separate TGW route-table associations and propagation restrictions
  2. Send the IPv6 default route to an egress-only internet gateway
  3. Add a narrow deny rule in the subnet network ACL ahead of broader allows
  4. Configure an AWS WAF geo-match rule on the supported web ACL
  5. Restrict ingress with a security-group rule referencing the approved calling tier

Explanation

Correct Answers

C:

NACLs offer ordered deny rules at the subnet boundary, unlike security groups, which support allow rules but not explicit denies; this covers the blocking a specific source using an explicit network deny component of the combined scenario.

E:

Stateful security groups can match source security-group identity rather than broadly allowing an entire VPC or unpredictable load-balancer addresses; this covers the stateful source-restricted access from load balancer to target component of the combined scenario.

Incorrect Answers

A:

Transit routing tables create forwarding domains; a shared attachment hub need not imply universal VPC reachability; that addresses routing-based isolation among tenant VPCs, rather than approved application security-group sources plus NACL denial.

B:

Egress-only internet gateways allow IPv6 outbound connections and their replies without offering public initiation into the VPC; this belongs to stateful-looking outbound-only IPv6 gateway control, while the problem is approved application security-group sources plus NACL denial.

D:

In the geography-based web request enforcement workflow, WAF inspects inferred geographic source attributes on HTTP requests and can block requests that match the location policy; the current case needs approved application security-group sources plus NACL denial.

Question 343

An EC2 database must accept queries from application servers but not from administration hosts that share the subnet. Which control is best scoped to the requirement?

  1. Restrict ingress with a security-group rule referencing the approved calling tier
  2. Add a narrow deny rule in the subnet network ACL ahead of broader allows
  3. Restrict the database security group to the application servers' security-group identity or narrow source CIDRs
  4. Apply Firewall Manager security-group policies or organization-wide compliance rules

Explanation

Correct Answer

C:

ENI-level security groups distinguish callers even when multiple hosts reside in one subnet that shares a NACL.

Incorrect Answers

A:

Stateful security groups can match source security-group identity rather than broadly allowing an entire VPC or unpredictable load-balancer addresses; that addresses stateful source-restricted access from load balancer to target, rather than resource-specific database ingress separation.

B:

NACLs offer ordered deny rules at the subnet boundary, unlike security groups, which support allow rules but not explicit denies; this belongs to blocking a specific source using an explicit network deny, while the problem is resource-specific database ingress separation.

D:

In the centrally governed exposure of sensitive database ports workflow, central policy scans and enforces supported security-group posture at scale rather than relying on individual account owners to self-audit; the current case needs resource-specific database ingress separation.

Question 344

A subnet NACL has a broad TCP DENY with rule number 90 and a more specific HTTPS ALLOW with rule number 100. Connections still fail despite the allow entry. What change fixes the rule-evaluation order?

  1. Give the specific ALLOW a higher rule number such as 110
  2. Enable stateful return tracking for the network ACL
  3. Modify only the instance security group while leaving the NACL order unchanged
  4. Place the intended narrow HTTPS ALLOW at a lower rule number than the overlapping DENY

Explanation

Correct Answer

D:

Network ACL rules are evaluated in ascending rule-number order and stop at the first match. An earlier broad DENY defeats a later narrow ALLOW; change the order and verify return-direction rules as needed.

Incorrect Answers

A:

NACLs evaluate from the lowest rule number first, so a number of 110 makes the exception even later than the blocking DENY 90.

B:

NACLs are stateless. They do not gain connection tracking by changing a setting; explicit numbered rules determine each direction.

C:

A security-group allow rule cannot override a subnet ACL DENY that matches the packet first. The subnet NACL is stateless and its first matching numbered rule decides admission.

Question 345

A security engineer wants high-assurance control over which accounts may launch an Internet-facing ALB. Which preventative administrative layer can assist?

  1. Treat SCPs as controls on permitted API actions, not as network dataplane firewalls
  2. Apply Firewall Manager security-group policies or organization-wide compliance rules
  3. Restrict ingress with a security-group rule referencing the approved calling tier
  4. Front the virtual appliances with Gateway Load Balancer and expose GWLB endpoints
  5. Consume the vendor API through an authorized PrivateLink interface endpoint
  6. Use organization-level IAM guardrails such as SCPs with compliant provisioning processes

Explanation

Correct Answer

F:

SCPs can limit API privileges of member-account identities while runtime packet exposure still requires load-balancer and VPC controls.

Incorrect Answers

A:

Service control policies limit identities' effective AWS permissions; they do not replace security groups, NACLs, or firewall routing; that addresses separation of organizational API governance and packet admission, rather than preventive guardrails for risky public networking deployments.

B:

Central policy scans and enforces supported security-group posture at scale rather than relying on individual account owners to self-audit; this belongs to centrally governed exposure of sensitive database ports, while the problem is preventive guardrails for risky public networking deployments.

C:

Stateful security groups can match source security-group identity rather than broadly allowing an entire VPC or unpredictable load-balancer addresses; this changes stateful source-restricted access from load balancer to target, not the necessary preventive guardrails for risky public networking deployments.

D:

In the scalable inline third-party firewall appliances workflow, gateway Load Balancer transparently distributes encapsulated flows to virtual appliances, while endpoints provide route-table insertion points; the current case needs preventive guardrails for risky public networking deployments.

E:

This produces narrowly scoped private vendor-service access: Consumer endpoints expose a local private interface to a selected service and do not establish general-purpose reciprocal VPC routes; the stem instead tests preventive guardrails for risky public networking deployments.

Question 346

A shared firewall policy must protect different types of application load balancers and supported network resources across multiple AWS accounts. Which service is for centralized rule deployment?

  1. Manage eligible protections with AWS Firewall Manager under AWS Organizations
  2. Deploy AWS Network Firewall with appropriate stateful rule groups in the traffic path
  3. Use a multi-AZ Gateway Load Balancer and compatible endpoint routing to appliance targets
  4. Publish the selected service through PrivateLink with approved endpoint consumers

Explanation

Correct Answer

A:

Firewall Manager coordinates supported WAF, Shield, network firewall, and security-group policies organization-wide.

Incorrect Answers

B:

Network Firewall inspects flows with stateful rule evaluation and can apply supported Suricata or domain-oriented rules at routed inspection endpoints; this belongs to managed stateful deep inspection of VPC flows, while the problem is centralized multi-account network security policy rollout.

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 centralized multi-account network security policy rollout.

D:

In the least-exposure private application connectivity workflow, privateLink limits network exposure to a specific service endpoint without requiring full routed adjacency between customer and provider address ranges; the current case needs centralized multi-account network security policy rollout.

Question 347

A security operations team needs a near-real-time, best-effort notification when someone changes a Transit Gateway route through the Amazon EC2 API. The organization already records the corresponding management calls in AWS CloudTrail. Which event-driven configuration should it add?

  1. Create an EventBridge rule for AWS API Call via CloudTrail events matching the relevant EC2 Transit Gateway route API eventName values, and send matches to a notification target
  2. Enable VPC Flow Logs on every attachment and expect them to identify the IAM user making TGW API calls
  3. Use a DNS Firewall domain list and block the names of Transit Gateway route-table objects
  4. Set the TGW route table to static-only and assume AWS sends an administrative alert for every edit

Explanation

Correct Answer

A:

EventBridge can match CloudTrail-delivered write management events by source, detail-type, eventSource and eventName. A notification target can alert on TGW route API modifications on a best-effort delivery basis.

Incorrect Answers

B:

Flow Logs record observed IP traffic, not which authenticated IAM principal called CreateTransitGatewayRoute or DeleteTransitGatewayRoute on the control plane.

C:

DNS Firewall filters DNS name lookups. Transit Gateway routing updates are AWS EC2 management API events, which are unrelated to the application DNS query policy.

D:

Restricting route-table propagation changes forwarding behavior, not the notification workflow. It does not automatically send incident alerts on an operator’s API changes.

Question 348

A security team needs an immutable retention strategy for VPC flow evidence across accounts. What architecture is appropriate?

  1. Grant the flow-log delivery role the required CloudWatch Logs write permissions
  2. Use request-level application or load-balancer logs because VPC Flow Logs are flow metadata
  3. Enable VPC Flow Logs and query their action fields for the affected network resources
  4. Deliver VPC Flow Logs to centrally governed storage with restrictive write/delete controls and retention

Explanation

Correct Answer

D:

Centralized log custody and controlled permissions reduce risk that workload operators can erase records of network activity.

Incorrect Answers

A:

Delivery configuration and IAM authorization must both allow log-stream creation and event publication; that addresses authorized publication of VPC flow telemetry, rather than tamper-resistant multi-account network flow retention.

B:

Network flow summaries do not include HTTP payload and URI content, so a different telemetry layer is required; this belongs to selecting the right logging layer for HTTP investigation, while the problem is tamper-resistant multi-account network flow retention.

C:

Flow logs record accept/reject decisions and packet metadata at the chosen aggregation scope; this changes rejected flow evidence across VPC environments, not the necessary tamper-resistant multi-account network flow retention.

Question 349

A forensic analyst must compare rejected inbound connections across four VPCs. Which logging source supplies the relevant action flag?

  1. Enable VPC Flow Logs and query their action fields for the affected network resources
  2. Deliver VPC Flow Logs to centrally governed storage with restrictive write/delete controls and retention
  3. Analyze VPC Flow Logs with the relevant source, destination, port and byte fields
  4. Enable and inspect Network Firewall alert or flow logs with the matched policy context

Explanation

Correct Answer

A:

Flow logs record accept/reject decisions and packet metadata at the chosen aggregation scope. ACCEPT and REJECT represent the recorded interface-level flow disposition; they do not identify the exact security rule by themselves.

Incorrect Answers

B:

Centralized log custody and controlled permissions reduce risk that workload operators can erase records of network activity; this belongs to tamper-resistant multi-account network flow retention, while the problem is rejected flow evidence across VPC environments.

C:

Aggregate bytes reveal load but not communicating endpoints; flow records provide connection-oriented metadata; this changes network endpoint attribution for data movement, not the necessary rejected flow evidence across VPC environments.

D:

In the detailed managed firewall policy outcome evidence workflow, firewall event logs provide inspection decisions and flow state that ordinary VPC flow logs cannot fully describe; the current case needs rejected flow evidence across VPC environments.

Question 350

A review requires full HTTP request headers and response codes for an ALB-backed application. Which logs should be selected?

  1. Configure AWS WAF logging to an appropriate supported destination
  2. Create an AWS Config compliance check for supported ALB access-log settings
  3. Enable the ALB access logs and complement them with application logging where full headers are required
  4. Use request-level application or load-balancer logs because VPC Flow Logs are flow metadata

Explanation

Correct Answer

C:

ALB access logging contains structured HTTP request details, while complete custom header capture may require application-level instrumentation.

Incorrect Answers

A:

WAF request logs show rule evaluation and final actions, providing decision evidence beyond CloudFront's general access response; that addresses rule-level web firewall decision evidence, rather than web request forensic evidence beyond network metadata.

B:

Configuration assessment can flag resources that violate the required monitoring policy without sampling their live traffic; this belongs to automated verification of load-balancer logging posture, while the problem is web request forensic evidence beyond network metadata.

D:

In the selecting the right logging layer for HTTP investigation workflow, network flow summaries do not include HTTP payload and URI content, so a different telemetry layer is required; the current case needs web request forensic evidence beyond network metadata.

AWS Certified Advanced Networking - Specialty ANS-C01 Practice Tests