EC2 and AZs relationship?
EC2 instances - is stopping/starting same as re-starting?
No, it is not. If a instance is stopped/started it could move to another host within the same AZ (not that it matters to the app ultimately).
Categories of EC2 instances?
What are instance stores?
When would you use EBS vs Instance Store?
When would you use instance stores?
Elastic vs non-elastic Public IPs
If an instance is given a EIP it loses its non-EIP address
Exam Powerup
AMIs Exam Power up!
AMI are unique to a region. Same AMI would have different id in a different region.
Billing model of EC2?
On-Demand - hourly rate, billed in seconds, for new or uncertain application requirements, short-term, spiky workloads, unpredictable workloads which cannot have any disruption
Vertical Scaling
Vertical - resizing of instance, requires downtime/reboot, typically during outage windows, disruption, larger instances are \$\$$, works for all apps: no modifications required
Horizontal Scaling
Add more instances,
multiple running copies of your app running on smaller compute instances,
load balancer is required - between your servers and customers
Sessions are required for continuity of user experience - off host sessions
Explain ECS
Whats an ECS Service defnition?
ECS Cluster modes
What are Placement groups?
Grouping of EC2 instances for a certain purpose
- Cluster - pack instances close together, high level of performance, cannot span AZs, 10GBPs in SINGLE stream performance (exam!)
Enhanced networking
This is enabled by default on most modern EC2 instance SR-IOV - NIC is virtualization-aware No charge - available on most EC2 types Higher IO & Lower Host CPU usage More bandwidth Higher PPS (packers per second) Consistent Low latency
EBS Optimized instances
Optimization is either on or off
EBS = Block storage over the network
EBS optimized instance means it has dedicated capacity for EBS
Most instances support it and have enabled by default