RDS + AURORA + ELASTICACHE Flashcards

1
Q

What is RDS?

A

Relational Database Service. It works with SQL as query language

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

What kind of SQL databases does RDS support?

A

Posgres
My SQL
Aurora (AWS)
Microsoft SQL Server
MariaDB
Oracle
IBM DB2

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

What is Aurora

A

AWS’s SQL Relational Database

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

What are some benefits of running SQL on RDS rather than EC2 instances?

A

The database provisioning is automated
Automatic OS patching
continuous backups being made, which you can restore to a specific timestamp
Monitoring dashboards, to view the database’s performance
Read replicas to improve read performance
Easily setup multi-az for DR: disaster recovery
Automatic maintenance windows for minor db pgrades
You can easily scale horizontally and vertically.
Storage is backed by EBS

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

What is a disadvantage of running your SQL in RDS?

A

you can’t ssh to your RDS instances

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

What is storage auto scaling?

A

It’s for RDS. It scales automatically when it detects your database is about to run out of storage.

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

How does storage auto scaling work?

A

You set a maximum storage threshold.

It auto increases storage if:
free space less than 10%
this low storage lasts more than 5 minutes

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

Where can you scale your read replicas to?

A

Within same AZ, cross AZ, and cross Region.

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

How many read replicas can we create?

A

Up to 15

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

What is eventually consistent ASYNC replication? and how does it apply to RDS read replicas?

A

Its how the replication process works for read replicas. It means the replicas have a delay in getting the data replicated from the original Database instance. So when you read from a replica you may get old information.

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

What is a read replica promotion?

A

Read replicas can be promoted to their own database. They are out of the replication system after that. They become a separate database.

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

What is a connection string in SQL?

A

Its what tells the application where the database is, for example:

Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;

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

How do you connect the read replicas to the app that uses the database?

A

By adding connection strings in the app

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

What are use cases for read replicas?

A

When you have a production app that uses a database, and you need to add for example a reporting tool that needs to read the database.

This can slow down the production app. So what you can do instead is use a read replica for the reporting tool to read, and you dont affect the production app and the main database instance.

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

What are SELECT, INSERT, UPDATE, DELETE in SQL?

A

Types of statements you use in an app to interact with a database.

What is important in read replicas is to only interact with it with SELECT statements, which equal to read statements.

SELECT = read

insert means add, update means modify, and delete is remove. These make changes to the database, but with read replicas we only want to read them, since the changes come replicated from the original database.

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

What SQL statements should be used to interact with RDS read replicas?

A

only SELECT, which equals to read.

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

In AWS normally there is a cost when data goes from where to where?

A

From an AZ to another AZ.

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

Does RDS read replicas have any cost for the data replicated between AZs?

A

No. RDS is an exception and its free. (Only within same region)

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

Does RDS read replicas have any cost for the data replicated between Regions?

A

YES.

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

What RDS feature is for disaster recovery?

A

RDS Multi-AZ

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

What RDS feature is for read scalability?

A

Read Replicas

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

What RDS feature is for automated storage scalability?

A

Storage auto scaling

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

How does RDS Multi-AZ work?

A

It creates a live or “SYNC” replica of your database in a different AZ.

This replica is in standby, and in case of AZ, network, storage, or any failure of main DB, it automatically failovers to the standby replica, which now becomes the master.

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

Which RDS feature uses a SYNC replica?

A

RDS Multi-AZ

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

Which RDS feature uses an ASYNC replica?

A

RDS Read Replicas

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

Can Read Replicas be set up as Multi-AZ?

A

Yes. A read replica can have multi-az enabled and be highly available itself. meaning the read replica will have a replica in standby.

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

Describe turning on Multi-AZ for an RDS database.

A

Just click “Modify” on the database, and enable “Multi-AZ”

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

Does enabling Multi-AZ on a DB imply any downtime?

A

NO. Zero downtime.

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

How does enabling Multi-AZ for an RDS DB work behind the scenes?

A

AWS takes a snapshot of your DB instance, and then restores it to a new standby Database. Then syncronization between both databases is enabled. (Writes to the main database are also written to the standby database).

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

