Unit 2: Networking and Connectivity in AWS - Practice Quiz

INT364 — Cloud Architecture And Implementation-Ii 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is an Amazon Virtual Private Cloud (VPC)?

Amazon VPC and subnet design Easy
A. A global content delivery network
B. A serverless compute service
C. A managed relational database
D. A logically isolated virtual network

2 What does a subnet represent within an Amazon VPC?

Amazon VPC and subnet design Easy
A. A group of AWS accounts
B. A set of database tables
C. A range of IP addresses
D. A collection of IAM users

3 Which component allows resources in a public subnet to communicate with the internet?

Amazon VPC and subnet design Easy
A. Internet gateway
B. VPC endpoint
C. Virtual private gateway
D. Customer gateway

4 Which AWS component determines where network traffic from a subnet is directed?

Amazon VPC and subnet design Easy
A. Key pair
B. Launch template
C. Route table
D. IAM policy

5 At which level is a security group primarily applied in a VPC?

Securing network resources using security groups and NACLs Easy
A. AWS account level
B. Availability Zone level
C. Route table level
D. Network interface level

6 At which level does a network access control list (NACL) filter traffic?

Securing network resources using security groups and NACLs Easy
A. Instance level
B. Region level
C. Subnet level
D. Account level

7 Which statement correctly describes security groups?

Securing network resources using security groups and NACLs Easy
A. They are stateless
B. They support explicit deny rules
C. They apply only to subnets
D. They are stateful

8 Which type of rules can a network ACL contain?

Securing network resources using security groups and NACLs Easy
A. Routing rules only
B. Deny rules only
C. Allow rules only
D. Allow and deny rules

9 Which feature provides private connectivity from a VPC to supported AWS services without using the public internet?

Connecting to managed AWS services within a VPC Easy
A. NAT instance
B. Elastic IP address
C. Internet gateway
D. VPC endpoint

10 Which AWS service can be accessed through a gateway VPC endpoint?

Connecting to managed AWS services within a VPC Easy
A. Amazon S3
B. Amazon Route 53
C. Amazon CloudFront
D. Amazon EC2

11 Which AWS technology powers interface VPC endpoints?

Connecting to managed AWS services within a VPC Easy
A. AWS Transit Gateway
B. AWS Client VPN
C. AWS Direct Connect
D. AWS PrivateLink

12 What is the primary purpose of a VPC peering connection?

VPC peering and AWS Transit Gateway Easy
A. Connect a VPC to the internet
B. Distribute content to users
C. Connect two VPCs privately
D. Filter traffic within a subnet

13 Which limitation applies to VPC peering connections?

VPC peering and AWS Transit Gateway Easy
A. They require a public IP address
B. They work only within one subnet
C. They allow overlapping CIDR blocks
D. They do not support transitive routing

14 What is a common purpose of AWS Transit Gateway?

VPC peering and AWS Transit Gateway Easy
A. Store files across multiple Regions
B. Centrally connect multiple networks
C. Encrypt objects in Amazon S3
D. Resolve public domain names

15 What does AWS Site-to-Site VPN use to protect traffic between an on-premises network and a VPC?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Easy
A. Public HTTP sessions
B. DNS forwarding rules
C. Encrypted IPsec tunnels
D. Storage access policies

16 What does AWS Direct Connect provide?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Easy
A. An encrypted object store
B. A serverless application platform
C. A dedicated network connection
D. A managed DNS hosting service

17 Which remote connectivity option commonly uses the public internet as its transport path?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Easy
A. AWS Site-to-Site VPN
B. AWS Direct Connect
C. AWS PrivateLink
D. VPC peering

18 Which feature records information about IP traffic flowing to and from network interfaces in a VPC?

Monitoring networks and applying Well-Architected principles Easy
A. AWS Cost Explorer
B. AWS CloudFormation
C. VPC Flow Logs
D. Amazon Inspector

19 Which AWS service can monitor network-related metrics and trigger alarms?

Monitoring networks and applying Well-Architected principles Easy
A. AWS CodeCommit
B. Amazon Cognito
C. Amazon CloudWatch
D. AWS Artifact

20 Which design choice supports high availability according to AWS Well-Architected principles?

Monitoring networks and applying Well-Architected principles Easy
A. Use multiple Availability Zones
B. Use one public subnet only
C. Disable network monitoring
D. Share one administrator account

21 A company has a VPC with CIDR block 10.0.0.0/24. It needs four equal-sized subnets: one public and one private subnet in each of two Availability Zones. Which subnet design uses the entire address range without overlap?

