RDS + ARORA + ElastiCache Flashcards

1
Q

What is Amazon RDS?

Explain the purpose and function of Amazon Relational Database Service (RDS).

How does Amazon RDS operate within the AWS ecosystem?

A

Amazon RDS is a managed relational database service provided by AWS that simplifies the setup, operation, and scaling of relational databases in the cloud.

It supports various database engines like MySQL, PostgreSQL, Oracle, SQL Server, and others, offering automated backups, patches, scaling, and high availability.

================

Amazon RDS is like a magical library that stores information in different sections (databases) and keeps everything organized and safe. It helps people (users) easily access and manage their information without worrying about the messy details.

Amazon RDS simplifies the management of relational databases in the cloud, offering automated backups, updates, and scalability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the advantages of using RDS over deploying a database on EC2?

Explain the benefits of choosing Amazon RDS compared to manually deploying a database on EC2 instances.

How does RDS outperform the manual deployment of databases on EC2?

A
  • Managed Service: RDS is a fully managed service, handling routine database tasks like backups, updates, and maintenance, reducing administrative overhead.
  • Automated Scaling: RDS offers automated scaling capabilities, adjusting resources based on demand, whereas manually managing a database on EC2 requires more effort for scaling.
  • High Availability: RDS provides built-in features for high availability and fault tolerance, simplifying the setup of redundant databases compared to EC2 deployments.

Analogy:Using Amazon RDS is like having a super-smart helper for your database work. It does many tasks on its own (like backups and updates) and quickly adjusts when more people need information, making things easier for you.

Amazon RDS simplifies database management by providing a managed service with automated tasks and better scalability compared to manual deployments on EC2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is RDS Auto Scaling?

Explain the concept and purpose of Auto Scaling in Amazon RDS.

How does RDS Auto Scaling optimize database performance?

A

RDS Auto Scaling is a feature in Amazon RDS that automatically adjusts the compute capacity of your database in response to changing workloads. It enables the database to dynamically scale resources, such as CPU, memory, and storage, to handle fluctuations in demand without manual intervention.

===============================
RDS Auto Scaling is like a smart robot that makes a desk bigger when there are many books to keep and smaller when there are fewer books. It helps your database desk (RDS) adjust its size to handle more or fewer things without anyone doing it manually.

RDS Auto Scaling dynamically adjusts database resources to match workload changes, ensuring optimal performance and cost-effectiveness.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are RDS Read Replicas?

Explain the purpose and functionality of Read Replicas in Amazon RDS.

How do RDS Read Replicas enhance database performance?

A

RDS Read Replicas are copies of an Amazon RDS database that help improve read performance by allowing read-only access to the replicated data.
They offload read traffic from the primary database, enabling applications to scale the read workload horizontally and improve overall performance.
* Upto 15 replicas within AZ, cross AZ or Cross region
* Replication is ASYNC, so reads are consistent.
* Replicas can be promoted t own DB
* Application mush update the connection string to leverage rread replicas.

===========================
RDS Read Replicas are like copies of a book that you and your friend can both read at the same time. It helps more people (applications) read the story (data) without making the book (primary database) too busy.

The read replicas can be setup as MultiAZ for Disaster recovery

RDS Read Replicas provide copies of databases for read access, improving performance by distributing read requests across multiple replicas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which Amazon service offers a high-performance and fully managed relational database?

How does Amazon Aurora differ from traditional relational databases?

What makes Amazon Aurora stand out among other database services?

A

Amazon Aurora is a relational database service provided by Amazon Web Services (AWS). It’s known for its high performance, scalability, and fully managed capabilities. Aurora is compatible with MySQL and PostgreSQL databases and is designed to provide up to five times the performance of standard MySQL databases without requiring changes to most applications.

Imagine Amazon Aurora as a super-fast and organized library for storing lots of books. When you want to find a specific book in a messy room, it might take a while. But in this library, the books are neatly arranged and labeled, making it super easy to find any book you need, almost instantly!

Unlike regular databases, Aurora is like the superhero of databases

Aurora’s secret lies in its ability to handle large volumes of data efficiently and provide super-fast access to information, making it a preferred choice for many applications needing high performance and scalability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What feature in Amazon Aurora helps manage read replicas?

What does Aurora’s auto scaling feature specifically target?

How does Aurora’s auto scaling functionality operate in relation to read

Why is auto scaling important for databases like Aurora?

A