How do you create a database in RDS? (steps)

A

RDS > Create Database
Select database type: Aurora, mariadb, ibm db2, oracle, etc.
Select DB version
Enter a DB aws identifier
Enter new user and password for db
Select instance type “db.t3.micro” for example.
Select storage type, size, and iops.
configure storage auto scaling
configure networking options, VPC, subnet, SG, and port for Db.
setup authentication: user/pw, iam users and roles, or kerberos.
Enable monitoring settings
Enter the database name
enable backups and its settings
enable log export to cloudwatch
enable automatic minor version upgrades and configure maintenance window for such upgrades

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

What is RDS Custom?

A

A managed, Oracle or SQL Server only database.
It grants you OS and Database customizations.

It lets you access through SSH to the underlying EC2 instance of the database

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

What is a recommendation to perform before making changes to your RDS Custom Database or OS?

A

De-activate automation mode, and take a snapshot of the database before making changes

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

Can you take snapshots of your database instances? If so, how does it work?

A

Yes. You can take an RDS Database Snapshot. This snapshot is a backup can be restored to a new database.

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

What OS configurations do you need to perform in your RDS database?

A

None. AWS does everything.

RDS automates the setup, operation and scaling of the databases.

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

Whats the difference between RDS and RDS Custom?

A

RDS is managed by AWS. With RDS Custom you can manage the OS and database through SSH and configure the database..

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

Which types of databases can you use with RDS Custom?

A

Oracle and SQL Server.

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

Which DBs is Aurora driver compatible with?

A

MySQL or Postgre. You can choose one of these 2 on creation.

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

Which is faster, Aurora, Postgre or MySQL?

A

Aurora. Aurora is cloud optimized, meaning its x5 faster than MySQL in aws and x3 Faster than Postgre in aws.

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

How does Aurora manage storage?

A

It starts at 10GB and automatically grows up ti 128TB

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

How is replication in Aurora better than other DBs?

A

Aurora’s replication is faster than other DBs, having sub 10ms replica lag.

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

How does Multi-AZ work with Aurora?

A

It doesn’t. Aurora is HA native, and failover is instantaneous.

This means that since Aurora is cloud native, you get HA by default.

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

What is a cost of using Aurora DB?

A

It’s 20% more expensive than other RDSs, but it’s more efficient.

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

How does Aurora store its data?

A

It makes 6 copies of all the data across 3 AZs.

The database has one shared logical volume spread across volumes in the 3 AZs.

Each time data is written, it goes to the 3 AZs, to 2 different physical volumes per AZ.

But it’s not the same 2 volumes in each AZ. Each write goes to 2 different volumes in each AZ, meaning the whole database is spread across hundreds (100s) of volumes.

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

What happens to Aurora if 1 AZ goes down?

A

It can still operate normally with 2 AZs

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

What are the main features of Aurora Storage?

A

It does replication of data across 3 AZs in the region. To 100s of volumes.

It does constant self healing of the data with peer to peer replication, to keep 6 copies of it across the 3 AZs.

It automatically expands storage with use.

All of this is by default.

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

How many copies of data do you need for writes and reads in Aurora?

A

You need 4 copies for writes, and 3 copies for reads. This for every piece of data.

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

How do read replicas work in Aurora?

A

In aurora, you have 1 master instance that makes writes to the storage, and up to 15 reader instances that take reads from the storage.

A reader instance can become the master in under 30 seconds if the master fails.

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

What is the writer endpoint in Aurora?

A

It’s a DNS name that always points to the master, even if the master failovers to a reader instance

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

What is Aurora Auto Scaling?

A

It’s the automated scaling of the number of reader instances depending of the need of the database. This feature of aurora is combined with the use of a Reader Endpoint.

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

What is a Reader Endpoint in Aurora?

A

Since we use many reader instances, and auto scaling. For the app to be able to connect to these automatically created/deleted reader instances, it uses the Reader Endpoint. Now the app only needs to connect to the reader endpoint, and it connects the app to one of the reader instances.

