A company hosts an application on EC2 instances in private subnets. The instances must (1) read objects from Amazon S3 and (2) retrieve secrets from AWS Secrets Manager. The team currently sends all outbound traffic through a NAT gateway to reach both services. They want to reduce monthly cost while keeping traffic private (no internet egress) and without changing application logic. Which change is the most cost-effective?
Answer choices
Why each option matters
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
Best answer
Create a Gateway VPC endpoint for S3 and an Interface VPC endpoint for Secrets Manager, and ensure the subnet route tables / endpoint routing directs those service calls to the endpoints instead of the NAT gateway.
This is the most cost-effective change because it removes the need to traverse the NAT gateway for those AWS service calls. S3 uses a Gateway VPC endpoint (route-table-based) for traffic to the S3 prefix list, so requests to S3 stay on the AWS network. Secrets Manager uses an Interface VPC endpoint (ENIs with private DNS), so requests to Secrets Manager stay private within the VPC/VPC endpoint network path. Because the application still calls the same AWS APIs, there is no logic change, and NAT data-processing charges drop to near zero for S3/Secrets Manager traffic.
Distractor review
Keep the NAT gateway, but add AWS WAF rules to block non-service outbound requests to reduce NAT usage.
WAF rules don’t control arbitrary outbound TCP connections initiated from EC2 instances. NAT gateway charges are driven by actual outbound traffic volume (data processed) and active connections, not by WAF policy. Unless the instances themselves stop making those outbound calls, the NAT gateway still processes the traffic and continues to incur charges.
Distractor review
Disable IPv4 on the VPC subnets and rely on IPv6-only egress to reduce NAT gateway costs.
NAT gateways are used specifically for private IPv4 egress to reach the internet or other networks. Switching to IPv6-only does not inherently eliminate the cost drivers for private service connectivity; it also requires a correct egress architecture for reaching AWS services and may introduce other components/changes. This does not directly address the most direct cost lever: using VPC endpoints to avoid NAT for calls to S3 and Secrets Manager.
Distractor review
Replace the NAT gateway with a VPC firewall appliance instance to proxy outbound calls and reduce NAT fees.
Using a self-managed proxy/firewall appliance adds additional compute cost, scaling/availability overhead, and operational burden (patching, upgrades, monitoring). It also does not provide the same purpose-built, service-specific private connectivity model that VPC endpoints provide for S3 and Secrets Manager, so it is unlikely to be more cost-effective than adding the correct endpoints.
Common exam trap
Common exam trap: usable hosts are not the same as total addresses
Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.
Technical deep dive
How to think about this question
Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.
KKey Concepts to Remember
- CIDR notation defines the prefix length.
- Block size helps identify subnet boundaries.
- Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
- The required host count determines the smallest suitable subnet.
TExam Day Tips
- Write the block size before choosing the subnet.
- Check whether the question asks for hosts, subnets or a specific address range.
- Do not confuse /24, /25, /26 and /27 host counts.
Related practice questions
Related SAA-C03 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
SAA-C03 VPC practice questions
Practise SAA-C03 questions linked to SAA-C03 VPC.
SAA-C03 S3 lifecycle policy questions
Practise SAA-C03 questions linked to SAA-C03 S3 lifecycle policy questions.
SAA-C03 RDS Multi-AZ questions
Practise SAA-C03 questions linked to SAA-C03 RDS Multi-AZ questions.
SAA-C03 IAM policy practice questions
Practise SAA-C03 questions linked to SAA-C03 IAM policy.
SAA-C03 Route 53 failover questions
Practise SAA-C03 questions linked to SAA-C03 Route 53 failover questions.
SAA-C03 CloudFront practice questions
Practise SAA-C03 questions linked to SAA-C03 CloudFront.
SAA-C03 NAT gateway questions
Practise SAA-C03 questions linked to SAA-C03 NAT gateway questions.
SAA-C03 VPC endpoint questions
Practise SAA-C03 questions linked to SAA-C03 VPC endpoint questions.
SAA-C03 Auto Scaling practice questions
Practise SAA-C03 questions linked to SAA-C03 Auto Scaling.
SAA-C03 disaster recovery questions
Practise SAA-C03 questions linked to SAA-C03 disaster recovery questions.
SAA-C03 high availability questions
Practise SAA-C03 questions linked to SAA-C03 high availability questions.
SAA-C03 cost optimization questions
Practise SAA-C03 questions linked to SAA-C03 cost optimization questions.
More questions from this exam
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
A team needs to distribute TCP traffic (not HTTP) across multiple services. The services must see the original client source IP for auditing. Which AWS load balancer is the best fit?
Question 2
A team wants to run containerized services with AWS-managed orchestration and autoscaling. They do NOT require Kubernetes compatibility. Which AWS service choice is most appropriate to meet these goals?
Question 3
A solutions architect is designing an S3 bucket for a IoT ingestion API. The objects must never be publicly accessible, even if a developer later adds an overly broad bucket policy. What should the architect configure? The design must avoid adding custom operational scripts.
Question 4
A solutions architect is designing an S3 bucket for a claims portal. The objects must never be publicly accessible, even if a developer later adds an overly broad bucket policy. What should the architect configure?
Question 5
A team wants to delegate IAM management to developers, but must ensure developers can never grant themselves permissions beyond a specific limit. Which AWS mechanism best matches this requirement?
Question 6
A solutions architect is designing an S3 bucket for a healthcare document service. The objects must never be publicly accessible, even if a developer later adds an overly broad bucket policy. What should the architect configure?
FAQ
Questions learners often ask
What does this SAA-C03 question test?
CIDR notation defines the prefix length.
What is the correct answer to this question?
The correct answer is: Create a Gateway VPC endpoint for S3 and an Interface VPC endpoint for Secrets Manager, and ensure the subnet route tables / endpoint routing directs those service calls to the endpoints instead of the NAT gateway. — The best way to avoid NAT gateway charges for private access to AWS services is to route service traffic through VPC endpoints. Create a Gateway VPC endpoint for Amazon S3 so S3 API calls use route-table entries (S3 prefix list) instead of the NAT path, and create an Interface VPC endpoint for AWS Secrets Manager so Secrets Manager API calls use private ENIs (with private DNS if configured). Because the EC2 application continues to call the same AWS endpoints (S3 and Secrets Manager APIs), there is no required application-logic change. As a result, NAT gateway data processing for these service calls drops substantially (often to zero for that traffic), reducing monthly cost while keeping traffic private. Keeping the NAT gateway means the instances still send S3 and Secrets Manager requests through the NAT path, so NAT charges persist. WAF cannot prevent the NAT gateway from processing outbound requests that the instances actually make. Disabling IPv4/using IPv6-only is not a direct substitute for endpoint-based private service connectivity and may require additional egress design changes. Replacing NAT with a self-managed proxy/firewall appliance adds operational complexity and cost and is not as straightforward or typically as cost-efficient as using managed VPC endpoints for S3 and Secrets Manager.
What should I do if I get this SAA-C03 question wrong?
Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.
Discussion
Sign in to join the discussion.