Aurora’s auto scaling feature is designed to dynamically adjust the number of read replicas in response to changes in database load. It automatically adds or removes read replicas based on the incoming traffic or workload patterns, ensuring optimal performance without manual intervention.

==================================
Imagine Aurora’s auto scaling like a magical spell that helps make more copies of a favorite book whenever lots of friends want to read it. If everyone wants to read the story at once, the spell quickly makes more copies, so everyone gets to enjoy it without waiting too long!

Auto scaling is crucial because it keeps the database running smoothly even when lots of people want to use it at the same time. This helps prevent slowdowns or waiting times when accessing information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the name of the serverless version of Amazon Aurora?

How does Aurora Serverless differ from the traditional Aurora database?

What are the key characteristics of Aurora Serverless?

Why might a company opt for Aurora Serverless over traditional Aurora?

A

Aurora Serverless is a version of Amazon Aurora designed to automatically adjust its capacity based on actual usage.
- Traditional Aurora; users provision a specific instance size.
- Aurora Serverless; scales compute capacity up or down based on the application’s needs.
- It allows for a more cost-effective and scalable approach by only charging for the resources used per second.

Its like an On-Demand EC2 instance but for DBs

Companies might choose Aurora Serverless because it helps save money by only using the exact amount of space needed, making it perfect for applications with varying or unpredictable workloads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What feature in Amazon Aurora that enables global database deployment?

What does Global Aurora specifically offer in terms of database functionality?

How does Global Aurora manage data across multiple regions?

Why might businesses opt for Global Aurora in their database setup?

A

Global Aurora is a feature of Amazon Aurora that allows for a globally distributed database. It enables database replication across multiple AWS regions, ensuring low-latency access to data for users worldwide. With Global Aurora, users can create read replicas in different regions, providing disaster recovery, high availability, and low-latency access to data across the globe.

======================================
Global Aurora is like a magical map that shows where treasures are hidden in different lands. If someone needs to find a treasure, they can look at the map and quickly know where it is, no matter where they are in the world!

Businesses might choose Global Aurora to ensure that their data is always available, even if something goes wrong in one location. It helps them serve customers all around the world without making them wait for information to travel long distances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What feature in Amazon Aurora integrates machine learning capabilities?

How does Aurora Machine Learning enhance the traditional database functionalities?

What are the primary functionalities enabled by Aurora Machine Learning?

Why is the integration of machine learning in Aurora significant?

A

Aurora Machine Learning is a feature that allows users to deploy machine learning models directly within Amazon Aurora databases. It enables real-time predictions and inference capabilities using SQL commands, making it easier to integrate machine learning with database operations. This integration empowers applications to make intelligent decisions based on the database data without needing a separate machine learning environment.
It is supported with other services like Amazon SageMaker(Used for any MLmodel), and Amazon Comprehend(for sentimental analysis).

======================================
Aurora Machine Learning is like a magical brain inside a library that helps the books tell stories on their own! It’s as if the books can answer questions and share exciting things they know without someone reading them, making the library even more fun and helpful!

ntegrating machine learning in Aurora is significant because it allows databases to become smarter and more helpful, enabling applications to make predictions and decisions quickly based on the stored data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What feature does Amazon RDS provide for data protection?

What functionality does RDS Backup offer in managing databases?

How does RDS Backup ensure data reliability and recoverability?

Why is having a robust backup strategy important for databases?

A

RDS Backup in Amazon Relational Database Service (RDS) is a feature that enables users to create automated backups of their databases it allows for :-
- the automatic or manual creation of full database backups
- transaction logs
- snapshots at specific points in time.

These backups provide a point-in-time recovery mechanism for databases in case of data loss, corruption, or accidental deletions.

======================================
RDS Backup is like a magical spell that takes a picture of your LEGO creation every few minutes. So, if your masterpiece accidentally breaks, you can go back to just before it broke and rebuild it exactly how it was!

The magic in RDS; keep data safe by taking lots of pictures for recovery

A robust backup strategy is essential because it acts like a safety net for databases. It ensures that even if something unexpected happens, like data getting lost or changed by mistake, you can go back to a time when everything was working perfectly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do Amazon RDS and Aurora offer data restoration capabilities?

What are the restoration options available in RDS and Aurora databases?

What differentiates the restore options provided by RDS and Aurora?

Why is understanding the various restore options important for database management?

A