It’s basically a load balancer at the connection level between the app and the reader instances.

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

How do you increase storage in Aurora?

A

You don’t. Storage Auto expands between 10GB and 128TB.

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

What is Backtrack?

A

An Aurora feature and technology, that lets you restore your database to any point in time, without the use of backups.

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

What are the 2 performance options when creating Aurora?

A

Aurora standard and Aurora I/O-Optimized

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

What is a Regional Cluster?

A

It’s the conjunction of instances of the Aurora Database. The Writer instance + all the Reader instances.

55
Q

What do the reader and writer endpoints point to?

A

The writer endpoint will always point the the Writer instance.
The reader endpoint will always point to one of the reader instances.

56
Q

What are reader instances in Aurora?

A

The aurora version of read replicas

57
Q

Can you have an aurora database be cross-region?

A

Yes. You can create a read replica for an aurora database in another region. This is a “Cross Region Read Replica”

58
Q

How do you configure auto scaling in Aurora?

A

You create a policy in the DB, that says based in average TARGET CPU utilization, or average TARGET connections, create more read replicas, to keep as close to that target as possible.

You can also set minimum and maximum of read replicas.

You can also configure scale in, so that it will remove read replicas after a period, if your usage is lower than the configured target.

59
Q

What is Aurora Global Databases?

A

You can add regions to your Aurora Database, ideal for global apps.

It consists of one region with a writer instance. And up to 5 regions with reader instances.

Up to 16 reader instances per region.

60
Q

What are custom endpoints?

A

A feature that lets you use different custom reader endpoints.

This lets you redirect traffic to different groups of reader instances depending on the custom endpoint used.

It’s useful, for example, when you need a subset of reader instances of a more powerful kind, for running more analytical queries.

You set a custom endpoint, and this new endpoint will only forward queries to these powerful instances, and then a different custom endpoint will redirect read requests to other reader instances.

61
Q

What is Aurora Serverless?

A

It’s a more automated version of Aurora. It does auto scaling based on the actual workload.

It’s more granular in its scalability.

You don’t need to do capacity planning.

For example, you can have a serverless aurora database consisting of a single DB instance. And this instance will automatically scale up and down its ACU (CPU and Memory), between the minimum and maximum you set up.
This is automated vertical scaling.

Then you can add reader instances just like any other aurora database. These instances will also be serverless with capabilities for automated vertical scaling. Adding instances is horizontal scaling.

Then you can enable auto scaling of serverless instances. This is automated horizontal scaling.

For each serverless writer or reader instance, you only pay for what you use. The minimum possible is 0.5 ACUs.

Note: Here instance means of the database. Not a VM.

62
Q

When is Aurora Serverless more useful?

A

When you have infrequent, intermittent, or unpredictable workloads.

63
Q

What are ACUs?

A

ACU: Aurora Capacity Units: These are the units that scale the serverless version of Aurora. They are equivalent to cpu memory and networking.

64
Q

What is the vertical scaling unit for aurora serverless?

A

ACUs: Aurora Capacity Units.

65
Q

When is RDS serverless and not serverless?

A

Aurora is the only option of RDS that can be serverless. Every other option including “normal” Aurora is not serverless.

Serverless is when you dont provision VM instances. Serverless Aurora uses ACUs for vertical scalability, which is automated, so it can be considered serverless. With aurora if you have no workloads your usage can be a minimum of 0.5 ACUs, which equates to 1BG of RAM and 1 CPU, and you just pay for that half of an ACU. This is considered serverless, since you are not paying for example for a t2 VM instance, you are paying for the current usage in ACUs of one or more serverless DB instances.

If in change if you use a t2 instance, you pay for the whole instance even if you currently have no workloads.

66
Q

When is serverless Aurora cheaper than normal Aurora?

A

When there is no usage of the database. For Aurora with VMs, you pay for the whole VM instance, no matter if theres no traffic.

For serverless Aurora, you only pay for what you use. And if there is no usage it automatically scales down the ACUs to the minimum, thus saving you money in those hours of inactivity.

