Cost Explorer and VPC Endpoint Savings
Use AWS Cost Explorer CLI to analyze spending, identify NAT Gateway data transfer costs, and quantify savings from VPC endpoints.

Lab Overview
Walk through AWS Cost Explorer from the CLI, learn to read cost-and-usage reports grouped by service and usage type, and build a cost comparison showing how VPC Gateway endpoints eliminate NAT Gateway data-processing charges.
You'll learn to:
- Query Cost Explorer with aws ce get-cost-and-usage grouped by service and usage type
- Identify NAT Gateway data-processing charges in cost reports
- Build a VPC with a NAT Gateway and S3 Gateway endpoint to compare traffic paths
- Create a cost optimization checklist covering VPC endpoints, S3 tiering, right-sizing, and more
Note: Cost Explorer requires approximately 24 hours of billing data. Fresh lab accounts may return $0 values, but the CLI commands and analysis methodology are identical to what you would use on a production account.
Key Resources:
What You'll Learn
Use aws ce get-cost-and-usage to query spending grouped by service and usage type
Identify NAT Gateway data-processing charges in Cost Explorer output
Build a VPC with NAT Gateway and S3 Gateway endpoint to compare cost paths
Create a cost optimization checklist for AWS workloads
Prerequisites
Basic AWS CLI familiarity
Understanding of VPC and NAT Gateway concepts
Technologies Covered
Part of a Course
This lab is part of the AWS Solutions Architect Associate (SAA-C03) course
View All CoursesChoose your plan
Simple, Transparent Pricing
Unlock full access to TeKanAid courses, labs, and bootcamps
Pro
Course content without labs
Renews automatically. Cancel anytime.
- Full access to all courses
- Progress tracking
- Certificate of completion
- Community access
- Bootcamp participation
- New content access
Premium
Full access with hands-on labs
Renews automatically. Cancel anytime.
- Everything in Pro
- Unlimited hands-on labs
- Lab AI Assistant
- Accelerator bootcamps with live office hours
- Priority support
Prefer a single course?
Purchase individual courses for a one-time fee of $79.00. Full access to course content, quizzes, certificates, and community features — lab access is not included.
Browse CoursesFree Content Available
Explore our platform with free lessons, quizzes, and lab previews. No credit card required to get started. On the courses page, use the Access filter and select Free to find all available free content.
Browse Free ContentReady to Get Started?
Start this hands-on lab and build real-world Platform Engineering skills
Get Access Now