Databases: Amazon RDS and ElastiCache Flashcards

1
Q

Automated failover of a multi-AZ DB occurred

A

This may be due to storage failure on primary DB or the instance type could have been changed

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

Need to encrypt unencrypted RDS database

A

Take a snapshot, encrypt it, then restore a new encrypted instance from the snapshot

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

RDS DB query latency is high and CPU utilization is at 100%

A

Scale up with larger instance type

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

Need to share RDS DB snapshots across different accounts. Data must be encrypted

A

Use an AWS KMS key for encryption and update key policy to grant accounts with access then share snapshot

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

DB needs to be made HA to protect against failure and updates cannot impact users in business hours

A

Change to Multi-AZ outside of business hours

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

Need to protect RDS databases against table corruption within a 30 day window of protection

A

Enable automated backups and set the appropriate retention period

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

Shared Responsibility Model

A

AWS is responsible for maintenance, patches and other updates for Aurora DB

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

AuroraReplicaLagMaximum is high for DB on eCommerce site. What affect could this have?

A

may result in cart not updating correctly (inconsistency)

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

EC2 connects to RDS instance and fails with: “Error Establishing a Database Connection”

A

Web server may be using certificate validation and RDS does not trust the certificate. Or, the DB security group does not have the correct ingress rule

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

Aurora DB is hitting 100% CPU. Read-heavy app with many lookups

A

Add Aurora Replicas and use a Reader Endpoint for product table lookups

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

Database is running MySQL on Amazon EC2. Need to increase availability and durability without changing application

A

Use Aurora MySQL and configure an Aurora Replica in another AZ

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

Reporting job runs against RDS instance and is causing performance issues

A

Create a read replica and point the reporting job to the read replica endpoint

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

Backup of RDS instance must be copied regularly to another account for testing

A

Create a snapshot with create-db-snapshot CLI, share with other account, then create a copy in that account

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

MySQL database on RDS must be patched due to a security vulnerability. Who is responsible?

A

AWS is responsible for patching Amazon RDS database instances

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

Reporting job runs against RDS instance and is causing performance issues

A

Create a read replica and point the reporting job to the read replica endpoint

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

How can a Redis cluster be scaled to improve read times

A

Scale horizontally by adding shards

17
Q

High CPU on a Memcached cluster

A

Options are to add additional nodes to cluster or vertically scale the node types

18
Q

ElastiCache Memcached storing session state. Performance poor, eviction count metrics are high

A

Scale the cluster by adding additional nodes

19
Q

A Memcached cluster is experiencing increased traffic, need to change to larger node type

A

Create a new cache cluster with the new node type using the CreateCacheCluster API