Amazon VPC and subnet design Medium
A. Create four /25 subnets
B. Create two /25 and two /26 subnets
C. Create one /24 subnet in each Availability Zone and classify portions of each as public or private
D. Create four /26 subnets

22 Instances in a private subnet need outbound IPv4 internet access but must not accept connections initiated from the internet. Which design meets this requirement?

Amazon VPC and subnet design Medium
A. Route 0.0.0.0/0 directly to an internet gateway
B. Route 0.0.0.0/0 to a virtual private gateway
C. Assign public IPv4 addresses without changing the route table
D. Route 0.0.0.0/0 to a NAT gateway in a public subnet

23 A security group allows inbound TCP port 443 from a corporate CIDR block. No explicit outbound rule exists for the client's ephemeral port. Why can the HTTPS response still return if outbound traffic is otherwise allowed by the security group configuration?

Securing network resources using security groups and NACLs Medium
A. Route tables maintain session state for TCP connections
B. Network ACLs automatically add rules for established connections
C. Security groups evaluate only inbound traffic for HTTPS sessions
D. Security groups are stateful and automatically allow response traffic

24 A public web subnet uses a custom network ACL. Internet clients must connect to HTTPS on TCP port 443. Which pair of rules is required for basic request and response traffic?

Securing network resources using security groups and NACLs Medium
A. Allow inbound ephemeral ports; allow outbound 443 only
B. Allow inbound 443; deny all outbound TCP ports
C. Allow inbound ephemeral ports; deny outbound 443
D. Allow inbound 443; allow outbound ephemeral TCP ports

25 Web servers and application servers have separate security groups. Application servers should accept TCP port 8080 only from instances associated with the web-tier security group. Which rule is most appropriate?

Securing network resources using security groups and NACLs Medium
A. Allow outbound 8080 with the application security group as the source
B. Allow inbound 8080 from the entire VPC CIDR block
C. Allow inbound 8080 from every subnet containing an active web server and manually update the CIDRs after scaling
D. Allow inbound 8080 with the web-tier security group as the source

26 A network ACL currently allows TCP port 22 from 0.0.0.0/0 using rule 200. An administrator must block one suspicious address, 198.51.100.10, while retaining the general allow rule. What should be added?

Securing network resources using security groups and NACLs Medium
A. A deny rule for the address with a rule number above 200
B. A route directing the address to the local VPC target
C. A deny rule for the address with a rule number below 200
D. A security group deny rule for the address on port 22

27 EC2 instances in private subnets must access Amazon S3 without using a NAT gateway or public IP addresses. Which solution is the most appropriate?

Connecting to managed AWS services within a VPC Medium
A. Create an S3 gateway endpoint and update the subnet route tables
B. Create a public Application Load Balancer that forwards every S3 request through an internet gateway
C. Create a VPC peering connection to the Amazon S3 service network
D. Create an internet gateway and attach it to each private subnet

28 An application uses an AWS service through an interface VPC endpoint. The team wants the service's standard regional hostname to resolve to the endpoint's private IP addresses inside the VPC. What should be enabled?

Connecting to managed AWS services within a VPC Medium
A. Public DNS resolution for the NAT gateway
B. Route propagation on the internet gateway
C. DNS hostnames only for public subnets
D. Private DNS for the interface endpoint

29 A VPC has an Amazon S3 gateway endpoint, but workloads should use the endpoint to access only the bucket reports-prod. Which endpoint-level control should be configured?

Connecting to managed AWS services within a VPC Medium
A. Apply a route table rule naming only reports-prod
B. Apply a network ACL rule containing the bucket ARN
C. Apply an endpoint policy allowing only reports-prod
D. Apply a security group rule containing the S3 object prefix and deny every other object operation

30 VPC A is peered with VPC B, and VPC B is peered with VPC C. VPC A must communicate directly with VPC C using VPC peering. What additional configuration is required?

VPC peering and AWS Transit Gateway Medium
A. Add an internet gateway to VPC B to forward the traffic
B. Create a separate peering connection between VPC A and VPC C
C. Enable source and destination checks on the VPC B peering attachment
D. Enable route propagation through both existing peering connections

31 A company connects production, development, and shared-services VPCs to AWS Transit Gateway. Development must reach shared services but must not reach production. Which design best enforces this segmentation?

VPC peering and AWS Transit Gateway Medium
A. Use separate Transit Gateway route tables with selective propagation
B. Use one Transit Gateway route table with full propagation
C. Use the default VPC route table for every attachment
D. Use a single peering connection as a transitive routing hub