This is why its best used for intermittent, infrequent or unpredictable workloads.

67
Q

What is promoting a Region?

A

It’s a functionality in Global Aurora. In case of an outage in the primary aurora region, you can promote a read only region to primary.

This has an RTO of less than 1 minute.

68
Q

What are global aurora use cases?

A

For global apps. Read only regions work as cache for accessing the database faster from different places in the world.

69
Q

What is Aurora Machine Learning?

A

It’s an integration between Aurora and ML services, like Amazon SageMaker and Amazon Comprehend.

The ML services integrate with the database to analyze the data and return query results depending on the query.

69
Q

How long does it take for aurora to replicate to another region?

A

Less than 1 second

70
Q

How are RDS automated backups performed? How do they work?

A

Daily full backup of the database. (During the backup window).

Transaction logs are backed up every 5 minutes. This means you have a backup at the database level every 5 minutes. You can restore from the oldest backup to 5 minutes ago.

The oldest backup depends on the retention policy. This can be between 1 to 35 days.

70
Q

What are transaction logs in a database? What are they useful for?

A

Database transaction logs record all changes and modifications, offering a detailed history of processed data. These logs are crucial for recovery, enabling tracking and restoring specific transactions in case of errors. Every SQL database maintains a transaction log that documents all transactions and their associated changes.

71
Q

What are good use cases for snapshots in RDS?

A

For automated backups the retention limit is 35 days. For snapshots there is no limit for retention.

You can also snapshot an RDS database and delete the RDS database to save costs, then recreate it from the snapshot when you need to use it. This is a trick that can come up in the exam. This would be useful for a database that you only use for 2 hours per month for example.

Since the snapshot storage is several times cheper than the database storage, which you still have to pay for if you stop the database. You can instead snapshot the database and delete it to save money.

72
Q

How do Aurora Backups work? Whats the difference with other RDS backups?

A

Aurora is 1 to 35 days same as RDS. But in Aurora these backups can’t be disabled.

You have a recovery timeframe of any point in time within that retention period. In RDS it’s every five minutes.

73
Q

What happens when you restore an RDS /Aurora backup or snapshot?

A

It creates a new database

74
Q

How do you restore an On-Premises MySQL Database to RDS or Aurora?

A

Create a Backup of the database
Store it in S3
Restore it from S3 into a new RDS instance

75
Q

Why is Cloning an Aurora Database so fast and cost effective compared to taking a snapshot and restoring it to a new database?

A

Because it doesn’t actually copy any data until it’s re-written:

Cloning an Aurora Cluster, creates a new cluster in AWS, but this cluster shares the data with the original cluster, it doesn’t actually copy it until there is a write operation. Writes are processed to new volumes corresponding to the new database. While reads are still performed to the volumes of the original database, until these are re-written.

76
Q

What is Aurora Cloning? What is a use case?

A

Aurora cloning is a feature that allows you to create a new Aurora Cluster from a pre existing one. It’s faster than snapshot and restore.

A use case could be for staging. Staging is a process in which you store modify and then move data. It’s a temporary database.

You need to do this to your database, but you don’t want to affect production performance? Create a clone of the database and do it there.

77
Q

What can you do to secure your RDS Database?

A

Encryption: You can encrypt all data at rest of your database instances using AWS KMS. This includes snapshots and auto backups.
This feature MUST be defined AT LAUNCH.

In flight encryption: It’s enabled by defaulton RDS side. Clients will need to use the aws root certs to encrypt data in flight.

Use IAM Roles to connec to your database instead of user and pw.

Control network access to your database with security groups.

No SSH Access available except RDS Custom.

Enable Audit Logs and send them to CloudWatch for longer retention.

78
Q

What is a workaround for encrypting an already existing RDS Database?

A

You can snapshot the database, and restore to a new encrypted database

79
Q

What is RDS Proxy?

A

A fully aws managed database proxy.

80
Q

Why use RDS Proxy?

A

Apps connect to the proxy instead of the database. Then the proxy pools these connections together reducing the cpu and memory required for the database to process connections.

