You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**CIDR Block**| Fixed 172.31.0.0/16| You choose (e.g., 10.0.0.0/16) | Avoid IP conflicts when connecting to on-premises or other VPCs |
56
+
|**Subnets**| One per AZ, all public | You design public/private | Security: databases shouldn't be public|
57
+
|**Learning**| Hides complexity | Forces understanding | You'll need this knowledge for the exam and real jobs|
58
+
|**Production readiness**| Not recommended | Industry standard | Default VPC is for quick demos only|
58
59
59
60
> **SAA Exam Tip:** Questions often test whether you understand that resources in private subnets can't be accessed directly from the internet - this is a security best practice.
60
61
@@ -68,12 +69,12 @@ flowchart TB
68
69
69
70
The number after `/` tells you how many IP addresses you get:
|**Reassignment**| Not possible | Can move between instances |
324
+
325
+
> **Note (Feb 2024 Change):** AWS now charges $0.005/hour for ALL public IPv4 addresses, whether auto-assigned or Elastic IP, attached or not. This was a significant pricing change to encourage IPv6 adoption.
| Any public IPv4 address (EIP or auto-assigned) |~$3.60/month ($0.005/hr) |
384
+
| EIP **not** attached to any instance |~$3.60/month ($0.005/hr) |
385
+
| EIP attached to stopped instance |~$3.60/month ($0.005/hr) |
377
386
378
-
| Scenario | Cost |
379
-
|----------|------|
380
-
| EIP attached to running instance | Free |
381
-
| EIP **not** attached to any instance |~$3.65/month |
382
-
| EIP attached to stopped instance |~$3.65/month |
387
+
**Free Tier Exception:** For accounts in their first 12 months, the Free Tier includes **750 hours/month of in-use public IPv4 addresses** for EC2. This covers approximately one public IP running 24/7. Usage beyond 750 hours is charged at $0.005/hr.
383
388
384
-
> **SAA Exam Tip:** AWS charges for unused Elastic IPs to discourage hoarding of the limited IPv4 address space. This is a common exam question: "How do you reduce costs?" → Release unused EIPs.
389
+
> **SAA Exam Tip:** AWS charges for ALL public IPv4 addresses to discourage IPv4 usage and encourage IPv6 adoption. Common exam questions: "How do you reduce costs?" → Release unused EIPs, use private IPs with NAT Gateway, or adopt IPv6.
385
390
386
391
**When NOT to use Elastic IP:**
392
+
387
393
- Behind a Load Balancer (the LB has its own DNS name)
388
394
- Using Route 53 with health checks (can auto-failover)
389
395
- Auto Scaling groups (instances are disposable)
@@ -429,20 +435,24 @@ flowchart TB
429
435
### Must-Know Topics
430
436
431
437
1.**VPC Fundamentals**
438
+
432
439
- VPC is region-scoped
433
440
- Subnets are AZ-scoped
434
441
- One IGW per VPC
435
442
436
443
2.**CIDR Calculations**
444
+
437
445
- /16 = 65,536 IPs
438
446
- /24 = 256 IPs (251 usable in AWS)
439
447
- Always subtract 5 for AWS reserved
440
448
441
449
3.**Public vs Private**
450
+
442
451
- Public subnet = route to IGW
443
452
- Private subnet = no direct internet route
444
453
445
454
4.**Security Groups**
455
+
446
456
- Stateful
447
457
- Allow rules only
448
458
- Instance level
@@ -459,6 +469,7 @@ flowchart TB
459
469
**Business trigger:** TechBooks is getting 500 visitors/day! The single MySQL database on EC2 is showing strain, and you're nervous about losing data.
460
470
461
471
**Next decisions:**
472
+
462
473
- Separate the database to RDS
463
474
- Implement automated backups
464
475
- Move database to private subnet
@@ -477,3 +488,34 @@ Before moving to Phase 2, try building this in AWS:
477
488
6. SSH into your instance and install Nginx
478
489
479
490
**Verification:** You should be able to see the Nginx welcome page from your browser.
491
+
492
+
---
493
+
494
+
## References
495
+
496
+
Official AWS documentation used to validate this content:
497
+
498
+
### VPC & Networking
499
+
500
+
-[What is Amazon VPC?](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html)
501
+
-[Subnet CIDR blocks](https://docs.aws.amazon.com/vpc/latest/userguide/subnet-sizing.html) - Reserved IPs per subnet
502
+
-[Internet Gateway](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html) - IGW characteristics and NAT behavior
503
+
-[Amazon VPC Quotas](https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html) - One IGW per VPC limit
504
+
-[Infrastructure Security - Compare Security Groups and Network ACLs](https://docs.aws.amazon.com/vpc/latest/userguide/infrastructure-security.html)
-[Burstable Performance Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-credits-baseline-concepts.html) - CPU credits and unlimited mode
0 commit comments