32 Two VPCs with non-overlapping CIDR blocks have an active peering connection, but instances cannot communicate. The peering connection itself is healthy. Which configuration should be checked first?

VPC peering and AWS Transit Gateway Medium
A. The NAT gateway Elastic IP addresses
B. The Transit Gateway route propagation settings
C. The internet gateway routes in both VPCs
D. Routes on both sides and the applicable security rules

33 A Site-to-Site VPN connection provides two VPN tunnels. The company wants high availability and dynamic route updates. How should the connection be configured?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Medium
A. Configure both tunnels with identical inside IP addresses
B. Configure both tunnels and exchange routes using BGP
C. Configure one tunnel and leave the second tunnel unused
D. Configure one tunnel with BGP and remove all routes from the other

34 A company has an existing Direct Connect connection that does not support MACsec. It requires encryption in transit while continuing to use the Direct Connect path. Which solution is suitable?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Medium
A. Require encrypted packets through a security group rule
B. Replace the private VIF with an unencrypted public VIF and rely on the dedicated circuit to encrypt all payloads automatically
C. Enable encryption directly on the private virtual interface
D. Run an IPsec Site-to-Site VPN over a Direct Connect public VIF

35 A business-critical workload requires resilient Direct Connect connectivity against a device failure and the loss of an entire Direct Connect location. Which architecture best meets the requirement?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Medium
A. Use two virtual interfaces on one physical connection
B. Use redundant connections at two Direct Connect locations
C. Use one connection with a larger port capacity
D. Use two VLANs through one customer router

36 Users report intermittent connection failures to an EC2 instance. VPC Flow Logs are delivered to CloudWatch Logs. Which analysis is most useful for identifying whether network controls rejected the traffic?

Monitoring networks and applying Well-Architected principles Medium
A. Inspect the packet payload stored in every VPC Flow Log record
B. Query records with action REJECT for the target address and port
C. Search the logs for security group rule names, full HTTP messages, TLS certificates, and application response bodies
D. Query records with action ACCEPT for the VPC DNS server only

37 An architect wants to determine whether a proposed path from an EC2 instance to a database is blocked by routes, security groups, or network ACLs without sending test packets. Which AWS feature should be used?

Monitoring networks and applying Well-Architected principles Medium
A. VPC Reachability Analyzer
B. Amazon Route 53 Resolver
C. VPC Traffic Mirroring
D. AWS Direct Connect gateway

38 A VPC has private subnets in three Availability Zones, but all of them route internet-bound traffic through one NAT gateway. Which change best improves reliability and reduces cross-AZ dependency?

Monitoring networks and applying Well-Architected principles Medium
A. Replace the NAT gateway with one internet gateway per AZ
B. Deploy a NAT gateway in each AZ and use AZ-local routes
C. Move every private subnet into the NAT gateway's AZ
D. Deploy one larger NAT gateway in the existing AZ

39 IPv6-enabled instances in a private subnet must initiate outbound internet connections, but unsolicited inbound internet connections must be blocked. Which routing design should be used?

Amazon VPC and subnet design Medium
A. Route ::/0 to an egress-only internet gateway
B. Route ::/0 to an IPv4 NAT gateway
C. Route 0.0.0.0/0 to an egress-only internet gateway
D. Route ::/0 directly to a standard internet gateway

40 A VPC's original IPv4 CIDR block has insufficient free space for new subnets. The workloads cannot immediately be migrated to another VPC. What is the most direct solution?

Amazon VPC and subnet design Medium
A. Reuse addresses from existing subnets by adding more route tables
B. Attach a second internet gateway to supply additional private addresses
C. Increase the prefix size of the existing VPC CIDR in place
D. Associate a non-overlapping secondary IPv4 CIDR with the VPC

41 An application requires 30 private IPv4 addresses for EC2 instances in each of three Availability Zones. Each subnet must also accommodate the five addresses that AWS reserves. What is the smallest subnet prefix that satisfies the requirement in each Availability Zone?

Amazon VPC and subnet design Hard
A. A /25 subnet with 128 total addresses
B. A /28 subnet with 16 total addresses
C. A /26 subnet with 64 total addresses
D. A /27 subnet with 32 total addresses

42 A dual-stack workload in a private subnet must initiate outbound IPv6 connections to the internet, but unsolicited inbound IPv6 connections must not reach it. IPv4 traffic already uses a NAT gateway. Which design meets the IPv6 requirement?