81
Q

What are RDS Proxy use cases?

A

It’s for improving database efficiency by reducing resource usage in the database. It also minimizes open connections and timeouts to the database.

Its useful for when you have a lot of connections to your database instance. For example when connecting from lambda functions to your RDS database.

82
Q

How does RDS Proxy work?

A

It’s serverless, autoscalable, and highly available across AZs.

83
Q

How does using an RDS Proxy affect a master instance failover of RDS/Aurora?

A

It reduces the time it takes to failover by up to 66%

84
Q

How does RDS Proxy improves your DB Security?

A

It enforces IAM authentication for the DB. With RDS Proxy you can make people only connect through IAM to your database.

This IAM secret can then be stored in AWS SECRETS MANAGER service.

85
Q

How do you connect through the internet to your RDS Proxy?

A

You can’t. You need to configure access through networking in the VPC service.

86
Q

What is ElastiCache?

A

A service that manages in memory data or cache.
Compatible with Redis and Memcached.

These 2 are cache storaging systems.

87
Q

What is a Cache in elasticache?

A

It’s an in memory database with very high performance, and low latency.

88
Q

How can elasticache help your RDS Database?

A

It reduces the load of the database for read intensive workloads, by caching the most queried data, and reducing the queries received by the database.

89
Q

What does AWS manage in Elasticache?

A

OS Maintenance, patching, setup, configuration, monitoring, failure recovery and backups.

Just like with RDS.

90
Q

How does implementing Elasticache affect your app?

A

It requires heavy application code changes.

Your app will need to be configured to query the cache before or after querying the RDS DB.

91
Q

Explain a Cache Hit.

A

The app queries the elasticache, if the query has already been made and is stored in elasticache, then you get a Cache Hit.

In this case you are saving a trip to the database.

92
Q

Explain a Cache Miss

A

The app queries the elasticache, if the query hasn’t been made yet then it’s not stored in elasticache, then you get a Cache Miss.

In this case you need to fetch the data from the database.

Then the data is written to the cache, so next time the same query is made, it is in the elasticache and you get a cache hit.

93
Q

What is an ElastiCache invalidation?

A

Its how you invalidate cached data when it becomes obsolete. With this you make sure the cached data is updated to the actual data behind the cache.

94
Q

How can ElastiCache help with app user sessions?

A

To make the app stateless. Meaning that if you log in to an app, this session data will be stored in cache instead of the app database.

Then if you join or are redirected to a new instance of this app you are not asked to login again since the login data is in cache.

95
Q

What are ElastiCache common use cases?

A

For caching a databases most queried data.
For storing app user session data in cache. (Stateless apps)

96
Q

What are the 2 types of ElastiCaches?

A

Redis and Memcached

97
Q

What are the main characteristics of Redis ElastiCache?

A

Multi AZ with Auto-Failover
Read replicas for scaling and HA
AOF Persistence for data durability
Backup and Restore Features
It divides the cache in sets and sorted sets

98
Q

Which ElastiCache system has the most similar features to RDS?

A

Redis

99
Q

Which ElastiCache system’s features are more durability focused?

A

Redis

100
Q

What are the main characteristics of Memcached ElastiCache?

A

Multi node for partitioning data (Sharding)
No replication
Non persistent
No backup and restore
Multi threaded architecture (multiple instances of the cache system)

101
Q

Which ElastiCache option is more simple?

A

Memcached

102
Q

Which ElastiCache option is best suited for High Availability, Disaster Recovery, etc?

A

Redis

103
Q

Which ElastiCache option is best suited for complex data types?

A

Redis

104
Q

Which ElastiCache option is best suited for speed?

A

Memcached

105
Q

Which ElastiCache option is best for when you don’t care to lose data?

A

Memcached

106
Q

Which ElastiCache option partitions the data in multiple nodes?

A

Memcached

107
Q

Which ElastiCache option has better performance? Why?

A

Memcached. It has a sharding feature that divides the data in multiple nodes, thus improving read speeds.

108
Q

