ANS-C01 sample exam questions

15 exam-style questions for AWS ANS-C01: Advanced Networking Specialty, with answers and explanations. Take them as a timed practice exam first if you want a score out of 1000.

  1. Question 1Single choiceNetwork Design
    A company’s network engineer needs to design a new solution to help troubleshoot and detect network anomalies. The network engineer has configured Traffic Mirroring. However, the mirrored traffic is overwhelming the Amazon EC2 instance that is the traffic mirror target. The EC2 instance hosts tools that the company’s security team uses to analyze the traffic. The network engineer needs to design a highly available solution that can scale to meet the demand of the mirrored traffic.
    Which solution will meet these requirements?
    1. A
      Deploy a Network Load Balancer (NLB) as the traffic mirror target. Behind the NLB. deploy a fleet of EC2 instances in an Auto Scaling group. Use Traffic Mirroring as necessary.
    2. B
      Deploy an Application Load Balancer (ALB) as the traffic mirror target. Behind the ALB, deploy a fleet of EC2 instances in an Auto Scaling group. Use Traffic Mirroring only during non-business hours.
    3. C
      Deploy a Gateway Load Balancer (GLB) as the traffic mirror target. Behind the GLB. deploy a fleet of EC2 instances in an Auto Scaling group. Use Traffic Mirroring as necessary.
    4. D
      Deploy an Application Load Balancer (ALB) with an HTTPS listener as the traffic mirror target. Behind the ALB. deploy a fleet of EC2 instances in an Auto Scaling group. Use Traffic Mirroring only during active events or business hours.
    Show answer

    Correct answer: A

    Why

    An NLB is a valid traffic mirror target, and it spreads mirrored traffic across an Auto Scaling group of analysis instances for scale and availability. ALBs are not supported targets, and a Gateway Load Balancer is used through its endpoint rather than directly as a target.

  2. Question 2Single choiceNetwork Design
    A company hosts an application on Amazon EC2 instances behind an Application Load Balancer (ALB). The company recently experienced a network security breach. A network engineer must collect and analyze logs that include the client IP address, target IP address, target port, and user agent of each user that accesses the application.
    What is the MOST operationally efficient solution that meets these requirements?
    1. A
      Configure the ALB to store logs in an Amazon S3 bucket. Download the files from Amazon S3, and use a spreadsheet application to analyze the logs.
    2. B
      Configure the ALB to push logs to Amazon Kinesis Data Streams. Use Amazon Kinesis Data Analytics to analyze the logs.
    3. C
      Configure Amazon Kinesis Data Streams to stream data from the ALB to Amazon OpenSearch Service (Amazon Elasticsearch Service). Use search operations in Amazon OpenSearch Service (Amazon Elasticsearch Service) to analyze the data.
    4. D
      Configure the ALB to store logs in an Amazon S3 bucket. Use Amazon Athena to analyze the logs in Amazon S3.
    Show answer

    Correct answer: D

    Why

    ALB access logs include the client IP, target IP and port, and user agent, and they are stored in S3, where Athena can query them with no servers. Spreadsheets do not scale, and ALBs do not stream logs directly to Kinesis.

  3. Question 3Single choiceNetwork Security, Compliance, and Governance
    A network engineer must provide additional safeguards to protect encrypted data at Application Load Balancers (ALBs) through the use of a unique random session key.
    What should the network engineer do to meet this requirement?
    1. A
      Change the ALB security policy to a policy that supports TLS 1.2 protocol only
    2. B
      Use AWS Key Management Service (AWS KMS) to encrypt session keys
    3. C
      Associate an AWS WAF web ACL with the ALBs. and create a security rule to enforce forward secrecy (FS)
    4. D
      Change the ALB security policy to a policy that supports forward secrecy (FS)
    Show answer

    Correct answer: D

    Why

    Forward secrecy uses a unique random session key, which stops captured traffic being decrypted later even if the long-term key is exposed. On an ALB, this comes from selecting a security policy with FS ciphers. TLS 1.2 alone does not guarantee it, and KMS and WAF do not control TLS sessions.

  4. Question 4Single choiceNetwork Security, Compliance, and Governance
    A security team is performing an audit of a company's AWS deployment. The security team is concerned that two applications might be accessing resources that should be blocked by network ACLs and security groups. The applications are deployed across two Amazon Elastic Kubernetes Service (Amazon EKS) clusters that use the Amazon VPC Container Network Interface (CNI) plugin for Kubernetes. The clusters are in separate subnets within the same VPC and have a Cluster Autoscaler configured.
    The security team needs to determine which POD IP addresses are communicating with which services throughout the VPC. The security team wants to limit the number of flow logs
    and wants to examine the traffic from only the two applications.
    Which solution will meet these requirements with the LEAST operational overhead?
    1. A
      Create VPC flow logs in the default format. Create a filter to gather flow logs only from the EKS nodes. Include the srcaddr field and the dstaddr field in the flow logs.
    2. B
      Create VPC flow logs in a custom format. Set the EKS nodes as the resource Include the pkt-srcaddr field and the pkt-dstaddr field in the flow logs.
    3. C
      Create VPC flow logs in a custom format. Set the application subnets as resources. Include the pkt-srcaddr field and the pkt-dstaddr field in the flow logs.
    4. D
      Create VPC flow logs in a custom format. Create a filter to gather flow logs only from the EKS nodes. Include the pkt-srcaddr field and the pkt-dstaddr field in the flow logs.
    Show answer

    Correct answer: C

    Why

    The VPC CNI uses secondary addresses for pods, and pkt-srcaddr and pkt-dstaddr show the pod IPs rather than the node's address. Creating flow logs on the two application subnets limits logs to those clusters, with autoscaling nodes covered automatically. EKS nodes are not a flow log resource, and the default format omits these fields.

  5. Question 5Single choiceNetwork Management and Operation
    A company has deployed a web application on AWS. The web application uses an Application Load Balancer (ALB) across multiple Availability Zones. The targets of the ALB are AWS Lambda functions. The web application also uses Amazon CloudWatch metrics for monitoring.
    Users report that parts of the web application are not loading properly. A network engineer needs to troubleshoot the problem. The network engineer enables access logging for the ALB.
    What should the network engineer do next to determine which errors the ALB is receiving?
    1. A
      Send the logs to Amazon CloudWatch Logs. Review the ALB logs in CloudWatch Insights to determine which error messages the ALB is receiving.
    2. B
      Configure the Amazon S3 bucket destination. Use Amazon Athena to determine which error messages the ALB is receiving.
    3. C
      Configure the Amazon S3 bucket destination. After Amazon CloudWatch Logs pulls the ALB logs from the S3 bucket automatically, review the logs in CloudWatch Logs to determine which error messages the ALB is receiving.
    4. D
      Send the logs to Amazon CloudWatch Logs. Use the Amazon Athena CloudWatch Connector to determine which error messages the ALB is receiving.
    Show answer

    Correct answer: B

    Why

    ALB access logs are delivered only to S3, so choose a bucket and query them with Athena to find the errors. ALB access logs cannot be sent directly to CloudWatch Logs, and CloudWatch Logs does not pull them from S3 automatically.

  6. Question 6Single choiceNetwork Security, Compliance, and Governance
    A company is running a hybrid cloud environment. The company has multiple AWS accounts as part of an organization in AWS Organizations. The company needs a solution to manage a list of IPv4 on-premises hosts that will be allowed to access resources in AWS. The solution must provide version control for the list of IPv4 addresses and must make the list available to the AWS accounts in the organization.

    Which solution will meet these requirements?
    1. A
      Create a customer-managed prefix list. Add entries for the initial list of on-premises IPv4 hosts. Create a resource share in AWS Resource Access Manager. Add the managed prefix list to the resource share. Share the resource with the organization.
    2. B
      Create a customer-managed prefix list. Add entries for the initial list of on-premises IPv4 hosts. Use AWS Firewall Manager to share the managed prefix list with the organization.
    3. C
      Create a security group. Add inbound rule entries for the initial list of on-premises IPv4 hosts. Create a resource share in AWS Resource Access Manager. Add the security group to the resource share. Share the resource with the organization.
    4. D
      Create an Amazon DynamoDB table. Add entries for the initial list of on-premises IPv4 hosts. Create an AWS Lambda function that assumes a role in each AWS account in the organization to authorize inbound rules on security groups based on entries from the DynamoDB table.
    Show answer

    Correct answer: A

    Why

    Customer-managed prefix lists keep versions of their entries, and AWS RAM can share them with the whole organization. Security groups cannot be shared this way with the organization, Firewall Manager does not share prefix lists, and a DynamoDB and Lambda design requires custom code.

  7. Question 7Single choiceNetwork Design
    A company is migrating applications from a data center to AWS. Many of the applications will need to exchange data with the company's on-premises mainframe.

    The company needs to achieve 4 Gbps transfer speeds to meet peak traffic demands. A network engineer must design a highly available solution that maximizes resiliency. The solution must be able to withstand the loss of circuits or routers.

    Which solution will meet these requirements?
    1. A
      Order four 10 Gbps AWS Direct Connect connections that are evenly spread over two locations. Terminate one connection from each Direct Connect location to a router at the company location. Terminate the other connection from each Direct Connect location to a different router at the company location.
    2. B
      Order two 10 Gbps AWS Direct Connect connections that are evenly spread over two locations. Terminate the connection from each Direct Connect location to a different router at the company location.
    3. C
      Order four 1 Gbps AWS Direct Connect connections that are evenly spread over two locations. Terminate one connection from each Direct Connect location to a router at the company location. Terminate the other connection from each Direct Connect location to a different router at the company location.
    4. D
      Order two 1 Gbps AWS Direct Connect connections that are evenly spread over two locations. Terminate the connection from each Direct Connect location to a different router at the company location.
    Show answer

    Correct answer: A

    Why

    Maximum resiliency uses two Direct Connect locations with two separate connections at each, terminating on different routers, so 4 Gbps is still available after circuit or router failures. Two connections leave no spare after one failure at a location, and 1 Gbps links would drop below 4 Gbps after a failure.

  8. Question 8Single choiceNetwork Management and Operation
    A real estate company is using Amazon Workspaces to provide corporate managed desktop service to its real estate agents around the world. These Workspaces are deployed in seven VPCs. Each VPC is in a different AWS Region.

    According to a new requirement, the company’s cloud-hosted security information and events management (SIEM) system needs to analyze DNS queries generated by the Workspaces to identify the target domains that are connected to the Workspaces. The SIEM system supports poll and push methods for data and log collection.

    Which solution should a network engineer implement to meet these requirements MOST cost-effectively?
    1. A
      Create VPC flow logs in each VPC that is connected to the Workspaces instances. Publish the log data to a central Amazon S3 bucket. Configure the SIEM system to poll the S3 bucket periodically.
    2. B
      Configure an Amazon CloudWatch agent to log all DNS requests in Amazon CloudWatch Logs. Configure a subscription filter in CloudWatch Logs. Push the logs to the SIEM system by using Amazon Kinesis Data Firehose.
    3. C
      Configure VPC Traffic Mirroring to copy network traffic from each Workspace and to send the traffic to the SIEM system probes for analysis.
    4. D
      Configure Amazon Route 53 query logging. Set the destination as an Amazon Kinesis Data Firehose delivery stream that is configured to push data to the SIEM system.
    Show answer

    Correct answer: D

    Why

    Route 53 Resolver query logging records the domains queried from VPCs, and it can deliver through Kinesis Data Firehose to push to the SIEM. Flow logs show IP addresses rather than domain names, Traffic Mirroring is costly, and the CloudWatch agent does not log DNS requests from WorkSpaces this way.

  9. Question 9Single choiceNetwork Management and Operation
    A company is migrating critical applications to AWS. The company has multiple accounts and VPCs that are connected by a transit gateway.

    A network engineer must design a solution that performs deep packet inspection for any traffic that leaves a VPC network boundary. All inspected traffic and the actions that are taken on the traffic must be logged in a central log account.

    Which solution will meet these requirements with the LEAST administrative overhead?
    1. A
      Create a central network VPC that includes an attachment to the transit gateway. Update the VPC and transit gateway route tables to support the new attachment. Deploy an AWS Gateway Load Balancer that is backed by third-party, next-generation firewall appliances to the central network VPC. Create a policy that contains the rules for deep packet inspection. Attach the policy to the firewall appliances. Create an Amazon S3 bucket in the central log account. Configure the firewall appliances to capture and save the network flow logs to the S3 bucket.
    2. B
      Create a central network VPC that includes an attachment to the transit gateway. Update the VPC and transit gateway route tables to support the new attachment. Deploy an AWS Application Load Balancer that is backed by third-party, next-generation firewall appliances to the central network VPC. Create a policy that contains the rules for deep packet inspection. Attach the policy to the firewall appliances. Create a syslog server in the central log account. Configure the firewall appliances to capture and save the network flow logs to the syslog server.
    3. C
      Deploy network ACLs and security groups to each VPAttach the security groups to active network interfaces. Associate the network ACLs with VPC subnets. Create rules for the network ACLs and security groups to allow only the required traffic flows between subnets and network interfaces. Create an Amazon S3 bucket in the central log account. Configure a VPC flow log that captures and saves all traffic flows to the S3 bucket.
    4. D
      Create a central log VPC and an attachment to the transit gateway. Update the VPC and transit gateway route tables to support the new attachment. Deploy an AWS Network Load Balancer (NLB) that is backed by third-party, next-generation intrusion detection system (IDS) security appliances to the central VPC. Activate rules on the security appliances to monitor for intrusion signatures. For each network interface, create a VPC Traffic Mirroring session that sends the traffic to the central VPC's NLB.
    Show answer

    Correct answer: A

    Why

    A Gateway Load Balancer in a central VPC attached to the transit gateway sends all traffic through next-generation firewalls that perform deep packet inspection inline, and they can log to a central S3 bucket. ALBs do not handle this traffic, security groups do not inspect packet contents, and Traffic Mirroring per interface only copies traffic and adds work.

  10. Question 10Multiple responseNetwork Implementation
    A company has a hybrid IT setup that includes services that run in an on-premises data center and in the AWS Cloud. The company is using AWS Direct Connect to connect its data center to AWS. The company is using one AWS Site-to-Site VPN connection as backup and requires a backup connectivity option to always be present. The company is transitioning to IPv6 by implementing dual-stack architectures.

    Which combination of steps will transition the data center's connectivity to AWS in the LEAST amount of time? (Choose two.)
    1. A
      Create a new Site-to-Site VPN tunnel for the IPv6 traffic.
    2. B
      Create a new dual-stack Site-to-Site VPN connection between the data center and AWS. Provision routing. Delete the original Site-to-Site VPN connection.
    3. C
      Associate a new dual-stack public VIF with the Direct Connect connection. Migrate the Direct Connect traffic to the new VIF.
    4. D
      Add a new IPv6 peer in the existing VIF. Use the IPv6 address provided by Amazon on the peer router.
    5. E
      Send IPv6 traffic between the data center and AWS in a tunnel inside the existing IPv4 tunnels.
    Show answer

    Correct answer: A, D

    Why

    An existing Direct Connect VIF can have IPv6 added as a new peer, using the address AWS provides. A Site-to-Site VPN connection carries one address family, so IPv6 needs another VPN connection, and keeping the IPv4 one means a backup always remains. Replacing connections takes longer and removes the backup during change.

  11. Question 11Single choiceNetwork Implementation
    A company has a VPC in the AWS Cloud. The company recently acquired a competitor that also has a VPC the AWS Cloud. A network engineer discovers an IP address overlap between the two VPCs. Both VPCs require access to an AWS Marketplace partner service.

    Which solution will ensure interoperability among the VPC hosted services and the AWS Markelplace partner service?
    1. A
      Configure VPC peering with static routing between the VPCs. Configure an AWS Site-to-Site VPN connection with static routing to the partner service.
    2. B
      Configure a NAT gateway in the VPCs. Configure default routes in each VPC to point to the local NAT gateway. Attach each NAT gateway to a transit gateway. Configure an AWS Site-to-Site VPN connection with static routing to the partner service.
    3. C
      Configure AWS PrivateLink to facilitate connectivity between the VPCs and the partner service. Use the DNS name that is created with the associated interface endpoints to route traffic between the VPCs and the partner service.
    4. D
      Configure a NAT instance in the VPCs. Configure default routes in each VPC to point to the local NAT instance. Configure an interface endpoint in each VPC to connect to the partner service. Use the DNS name that is created with the associated interface endpoints to route traffic between the VPCs and the partner service.
    Show answer

    Correct answer: C

    Why

    AWS PrivateLink lets each VPC reach the partner service through its own interface endpoint, regardless of overlapping addresses. Peering and transit gateway routing do not work with overlaps. NAT and VPN designs are complex and unnecessary.

  12. Question 12Single choiceNetwork Implementation
    A company deployed an application in two AWS Regions in one AWS account. The company has one VPC in each Region. The VPCs use non-overlapping private CIDR ranges.

    The company needs to connect both VPCs to a single on-premises data center to test the application. The application requires up to 800 Mbps of throughput. A network engineer needs to establish connectivity between the VPCs and the on-premises data center.

    Which solution will meet this requirement with the LEAST operational overhead?
    1. A
      Order a 2 Gbps Direct Connect connection for the data center. Configure a virtual private gateway in each VPC. Create a private VIF for each virtual private gateway, and associate the virtual private gateways with the Direct Connect connection. Configure static routes in the VPC route tables and in the data center router.
    2. B
      Order a 2 Gbps Direct Connect connection for the data center. Configure a virtual private gateway in each VPC. Create a private VIF for each virtual private gateway, and associate the virtual private gateways with the Direct Connect connection. Configure Open Shortest Path First (OSPF) routing between the private VIF and the data center.
    3. C
      Configure a customer gateway and a virtual private gateway in each VPConfigure an AWS Site-to-Site VPN connection between the data center and each VPConfigure static routes in each VPC route table to point to the subnets in the data center.
    4. D
      Configure a customer gateway and a virtual private gateway in each VPC. Configure an AWS Site-to-Site VPN connection between the data center and each VPC. Configure BGP routing between the VPCs and the data center.
    Show answer

    Correct answer: D

    Why

    A Site-to-Site VPN to each VPC can be set up quickly and handles 800 Mbps, with BGP adjusting routes automatically. Direct Connect takes longer and costs more for testing, it cannot use OSPF, and static routes need manual updates.

  13. Question 13Single choiceNetwork Design
    AnyCompany deploys and manages networking resources in its AWS network account, named Account-A. AnyCompany acquires Example Corp, which has an application that runs behind an Application Load Balancer (ALB) in Example Corp's AWS account, named Account-B.

    Example Corp needs to use AWS Global Accelerator to create an accelerator to publish the application to users. AnyCompany's networking team will manage the accelerator.

    Which solution will meet these requirements with the LEAST management overhead?
    1. A
      Create an accelerator in Account-В. Use a cross-account role from Account-A to grant the networking team access to manage the accelerator.
    2. B
      Deploy a Network Load Balancer (NLB) in Account-A to route traffic to the ALB in Account-В. Create an accelerator, and set the NLB as the endpoint in Account-A.
    3. C
      Create a cross-account Global Accelerator attachment in Account-В for the Account-A principal. Create an accelerator in Account-A by using the shared attachment.
    4. D
      Create an accelerator in Account-A. Use AWS Resource Access Management (AWS RAM) to share the accelerator with Account-В. Associate the ALB in Account-В with the accelerator in Account-A.
    Show answer

    Correct answer: C

    Why

    Global Accelerator supports cross-account attachments, so Account-B shares the ALB and Account-A's accelerator can use it as an endpoint. The networking team keeps full control. AWS RAM does not share accelerators in this way, and an NLB in the middle adds infrastructure.

  14. Question 14Single choiceNetwork Management and Operation
    A global network service provider deploys managed AWS Direct Connect connections for its customers. The company wants to integrate monitoring for the connections into its existing ticketing system. The ticketing system runs in the company's VPC on multiple EC2 instances. The ticketing system uses a REST API.

    The ticketing system must receive events with minimal latency. The company expects to receive an average of 1 event each day. The company wants to use its existing infrastructure as code (IaC) tooling to configure the monitoring integration solution.

    Which solution will meet these requirements in the MOST cost-effective way?
    1. A
      Configure an Amazon EventBridge rule to send events to an AWS Lambda function. Configure the Lambda function to process the events and to send events to the ticketing system's REST API.
    2. B
      Configure a scheduled event in Amazon CloudWatch to run an AWS Lambda function once every minute. Configure the function to poll the AWS API to detect changes in the Direct Connect connection state. Configure the function to submit tickets to the ticketing system's REST API when the function detects state changes.
    3. C
      Write a script to poll the AWS API to detect changes in Direct Connect connection state and to submit tickets to the ticketing system's REST API. Deploy the script to the ticketing system's EC2 instance. Schedule the script to run once every minute by using the operating system configuration.
    4. D
      Configure an Amazon EventBridge rule to send events directly to an Amazon DynamoDB table. Use Amazon DynamoDB Streams to send the events to an AWS Lambda function. Configure the function to process the events and to send the events to the ticketing system's REST API.
    Show answer

    Correct answer: A

    Why

    Direct Connect events reach EventBridge, and a rule can invoke Lambda immediately to call the ticketing API, at almost no cost for one event a day. Polling every minute is wasteful and adds delay, and a DynamoDB step adds complexity with no benefit.

  15. Question 15Single choiceNetwork Implementation
    A company has a hybrid environment. The company uses AWS Direct Connect with a transit VIF attached to a transit gateway to connect its on-premises location to the AWS Cloud. The company operates from a single AWS account in the us-east-1 Region. The company has a legacy application that runs on premises with the corp.example.com DNS name. The company has created an Amazon Route 53 Resolver outbound endpoint and a Resolver rule in us-east-1 in the AWS account.

    As part of an expansion, the company creates one more AWS account for a new business unit that operates in us-east-1. The new account has VPCs that are attached to the transit gateway. The new account uses the existing Direct Connect connection to connect to the on-premises location. Applications that run in the new account's VPCs also need to access the on-premises location by using the corp.example.com DNS name.

    A network engineer needs to identify a solution to resolve the corp.example.com DNS name from the new account.

    Which solution will meet these requirements MOST cost-effectively?
    1. A
      Create a hosted transit VIF for the new account on the existing Direct Connect connection. In the new account, create a new Route 53 Resolver outbound endpoint. Also in the new account, create a new Resolver rule that specifies FORWARD as the value for RuleType. Associate the new rule with the VPCs in the new account.
    2. B
      Share the Resolver rule from the existing account with the new account by using AWS Resource Access Manager (AWS RAM). Associate the shared rule with the VPCs in the new account.
    3. C
      Share the Route 53 Resolver outbound endpoint from the existing account with the new account by using AWS Resource Access Manager (AWS RAM). In the new account, create a new Resolver rule that specifies FORWARD as the value for RuleType. Associate the new rule with the VPCs in the new account.
    4. D
      Create an AWS Site-to-Site VPN connection between the new account and the on-premises location. Attach the Site-to-Site VPN connection to the existing transit gateway. In the new account, create a new Route 53 Resolver outbound endpoint. Also in the new account, create a new Resolver rule that specifies FORWARD as the value for RuleType. Associate the rule with the VPCs in the new account.
    Show answer

    Correct answer: B

    Why

    Route 53 Resolver rules can be shared through AWS RAM, so the new account's VPCs can use the existing outbound endpoint with no new endpoint charges. Sharing the rule is enough, and another endpoint or VPN adds cost. The connectivity already exists through the transit gateway.