Database, Analytics, ML Flashcards
(82 cards)
What is RDS backed by?
EBS
What happens when you are running out of provisioned space on an RDS database?
AWS will automatically scale it for you
If you want to limit how much your DB in RDS can hold, what can you do?
Set the Maximum Storage Threshold
How many read replicas can you have in RDS?
5
True or False: RDS Read Replicas in the same region do not pay the network fee
True. Data transfer to read replicas in other AZs have to pay a networking fee
Why would we use RDS Multi AZ?
It is primarily used for disaster recovery. It performs synchronous replication to read instances
True or False: We cannot set our read replicas in Multi AZ for Disaster Recovery DBs
False. We can set our Read Replicas for DR
What is RDS Custom?
RDS Custom allows us to use Oracle and SQL Server with OS and database customization. We can access the underlying EC2 instance, which RDS managed DB don’t allow us to do
What is an Aurora Writer Endpoint?
A pointer that points to the Master. If the Master fails, and a Replica DB is promoted, the Writer Endpoint automatically shifts to the new Master.
Therefore we do not have to change out apps endpoint
What is an Aurora Reader Endpoint?
It is a pointer that points to a Load Balancer that sits in front of all the replica DBs to perform consistent and fault tolerant reads
We want to run intensive queries on certain Aurora DB instances that have stronger underlying infra. What can we do?
Create a Custom Endpoint. Custom Endpoints allow us to target specific Read Replicas for different types of operations or needs
What is Aurora Serverless?
It allows us to hand off the instantiation and scaling to AWS. It uses a fleet of DBs provisioned by AWS to hold our data. We do not have to pay for upfront capacity
What is Aurora Multi-Master?
Every DB Instance is a Read/Write node. If one fails, you can still write to other Master instances. You may have to configure conflict avoidance strategy, like implementing health checks to see if a Writer instance is still available. Great for if you need high write capacity
What is Global Aurora?
Your DB spans multiple regions, with up to 16 DB Read Instances in each. In one region you have your read/write DB, and up to five read-only secondary regions.
If one entire region fails, it will quickly shift read/write capabilities to another region
Cross-region replication takes less than one second
What two machine learning services can Aurora integrate with?
SageMaker - Deploy machine learning models
Comprehend - Uses machine learning to learn insights and connections in text
True or False: RDS Automated backups don’t expire but manual DB Snapshots do
False. Automated backups last for 1 to 35 days, manual DB snapshots don’t expire unless deleted
If you stop an RDS DB for a long while, what is the recommended protocol?
Create a snapshot, delete the DB and then restore from snapshot when needing the DB. Stopped RDS instances still charge for storage
What is Aurora Database Cloning?
Aurora DB cloning allows us to create a new Aurora DB Cluster from an existing one. It is faster than a snapshot & restore
What is an RDS Proxy?
RDS Proxy sits in front of the RDS instance and pools together all the connections.
This can be beneficial as it puts less strain on the RDS instance resources (CPU, RAM) and minimizes connection timeoutes
True or False: The RDS proxy is available to the public
False, It is only available with the VPC
What two DB engines can we choose from with Aurora?
Postgres and MySQL
What AWS resource can we sit in front of RDS to take the load off of our DB resources?
We can use ElastiCache, which will handle caching (note: our applications will still have to implement our Caching strategy)
We want to have Multi-AZ with Auto-Failover and read replicas for our caching, would we use Redis or Memcached?
Redis
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html#WhatIs.Overview
True or False: ElastiCache supports IAM authentication for Redis and Memcached
False, it only supports it for Redis