All AWS exams
Free ANS-C01 practice test: 30 questions with answers
30 original questions for AWS Certified Advanced Networking - Specialty, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 100 questions
- Real exam
- 65 questions, 170 min
All 30 ANS-C01 questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Network Implementation (8 questions)
Question 1
An EC2 instance in a private subnet must reach the internet for software updates while staying unreachable from the internet. Which combination fits?
- AA NAT gateway in a public subnet with a route from the private subnet to it
- BAn internet gateway attached directly to the private subnet's route table as the default target
- CA public IP on the instance with an allow-all security group rule
- DA site-to-site VPN tunnel to a home network over the public internet
Show answer and explanationHide answer
Correct answer: AA NAT gateway in a public subnet gives outbound-only internet access. Attaching an IGW to private subnets, public IPs with allow-all and home VPNs expose or do not solve the requirement.
Question 2
A VPC's security groups and network ACLs both apply to an instance's traffic. Which statement is accurate about how they evaluate traffic?
- ANetwork ACLs are stateless and apply at the subnet boundary; security groups are stateful and apply to the instance interface
- BBoth are stateful and apply at the internet gateway edge, so return traffic from the subnet is tracked by the gateway itself in flow logs
- CNeither applies to traffic leaving the instance, since outbound flows are exempt from both the subnet and interface filters by default
- DSecurity groups are stateless and evaluate each packet at the subnet boundary, while network ACLs are stateful and track connection state per interface
Show answer and explanationHide answer
Correct answer: ANetwork ACLs are stateless rules at the subnet level, and security groups are stateful at the interface. The other statements reverse or misstate these properties.
Question 3
An administrator must set up DNS so that instances in a VPC resolve private names for on-premises servers and on-premises clients resolve VPC names. Which service supports this hybrid resolution?
- AA public DNS record in a public hosted zone that maps private IPs
- BA hosts file edited manually on each instance and kept in sync with on-premises servers
- CDisabling DNS resolution in the VPC by turning off the Amazon resolver
- DAmazon Route 53 Resolver inbound and outbound endpoints with forwarding rules
Show answer and explanationHide answer
Correct answer: DResolver endpoints with forwarding rules provide bidirectional hybrid DNS. Hosts files do not scale, public records do not resolve private IPs appropriately, and disabling DNS breaks resolution.
Question 4
A Route 53 private hosted zone must resolve names inside a VPC. Which setting must be enabled for the VPC?
- APublic IP auto-assign enabled on each subnet alone
- BAn internet gateway attached to the VPC with no route
- CDNS resolution and DNS hostnames enabled in the VPC settings
- DA NAT gateway in a public subnet with no DNS setting
Show answer and explanationHide answer
Correct answer: CDNS resolution and hostnames must be enabled for private hosted zones to work. Public IP settings, gateways without routes and NAT alone do not enable resolution.
Question 5
A Transit Gateway attachment to a VPC must be created for a subnet. Which requirement applies to the subnet selected for the attachment?
- AThe subnet must use the same CIDR as on-premises network
- BNo subnet is required; the attachment uses default routing
- CA dedicated subnet in each Availability Zone used for the attachment
- DThe subnet must be public with an internet gateway route in its route table
Show answer and explanationHide answer
Correct answer: CTransit Gateway attachments use dedicated subnets in chosen AZs. Public routing, matching CIDRs to on-premises and no subnet requirement are incorrect.
Question 6
A load balancer must preserve the client's source IP address for backend application logging. Which load balancer type and setting supports this for TCP traffic?
- AA NAT gateway in front of the targets, translating each client source address
- BNetwork Load Balancer with client IP preservation enabled for the target group
- CApplication Load Balancer for raw TCP listeners, which forwards traffic without a header
- DClassic Load Balancer with default settings for HTTP and TCP listeners, which hides client IP
Show answer and explanationHide answer
Correct answer: BNetwork Load Balancers can preserve client IP for TCP targets when enabled. Classic defaults, ALB for raw TCP and NAT gateways do not provide that behaviour for this requirement.
Question 7
An ALB must route requests to different target groups based on the host header for two websites. Which feature does this?
- ANetwork ACL rules applied at the subnet boundary to match the Host header
- BA NAT gateway route table with a default route entry
- CA VPC peering connection between two VPCs in a Region
- DHost-based listener rules on the Application Load Balancer
Show answer and explanationHide answer
Correct answer: DHost-based rules on ALB listeners route by host header. NACLs filter traffic, NAT routes outbound traffic, and peering connects networks.
Question 8
An enterprise wants to inspect all outbound internet traffic from multiple VPCs using a managed firewall that filters by domain. Which service fits?
- AA security group on each instance's network interface, applied as stateful allow rules
- BAWS Network Firewall with domain filtering rules in a central inspection VPC
- CAmazon Route 53 health checks that monitor endpoints and fail over DNS records to a backup
- DAWS Shield Standard for DDoS protection on Elastic IPs and CloudFront
Show answer and explanationHide answer
Correct answer: BNetwork Firewall supports domain filtering and central inspection. Shield protects against DDoS, health checks monitor endpoints, and security groups are instance-level filters.
Network Security, Compliance and Governance (8 questions)
Question 9
A company must ensure that all traffic between its VPCs and the internet passes through a firewall that inspects TLS-encrypted traffic. Which design meets this requirement?
- ASecurity groups attached to each instance that filter by port and protocol, without inspecting payloads or TLS sessions
- BA centralized inspection VPC with decryption-capable firewall, reached through Gateway Load Balancer endpoints
- CRouting traffic through a VPN tunnel to an on-premises firewall for every user session before it reaches the internet
- DPublic IPs assigned to the instances, with stateless network ACL rules filtering subnet traffic and no inspection appliance
Show answer and explanationHide answer
Correct answer: BA centralized inspection design with decryption-capable firewalls, using Gateway Load Balancer endpoints to steer traffic, inspects encrypted traffic. Security groups do not inspect payloads, NACLs lack deep inspection, and VPN detours change the design without central inspection.
Question 10
A security team needs to control which Regions and services developers can use in a multi-account organization. Which control applies across all accounts?
- AService control policies at the organization root or OUs
- BNetwork ACLs in each subnet, filtering inbound and outbound packets
- CSecurity groups in each VPC for instance traffic
- DIAM policies attached in each member account, editable by its owners
Show answer and explanationHide answer
Correct answer: ASCPs set maximum permissions across member accounts. Per-account IAM policies can be changed locally, and security groups and NACLs control network traffic, not API actions.
Question 11
A regulated workload must not send traffic over the public internet, even for AWS service access. Which combination satisfies this requirement?
- AA NAT gateway in a public subnet that routes outbound service API calls to public AWS endpoints
- BPublic IPs on the instances and an internet gateway attached to the VPC, so service traffic reaches AWS endpoints over the internet
- CA site-to-site VPN tunnel over the internet to a virtual private gateway that carries traffic to AWS service endpoints
- DInterface VPC endpoints for required services, with routes and security groups limiting access to the VPC
Show answer and explanationHide answer
Correct answer: DInterface endpoints keep service traffic within the AWS network, and controls limit access. Public IPs, NAT paths over the internet and internet-based VPNs violate the requirement.
Question 12
A company must prevent any instance from being publicly reachable on SSH port 22. Which control enforces this across accounts?
- AAllowing 0.0.0.0/0 on port 22 in the default security group for convenience during developer onboarding
- BEnabling auto-assign public IPv4 addresses on subnets by default so each launched instance receives one
- CA service control policy or AWS Config rule that detects and prevents public SSH exposure
- DA note in the runbook asking engineers to avoid port 22 exposure, reviewed during annual audits
Show answer and explanationHide answer
Correct answer: CSCPs can prevent unsafe configurations and Config rules detect them. Notes, default public IPs and open SSH rules violate the requirement.
Question 13
A security team wants to detect unexpected outbound connections from VPC workloads to known malicious domains. Which service provides this detection?
- AAWS Artifact for compliance reports and agreement downloads
- BAmazon GuardDuty with VPC flow and DNS log analysis
- CAWS Budgets tracking monthly cost and usage levels
- DAmazon Macie discovering sensitive data stored in S3 buckets
Show answer and explanationHide answer
Correct answer: BGuardDuty analyses VPC flow and DNS logs to detect malicious connections. Macie finds sensitive data in S3, Artifact provides compliance reports, and Budgets track cost.
Question 14
An application must be protected from DDoS attacks at the network layer and receive support during large attacks. Which service fits best?
- AAWS Shield Standard, enabled by default with no added protection
- BAWS Shield Advanced with the protected resources defined
- CAWS Budgets tracking spend against limits
- DAWS Config recording resource configuration changes
Show answer and explanationHide answer
Correct answer: BShield Advanced provides enhanced protection and response support for specified resources. Standard is automatic but lacks the advanced protections and response team, while Budgets and Config do not protect against DDoS.
Question 15
A WAF is deployed in front of an application, and the team needs to block requests from specific countries. Which rule type applies?
- AA route table entry matching country
- BA security group rule scoped to source country
- CA DNS record using TTL values per country
- DA geographic match rule in the web ACL
Show answer and explanationHide answer
Correct answer: DGeographic match rules in a WAF web ACL block requests by country. Security groups and route tables do not evaluate geography, and DNS records are not country filters.
Question 16
A company's auditors ask for evidence of the network configuration history of its security groups over the past year. Which service provides this history?
- ACloudWatch dashboards showing metrics
- BAWS Snowball job logs and device state
- CAmazon SES sending statistics and logs
- DAWS Config configuration history
Show answer and explanationHide answer
Correct answer: DAWS Config records configuration history for resources, including security groups. Dashboards, SES and Snowball logs do not provide this resource history.
Network Design (7 questions)
Question 17
A company connects several VPCs in one Region to an on-premises data centre. The design must scale to many VPCs with centralized routing. Which AWS service should be used as the hub?
- AAWS Transit Gateway
- BVPC peering between every pair of VPCs
- CA NAT gateway in each VPC
- DDirect Connect with a public VIF only
Show answer and explanationHide answer
Correct answer: ATransit Gateway acts as a regional hub that scales with centralized routing. Full-mesh peering does not scale, NAT gateways translate addresses, and a public VIF is for public AWS endpoints.
Question 18
A hybrid network requires private connectivity from on-premises to a VPC with a dedicated, consistent bandwidth. Which service fits best?
- ASite-to-site VPN over the public internet alone, using IPsec tunnels to a virtual private gateway
- BPublic IP addresses on EC2 instances in a private subnet, reached over the internet gateway
- CA Client VPN endpoint for each remote user, authenticated with certificates or SAML over TLS
- DAWS Direct Connect with a private virtual interface to a Direct Connect gateway
Show answer and explanationHide answer
Correct answer: DDirect Connect with a private VIF provides dedicated connectivity into VPCs through a Direct Connect gateway. Internet-based VPN lacks guaranteed bandwidth, client VPN serves users, and public IPs expose traffic.
Question 19
A company must have resilient Direct Connect connectivity to protect against the failure of a single location. Which design is recommended?
- AA single connection at one location, upgraded to a larger bandwidth tier for peak load
- BConnections at two different Direct Connect locations with redundant routers
- CA site-to-site VPN backup that is not configured for dynamic routing, so it remains idle
- DNo redundancy because Direct Connect is a highly reliable managed service with an uptime SLA
Show answer and explanationHide answer
Correct answer: BRedundant connections at separate locations protect against site failure. A single connection, assumed reliability and unconfigured backups do not meet a resilience goal.
Question 20
An architect needs to route traffic between VPCs through a centralized inspection firewall using Transit Gateway. Which configuration achieves this?
- AAttaching the inspection firewall to a single subnet in one VPC alone, with no Transit Gateway attachment or route entries
- BRoute tables that send inter-VPC traffic to the inspection VPC attachment through the Transit Gateway
- CPeering the VPCs directly with VPC peering connections and disabling routing on the inspection subnets in both VPCs
- DSending inter-VPC traffic out through an internet gateway and back in through a public NAT path before final delivery
Show answer and explanationHide answer
Correct answer: BTransit Gateway route tables steer traffic through the inspection VPC attachment. Direct peering bypasses inspection, single-subnet attachment does not route between all VPCs, and internet loops are inefficient and insecure.
Question 21
A company needs to allow overlapping CIDR blocks between two VPCs that must communicate with a shared service. Which design addresses the overlap?
- ADisable IP routing entirely on the Transit Gateway route tables, which blocks the shared service VPC
- BRoute the overlapping CIDR ranges directly through a static route and hope the route tables resolve the overlap
- CUse a NAT-based solution such as AWS PrivateLink or an intermediate service that avoids routing the overlapping ranges directly
- DRenumber the on-premises network without planning the change windows, DHCP scopes, DNS zones or BGP sessions
Show answer and explanationHide answer
Correct answer: COverlapping CIDRs cannot be routed directly, so PrivateLink or NAT-based designs are used. Direct routing of overlaps fails, renumbering without planning is disruptive, and disabling routing breaks connectivity.
Question 22
A global application uses a set of endpoints in several Regions and needs users to reach the nearest healthy endpoint with static IP addresses. Which service fits?
- AAmazon Route 53 simple routing only
- BAmazon CloudFront for TCP traffic
- CAWS Direct Connect
- DAWS Global Accelerator
Show answer and explanationHide answer
Correct answer: DGlobal Accelerator provides static anycast IPs and routes to the nearest healthy endpoint. Simple DNS routing does not give static IPs, Direct Connect is a dedicated link, and CloudFront is for HTTP content.
Question 23
A company's applications need to access an AWS service privately from its VPC, without traffic crossing the internet. Which feature provides private access to many AWS services?
- AA public IP on each instance's network interface
- BAn internet gateway attached with a public route table
- CInterface VPC endpoints powered by AWS PrivateLink
- DA NAT gateway with public routing tables
Show answer and explanationHide answer
Correct answer: CInterface endpoints deliver private access to many AWS services through PrivateLink. Public IPs, NAT with public routing and internet gateways use the internet path.
Network Management and Operations (7 questions)
Question 24
A network team wants to be alerted when a Site-to-Site VPN tunnel goes down. Which mechanism provides this?
- ARelying on users to report the outage through support tickets later
- BCloudWatch metrics for the VPN tunnel state with an alarm sending a notification
- CDisabling health monitoring on the tunnel to reduce alarm noise from brief route flaps at night
- DChecking the VPN console once a day and reviewing tunnel status manually
Show answer and explanationHide answer
Correct answer: BVPN tunnel metrics in CloudWatch with alarms provide automated notification. Daily checks, disabled monitoring and user reports are slow or absent.
Question 25
A team needs visibility into the path and latency between two applications across a hybrid network. Which tool provides this?
- AA weekly email summary sent by end users about slow apps
- BVPC Reachability Analyzer and Network Monitor for latency measurements
- CA local hosts file that maps application names to IP addresses
- DA spreadsheet of IP addresses maintained manually by the cloud team
Show answer and explanationHide answer
Correct answer: BReachability Analyzer checks paths and Network Monitor measures latency and connectivity. Spreadsheets, hosts files and emails do not measure paths.
Question 26
A network engineer wants to confirm why traffic between two instances is being blocked. Which AWS feature analyzes the configured path and identifies the blocking component?
- AVPC Reachability Analyzer
- BAWS Cost Explorer Tags
- CAmazon Macie Findings
- DAWS Backup Vault Lock
Show answer and explanationHide answer
Correct answer: AReachability Analyzer evaluates configuration to show whether a path is reachable and which component blocks it. Cost, data discovery and backups are unrelated.
Question 27
A team needs to capture traffic metadata for all instances in a subnet to investigate unusual connections. Which feature should be enabled?
- AAmazon Inspector scans
- BAWS Config only
- CEnabling payload capture on every packet
- DVPC Flow Logs at the subnet level
Show answer and explanationHide answer
Correct answer: DVPC Flow Logs at subnet level capture metadata for traffic in the subnet. Packet payload capture is not what flow logs provide, Config tracks configuration, and Inspector assesses vulnerabilities.
Question 28
An operator must analyze DNS query patterns from VPC resources to detect suspicious domains. Which logging feature should be enabled?
- ARoute 53 Resolver query logging
- BCloudTrail management events only
- CVPC flow logs only
- DAWS Budgets alerts
Show answer and explanationHide answer
Correct answer: AResolver query logging records DNS queries from VPC resources. Flow logs show IP metadata but not DNS queries, CloudTrail records API calls, and Budgets track costs.
Question 29
A company uses Direct Connect and wants to monitor the physical connection's health, including link status and light levels. Which resource provides this data?
- AA network printer log showing paper jams and toner levels in the lobby
- BDirect Connect connection metrics in CloudWatch and the connection status in the console
- CThe VPC's DNS settings for hostname and resolution support on each subnet
- DThe EC2 instance's CPU utilization and memory metrics on the guest OS kernel
Show answer and explanationHide answer
Correct answer: BDirect Connect connection metrics and status show link health. Printer logs, DNS settings and CPU metrics do not reflect the physical link.
Question 30
A network architect wants to receive a notification when a BGP route is withdrawn over Direct Connect. Which approach supports this?
- AMonitor BGP-related metrics and events, and send notifications through an alarm or EventBridge
- BCheck the route table once a month in the VPC console and compare the entries with the on-premises routing table
- CRemove BGP from the Direct Connect gateway configuration and use static routes across attached VPCs
- DAsk the on-premises network team to tell you whenever a route is withdrawn during the next weekly review
Show answer and explanationHide answer
Correct answer: AAlarms and EventBridge notify on route events or metric changes. Monthly checks, removing BGP and informal reporting are not timely or reliable.