0 / 60 answered
Pick an answer to see the explanation. Fundamental questions refresh the basics; Advanced questions are short SAP-style scenarios.
Q1.You create a subnet with the CIDR 10.0.1.0/24. How many IP addresses can you actually assign to resources in it?
✓ Correct: D. 251
How to think about it: A /24 has 256 addresses, and AWS keeps 5 per subnet, so 251 are usable.
Why D is correct: AWS reserves five addresses in every subnet (the first four and the last one), leaving 251 of the 256.
Why the others are wrong:
A) 256 — 256 is the raw size of a /24; it ignores the addresses AWS keeps for itself.
B) 254 — 254 is the classic on-premises answer (network and broadcast removed), but AWS reserves three more.
C) 252 — 252 assumes only four reserved addresses; AWS also reserves the last address of the range.
How to think about it: A /24 has 256 addresses, and AWS keeps 5 per subnet, so 251 are usable.
Why D is correct: AWS reserves five addresses in every subnet (the first four and the last one), leaving 251 of the 256.
Why the others are wrong:
A) 256 — 256 is the raw size of a /24; it ignores the addresses AWS keeps for itself.
B) 254 — 254 is the classic on-premises answer (network and broadcast removed), but AWS reserves three more.
C) 252 — 252 assumes only four reserved addresses; AWS also reserves the last address of the range.
Q2.Which addresses in each subnet does AWS reserve and never hand out to your instances?
✓ Correct: C. The first four addresses and the last address
How to think about it: Reserved = first four + last one (network, router, DNS, future use, broadcast).
Why C is correct: AWS uses these for the network address, VPC router, DNS, future use, and the (unsupported) broadcast address.
Why the others are wrong:
A) Only the first and last addresses — That is the traditional network/broadcast pair; AWS reserves three additional addresses at the start.
B) The last four addresses and the first address — The reservation is at the start of the range (four) plus one at the end, not the other way round.
D) The first ten addresses of the range — AWS does not reserve a block of ten; it reserves exactly five per subnet.
How to think about it: Reserved = first four + last one (network, router, DNS, future use, broadcast).
Why C is correct: AWS uses these for the network address, VPC router, DNS, future use, and the (unsupported) broadcast address.
Why the others are wrong:
A) Only the first and last addresses — That is the traditional network/broadcast pair; AWS reserves three additional addresses at the start.
B) The last four addresses and the first address — The reservation is at the start of the range (four) plus one at the end, not the other way round.
D) The first ten addresses of the range — AWS does not reserve a block of ten; it reserves exactly five per subnet.
Q3.What are the smallest and largest IPv4 CIDR block sizes you can assign to a VPC?
✓ Correct: A. Between /28 and /16
How to think about it: VPC CIDR size = /28 (16 IPs) to /16 (65,536 IPs).
Why A is correct: Each VPC IPv4 CIDR block can be as small as a /28 or as large as a /16.
Why the others are wrong:
B) Between /30 and /20 — /30 is below the /28 minimum, and /20 is not the upper limit.
C) Between /24 and /12 — A /24 is allowed, but /12 is larger than the /16 maximum and smaller blocks are allowed too.
D) Between /32 and /8 — A /8 is far larger than AWS allows for a VPC block, and a /32 is a single host.
How to think about it: VPC CIDR size = /28 (16 IPs) to /16 (65,536 IPs).
Why A is correct: Each VPC IPv4 CIDR block can be as small as a /28 or as large as a /16.
Why the others are wrong:
B) Between /30 and /20 — /30 is below the /28 minimum, and /20 is not the upper limit.
C) Between /24 and /12 — A /24 is allowed, but /12 is larger than the /16 maximum and smaller blocks are allowed too.
D) Between /32 and /8 — A /8 is far larger than AWS allows for a VPC block, and a /32 is a single host.
Q4.Which of these is an RFC 1918 private range that you would normally use for a VPC?
✓ Correct: D. 172.16.0.0/12
How to think about it: Private IPv4 = 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
Why D is correct: 172.16.0.0 to 172.31.255.255 is one of the three RFC 1918 private blocks.
Why the others are wrong:
A) 172.32.0.0/12 — 172.32.x.x sits just outside the private 172.16-172.31 block, so it is public address space.
B) 192.169.0.0/16 — The private block is 192.168.0.0/16; 192.169.x.x is publicly routable.
C) 11.0.0.0/8 — Only 10.0.0.0/8 is private in that area; 11.0.0.0/8 is public address space.
How to think about it: Private IPv4 = 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
Why D is correct: 172.16.0.0 to 172.31.255.255 is one of the three RFC 1918 private blocks.
Why the others are wrong:
A) 172.32.0.0/12 — 172.32.x.x sits just outside the private 172.16-172.31 block, so it is public address space.
B) 192.169.0.0/16 — The private block is 192.168.0.0/16; 192.169.x.x is publicly routable.
C) 11.0.0.0/8 — Only 10.0.0.0/8 is private in that area; 11.0.0.0/8 is public address space.
Q5.A route table has 0.0.0.0/0 pointing to an internet gateway and 172.16.0.0/16 pointing to a virtual private gateway. Where does traffic to 172.16.4.10 go?
✓ Correct: D. To the virtual private gateway
How to think about it: VPC routing = longest prefix (most specific) match wins.
Why D is correct: The /16 route is more specific than the /0 default route, so it wins for that destination.
Why the others are wrong:
A) It is dropped because two routes match — Overlapping routes are normal; the router simply picks the most specific one.
B) To the internet gateway — The default route is used only when no more specific route matches.
C) It is split across both targets — VPC route tables do not load-balance between a default route and a specific route.
How to think about it: VPC routing = longest prefix (most specific) match wins.
Why D is correct: The /16 route is more specific than the /0 default route, so it wins for that destination.
Why the others are wrong:
A) It is dropped because two routes match — Overlapping routes are normal; the router simply picks the most specific one.
B) To the internet gateway — The default route is used only when no more specific route matches.
C) It is split across both targets — VPC route tables do not load-balance between a default route and a specific route.
Q6.What actually makes a subnet a public subnet in a VPC?
✓ Correct: B. Its route table sends 0.0.0.0/0 to an internet gateway
How to think about it: Public subnet = route table sends 0.0.0.0/0 to an internet gateway.
Why B is correct: A subnet is public when its associated route table sends internet-bound traffic to an IGW; instances also need a public IP.
Why the others are wrong:
A) Its network ACL allows all inbound traffic — An open NACL does not give a subnet a path to the internet.
C) It was created from a public IPv4 CIDR block range — VPC subnets use private ranges; being public depends on routing, not the CIDR.
D) It contains a NAT gateway — A NAT gateway is placed in a public subnet, but its presence does not make the subnet public.
How to think about it: Public subnet = route table sends 0.0.0.0/0 to an internet gateway.
Why B is correct: A subnet is public when its associated route table sends internet-bound traffic to an IGW; instances also need a public IP.
Why the others are wrong:
A) Its network ACL allows all inbound traffic — An open NACL does not give a subnet a path to the internet.
C) It was created from a public IPv4 CIDR block range — VPC subnets use private ranges; being public depends on routing, not the CIDR.
D) It contains a NAT gateway — A NAT gateway is placed in a public subnet, but its presence does not make the subnet public.
Q7.A VPC created with 10.0.0.0/20 has run out of free addresses for new subnets. The team wants to keep the VPC and its existing workloads. What should they do?
✓ Correct: C. Add a secondary IPv4 CIDR block and build new subnets in it
How to think about it: Out of IPs = add a secondary CIDR block to the VPC.
Why C is correct: VPCs accept additional CIDR blocks, so new subnets can be carved out without rebuilding anything.
Why the others are wrong:
A) Peer with a new VPC and move half of the subnets there — Peering works, but it adds a second network to manage when a secondary CIDR solves it in place.
B) Edit the primary CIDR block to a larger /16 — The primary CIDR block cannot be resized; you add blocks instead.
D) Enable IPv6 and remove IPv4 from the existing subnets — Existing IPv4 subnets cannot simply drop IPv4, and many workloads still need it.
How to think about it: Out of IPs = add a secondary CIDR block to the VPC.
Why C is correct: VPCs accept additional CIDR blocks, so new subnets can be carved out without rebuilding anything.
Why the others are wrong:
A) Peer with a new VPC and move half of the subnets there — Peering works, but it adds a second network to manage when a secondary CIDR solves it in place.
B) Edit the primary CIDR block to a larger /16 — The primary CIDR block cannot be resized; you add blocks instead.
D) Enable IPv6 and remove IPv4 from the existing subnets — Existing IPv4 subnets cannot simply drop IPv4, and many workloads still need it.
Q8.Instances in a private subnet need outbound internet access for patches, using a managed service that scales bandwidth automatically. What should you set up?
✓ Correct: B. A NAT gateway in a public subnet as the private default route
How to think about it: Managed outbound-only IPv4 = NAT gateway in a public subnet + private route 0.0.0.0/0 to it.
Why B is correct: The NAT gateway is managed, scales automatically and lets private instances start outbound connections only.
Why the others are wrong:
A) An egress-only internet gateway — Egress-only gateways handle IPv6 traffic only, not IPv4.
C) An internet gateway route in the private subnet's route table — Routing a private subnet straight to the IGW would make it public and still need public IPs on the instances.
D) A NAT instance launched in the private subnet — A NAT instance must sit in a public subnet, and it is self-managed rather than managed.
How to think about it: Managed outbound-only IPv4 = NAT gateway in a public subnet + private route 0.0.0.0/0 to it.
Why B is correct: The NAT gateway is managed, scales automatically and lets private instances start outbound connections only.
Why the others are wrong:
A) An egress-only internet gateway — Egress-only gateways handle IPv6 traffic only, not IPv4.
C) An internet gateway route in the private subnet's route table — Routing a private subnet straight to the IGW would make it public and still need public IPs on the instances.
D) A NAT instance launched in the private subnet — A NAT instance must sit in a public subnet, and it is self-managed rather than managed.
Q9.You launch a NAT instance on EC2 but private instances still cannot reach the internet through it. Which EC2 setting must be changed on the NAT instance?
✓ Correct: D. Disable the source/destination check
How to think about it: NAT instance forwards others' packets = disable source/destination check.
Why D is correct: By default EC2 drops traffic not addressed to or from the instance itself, which breaks forwarding for NAT.
Why the others are wrong:
A) Enable enhanced networking — Enhanced networking raises performance but does not allow packet forwarding.
B) Turn on termination protection — Termination protection only prevents accidental deletion of the instance.
C) Attach an IAM instance profile — IAM roles grant API permissions; they have nothing to do with forwarding packets.
How to think about it: NAT instance forwards others' packets = disable source/destination check.
Why D is correct: By default EC2 drops traffic not addressed to or from the instance itself, which breaks forwarding for NAT.
Why the others are wrong:
A) Enable enhanced networking — Enhanced networking raises performance but does not allow packet forwarding.
B) Turn on termination protection — Termination protection only prevents accidental deletion of the instance.
C) Attach an IAM instance profile — IAM roles grant API permissions; they have nothing to do with forwarding packets.
Q10.A three-AZ VPC uses standard zonal NAT gateways. Private workloads must keep internet egress if one Availability Zone fails. What is the right design?
✓ Correct: C. One NAT gateway per AZ, each AZ routing to its own
How to think about it: Zonal NAT GW is redundant only inside its AZ = one per AZ, each AZ's route table to its own NAT.
Why C is correct: A zonal NAT gateway survives failures only within its own AZ, so one per AZ removes the cross-AZ single point of failure.
Why the others are wrong:
A) One NAT gateway plus an Auto Scaling group of NAT instances as backup — This mixes managed and self-managed NAT and needs custom failover routing.
B) One NAT gateway with two Elastic IP addresses attached — Extra addresses do not move the gateway out of its single AZ.
D) A NAT gateway in a private subnet of each AZ — NAT gateways that provide internet access must live in public subnets with an IGW route.
How to think about it: Zonal NAT GW is redundant only inside its AZ = one per AZ, each AZ's route table to its own NAT.
Why C is correct: A zonal NAT gateway survives failures only within its own AZ, so one per AZ removes the cross-AZ single point of failure.
Why the others are wrong:
A) One NAT gateway plus an Auto Scaling group of NAT instances as backup — This mixes managed and self-managed NAT and needs custom failover routing.
B) One NAT gateway with two Elastic IP addresses attached — Extra addresses do not move the gateway out of its single AZ.
D) A NAT gateway in a private subnet of each AZ — NAT gateways that provide internet access must live in public subnets with an IGW route.
Q11.IPv6-enabled instances in a private subnet must reach the internet over IPv6, but nothing on the internet may start a connection to them. What do you add?
✓ Correct: C. An egress-only internet gateway with a ::/0 route to it
How to think about it: IPv6 outbound only = egress-only internet gateway, route
Why C is correct: It is the IPv6 equivalent of NAT for outbound-only access; IPv6 addresses are public, so this blocks inbound starts.
Why the others are wrong:
A) An internet gateway with a ::/0 route to it — A plain IGW route would allow connections from the internet to the instances' public IPv6 addresses.
B) A NAT gateway with a ::/0 route to it — NAT gateways translate IPv4; outbound-only IPv6 is the job of the egress-only gateway.
D) A virtual private gateway with route propagation — A VGW connects to on-premises networks, not to the internet.
How to think about it: IPv6 outbound only = egress-only internet gateway, route
::/0 to it.Why C is correct: It is the IPv6 equivalent of NAT for outbound-only access; IPv6 addresses are public, so this blocks inbound starts.
Why the others are wrong:
A) An internet gateway with a ::/0 route to it — A plain IGW route would allow connections from the internet to the instances' public IPv6 addresses.
B) A NAT gateway with a ::/0 route to it — NAT gateways translate IPv4; outbound-only IPv6 is the job of the egress-only gateway.
D) A virtual private gateway with route propagation — A VGW connects to on-premises networks, not to the internet.
Q12.A cost review flags charges for public IPv4 addresses. Which statement about AWS public IPv4 pricing is true today?
✓ Correct: B. All public IPv4 addresses are billed hourly, attached or not
How to think about it: Since 2024 every public IPv4 address is billed hourly, in use or idle.
Why B is correct: AWS bills all public IPv4 addresses hourly, which is a reason to prefer NAT, private endpoints or IPv6.
Why the others are wrong:
A) Auto-assigned public IPs are free, only Elastic IPs are billed — Auto-assigned public IPv4 addresses are billed the same hourly rate.
C) Public IPv4 is free, but data transfer through it is billed — The address itself now has an hourly charge on top of any data transfer.
D) Only unattached Elastic IP addresses incur a charge — That was the old model; attached public addresses are now billed too.
How to think about it: Since 2024 every public IPv4 address is billed hourly, in use or idle.
Why B is correct: AWS bills all public IPv4 addresses hourly, which is a reason to prefer NAT, private endpoints or IPv6.
Why the others are wrong:
A) Auto-assigned public IPs are free, only Elastic IPs are billed — Auto-assigned public IPv4 addresses are billed the same hourly rate.
C) Public IPv4 is free, but data transfer through it is billed — The address itself now has an hourly charge on top of any data transfer.
D) Only unattached Elastic IP addresses incur a charge — That was the old model; attached public addresses are now billed too.
Q13.A partner's API only accepts calls from IP addresses it has allow-listed. Your calls come from dozens of Auto Scaling instances in private subnets. How do you give the partner a small, stable list of source IPs?
✓ Correct: B. Route egress via NAT gateways and allow-list their EIPs
How to think about it: Stable outbound source IP = NAT gateway with an Elastic IP; give the partner the EIPs.
Why B is correct: Every private instance's traffic leaves with the NAT gateway's Elastic IP, so the list stays short and fixed.
Why the others are wrong:
A) Allow-list the private subnet CIDR ranges with the partner — Private addresses are not visible on the internet, so the partner never sees them.
C) Use an interface VPC endpoint to reach the partner API — Interface endpoints reach AWS or PrivateLink services, not an arbitrary internet API.
D) Attach an Elastic IP to every instance at launch — This needs automation, uses many addresses and grows as the group scales.
How to think about it: Stable outbound source IP = NAT gateway with an Elastic IP; give the partner the EIPs.
Why B is correct: Every private instance's traffic leaves with the NAT gateway's Elastic IP, so the list stays short and fixed.
Why the others are wrong:
A) Allow-list the private subnet CIDR ranges with the partner — Private addresses are not visible on the internet, so the partner never sees them.
C) Use an interface VPC endpoint to reach the partner API — Interface endpoints reach AWS or PrivateLink services, not an arbitrary internet API.
D) Attach an Elastic IP to every instance at launch — This needs automation, uses many addresses and grows as the group scales.
Q14.You need to block a single malicious IP address from reaching every instance in a subnet. Which control supports an explicit deny rule?
✓ Correct: B. A network ACL rule that denies the address
How to think about it: Explicit DENY = NACL; security groups are allow-only.
Why B is correct: NACLs apply at the subnet level and support both allow and deny rules, evaluated in number order.
Why the others are wrong:
A) A route table blackhole entry for the address — Route tables send traffic somewhere; they are not used as an inbound deny list.
C) A security group rule that denies the address — Security groups have only allow rules; you cannot write a deny.
D) An IAM policy with a Deny on aws:SourceIp — IAM controls API calls, not network packets reaching instances.
How to think about it: Explicit DENY = NACL; security groups are allow-only.
Why B is correct: NACLs apply at the subnet level and support both allow and deny rules, evaluated in number order.
Why the others are wrong:
A) A route table blackhole entry for the address — Route tables send traffic somewhere; they are not used as an inbound deny list.
C) A security group rule that denies the address — Security groups have only allow rules; you cannot write a deny.
D) An IAM policy with a Deny on aws:SourceIp — IAM controls API calls, not network packets reaching instances.
Q15.A security group allows inbound HTTPS from anywhere but has no outbound rules for client ports. Do the responses reach the clients?
✓ Correct: D. Yes, security groups are stateful, so replies are allowed
How to think about it: Security group = stateful: return traffic is allowed automatically.
Why D is correct: Once a connection is allowed in one direction, the responses for that connection are permitted regardless of rules.
Why the others are wrong:
A) Only if the subnet's NACL is also stateful — NACLs are always stateless; this is not a setting you can change.
B) Only for IPv4 clients, not IPv6 clients — Security group state tracking applies to both IPv4 and IPv6.
C) No, because an outbound rule for ephemeral ports is required — That is true of stateless NACLs, not of security groups.
How to think about it: Security group = stateful: return traffic is allowed automatically.
Why D is correct: Once a connection is allowed in one direction, the responses for that connection are permitted regardless of rules.
Why the others are wrong:
A) Only if the subnet's NACL is also stateful — NACLs are always stateless; this is not a setting you can change.
B) Only for IPv4 clients, not IPv6 clients — Security group state tracking applies to both IPv4 and IPv6.
C) No, because an outbound rule for ephemeral ports is required — That is true of stateless NACLs, not of security groups.
Q16.A custom NACL allows inbound TCP 443 from 0.0.0.0/0 and outbound TCP 443 to 0.0.0.0/0. The security group is open on 443, yet clients time out. What fixes it?
✓ Correct: A. Add an outbound NACL rule allowing TCP 1024-65535 to the clients
How to think about it: NACL is stateless = also allow the outbound ephemeral ports (1024-65535) for replies.
Why A is correct: Replies go back to the client's ephemeral port, and a stateless NACL must allow that return path explicitly.
Why the others are wrong:
B) Add an outbound security group rule for TCP 443 — The response is not sent to port 443 on the client, and the stateful SG already allows it.
C) Associate the default NACL instead of the custom NACL to the subnet — That would work by opening everything, but it removes the subnet controls rather than fixing the rule.
D) Add an inbound security group rule for TCP 1024-65535 — The security group is stateful, so return traffic is already allowed by it.
How to think about it: NACL is stateless = also allow the outbound ephemeral ports (1024-65535) for replies.
Why A is correct: Replies go back to the client's ephemeral port, and a stateless NACL must allow that return path explicitly.
Why the others are wrong:
B) Add an outbound security group rule for TCP 443 — The response is not sent to port 443 on the client, and the stateful SG already allows it.
C) Associate the default NACL instead of the custom NACL to the subnet — That would work by opening everything, but it removes the subnet controls rather than fixing the rule.
D) Add an inbound security group rule for TCP 1024-65535 — The security group is stateful, so return traffic is already allowed by it.
Q17.An app tier should accept traffic only from the web tier, whose instances scale in and out constantly. How do you write the app tier's security group rule?
✓ Correct: A. Allow the port with the web tier's security group as the source
How to think about it: Changing IPs = reference the web tier's security group as the source.
Why A is correct: Referencing a security group covers every instance using it, whatever its current IP address.
Why the others are wrong:
B) Use a NACL allow rule naming the web tier instances — NACLs work on CIDR ranges and cannot name instances or security groups.
C) Update the rule with each new instance IP from a Lambda function — Custom automation is unnecessary when a security group can be referenced directly.
D) Allow the port from the web subnet CIDR block — This works but also admits anything else in that subnet; it is broader than the requirement.
How to think about it: Changing IPs = reference the web tier's security group as the source.
Why A is correct: Referencing a security group covers every instance using it, whatever its current IP address.
Why the others are wrong:
B) Use a NACL allow rule naming the web tier instances — NACLs work on CIDR ranges and cannot name instances or security groups.
C) Update the rule with each new instance IP from a Lambda function — Custom automation is unnecessary when a security group can be referenced directly.
D) Allow the port from the web subnet CIDR block — This works but also admits anything else in that subnet; it is broader than the requirement.
Q18.Where can VPC Flow Logs be delivered directly?
✓ Correct: B. CloudWatch Logs, S3 or Amazon Data Firehose
How to think about it: Flow Logs go to CloudWatch Logs, S3 or Data Firehose.
Why B is correct: These are the supported destinations, captured at VPC, subnet or ENI level.
Why the others are wrong:
A) Only Amazon CloudWatch Logs — S3 and Firehose are also supported destinations.
C) AWS CloudTrail or Amazon CloudWatch Logs — CloudTrail records API calls; it is not a destination for packet flow records.
D) Amazon RDS, Amazon S3 or Amazon SQS — Flow Logs cannot write to a database or a queue directly.
How to think about it: Flow Logs go to CloudWatch Logs, S3 or Data Firehose.
Why B is correct: These are the supported destinations, captured at VPC, subnet or ENI level.
Why the others are wrong:
A) Only Amazon CloudWatch Logs — S3 and Firehose are also supported destinations.
C) AWS CloudTrail or Amazon CloudWatch Logs — CloudTrail records API calls; it is not a destination for packet flow records.
D) Amazon RDS, Amazon S3 or Amazon SQS — Flow Logs cannot write to a database or a queue directly.
Q19.Flow Logs for an instance show an inbound request with ACTION=ACCEPT, followed by the response with ACTION=REJECT on the outbound side. What is the most likely cause?
✓ Correct: C. The network ACL is blocking the outbound response
How to think about it: Inbound ACCEPT then outbound REJECT = stateless NACL (an SG would let the reply out).
Why C is correct: A stateful security group would have allowed the reply, so the rejection points to the stateless NACL.
Why the others are wrong:
A) The NAT gateway is dropping the response — Responses to inbound requests do not pass through a NAT gateway.
B) The security group is missing an outbound rule — Security groups automatically allow responses to allowed inbound traffic.
D) The instance's route table has no internet route — A missing route does not appear as a REJECT action in Flow Logs.
How to think about it: Inbound ACCEPT then outbound REJECT = stateless NACL (an SG would let the reply out).
Why C is correct: A stateful security group would have allowed the reply, so the rejection points to the stateless NACL.
Why the others are wrong:
A) The NAT gateway is dropping the response — Responses to inbound requests do not pass through a NAT gateway.
B) The security group is missing an outbound rule — Security groups automatically allow responses to allowed inbound traffic.
D) The instance's route table has no internet route — A missing route does not appear as a REJECT action in Flow Logs.
Q20.Security wants to run ad-hoc SQL queries over months of VPC Flow Logs at low cost. Which setup fits best?
✓ Correct: A. Deliver the logs to Amazon S3 and query them with Amazon Athena
How to think about it: Flow Logs in S3 + SQL = Amazon Athena.
Why A is correct: Athena runs serverless SQL directly on the files in S3, paying only per query.
Why the others are wrong:
B) Deliver the logs to CloudWatch Logs and query them with Athena — Athena queries data in S3; CloudWatch Logs has its own Logs Insights query language.
C) Load the logs into an RDS database every hour — A database load pipeline costs more and adds work for occasional queries.
D) Send the logs to CloudTrail Lake — CloudTrail Lake stores API activity events, not VPC flow records.
How to think about it: Flow Logs in S3 + SQL = Amazon Athena.
Why A is correct: Athena runs serverless SQL directly on the files in S3, paying only per query.
Why the others are wrong:
B) Deliver the logs to CloudWatch Logs and query them with Athena — Athena queries data in S3; CloudWatch Logs has its own Logs Insights query language.
C) Load the logs into an RDS database every hour — A database load pipeline costs more and adds work for occasional queries.
D) Send the logs to CloudTrail Lake — CloudTrail Lake stores API activity events, not VPC flow records.
Q21.Administrators need shell access to private instances without opening port 22 or running a bastion host. What should they use?
✓ Correct: D. AWS Systems Manager Session Manager
How to think about it: No SSH port, no bastion = Systems Manager Session Manager.
Why D is correct: Session Manager opens audited shell sessions through the SSM agent, with no inbound ports or bastion to manage.
Why the others are wrong:
A) EC2 Instance Connect with a public IP on each instance — Giving private instances public IPs defeats the point of keeping them private.
B) A bastion host in a public subnet — A bastion needs inbound SSH and is a server you must patch and keep available.
C) AWS Client VPN with SSH to each instance — Client VPN still uses SSH and port 22 and adds an endpoint to run.
How to think about it: No SSH port, no bastion = Systems Manager Session Manager.
Why D is correct: Session Manager opens audited shell sessions through the SSM agent, with no inbound ports or bastion to manage.
Why the others are wrong:
A) EC2 Instance Connect with a public IP on each instance — Giving private instances public IPs defeats the point of keeping them private.
B) A bastion host in a public subnet — A bastion needs inbound SSH and is a server you must patch and keep available.
C) AWS Client VPN with SSH to each instance — Client VPN still uses SSH and port 22 and adds an endpoint to run.
Q22.A company wants managed Layer 3 to Layer 7 inspection for all traffic entering and leaving its VPCs, including intrusion prevention and domain allow-lists. Which service fits?
✓ Correct: D. AWS Network Firewall
How to think about it: VPC-wide L3-L7 inspection + IPS = AWS Network Firewall.
Why D is correct: It is a managed, stateful firewall for whole VPCs, with domain lists, IPS-style rules and logging.
Why the others are wrong:
A) AWS Shield Advanced — Shield Advanced protects against DDoS attacks; it does not filter all VPC flows.
B) AWS WAF — WAF inspects HTTP requests to CloudFront, ALB, API Gateway and similar, not all VPC traffic.
C) Security groups with deny rules — Security groups support allow rules only and work at the instance level.
How to think about it: VPC-wide L3-L7 inspection + IPS = AWS Network Firewall.
Why D is correct: It is a managed, stateful firewall for whole VPCs, with domain lists, IPS-style rules and logging.
Why the others are wrong:
A) AWS Shield Advanced — Shield Advanced protects against DDoS attacks; it does not filter all VPC flows.
B) AWS WAF — WAF inspects HTTP requests to CloudFront, ALB, API Gateway and similar, not all VPC traffic.
C) Security groups with deny rules — Security groups support allow rules only and work at the instance level.
Q23.Dozens of VPCs share a Transit Gateway. All VPC-to-VPC and internet-bound traffic must be inspected in one place. What is the standard design?
✓ Correct: B. An inspection VPC with Network Firewall, attached to the TGW
How to think about it: Central inspection = inspection VPC with Network Firewall behind the Transit Gateway.
Why B is correct: TGW route tables send east-west and north-south flows to the inspection VPC before they reach their destination.
Why the others are wrong:
A) Peer every VPC to a security VPC that inspects the traffic — Peering is not transitive, so a security VPC cannot sit in the path between other VPCs.
C) Use VPC Flow Logs with alarms on rejected traffic — Flow Logs only record traffic after the fact; they do not inspect or block it.
D) Deploy a separate AWS Network Firewall in each of the dozens of VPCs — This works but multiplies cost and rule management compared with a central inspection point.
How to think about it: Central inspection = inspection VPC with Network Firewall behind the Transit Gateway.
Why B is correct: TGW route tables send east-west and north-south flows to the inspection VPC before they reach their destination.
Why the others are wrong:
A) Peer every VPC to a security VPC that inspects the traffic — Peering is not transitive, so a security VPC cannot sit in the path between other VPCs.
C) Use VPC Flow Logs with alarms on rejected traffic — Flow Logs only record traffic after the fact; they do not inspect or block it.
D) Deploy a separate AWS Network Firewall in each of the dozens of VPCs — This works but multiplies cost and rule management compared with a central inspection point.
Q24.Which service lets you push Network Firewall policies to VPCs across many accounts in an AWS Organization?
✓ Correct: B. AWS Firewall Manager
How to think about it: Cross-account firewall rules = AWS Firewall Manager.
Why B is correct: Firewall Manager centrally applies Network Firewall, WAF, Shield and security group policies across an organization.
Why the others are wrong:
A) AWS Config conformance packs — Config evaluates compliance; it does not deploy firewall rules.
C) Amazon GuardDuty — GuardDuty detects threats from logs; it does not deploy firewall rules.
D) AWS Resource Access Manager — RAM shares resources such as subnets and Transit Gateways; it does not manage firewall policy.
How to think about it: Cross-account firewall rules = AWS Firewall Manager.
Why B is correct: Firewall Manager centrally applies Network Firewall, WAF, Shield and security group policies across an organization.
Why the others are wrong:
A) AWS Config conformance packs — Config evaluates compliance; it does not deploy firewall rules.
C) Amazon GuardDuty — GuardDuty detects threats from logs; it does not deploy firewall rules.
D) AWS Resource Access Manager — RAM shares resources such as subnets and Transit Gateways; it does not manage firewall policy.
Q25.VPC A is peered with VPC B, and VPC B is peered with VPC C. Can instances in VPC A reach VPC C?
✓ Correct: A. No, a separate peering connection between A and C is needed
How to think about it: Peering is not transitive: A-C needs its own peering.
Why A is correct: Peering connections do not pass traffic on to a third VPC.
Why the others are wrong:
B) Yes, if all three VPCs are in the same account — Account ownership does not change the non-transitive rule.
C) Yes, through VPC B automatically — VPC B will not forward traffic between its two peers.
D) Yes, if VPC B has a NAT gateway — Edge-to-edge routing through a peer's gateways is not supported.
How to think about it: Peering is not transitive: A-C needs its own peering.
Why A is correct: Peering connections do not pass traffic on to a third VPC.
Why the others are wrong:
B) Yes, if all three VPCs are in the same account — Account ownership does not change the non-transitive rule.
C) Yes, through VPC B automatically — VPC B will not forward traffic between its two peers.
D) Yes, if VPC B has a NAT gateway — Edge-to-edge routing through a peer's gateways is not supported.
Q26.Which condition prevents two VPCs from being peered?
✓ Correct: D. Their IPv4 CIDR blocks overlap
How to think about it: Peering requirement = no overlapping CIDRs.
Why D is correct: Peered networks must have distinct address ranges so routes are unambiguous.
Why the others are wrong:
A) They are in different AWS Regions — Inter-Region peering is supported.
B) They are owned by different AWS accounts — Cross-account peering is supported once the other side accepts.
C) They use different instance tenancy — Tenancy has no effect on peering.
How to think about it: Peering requirement = no overlapping CIDRs.
Why D is correct: Peered networks must have distinct address ranges so routes are unambiguous.
Why the others are wrong:
A) They are in different AWS Regions — Inter-Region peering is supported.
B) They are owned by different AWS accounts — Cross-account peering is supported once the other side accepts.
C) They use different instance tenancy — Tenancy has no effect on peering.
Q27.A peering connection between two VPCs is active, but instances still cannot talk to each other. What step is commonly missed?
✓ Correct: A. Routes to the peer CIDR in both VPCs' route tables
How to think about it: After peering = add routes in both VPCs (and allow it in SGs/NACLs).
Why A is correct: Peering only creates the link; each side needs routes pointing at the peering connection.
Why the others are wrong:
B) Enabling Transit Gateway route propagation — No Transit Gateway is involved in a plain peering connection.
C) Attaching an internet gateway to both VPCs — Peered traffic stays on the AWS network and never uses an IGW.
D) Creating a customer gateway in each VPC — Customer gateways are for Site-to-Site VPN, not peering.
How to think about it: After peering = add routes in both VPCs (and allow it in SGs/NACLs).
Why A is correct: Peering only creates the link; each side needs routes pointing at the peering connection.
Why the others are wrong:
B) Enabling Transit Gateway route propagation — No Transit Gateway is involved in a plain peering connection.
C) Attaching an internet gateway to both VPCs — Peered traffic stays on the AWS network and never uses an IGW.
D) Creating a customer gateway in each VPC — Customer gateways are for Site-to-Site VPN, not peering.
Q28.VPC A is peered with a shared VPC that has a NAT gateway and an internet gateway. Teams in VPC A want to send internet traffic out through the shared VPC. Will it work?
✓ Correct: A. No; peering has no edge-to-edge routing, so use TGW central egress
How to think about it: Peering has no edge-to-edge routing (IGW, NAT, VPN, DX, gateway endpoints).
Why A is correct: Edge-to-edge routing over peering is not supported, while a TGW-based egress VPC is the supported pattern.
Why the others are wrong:
B) Yes, if the NAT gateway gets a second Elastic IP — Address count has nothing to do with the peering restriction.
C) Yes, if VPC A adds a 0.0.0.0/0 route to the peering connection — The route can be created, but the peer VPC will not forward the traffic out of its gateways.
D) Yes, if both VPCs are in the same Region — Edge-to-edge routing is blocked within a Region as well.
How to think about it: Peering has no edge-to-edge routing (IGW, NAT, VPN, DX, gateway endpoints).
Why A is correct: Edge-to-edge routing over peering is not supported, while a TGW-based egress VPC is the supported pattern.
Why the others are wrong:
B) Yes, if the NAT gateway gets a second Elastic IP — Address count has nothing to do with the peering restriction.
C) Yes, if VPC A adds a 0.0.0.0/0 route to the peering connection — The route can be created, but the peer VPC will not forward the traffic out of its gateways.
D) Yes, if both VPCs are in the same Region — Edge-to-edge routing is blocked within a Region as well.
Q29.Can a security group rule reference a security group from a peered VPC?
✓ Correct: D. Yes, for a same-Region peer, even in another account
How to think about it: Peered VPC SG reference = allowed in the same Region (even cross-account).
Why D is correct: Same-Region peering lets rules use the peer's security group ID as a source.
Why the others are wrong:
A) Only if both VPCs belong to the same account — Cross-account references work by using the account ID with the group ID.
B) Yes, but only for inter-Region peering — It is the reverse: inter-Region peering does not support security group references.
C) No, only CIDR ranges can be used across a peering — Same-Region peers can reference each other's security groups.
How to think about it: Peered VPC SG reference = allowed in the same Region (even cross-account).
Why D is correct: Same-Region peering lets rules use the peer's security group ID as a source.
Why the others are wrong:
A) Only if both VPCs belong to the same account — Cross-account references work by using the account ID with the group ID.
B) Yes, but only for inter-Region peering — It is the reverse: inter-Region peering does not support security group references.
C) No, only CIDR ranges can be used across a peering — Same-Region peers can reference each other's security groups.
Q30.VPC A (172.16.0.0/16) is peered with VPC B and VPC C, which both use 10.0.0.0/16. Instance 10.0.0.77 lives in VPC B. How can A reach that specific instance?
✓ Correct: A. Route 10.0.0.77/32 to the B peering and the /16 to C
How to think about it: Overlapping peers = more specific routes; longest prefix (e.g. /32) wins.
Why A is correct: The /32 is the longest prefix match, so traffic for that host goes to VPC B while the rest goes to C.
Why the others are wrong:
B) Enable route propagation from both peering connections — Peering connections do not propagate routes; routes are static.
C) It cannot be done, because VPC B and VPC C overlap — Peering two overlapping VPCs to a third is allowed with specific routes.
D) Add two 10.0.0.0/16 routes, one to each peering connection — A route table cannot hold two identical destinations pointing at different targets.
How to think about it: Overlapping peers = more specific routes; longest prefix (e.g. /32) wins.
Why A is correct: The /32 is the longest prefix match, so traffic for that host goes to VPC B while the rest goes to C.
Why the others are wrong:
B) Enable route propagation from both peering connections — Peering connections do not propagate routes; routes are static.
C) It cannot be done, because VPC B and VPC C overlap — Peering two overlapping VPCs to a third is allowed with specific routes.
D) Add two 10.0.0.0/16 routes, one to each peering connection — A route table cannot hold two identical destinations pointing at different targets.
Q31.A company has 300 VPCs and several data centers that all need to reach each other without a mesh of peering connections. What should it use?
✓ Correct: A. AWS Transit Gateway
How to think about it: Hub-and-spoke, transitive, thousands of VPCs = Transit Gateway.
Why A is correct: A Transit Gateway is a regional hub with transitive routing for VPCs, VPNs and Direct Connect.
Why the others are wrong:
B) VPN CloudHub — CloudHub links on-premises sites through a VGW; it does not route between hundreds of VPCs.
C) Full-mesh VPC peering — 300 VPCs would need tens of thousands of peering connections, all managed separately.
D) AWS PrivateLink — PrivateLink exposes individual services, not full network-to-network routing.
How to think about it: Hub-and-spoke, transitive, thousands of VPCs = Transit Gateway.
Why A is correct: A Transit Gateway is a regional hub with transitive routing for VPCs, VPNs and Direct Connect.
Why the others are wrong:
B) VPN CloudHub — CloudHub links on-premises sites through a VGW; it does not route between hundreds of VPCs.
C) Full-mesh VPC peering — 300 VPCs would need tens of thousands of peering connections, all managed separately.
D) AWS PrivateLink — PrivateLink exposes individual services, not full network-to-network routing.
Q32.How do you let VPCs in other accounts of your AWS Organization attach to a Transit Gateway owned by the network account?
✓ Correct: A. Share it with AWS Resource Access Manager
How to think about it: Share TGW across accounts = AWS Resource Access Manager (RAM).
Why A is correct: RAM shares the Transit Gateway so other accounts can create attachments to it.
Why the others are wrong:
B) Add the other accounts to the Transit Gateway's IAM trust policy — A Transit Gateway has no trust policy; cross-account use goes through RAM.
C) Create a Transit Gateway peering attachment for each account — Peering attachments link Transit Gateways to each other, not accounts to one TGW.
D) Use an S3 bucket policy to grant access — Bucket policies govern S3 objects, not network resources.
How to think about it: Share TGW across accounts = AWS Resource Access Manager (RAM).
Why A is correct: RAM shares the Transit Gateway so other accounts can create attachments to it.
Why the others are wrong:
B) Add the other accounts to the Transit Gateway's IAM trust policy — A Transit Gateway has no trust policy; cross-account use goes through RAM.
C) Create a Transit Gateway peering attachment for each account — Peering attachments link Transit Gateways to each other, not accounts to one TGW.
D) Use an S3 bucket policy to grant access — Bucket policies govern S3 objects, not network resources.
Q33.Production and development VPCs are all attached to one Transit Gateway. Both need the shared-services VPC, but must never reach each other. How do you enforce this?
✓ Correct: D. Separate TGW route tables that each reach only shared services
How to think about it: Segment traffic on a TGW = separate TGW route tables per environment.
Why D is correct: Associations and propagations decide which attachments can reach which, giving isolation on one TGW.
Why the others are wrong:
A) Put NACLs on the Transit Gateway attachments — NACLs are applied to subnets, not configured on the Transit Gateway.
B) Rely on security groups in each VPC to block the traffic — SGs help, but the routing still exposes the networks; route table segmentation is the clean control.
C) Create two Transit Gateways and peer them — This adds another hub when route tables on one TGW already provide segmentation.
How to think about it: Segment traffic on a TGW = separate TGW route tables per environment.
Why D is correct: Associations and propagations decide which attachments can reach which, giving isolation on one TGW.
Why the others are wrong:
A) Put NACLs on the Transit Gateway attachments — NACLs are applied to subnets, not configured on the Transit Gateway.
B) Rely on security groups in each VPC to block the traffic — SGs help, but the routing still exposes the networks; route table segmentation is the clean control.
C) Create two Transit Gateways and peer them — This adds another hub when route tables on one TGW already provide segmentation.
Q34.An application needs IP multicast between instances in several VPCs. Which AWS service supports this?
✓ Correct: A. AWS Transit Gateway
How to think about it: Multicast on AWS = Transit Gateway.
Why A is correct: Transit Gateway supports multicast domains for sending one stream to many receivers.
Why the others are wrong:
B) AWS Global Accelerator — Global Accelerator speeds up unicast traffic over the AWS backbone.
C) Network Load Balancer — NLB distributes unicast TCP, UDP and TLS connections.
D) VPC peering — Peering carries unicast traffic only.
How to think about it: Multicast on AWS = Transit Gateway.
Why A is correct: Transit Gateway supports multicast domains for sending one stream to many receivers.
Why the others are wrong:
B) AWS Global Accelerator — Global Accelerator speeds up unicast traffic over the AWS backbone.
C) Network Load Balancer — NLB distributes unicast TCP, UDP and TLS connections.
D) VPC peering — Peering carries unicast traffic only.
Q35.VPCs in us-east-1 and eu-west-1 each attach to a local Transit Gateway. They must now communicate privately over the AWS network. What is the simplest step?
✓ Correct: B. Create an inter-Region TGW peering attachment with static routes
How to think about it: Cross-Region TGW = inter-Region TGW peering (static routes).
Why B is correct: TGW peering links the two hubs over the AWS backbone, and routes for it are added statically.
Why the others are wrong:
A) Attach every eu-west-1 VPC to the us-east-1 Transit Gateway — VPC attachments must be in the Transit Gateway's own Region.
C) Build Site-to-Site VPNs between VPCs in the two Regions — VPN tunnels over the internet are more work and less direct than TGW peering.
D) Use a Direct Connect gateway to join the two Transit Gateways — A Direct Connect gateway connects on-premises networks; it does not route between Transit Gateways.
How to think about it: Cross-Region TGW = inter-Region TGW peering (static routes).
Why B is correct: TGW peering links the two hubs over the AWS backbone, and routes for it are added statically.
Why the others are wrong:
A) Attach every eu-west-1 VPC to the us-east-1 Transit Gateway — VPC attachments must be in the Transit Gateway's own Region.
C) Build Site-to-Site VPNs between VPCs in the two Regions — VPN tunnels over the internet are more work and less direct than TGW peering.
D) Use a Direct Connect gateway to join the two Transit Gateways — A Direct Connect gateway connects on-premises networks; it does not route between Transit Gateways.
Q36.Many private VPCs each run their own NAT gateways. To cut cost and centralize control, all internet egress should leave from one place. What is the usual design?
✓ Correct: A. An egress VPC with NAT gateways, reached through the TGW
How to think about it: Central egress = egress VPC with NAT gateways, reached through the Transit Gateway.
Why A is correct: Spokes route default traffic to the TGW, which sends it to the egress VPC's NAT gateways and IGW.
Why the others are wrong:
B) An egress-only internet gateway shared through RAM — Egress-only gateways are IPv6-only and belong to one VPC.
C) A gateway VPC endpoint shared to all spokes — Gateway endpoints only reach S3 and DynamoDB and cannot be shared across VPCs.
D) VPC peering from every spoke to one VPC with a NAT gateway — Peering cannot use a peer's NAT gateway for internet access.
How to think about it: Central egress = egress VPC with NAT gateways, reached through the Transit Gateway.
Why A is correct: Spokes route default traffic to the TGW, which sends it to the egress VPC's NAT gateways and IGW.
Why the others are wrong:
B) An egress-only internet gateway shared through RAM — Egress-only gateways are IPv6-only and belong to one VPC.
C) A gateway VPC endpoint shared to all spokes — Gateway endpoints only reach S3 and DynamoDB and cannot be shared across VPCs.
D) VPC peering from every spoke to one VPC with a NAT gateway — Peering cannot use a peer's NAT gateway for internet access.
Q37.What is the scope of a Transit Gateway?
✓ Correct: A. Regional; other Regions are reached through TGW peering
How to think about it: TGW = regional resource; go cross-Region with peering.
Why A is correct: Each Transit Gateway lives in one Region and connects to other Regions through peering attachments.
Why the others are wrong:
B) It is scoped to a single VPC — Its purpose is to connect many VPCs and networks.
C) It is global: one Transit Gateway serves every Region — There is no global Transit Gateway; that would be AWS Cloud WAN territory.
D) It is zonal: one is needed per Availability Zone — A Transit Gateway is highly available across the AZs of its Region.
How to think about it: TGW = regional resource; go cross-Region with peering.
Why A is correct: Each Transit Gateway lives in one Region and connects to other Regions through peering attachments.
Why the others are wrong:
B) It is scoped to a single VPC — Its purpose is to connect many VPCs and networks.
C) It is global: one Transit Gateway serves every Region — There is no global Transit Gateway; that would be AWS Cloud WAN territory.
D) It is zonal: one is needed per Availability Zone — A Transit Gateway is highly available across the AZs of its Region.
Q38.Which AWS services can be reached through a gateway VPC endpoint?
✓ Correct: C. Amazon S3 and Amazon DynamoDB
How to think about it: Gateway endpoint = S3 and DynamoDB only; everything else = interface endpoint.
Why C is correct: Gateway endpoints exist only for these two services and are added as route table targets.
Why the others are wrong:
A) Any AWS service in the Region — Most services use interface endpoints; gateway endpoints cover only two.
B) Only Amazon S3 — DynamoDB also supports a gateway endpoint.
D) Amazon S3, Amazon SQS and Amazon SNS — SQS and SNS are reached through interface endpoints.
How to think about it: Gateway endpoint = S3 and DynamoDB only; everything else = interface endpoint.
Why C is correct: Gateway endpoints exist only for these two services and are added as route table targets.
Why the others are wrong:
A) Any AWS service in the Region — Most services use interface endpoints; gateway endpoints cover only two.
B) Only Amazon S3 — DynamoDB also supports a gateway endpoint.
D) Amazon S3, Amazon SQS and Amazon SNS — SQS and SNS are reached through interface endpoints.
Q39.You create an interface endpoint with private DNS enabled, but calls to the service's normal hostname still go to public IPs. Which VPC settings must be on?
✓ Correct: B. Both DNS resolution and DNS hostnames enabled on the VPC
How to think about it: Interface endpoint private DNS needs enableDnsSupport + enableDnsHostnames.
Why B is correct: Private DNS for an interface endpoint only works when both VPC DNS attributes are true.
Why the others are wrong:
A) A Route 53 public hosted zone for the service — The private DNS override is handled by AWS; no public zone is needed.
C) A route table entry pointing to the endpoint — Interface endpoints are ENIs in subnets; they do not use route table entries.
D) An internet gateway attached to the VPC — Endpoints are used precisely to avoid needing an internet gateway.
How to think about it: Interface endpoint private DNS needs enableDnsSupport + enableDnsHostnames.
Why B is correct: Private DNS for an interface endpoint only works when both VPC DNS attributes are true.
Why the others are wrong:
A) A Route 53 public hosted zone for the service — The private DNS override is handled by AWS; no public zone is needed.
C) A route table entry pointing to the endpoint — Interface endpoints are ENIs in subnets; they do not use route table entries.
D) An internet gateway attached to the VPC — Endpoints are used precisely to avoid needing an internet gateway.
Q40.Servers in a data center connected over Direct Connect must reach Amazon S3 privately through the VPC. A gateway endpoint for S3 already exists but does not work for them. What should you add?
✓ Correct: C. An interface VPC endpoint for S3, reached from on premises over Direct Connect
How to think about it: Gateway endpoints can't be reached from outside the VPC = use an S3 interface endpoint.
Why C is correct: Interface endpoints are ENIs with private IPs, so traffic arriving over DX or VPN can use them.
Why the others are wrong:
A) A NAT gateway in the VPC for the on-premises traffic — NAT sends traffic to public S3 endpoints over the internet path, not privately.
B) A VPC peering connection to a VPC with its own S3 gateway endpoint — Gateway endpoints also cannot be used across peering connections.
D) A route for the S3 prefix list on the on-premises router — Gateway endpoints only serve traffic that starts inside the VPC; on-premises routes cannot use them.
How to think about it: Gateway endpoints can't be reached from outside the VPC = use an S3 interface endpoint.
Why C is correct: Interface endpoints are ENIs with private IPs, so traffic arriving over DX or VPN can use them.
Why the others are wrong:
A) A NAT gateway in the VPC for the on-premises traffic — NAT sends traffic to public S3 endpoints over the internet path, not privately.
B) A VPC peering connection to a VPC with its own S3 gateway endpoint — Gateway endpoints also cannot be used across peering connections.
D) A route for the S3 prefix list on the on-premises router — Gateway endpoints only serve traffic that starts inside the VPC; on-premises routes cannot use them.
Q41.A bucket holding sensitive data must accept requests only when they arrive through one particular VPC endpoint. What do you add to the bucket policy?
✓ Correct: D. A Deny for requests where aws:SourceVpce does not equal that endpoint ID
How to think about it: Lock a bucket to one endpoint = aws:SourceVpce (whole VPC = aws:SourceVpc).
Why D is correct: This condition key matches the endpoint the request came through and rejects every other path.
Why the others are wrong:
A) An endpoint policy on the endpoint alone — An endpoint policy limits what the endpoint can reach, but other paths to the bucket stay open.
B) A Deny for requests where aws:SourceIp is not the VPC CIDR — Requests through an endpoint carry private addresses, which aws:SourceIp cannot match.
C) An Allow for the VPC's NAT gateway Elastic IP — Traffic through NAT is the public path, the opposite of what is required.
How to think about it: Lock a bucket to one endpoint = aws:SourceVpce (whole VPC = aws:SourceVpc).
Why D is correct: This condition key matches the endpoint the request came through and rejects every other path.
Why the others are wrong:
A) An endpoint policy on the endpoint alone — An endpoint policy limits what the endpoint can reach, but other paths to the bucket stay open.
B) A Deny for requests where aws:SourceIp is not the VPC CIDR — Requests through an endpoint carry private addresses, which aws:SourceIp cannot match.
C) An Allow for the VPC's NAT gateway Elastic IP — Traffic through NAT is the public path, the opposite of what is required.
Q42.A bucket policy allows only aws:SourceIp 10.0.0.0/16, but requests from instances in that VPC through an S3 endpoint are denied. Why?
✓ Correct: C. aws:SourceIp cannot match private IPs on endpoint traffic
How to think about it: aws:SourceIp = public IPs only; for endpoints use aws:SourceVpce / aws:SourceVpc.
Why C is correct: Bucket policies can filter on public source IPs only; endpoint traffic needs the VPC or endpoint condition keys.
Why the others are wrong:
A) The bucket must be in a different Region from the VPC — Gateway endpoints only reach buckets in the same Region, so this would break access further.
B) The endpoint must be an interface endpoint for IP conditions to work — Neither endpoint type makes aws:SourceIp match private addresses.
D) Bucket policies cannot contain conditions — Bucket policies support many condition keys, including the VPC endpoint keys.
How to think about it: aws:SourceIp = public IPs only; for endpoints use aws:SourceVpce / aws:SourceVpc.
Why C is correct: Bucket policies can filter on public source IPs only; endpoint traffic needs the VPC or endpoint condition keys.
Why the others are wrong:
A) The bucket must be in a different Region from the VPC — Gateway endpoints only reach buckets in the same Region, so this would break access further.
B) The endpoint must be an interface endpoint for IP conditions to work — Neither endpoint type makes aws:SourceIp match private addresses.
D) Bucket policies cannot contain conditions — Bucket policies support many condition keys, including the VPC endpoint keys.
Q43.An endpoint policy on an SQS interface endpoint allows only one queue. Can the same IAM user still call other queues?
✓ Correct: B. Yes, outside the endpoint, unless a queue policy blocks that
How to think about it: Endpoint policy limits the endpoint; it does not replace IAM or resource policies.
Why B is correct: Endpoint policies only filter traffic through that endpoint and work alongside IAM and resource policies.
Why the others are wrong:
A) Yes, because endpoint policies are only advisory — They are enforced for traffic that uses the endpoint.
C) No, because endpoint policies deny all other SQS actions account-wide — Their scope is the single endpoint, not the account.
D) No, the endpoint policy overrides the user's IAM policy everywhere — An endpoint policy has no effect on requests that do not pass through the endpoint.
How to think about it: Endpoint policy limits the endpoint; it does not replace IAM or resource policies.
Why B is correct: Endpoint policies only filter traffic through that endpoint and work alongside IAM and resource policies.
Why the others are wrong:
A) Yes, because endpoint policies are only advisory — They are enforced for traffic that uses the endpoint.
C) No, because endpoint policies deny all other SQS actions account-wide — Their scope is the single endpoint, not the account.
D) No, the endpoint policy overrides the user's IAM policy everywhere — An endpoint policy has no effect on requests that do not pass through the endpoint.
Q44.A SaaS provider wants to offer its service privately to thousands of customer VPCs without peering, internet gateways or route changes. What does it build?
✓ Correct: C. A PrivateLink endpoint service backed by a Network Load Balancer
How to think about it: Expose a service to many VPCs = PrivateLink: NLB on the provider side, interface endpoint on the consumer side.
Why C is correct: Each customer creates an interface endpoint (ENI) to the provider's NLB-backed service, with no routing between networks.
Why the others are wrong:
A) A Transit Gateway shared with every customer account through RAM — That would connect customer networks to each other and to the provider broadly.
B) An internet-facing Application Load Balancer with AWS WAF — That puts the service on the internet, which the provider wants to avoid.
D) A VPC peering connection with every customer VPC — Peering thousands of VPCs is unmanageable and exposes whole networks.
How to think about it: Expose a service to many VPCs = PrivateLink: NLB on the provider side, interface endpoint on the consumer side.
Why C is correct: Each customer creates an interface endpoint (ENI) to the provider's NLB-backed service, with no routing between networks.
Why the others are wrong:
A) A Transit Gateway shared with every customer account through RAM — That would connect customer networks to each other and to the provider broadly.
B) An internet-facing Application Load Balancer with AWS WAF — That puts the service on the internet, which the provider wants to avoid.
D) A VPC peering connection with every customer VPC — Peering thousands of VPCs is unmanageable and exposes whole networks.
Q45.A provider's service VPC and several consumer VPCs all use 10.0.0.0/16. Which connectivity option still works without renumbering?
✓ Correct: D. AWS PrivateLink interface endpoints
How to think about it: Overlapping CIDRs? PrivateLink doesn't care; peering and TGW do.
Why D is correct: Consumers reach the service through a local ENI address, so the two networks never need routes to each other.
Why the others are wrong:
A) VPC peering between the VPCs — Peering is not allowed between VPCs with overlapping CIDRs.
B) Site-to-Site VPN between the VPCs — VPN routing also fails when both ends use the same address range.
C) Transit Gateway attachments — Overlapping ranges cannot be routed correctly through a Transit Gateway route table.
How to think about it: Overlapping CIDRs? PrivateLink doesn't care; peering and TGW do.
Why D is correct: Consumers reach the service through a local ENI address, so the two networks never need routes to each other.
Why the others are wrong:
A) VPC peering between the VPCs — Peering is not allowed between VPCs with overlapping CIDRs.
B) Site-to-Site VPN between the VPCs — VPN routing also fails when both ends use the same address range.
C) Transit Gateway attachments — Overlapping ranges cannot be routed correctly through a Transit Gateway route table.
Q46.Which two resources form the AWS side and the on-premises representation of a Site-to-Site VPN?
✓ Correct: B. A virtual private gateway and a customer gateway
How to think about it: S2S VPN = VGW (or TGW) on AWS + Customer Gateway describing your device.
Why B is correct: The VGW or TGW terminates the VPN in AWS, and the customer gateway resource records your device's public IP.
Why the others are wrong:
A) A Direct Connect gateway and a private VIF — These are Direct Connect parts, not VPN components.
C) A Client VPN endpoint and a security group — Client VPN serves individual users, not site-to-site links.
D) An internet gateway and a NAT gateway — These provide internet access, not IPsec VPN termination.
How to think about it: S2S VPN = VGW (or TGW) on AWS + Customer Gateway describing your device.
Why B is correct: The VGW or TGW terminates the VPN in AWS, and the customer gateway resource records your device's public IP.
Why the others are wrong:
A) A Direct Connect gateway and a private VIF — These are Direct Connect parts, not VPN components.
C) A Client VPN endpoint and a security group — Client VPN serves individual users, not site-to-site links.
D) An internet gateway and a NAT gateway — These provide internet access, not IPsec VPN termination.
Q47.How does an AWS Site-to-Site VPN connection provide redundancy by default?
✓ Correct: C. It always includes two IPsec tunnels to separate AWS endpoints
How to think about it: Every S2S VPN = two IPsec tunnels to different AWS endpoints.
Why C is correct: If one tunnel goes down, traffic can use the other; configure both on your device.
Why the others are wrong:
A) It automatically fails over to Direct Connect — No DX link exists unless you build one.
B) It uses two customer gateway devices automatically — On-premises redundancy is your job; AWS supplies the two tunnels.
D) It replicates itself into a second Region — VPN connections are regional; there is no automatic cross-Region copy.
How to think about it: Every S2S VPN = two IPsec tunnels to different AWS endpoints.
Why C is correct: If one tunnel goes down, traffic can use the other; configure both on your device.
Why the others are wrong:
A) It automatically fails over to Direct Connect — No DX link exists unless you build one.
B) It uses two customer gateway devices automatically — On-premises redundancy is your job; AWS supplies the two tunnels.
D) It replicates itself into a second Region — VPN connections are regional; there is no automatic cross-Region copy.
Q48.You want routes to be exchanged automatically between the on-premises router and AWS over a VPN instead of maintaining static routes. What do you configure?
✓ Correct: D. BGP dynamic routing with an ASN for each side
How to think about it: Automatic route exchange = BGP dynamic routing with ASNs on both sides.
Why D is correct: BGP advertises networks in both directions so route tables update automatically.
Why the others are wrong:
A) Static routes with route propagation turned off — Static routing is exactly what the team wants to avoid.
B) OSPF between the customer gateway and the VGW — AWS VPN supports BGP for dynamic routing, not OSPF.
C) A Route 53 Resolver inbound endpoint — Resolver endpoints forward DNS queries; they do not share IP routes.
How to think about it: Automatic route exchange = BGP dynamic routing with ASNs on both sides.
Why D is correct: BGP advertises networks in both directions so route tables update automatically.
Why the others are wrong:
A) Static routes with route propagation turned off — Static routing is exactly what the team wants to avoid.
B) OSPF between the customer gateway and the VGW — AWS VPN supports BGP for dynamic routing, not OSPF.
C) A Route 53 Resolver inbound endpoint — Resolver endpoints forward DNS queries; they do not share IP routes.
Q49.A retailer has eight branch offices with VPN connections to the same virtual private gateway. It wants the branches to reach each other over those VPNs at low cost. What is this pattern called?
✓ Correct: C. AWS VPN CloudHub
How to think about it: Branches talking to each other through one VGW = VPN CloudHub.
Why C is correct: With BGP and unique ASNs, the VGW re-advertises each branch's routes so the sites form a low-cost hub-and-spoke.
Why the others are wrong:
A) VPC peering — Peering connects VPCs to VPCs, not on-premises branches.
B) AWS Client VPN — Client VPN connects individual users, not branch networks.
D) AWS Direct Connect SiteLink — SiteLink connects sites through Direct Connect locations, not over internet VPNs.
How to think about it: Branches talking to each other through one VGW = VPN CloudHub.
Why C is correct: With BGP and unique ASNs, the VGW re-advertises each branch's routes so the sites form a low-cost hub-and-spoke.
Why the others are wrong:
A) VPC peering — Peering connects VPCs to VPCs, not on-premises branches.
B) AWS Client VPN — Client VPN connects individual users, not branch networks.
D) AWS Direct Connect SiteLink — SiteLink connects sites through Direct Connect locations, not over internet VPNs.
Q50.Remote employees need secure laptop access to private resources in a VPC and, through it, to the on-premises network. Which service fits?
✓ Correct: C. AWS Client VPN
How to think about it: Individual users from laptops = AWS Client VPN (OpenVPN-based).
Why C is correct: Client VPN is a managed endpoint that users reach with an OpenVPN-based client to get private IP access.
Why the others are wrong:
A) AWS Global Accelerator — Global Accelerator speeds up public applications; it does not provide private network access.
B) AWS Direct Connect — DX is a dedicated circuit from a data center, not a user remote-access tool.
D) AWS Site-to-Site VPN — Site-to-Site VPN connects whole networks through a gateway device, not individual laptops.
How to think about it: Individual users from laptops = AWS Client VPN (OpenVPN-based).
Why C is correct: Client VPN is a managed endpoint that users reach with an OpenVPN-based client to get private IP access.
Why the others are wrong:
A) AWS Global Accelerator — Global Accelerator speeds up public applications; it does not provide private network access.
B) AWS Direct Connect — DX is a dedicated circuit from a data center, not a user remote-access tool.
D) AWS Site-to-Site VPN — Site-to-Site VPN connects whole networks through a gateway device, not individual laptops.
Q51.On-premises servers reach a VPC over a Site-to-Site VPN. The company wants their internet traffic to leave through AWS. Why does a NAT gateway in the VPC not work, and what does?
✓ Correct: B. NAT gateways ignore VPN-sourced traffic; a NAT instance works
How to think about it: NAT gateway won't serve traffic from VPN/DX/peering = use a NAT instance (or on-premises NAT).
Why B is correct: The edge-to-edge restriction blocks VGW-to-NAT-gateway traffic, while a NAT instance gives full control of forwarding.
Why the others are wrong:
A) NAT gateways only support IPv6; an egress-only gateway is needed — NAT gateways handle IPv4; the problem is the traffic's source, not the protocol.
C) The NAT gateway needs a second Elastic IP for on-premises traffic — Adding addresses does not change what traffic the NAT gateway accepts.
D) The VPN must be replaced with Direct Connect before NAT works — Direct Connect traffic hits the same NAT gateway restriction.
How to think about it: NAT gateway won't serve traffic from VPN/DX/peering = use a NAT instance (or on-premises NAT).
Why B is correct: The edge-to-edge restriction blocks VGW-to-NAT-gateway traffic, while a NAT instance gives full control of forwarding.
Why the others are wrong:
A) NAT gateways only support IPv6; an egress-only gateway is needed — NAT gateways handle IPv4; the problem is the traffic's source, not the protocol.
C) The NAT gateway needs a second Elastic IP for on-premises traffic — Adding addresses does not change what traffic the NAT gateway accepts.
D) The VPN must be replaced with Direct Connect before NAT works — Direct Connect traffic hits the same NAT gateway restriction.
Q52.Global offices connect to AWS over Site-to-Site VPN, and performance over long internet paths is poor. How can the VPN be improved without Direct Connect?
✓ Correct: A. Use an accelerated VPN attached to a Transit Gateway
How to think about it: Faster VPN worldwide = Accelerated Site-to-Site VPN (Global Accelerator, on a Transit Gateway).
Why A is correct: Traffic enters the AWS backbone at the nearest edge location instead of crossing the public internet the whole way.
Why the others are wrong:
B) Add more customer gateways at each office — Extra devices add redundancy but still use the same internet path.
C) Increase the tunnel MTU on the customer gateway — A larger MTU does not fix the long, congested internet path.
D) Put CloudFront in front of the virtual private gateway — CloudFront caches HTTP content; it does not carry IPsec tunnels.
How to think about it: Faster VPN worldwide = Accelerated Site-to-Site VPN (Global Accelerator, on a Transit Gateway).
Why A is correct: Traffic enters the AWS backbone at the nearest edge location instead of crossing the public internet the whole way.
Why the others are wrong:
B) Add more customer gateways at each office — Extra devices add redundancy but still use the same internet path.
C) Increase the tunnel MTU on the customer gateway — A larger MTU does not fix the long, congested internet path.
D) Put CloudFront in front of the virtual private gateway — CloudFront caches HTTP content; it does not carry IPsec tunnels.
Q53.Which Direct Connect virtual interface do you use to reach EC2 instances in a VPC through a virtual private gateway?
✓ Correct: C. A private virtual interface
How to think about it: VPC resources = private VIF; public AWS endpoints = public VIF; Transit Gateway = transit VIF.
Why C is correct: A private VIF carries traffic to VPC resources through a VGW or a Direct Connect gateway.
Why the others are wrong:
A) A public virtual interface — A public VIF reaches AWS public endpoints such as S3, not private VPC addresses.
B) A transit virtual interface — A transit VIF connects to a Transit Gateway through a Direct Connect gateway, not to a VGW.
D) A hosted VPN interface — There is no such Direct Connect interface type.
How to think about it: VPC resources = private VIF; public AWS endpoints = public VIF; Transit Gateway = transit VIF.
Why C is correct: A private VIF carries traffic to VPC resources through a VGW or a Direct Connect gateway.
Why the others are wrong:
A) A public virtual interface — A public VIF reaches AWS public endpoints such as S3, not private VPC addresses.
B) A transit virtual interface — A transit VIF connects to a Transit Gateway through a Direct Connect gateway, not to a VGW.
D) A hosted VPN interface — There is no such Direct Connect interface type.
Q54.A data center wants to reach Amazon S3 public endpoints over Direct Connect instead of the internet. Which virtual interface is used?
✓ Correct: B. A public virtual interface
How to think about it: AWS public services over DX = public VIF.
Why B is correct: A public VIF advertises AWS public prefixes so services like S3 are reached over the DX link.
Why the others are wrong:
A) A transit virtual interface — A transit VIF leads to a Transit Gateway, not to public AWS prefixes.
C) A private virtual interface — A private VIF reaches VPC addresses, not public service endpoints.
D) No interface; S3 is reached automatically — Every Direct Connect use needs a virtual interface.
How to think about it: AWS public services over DX = public VIF.
Why B is correct: A public VIF advertises AWS public prefixes so services like S3 are reached over the DX link.
Why the others are wrong:
A) A transit virtual interface — A transit VIF leads to a Transit Gateway, not to public AWS prefixes.
C) A private virtual interface — A private VIF reaches VPC addresses, not public service endpoints.
D) No interface; S3 is reached automatically — Every Direct Connect use needs a virtual interface.
Q55.Is traffic over AWS Direct Connect encrypted by default?
✓ Correct: B. No; add an IPsec VPN over it, or MACsec where supported
How to think about it: DX is private but not encrypted: add IPsec VPN over DX (or MACsec on supported links).
Why B is correct: DX is a dedicated path, but encryption in transit must be added on top.
Why the others are wrong:
A) No, and it cannot be encrypted — Both IPsec VPN over DX and MACsec are available options.
C) Yes, but only on hosted connections — Hosted connections are not automatically encrypted either.
D) Yes, all Direct Connect traffic uses IPsec automatically — IPsec only applies if you build a VPN over the connection.
How to think about it: DX is private but not encrypted: add IPsec VPN over DX (or MACsec on supported links).
Why B is correct: DX is a dedicated path, but encryption in transit must be added on top.
Why the others are wrong:
A) No, and it cannot be encrypted — Both IPsec VPN over DX and MACsec are available options.
C) Yes, but only on hosted connections — Hosted connections are not automatically encrypted either.
D) Yes, all Direct Connect traffic uses IPsec automatically — IPsec only applies if you build a VPN over the connection.
Q56.One Direct Connect connection must reach VPCs in us-east-1 and us-west-2. What makes this possible?
✓ Correct: C. A Direct Connect gateway associated with both VPCs
How to think about it: One DX to many VPCs in many Regions = Direct Connect gateway.
Why C is correct: A DX gateway is a global object that lets one connection reach VPCs in any Region.
Why the others are wrong:
A) VPC peering between the two VPCs — Peering does not allow on-premises traffic to transit to the peer.
B) A second Direct Connect connection for the other Region — Extra circuits are not required to reach another Region.
D) A public virtual interface to both VPCs — A public VIF reaches public endpoints, not private VPC addresses.
How to think about it: One DX to many VPCs in many Regions = Direct Connect gateway.
Why C is correct: A DX gateway is a global object that lets one connection reach VPCs in any Region.
Why the others are wrong:
A) VPC peering between the two VPCs — Peering does not allow on-premises traffic to transit to the peer.
B) A second Direct Connect connection for the other Region — Extra circuits are not required to reach another Region.
D) A public virtual interface to both VPCs — A public VIF reaches public endpoints, not private VPC addresses.
Q57.A bank needs the highest resilience for critical workloads over Direct Connect. Which design meets that bar?
✓ Correct: C. Connections at two or more separate DX locations
How to think about it: Maximum DX resilience = connections at two or more separate DX locations.
Why C is correct: Using multiple locations survives a device, circuit or whole-location failure.
Why the others are wrong:
A) One connection in a LAG with four links — A LAG lives at a single location, so a location outage still takes it down.
B) Two connections at the same Direct Connect location — This protects against a single circuit failure but not against losing that location.
D) One connection with a Site-to-Site VPN backup — VPN backup is cost-effective but has lower bandwidth and internet-dependent performance.
How to think about it: Maximum DX resilience = connections at two or more separate DX locations.
Why C is correct: Using multiple locations survives a device, circuit or whole-location failure.
Why the others are wrong:
A) One connection in a LAG with four links — A LAG lives at a single location, so a location outage still takes it down.
B) Two connections at the same Direct Connect location — This protects against a single circuit failure but not against losing that location.
D) One connection with a Site-to-Site VPN backup — VPN backup is cost-effective but has lower bandwidth and internet-dependent performance.
Q58.A company needs 500 Mbps of Direct Connect bandwidth and does not want a full dedicated port. What connection type fits?
✓ Correct: D. A hosted connection from a DX Partner
How to think about it: Sub-1 Gbps or flexible capacity = hosted connection from a DX Partner.
Why D is correct: Partners provision hosted connections in sizes from 50 Mbps upward on their own ports.
Why the others are wrong:
A) An AWS Site-to-Site VPN — A VPN runs over the internet; it is not a Direct Connect connection type.
B) A link aggregation group (LAG) — A LAG bundles dedicated connections; it does not offer smaller capacity.
C) A dedicated 1 Gbps connection — Dedicated connections start at 1 Gbps and use a physical port for one customer.
How to think about it: Sub-1 Gbps or flexible capacity = hosted connection from a DX Partner.
Why D is correct: Partners provision hosted connections in sizes from 50 Mbps upward on their own ports.
Why the others are wrong:
A) An AWS Site-to-Site VPN — A VPN runs over the internet; it is not a Direct Connect connection type.
B) A link aggregation group (LAG) — A LAG bundles dedicated connections; it does not offer smaller capacity.
C) A dedicated 1 Gbps connection — Dedicated connections start at 1 Gbps and use a physical port for one customer.
Q59.A team wants to bundle several Direct Connect connections into one logical link for more bandwidth and failover. Which requirement applies?
✓ Correct: A. Dedicated links of equal speed on the same DX endpoint
How to think about it: LAG = dedicated connections, same speed, same DX endpoint.
Why A is correct: A LAG treats matching dedicated ports on one AWS device as a single active-active link.
Why the others are wrong:
B) Each connection must have a different bandwidth — LAG members must all run at the same speed.
C) Hosted and dedicated connections can be mixed — Only dedicated connections can join a LAG.
D) The connections must be in different Direct Connect locations — A LAG terminates on one AWS endpoint, so its links share a location.
How to think about it: LAG = dedicated connections, same speed, same DX endpoint.
Why A is correct: A LAG treats matching dedicated ports on one AWS device as a single active-active link.
Why the others are wrong:
B) Each connection must have a different bandwidth — LAG members must all run at the same speed.
C) Hosted and dedicated connections can be mixed — Only dedicated connections can join a LAG.
D) The connections must be in different Direct Connect locations — A LAG terminates on one AWS endpoint, so its links share a location.
Q60.Two corporate data centers each connect to a different Direct Connect location. They want to send traffic to each other over the AWS network without going through an AWS Region. What should be enabled?
✓ Correct: D. Direct Connect SiteLink on the VIFs
How to think about it: DC to DC through DX locations, bypassing Regions = SiteLink.
Why D is correct: SiteLink sends data between DX locations along the fastest AWS path without entering a Region.
Why the others are wrong:
A) A public virtual interface at each location — Public VIFs reach AWS public endpoints, not each other's data centers.
B) Transit Gateway inter-Region peering — TGW peering joins Transit Gateways in Regions; the traffic would still pass through Regions.
C) VPN CloudHub on a virtual private gateway — CloudHub links sites through VPNs over the public internet.
How to think about it: DC to DC through DX locations, bypassing Regions = SiteLink.
Why D is correct: SiteLink sends data between DX locations along the fastest AWS path without entering a Region.
Why the others are wrong:
A) A public virtual interface at each location — Public VIFs reach AWS public endpoints, not each other's data centers.
B) Transit Gateway inter-Region peering — TGW peering joins Transit Gateways in Regions; the traffic would still pass through Regions.
C) VPN CloudHub on a virtual private gateway — CloudHub links sites through VPNs over the public internet.