Storage and Databases Flashcards
what is not recommended when it comes to store in EC2 instances
Data storage is not recommended in EC2 instances. Block-level storage volumes behaves like physical hard drives
How data is stored in EC2 instance
INSTANT STORe - provides temporary block-level storage for amszon EC2 instance.
How does instance store behave
A disk storage physically attached to the host computer of Ec2 instance and therefore has the same lifespan as an instance. If EC2 instance is terminated, we lose all data
What is the solution provided by Amazon for storage
Amazon Elastic Block Store (Amazon EBS) - provides block level storage volumes for EC2 instances. Data available even if EC2 stops
What is needed for creating Amazon EBS
To create an EBS volume, you need config (such as types and volumes) and provision it.
What is important for EBS
to back-up the data as it needs data for persisting. We can create incremental backups using snapshots
what is the service that provides Object level storage?
Amazon Simple Storage Service (Amazon S3)
What does object storage contains
Data - the actual data like images/videos/etc
Metadata - information about the data, sized, etc..,
Key- Unique Id
Where does Amz S3 stores data
in Buckets
what is the maximum storage space
Unlimited
What is the maximum size for an Object
5 TB
How does EBS snapshot works?
It works as an incremental backup. That is, when the first backup happens all datas are copies. During subsequent backups only the changed/updated data are backed up
Amazon S3
Amazon Simple Storage Service
What factors to consider when selecting Amazon S3 classes?
- How often you need to retrieve the data
- How available you want the data to be
How many S3 classes categories?
8 types
s3 standard
- Designed for frequently accessed data
- stores data in min of 3 avail. zones
- High cost compared to others and needed for dynamic contents, analysis etc
S3 Standard-Infrequent Access (S3 Standrad - IA)
- Designed for Infrequently accessed data
- Low storage price, High retrieval price
- available in min 3 avail. zones
S3 One Zone Infrequent Access
- Stores only in one aval. zones
- Lower storage price than S3 - IA
- Can be choosen if data reqcovery is possible in case of available zone failure
S3 Intelligent Tiering
- ideal for data with unknown/changing access pattern
- requires small fees for monitoring the access pattern
- If the data is not access for 30 days, its moved to Amazon S3 infrequent access tier, 4. if its accessed in 30 days, it is moved to Amazon S3 Standard
S3 Glacier Instance Retrieval
- Wroks for archived objects that requires immediate access
- Can retrive objects within milli seconds
S3 Glacier Flexible Retrieval
- Designed for low cost for archive data access
- takes minutes to hours to retrieve archive data
S3 Glacier Deep Archival
- For lowest cost archival data access
- It takes less than 12 hours - 48 hrs
- Suitable for data that requires long term data retention and digital preservation that might be accessed in 1 or 2 years
- Data are replicated and dispersed at least in 3 availability zones
S3 Outposts
Creates S3 buckets on AWS Outposts
Makes it easier to access data in AWS outposts
EFS
Elastic File System
What is the approach in EFS
A storage server uses block storage with a local file system to organize files
When is File Storage is preferred
Its preferred when a large no of service Ec2 instance wants to access a data at the same time
where is amazon ebs stored
Its stored in an availability zones
where is amazon efs stored
its stored in region, its regional supportive
Amazon Relational database service
Amazon service for relational databases in the cloud
how does your life is made simple by Amazon RDBMS
its a managed service that takes care of all the tasks such as Data provisioning, data backup, patching etc
Amazon Aurora
- enterprise-class rel db engine
- compatible witj mysql and postgres db
- 5 times faster than mysql and 3 times that postgres
4.replicates 6 copies of ur data across 3 avail zones and backed up in S3
what is amazon dynamo db
key value database service
it delivers single digit millisecond performance at any time
features of dynamo db
its serverless.. which means not required to provision, patch, etc not req to install, maintain or update
dynamo db automatically adjust the scales on the shrinking or expanding database size
what is Amazon Redshift
Its a service for data warehouse service that can be used for big data analysis
what is the service used to migrate Db
Amazon Database Migration Service
what types of databases are migrated
Relational, non-relational or any other types
what are homogenuous migration?
Migrate data in which source and destination are of same type
Other use cases of AWS DMS
- Development and Test data migrations - to enable copy data from production for developers to test code
- Database consolidation - combining several db into single one
- Continuous Replication - sending ongoing copies of ur data to other target sources insteda of doing at one step migration
what is heterogenous migration
Source and destination are of different database types