Which ElastiCache option supports auto-scaling? How does it work?

A

Both Redis and Memcached. You have a serverless option at creation, which you configure to scale the speed of your cache instances depending on usage. It is more expensive

109
Q

What is easycreate?

A

A simplified method or creating your elasticaches

110
Q

Can you run elasticache onpremises? How?

A

Yes. With AWS Outposts.

111
Q

How does Multi AZ work for ElastiCache?

A

Same as RDS. It auto failovers to a read replica on a different AZ on failure.

112
Q

Which ElastiCache option is the only one that supports Multi AZ?

A

Redis.

113
Q

How does ElastiCache work?

A

Once created, the elasticache gives you the names for the writer endpoint and reader endpoint, which you configure in your app to write and read to the cache.

114
Q

Does ElastiCache support encryption?

A

Yes encryption at rest and in transit

115
Q

Which ElastiCache option is great for Leaderboards?

A

Redis. It has a feature called sorted sets that is useful for element ordering.

116
Q

Which port does FTP use?

A

21

117
Q

Which port does SFTP use?

A

22

118
Q

Which protocol uses same port as SSH?

A

SFTP

119
Q

What do the ports the databases use for communication look like?

A

They usually use one port, and they are in the 1000s, 3000s, 5000s, and stuff like that.

120
Q

What is a popular database RDS does not support? Why?

A

MongoDB. Cause it’s noSQL.

121
Q

You’re planning for a new solution that requires a MySQL database that must be available even in case of a disaster in one of the Availability Zones. What should you use?

A

Multi AZ

122
Q

We have an RDS database that struggles to keep up with the demand of requests from our website. Our million users mostly read news, and we don’t post news very often. Which solution is NOT adapted to this problem?

An elasticache cluster?
RDS Multi AZ?
RDS Read Replicas?

A

RDS Multi AZ

Elasticache reduces load of the RDS Database because the cached data is not queried from the database. The most frequently read data is read from cache.

123
Q

Which RDS (NOT Aurora) feature when used does not require you to change the SQL connection string?

A

Multi AZ. Its a standby syncronous replica instance of the writer and has same dns name as the writer.

124
Q

Your application running on a fleet of EC2 instances managed by an Auto Scaling Group behind an Application Load Balancer. Users have to constantly log back in and you don’t want to enable Sticky Sessions on your ALB as you fear it will overload some EC2 instances. What should you do?

A

Store session data in ElastiCache

125
Q

How can you enhance the security of your ElastiCache Redis Cluster by allowing users to access your ElastiCache Redis Cluster using their IAM Identities (e.g., Users, Roles)?

Using Redis Authentication?
Using IAM Authentication?
Using Security Groups?

A

Using IAM Authentication (Only for Redis)

126
Q

Which ElastiCache supports IAM Authentication to the system?

A

Redis.

127
Q

You would like to create a disaster recovery strategy for your RDS PostgreSQL database so that in case of a regional outage the database can be quickly made available for both read and write workloads in another AWS Region. The DR database must be highly available. What do you recommend?

Create a Read Replica in the same region and enable Multi-AZ on the main database
Create a Read Replica in a different region and enable Multi-AZ on the Read Replica
Create a Read Replica in the same region and enable Multi-AZ on the Read Replica
Enable Multi-Region option on the main database

A

Create a Read Replica in a different region and enable Multi-AZ on the Read Replica

128
Q

Which RDS database technology does NOT support IAM Database Authentication?

Postgre

Oracle

MySQL

A

Oracle

129
Q

You need to store long-term backups for your Aurora database for disaster recovery and audit purposes. What do you recommend?

Enable Automated Backups

Perform On Demand Backups

Use Aurora Database Cloning

A

Perform On Demand Backups

130
Q

Your development team would like to perform a suite of read and write tests against your production Aurora database because they need access to production data as soon as possible. What do you advise?

Make a DB snapshot and restore it into a new database

Create an Aurora Read Replica for them

Do the teste against the production database

Use aurora cloning feature

A

Use aurora cloning feature. Faster than snapshot.

131
Q
A