RDS + Aurora + ElastiCache Flashcards

1
Q

What database supports MySQL, PostgreSQL, MariaDB, Oracle, MS SQL Server, and Amazon Aurora?

A

Amazon RDS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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

Enable Multi-AZ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
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?

A

RDS Multi-AZ

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

Out of RDS Multi-Az, RDS Read Replicas, and an ElastiCache Cluster, which solution does not need help with scaling reads?

A

RDS Multi-AZ

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

You have set up read replicas on your RDS database, but users are complaining that upon updating their social media posts, they do not see their updated posts right away. What is a possible cause for this?

A

Read Replicas have Asynchronous Replication, therefore it’s likely your users will only read Eventual Consistency.

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

Which RDS (NOT Aurora) feature when used does not require you to change the SQL connection string? Multi-AZ or Read Replicas?

A

Multi-AZ

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

Which RDS feature keeps the same connection string regardless of which database is up?

A

Multi-AZ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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

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

What is a common pattern to ensuring different EC2 instances can retrieve your user’s state if needed?

A

Storing Session Data in ElastiCache

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

An analytics application is currently performing its queries against your main production RDS database. These queries run at any time of the day and slow down the RDS database which impacts your users’ experience. What should you do to improve the users’ experience?

A

Setup a Read Replica

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

Can Read Replicas help with disaster recovery?

A

No

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

You would like to ensure you have a replica of your database available in another AWS Region if a disaster happens to your main AWS Region. Which database do you recommend to implement this easily?

A

Aurora Global Database

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

What databases allow you to have an Aurora Replica in another AWS Region, with up to 5 secondary regions?

A

Aurora Global Databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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)?

A

Using IAM Authentication

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

What can help filter traffic going to your ElastiCache Redis Cluster instances but can not help with application-level authentication?

A

Security Groups

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

Your company has a production Node.js application that is using RDS MySQL 5.6 as its database. A new application programmed in Java will perform some heavy analytics workload to create a dashboard on a regular hourly basis. What is the most cost-effective solution you can implement to minimize disruption for the main application?

A

Create a Read Replica in a different AZ and run the analytics workload on the replica database.

17
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?

A

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

18
Q

You have migrated the MySQL database from on-premises to RDS. You have a lot of applications and developers interacting with your database. Each developer has an IAM user in the company’s AWS account. What is a suitable approach to give access to developers to the MySQL RDS DB instance instead of creating a DB user for each one?

A

Enable IAM Database Authentication

19
Q

Read Replica uses __________ Replication and Multi-AZ uses ____________ Replication.

A

Asynchronous, Synchronous

20
Q

How do you encrypt an unencrypted RDS DB instance?

A

Create a snapshot of the unencrypted RDS DB instance, copy the snapshot and tick “Enable encryption”, then restore the RDS DB instance from the encrypted snapshot.

21
Q

For your RDS database, you can have up to _____ Read Replicas.

22
Q

Which RDS database technology does not support IAM Database Authentication?

23
Q

You have an unencrypted RDS DB instance and you want to create Read Replicas. Can you configure the RDS Read Replicas to be encrypted?

A

No, you can not create encrypted Read Replicas from an unencrypted RDS DB instance.

24
Q

An application running in production is using an Aurora Cluster as its database. Your development team would like to run a version of the application in a scaled-down application with the ability to perform some heavy workload on a need-basis. Most of the time, the application will be unused. Your CIO has tasked you with helping the team to achieve this while minimizing costs. What do you suggest?

A

Use Aurora Serverless

25
Q

How many Aurora Read Replicas can you have in a single Aurora DB Cluster?

26
Q

Amazon Aurora supports both _________________ databases.

A

MySQL and PostgreSQL

27
Q

You work as a Solutions Architect for a gaming company. One of the games mandates that players are ranked in a real-time based on their score. Your boss asked you to design then implement an effective and highly available solution to create a gaming leaderboard. What should you use?

A

Use ElastiCache for Redis - Sorted Sets

28
Q

You need full customization of an Oracle Database on AWS. You would like to benefit from using the AWS services. What do you recommend?

A

RDS Custom for Oracle

29
Q

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

A

Perform On-Demand Backups

30
Q

What is the maximum retention for Automated Backups?

31
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?

A

Use the Aurora Cloning feature

32
Q

You have 100 EC2 instances connected to your RDS database and you see that upon a maintenance of the database, all your applications take a lot of time to reconnect to RDS, due to poor application logic. How do you improve this?

A

Use an RDS Proxy, this reduces the failover time by up to 66% and keeps connection actives for your applications.