Both Amazon RDS and Aurora offer various data restoration options. Both need to create a new database.
- In RDS, users can restore databases from automated or manual snapshots, enabling them to recover databases to specific points in time. Additionally, RDS provides the option to create new instances from these snapshots for testing or recovery purposes.
- In Aurora, users can perform point-in-time restores, creating a new instance at any desired time within the backup retention period.

======================================
> In Amazon RDS and Aurora, it’s like having a time machine for your LEGO creations! With RDS, you can go back to a picture you took earlier and make a new LEGO castle just like it was before. But with Aurora, you can pick any moment you want from the magical pictures you took and build your castle from that exact moment! <

RDS helps you go back to the last picture you took, while Aurora lets you pick any moment you want from all the pictures you’ve taken!

Alternative; Using S3 as the intermediate storage of snapshots.

Knowing the different ways to bring back your data is like having different tools to fix your LEGO castle when it breaks. It ensures that no matter what happens to your data, you have the right way to bring it back exactly how it was before.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What functionality does Aurora provide for duplicating databases?

What does Aurora’s Database Cloning feature offer in managing databases?

How does Aurora’s Database Cloning process work?

Why might businesses utilize Aurora’s Database Cloning capability?

A

Aurora’s Database Cloning is a feature that allows users to create copies or clones of their databases swiftly.
It enables the creation of exact replicas of an existing Aurora database without impacting the original database’s performance.
This process helps in creating test environments, conducting experiments, or separating development from production databases easily.
Additionally its faster than snapshots & restore, and cost-effective.

Use-Case: Useful to create a “Staging” database from “production” database without impacting the production database.

Businesses might use Aurora’s Database Cloning to experiment with new ideas, test changes, or create separate areas for trying out different things without risking their main database’s setup and data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do Amazon RDS and Aurora prioritize database security?

What security measures are implemented in RDS and Aurora databases?

How do the security approaches of Amazon RDS and Aurora differ?

Why is maintaining robust security critical in managing databases like RDS and Aurora?

A

Both services offer
1. encryption at rest and in transit
2. Utilizing AWS (IAM) for access control and supporting network isolation through Amazon (VPC).

  • Aurora provides additional security enhancements such as integration with AWS (KMS) for advanced encryption key management and supports tighter control over database access through its own security group mechanisms.

======================================
Amazon RDS and Aurora are like the guards of your LEGO castle. RDS ensures that only the right people can enter and play inside your castle, while Aurora not only guards the door but also hides your treasure in a super-secret room that only you can open with a special key!

Encryption; Leveraging AWS KMS.
IAM Authentication; Uisng IAM roles insted of UserName & Pwds.
Security Groups
No SSH Available protecting it from DDoS attacks
Audit logs can be enabled & sent cloudWatch for longer retention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What service manages database connections efficiently in RDS?

What functionality does Amazon RDS Proxy offer in the context of database management?

How does Amazon RDS Proxy optimize database connections?

Why might businesses opt for Amazon RDS Proxy in their database infrastructure?

A

Amazon RDS Proxy is a service designed to efficiently manage database connections for Amazon RDS (Relational Database Service).
It acts as an intermediary between applications and the database, pooling and reusing connections, which reduces the load on the database and improves scalability.
- RDS Proxy also handles tasks like authentication, connection pooling, and monitoring, enhancing the efficiency and security of database access.

=======================================
Amazon RDS Proxy is like a traffic manager for LEGO cars in and out of the castle. It makes sure cars move smoothly, shares rides when possible, and checks each car’s pass before allowing entry. This way, the castle isn’t overwhelmed by too many cars at once!

Allows apps to pool & share Db connnections established with the DB.

