Chapter 16 Optimization Flashcards
5 pillars
- operational excellence
- security
- reliability
- performance efficiency
- cost optimization
Cost Tagging Categories
- Environment
- Application ID
- Automation (opt in/out)
- Business Unit
- Owner
How to enforce tagging?
Via IAM policy which specified required tag names.
Why would you potentially be charged for stopped EC2 instance?
Because an associated EBS volume was not terminated.
Are you charged for an unused Elastic IP address?
Yes, but it is not charged if it is attached to an EC2 instances.
General purpose instance types
A1, T2, M3, M4
Compute Optimized instance types
C3, C4
Memory Optimized instance types
X1, R3, R4
Storage Optimized Instance Types
I3, D2
Accelerated Computing Instance Types
P2, G3, F1
Reserved instance duration
1-3 years, potential savings of 75%
For DB reserved instances, what happens when you exceed reserved rate?
You are charged the on demand rate.
Termination notices for spot instances are issues when?
2 minutes before instances are terminated
How to guarantee a specific time duration with Spot instances?
Use block durations, which is a parameter set when using spot instances. It guarantees a duration block.
How to minimize impact of interruptions with Spot instances?
Persist data with EBS volume and/or split up the work using SQS.
______refers to the functionality that automatically replaces unhealthy instances in your application, maintains your fleet at the desired capacity, and balances instances across Availability Zones.
Fleet management
A _______ is a snapshot of a particular state of a resource, such as an Amazon EC2 instance, Amazon EBS volumes, and an Amazon RDS DB instance.
golden image
If you don’t want to make manual predictions for an auto-scaling group, what can you use?
predictive scaling. It leverages machine learning algorithms
Aurora auto scaling is available for MySQL and Postgres, but Aurora serverless is available only for _____
MySQL
How does Lambda scale?
It runs multiple, parallel functions
Glacier vs Glacier Deep Archive
Deep archive is 7-10 year data retention for compliance purposes. 12 hr retrieval time (vs minutes to several hrs for Glacier)
When to use S3 vs EFS?
S3 as much as possible to keep storage costs low, and EFS when your application requires it.
What tool allows you to analyze access patterns for S3 data and allow you to transition objects to the appropriate storage class?
Amazon S3 Analytics: Storage Class Analysis
Tool which allows you to create CSV with replication and encryption status of S3 objects on weekly or monthly bases?
S3 Inventory