Amazon VPC and subnet design Hard
A. Route ::/0 through a gateway VPC endpoint
B. Route ::/0 through an egress-only internet gateway
C. Route ::/0 through a standard internet gateway
D. Route ::/0 through the existing NAT gateway

43 Private application subnets span three Availability Zones and require resilient outbound IPv4 internet access. The current design sends all 0.0.0.0/0 traffic to one NAT gateway in one Availability Zone. Which redesign best improves fault isolation and avoids cross-AZ NAT data paths?

Amazon VPC and subnet design Hard
A. Deploy two NAT gateways in one Availability Zone and use equal-cost default routes
B. Deploy one NAT instance per VPC and configure an Auto Scaling group across all subnets
C. Deploy one NAT gateway per Availability Zone and update each subnet's route table locally
D. Deploy one internet gateway per Availability Zone and attach each gateway to the VPC

44 A client at 10.0.1.10 connects to an HTTPS server at 10.0.2.20. The server security group allows inbound TCP 443 from the client security group. Both subnets use restrictive custom NACLs. Which NACL configuration is necessary for the connection?

Securing network resources using security groups and NACLs Hard
A. Allow TCP 443 toward the server and ephemeral TCP ports toward the client
B. Allow all TCP inbound and only TCP 443 outbound on both NACLs
C. Allow ephemeral TCP ports toward the server and TCP 443 toward the client
D. Allow TCP 443 in both directions on both subnet NACLs

45 A subnet NACL contains rule 100 allowing TCP 443 from 0.0.0.0/0, rule 110 denying TCP 443 from 198.51.100.0/24, and the default deny rule. What happens to an HTTPS packet from 198.51.100.25?

Securing network resources using security groups and NACLs Hard
A. It is allowed only if the instance security group references the subnet
B. It is denied because the more specific CIDR takes precedence
C. It is denied because explicit deny rules override allow rules
D. It is allowed because the lowest-numbered matching rule is applied

46 An administrator removes an inbound security group rule while several established TCP sessions are active. No NACL or route changes occur. Which behavior should be expected?

Securing network resources using security groups and NACLs Hard
A. Existing sessions continue until the security group's hourly state-table refresh
B. Existing sessions are interrupted only if an equivalent outbound rule is also removed
C. Existing sessions are interrupted because security group rule changes apply to tracked traffic
D. Existing sessions continue because security groups never reevaluate tracked connections

47 A security team must immediately block one known malicious IPv4 address from every resource in a subnet. Existing security groups contain broad allow rules. Which control can express the required explicit deny without rewriting every security group?

Securing network resources using security groups and NACLs Hard
A. Add a deny rule for the address to the subnet NACL
B. Add a blackhole entry for the address to the security group
C. Add a deny rule for the address to a shared security group
D. Remove the local route for the address from the VPC route table

48 Instances in private subnets must access Amazon S3 without NAT gateways. The architecture must avoid hourly endpoint charges, and access must be restricted to a designated bucket using endpoint policy controls. Which solution is appropriate?

Connecting to managed AWS services within a VPC Hard
A. Create an S3 gateway endpoint and update the subnet route tables
B. Create an internet gateway and add only the designated S3 public prefixes
C. Create an S3 interface endpoint with private DNS disabled
D. Create an AWS PrivateLink endpoint service backed by a Network Load Balancer

49 An on-premises application connected through AWS Direct Connect must privately access Amazon S3 through a VPC endpoint. The application cannot use public S3 IP addresses. Which endpoint design supports this access pattern?

Connecting to managed AWS services within a VPC Hard
A. An S3 gateway endpoint advertised through the Direct Connect gateway
B. An S3 public endpoint translated by an egress-only internet gateway
C. An S3 interface endpoint reached through its private IP addresses
D. An S3 gateway endpoint propagated through an AWS Transit Gateway

50 A VPC has private DNS enabled for an AWS interface endpoint. EC2 instances resolve the service's standard regional hostname to the endpoint's private IP addresses. On-premises clients connected by VPN still use public DNS answers. What should be added to provide consistent private resolution?

Connecting to managed AWS services within a VPC Hard
A. A gateway endpoint whose prefix list is advertised over the VPN connection
B. A Route 53 Resolver inbound endpoint and an on-premises conditional forwarder
C. A Route 53 Resolver outbound endpoint and an AWS-managed reverse lookup zone
D. A private hosted zone associated only with the on-premises DNS server

51 VPC A is peered with VPC B, and VPC B is peered with VPC C. The CIDR blocks do not overlap. Instances in VPC A must communicate privately with instances in VPC C. Which change is required?