Businesses might choose Amazon RDS Proxy to ensure their databases handle connections efficiently, especially during times of high traffic. It helps prevent the database from getting overwhelmed by too many requests, ensuring smooth and secure operations.
RDS proxy is never pubilcly accessible(must be accessed from VPC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What AWS service offers an in-memory caching system?

What functionality does Elasticache provide in the AWS ecosystem?

How does Elasticache enhance the performance of applications?

Why might businesses opt for Elasticache in their infrastructure setup?

A

ElastiCache is an AWS service that provides a scalable and high-performance in-memory caching system.
It supports two popular open-source caching engines, Redis and Memcached, allowing applications to store frequently accessed data in memory for faster retrieval.
- Elasticache helps improve application performance by reducing database load and latency, enabling quicker access to data that doesn’t frequently change.

Use-case 1:Applications queries ElastiCache, if not available, get it from RDS and store it in ElastiCache.
Use-case 2: To create stateless application by saving recent session data actions in the elasticache.

=====================================
ElastiCache is like a magical storage closet where you keep your favorite LEGO pieces always ready to build with. It’s as if you have a secret drawer that magically makes the pieces you use the most appear instantly whenever you want them!

Using elastiCache involves heavy application code changes

Businesses might choose Elasticache to make their applications faster and more responsive.
By storing commonly used data in a super-fast storage space, it helps reduce the time it takes for applications to fetch information, improving the overall user experience by also making the application experience stateless.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the two caching engines supported by Amazon ElastiCache?

What is the primary difference between Redis and Memcached in ElastiCache?

How do Redis and Memcached differ in functionalities within ElastiCache?

Why is understanding the differences between Redis and Memcached important for choosing the right caching engine in ElastiCache?

A

Amazon ElastiCache supports two caching engines: Redis and Memcached.
- Redis is an advanced key-value store that offers additional features such as data persistence, advanced data structures, and built-in replication, making it suitable for use cases requiring complex data types and high performance.
- Memcached, is a simpler key-value caching system primarily focused on simplicity and raw performance, often used in straightforward caching scenarios without the need for advanced data operations.

====================================
In ElastiCache, Redis is like a magical LEGO box that not only keeps your pieces ready but also organizes them by color, size, and shape.
Memcached, however, is like a quick and simple magic drawer that instantly gives you the exact piece you want without any fancy organizing!

REDIS
* Advanced
* Multi AZ auto Failover
* Read replicas ensure high availability
* Backup and restore features

MEMCACHED
* Simple
* Multi-node for partitioning of data (sharding)
* No high availability (replication)
* Non persistent
* No backup and restore
* Multi-threaded architecture

17
Q

How does Amazon ElastiCache ensure cache security?

What security measures are implemented in ElastiCache for protecting cached data?

Why is robust security crucial for cache systems like ElastiCache?

How does ElastiCache manage security controls and access to cached information?

A

Amazon ElastiCache offers encryption at rest & in transit.
- It integrates with AWS IAM for controlling user access to cache resources.
- It supports network isolation through Amazon VPC to restrict access to cache clusters.

Redis Use-case: Gaming leaderboard are computationally complex, Redis sorted sets guarantee both uniqueness and element ordering. Each time a new element is added, its ranked in rela time, then added in correct order.

In ElastiCache, the data is like a treasure chest in a secret room. ElastiCache makes sure the treasure chest is locked with a magical key that only allows the right people inside the room to see the treasures!

Security in cache systems like ElastiCache is vital because it protects valuable data from falling into the wrong hands. Just like locking up a treasure chest in a secret room, ensuring robust security measures helps keep sensitive information safe from unauthorized access or theft.
- LeastiCache supprt IAM Authentication for Redis.
- IAM policies on ElastCache are used for AWS API-level security.
- Memcached support SASL based authentication
- You can set : PWD/token” when you create a Redis cluster
- Redis supports SSL in flight encryption.

18
Q

Which of the following statement is true regarding replication in both RDS Read Replicas and Multi-AZ?
* Read Replicas uses Asynchronous replication & Multi-AZ uses Asynchronous replication
* Read Replicas uses Asynchronous replication & Multi-AZ uses synchronous replication
* Read Replicas uses synchronous replication & Multi-AZ uses synchronous replication
* Read Replicas uses synchronous replication & Multi-AZ uses Asynchronous replication

A

Read Replicas uses Asynchronous replication & Multi-AZ uses synchronous replication

Read Replicas (Asynchronous Replication): Imagine you have a friend who copies your lemonade stand. They take notes of what you’re doing but not exactly when you do it. So, if you change the price or add a new flavor, your friend might not know right away. That’s like Read Replicas. They copy what’s happening, but not necessarily right at the same moment.

Multi-AZ (Synchronous Replication): Now, imagine you have a magical twin who stands beside you at the lemonade stand. Whenever you make a change or pour a glass, your twin does the same thing at the exact same time. It’s like having an instant copy that always stays in sync. That’s similar to Multi-AZ. Changes are made in both places at the same time, ensuring they’re always identical.

So, Read Replicas are like a friend who copies, but not instantly, and Multi-AZ is like having a magical twin that does everything with you in perfect sync. One is asynchronous (not right away), and the other is synchronous (right away).