SAA-C03 ยท Cost management, databases and network costs
Data transfer costs
What costs money in transit (inter-AZ, inter-Region, internet egress, NAT gateway processing) and cutting it with VPC gateway endpoints, CloudFront and AZ-aware placement.
Key points
- Costs: data out to the internet, between Regions, between AZs, and every GB a NAT gateway processes (plus hourly).
- Inbound from the internet: generally free.
- S3 and DynamoDB gateway endpoints: free, bypass NAT; same Region; not from on-premises, other-Region peers or transit gateway (use paid interface endpoints).
- Other services: interface endpoints.
- One NAT gateway per AZ; CloudFront caches downloads near users.
Source: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-pricing.html
Practice questions
Which way of reaching Amazon S3 from a private subnet in the same Region has no additional charge for the connection itself?
- A NAT gateway in a public subnet
- An S3 interface endpoint
- An S3 gateway endpoint
- A NAT instance in each AZ
Show answer
Answer: C. An S3 gateway endpoint
S3 gateway endpoints are added as route table targets and cost nothing extra. Interface endpoints are billed, and a NAT gateway charges per hour and per GB processed; an internet gateway would require public addresses.
Which of these typically add data transfer or data processing charges to the bill?
- Traffic processed by a NAT gateway
- EC2 reading S3 in the same Region via a gateway endpoint
- Responses sent from EC2 to users on the internet
- Replicating a database to a different AWS Region
- Files uploaded from the internet into an EC2 instance
Show answer
Answer: A. Traffic processed by a NAT gateway, C. Responses sent from EC2 to users on the internet, D. Replicating a database to a different AWS Region
A NAT gateway charges for every GB it processes, data sent out to the internet is billed, and replicating data to another Region is billed as inter-Region transfer. S3 traffic through a gateway endpoint in the same Region has no extra charge, and inbound data from the internet is generally free.
On-premises servers connected over Direct Connect can use the VPC's S3 gateway endpoint to reach S3 privately.
Show answer
Answer: False
False. Gateway endpoint connections cannot be extended out of the VPC: traffic arriving over VPN, Direct Connect, VPC peering or a transit gateway cannot use them. On-premises clients need an S3 interface endpoint, which is billed.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