VPC peering and AWS Transit Gateway Hard
A. Enable route propagation on both existing peering connections
B. Add routes through VPC B because peering supports transitive routing
C. Reference VPC C's security group in VPC A's existing peering route
D. Create direct A-to-C connectivity or attach the VPCs to a transit gateway

52 A company uses one transit gateway for production, development, and shared-services VPCs. Production and development must both reach shared services, but they must not reach each other. Which design enforces this at the transit gateway?

VPC peering and AWS Transit Gateway Hard
A. Propagate every attachment into all route tables and add more-specific default routes
B. Associate every attachment with one route table and rely on security groups
C. Use separate route tables for production and development with only shared-services routes
D. Create full-mesh VPC peering and retain the transit gateway for shared services

53 Traffic between spoke VPCs is inspected by a stateful firewall appliance fleet behind a Gateway Load Balancer in an inspection VPC. Intermittent failures occur because forward and return flows reach appliances in different Availability Zones. Which transit gateway feature addresses this issue?

VPC peering and AWS Transit Gateway Hard
A. Appliance mode on the inspection VPC attachment
B. Multicast mode on every spoke VPC attachment
C. Equal-cost multipath on the inspection route table
D. Security group referencing on every transit gateway attachment

54 Two VPCs both use the IPv4 CIDR block 10.20.0.0/16 and must exchange traffic without renumbering either VPC. Which statement about directly connecting them is correct?

VPC peering and AWS Transit Gateway Hard
A. VPC peering works if source and destination checks are disabled
B. Transit Gateway works if static routes override propagated routes
C. Neither peering nor Transit Gateway directly resolves the overlapping addresses
D. VPC peering works if each side installs more-specific subnet routes

55 A company needs consistent private connectivity from its data center to AWS, but all application traffic must be encrypted in transit at the IP layer. A Direct Connect connection is available. Which architecture best meets both requirements?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Hard
A. Establish an IPsec Site-to-Site VPN over the Direct Connect private connectivity
B. Enable VPC Flow Logs because logged traffic is encrypted before transmission
C. Use a private virtual interface because Direct Connect encrypts all frames automatically
D. Use a public virtual interface because BGP advertisements provide IPsec encryption

56 A Site-to-Site VPN uses dynamic routing and includes two IPsec tunnels. The customer gateway currently establishes BGP only on the preferred tunnel. What configuration best aligns with AWS high-availability guidance?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Hard
A. Disable the second tunnel to prevent asymmetric return traffic
B. Use identical tunnel inside addresses so BGP treats both paths equally
C. Establish BGP on one tunnel and configure the second with static routes
D. Establish BGP on both tunnels and allow either tunnel to carry traffic

57 A company has VPCs in several AWS Regions and wants one set of Direct Connect connections to reach them through private virtual interfaces. Which design provides the intended multi-Region association?

Remote connectivity with Site-to-Site VPN and AWS Direct Connect Hard
A. Attach every private virtual interface directly to each regional internet gateway
B. Associate a Direct Connect gateway with virtual private gateways or transit gateways
C. Propagate the Direct Connect routes through regional gateway VPC endpoints
D. Peer all VPCs and attach the private virtual interface to one peered VPC

58 Security analysts need the full contents of selected packets from an EC2 instance to investigate an application-layer protocol anomaly. Which AWS networking capability provides the required data?

Monitoring networks and applying Well-Architected principles Hard
A. Reachability Analyzer evaluated between the two ENIs
B. VPC Flow Logs delivered to CloudWatch Logs
C. Traffic Mirroring sent to a packet-analysis appliance
D. CloudTrail data events recorded for the VPC endpoint

59 An engineer must determine whether security groups, NACLs, routes, and gateway configuration permit connectivity between two ENIs. Sending test packets is prohibited. Which service is most appropriate?

Monitoring networks and applying Well-Architected principles Hard
A. VPC Reachability Analyzer
B. VPC Traffic Mirroring
C. AWS Network Firewall
D. Amazon Inspector

60 VPC Flow Logs show REJECT records for traffic targeting TCP 443 on an instance. The instance security group allows the source, but the subnet NACL denies the packet. Can the flow-log record alone identify the NACL as the rejecting control?

Monitoring networks and applying Well-Architected principles Hard
A. Yes, because security group rejects and NACL rejects use different action values
B. No, because VPC Flow Logs record accepted traffic but omit rejected traffic
C. Yes, because every REJECT record includes the matching NACL rule number
D. No, because the action indicates rejection but not the exact rejecting control