Database Services Flashcards
In a relational database, a row may also be called what? (Choose two.)
Record
Attribute
Tuple
Table
A, C. Different relational databases use different terminology. A row, record, and tuple all describe an ordered set of columns. An attribute is another term for column. A table contains rows and columns.
What must every relational database table contain?
A foreign key
A primary key
An attribute
A row
C. A table must contain at least one attribute or column. Primary and foreign keys are used for relating data in different tables, but they’re not required. A row can exist within a table, but a table doesn’t need a row in order to exist.
Which SQL statement would you use to retrieve data from a relational database table?
QUERY
SCAN
INSERT
SELECT
D. The SELECT statement retrieves data from a table. INSERT is used for adding data to a table. QUERY and SCAN are commands used by DynamoDB, which is a nonrelational database.
Which relational database type is optimized to handle multiple transactions per second?
Offline transaction processing (OLTP)
Online transaction processing (OLTP)
Online analytic processing (OLAP)
key/value store
B. Online transaction processing databases are designed to handle multiple transactions per second. Online analytics processing databases are for complex queries against large data sets. A key/value store such as DynamoDB can handle multiple transactions per second, but it’s not a relational database. There’s no such thing as an offline transaction processing database.
How many database engines can an RDS database instance run?
Six
One
Two
Four
B. Although there are six database engines to choose from, a single database instance can run only one database engine. If you want to run more than one database engine, you will need a separate database instance for each engine.
Which database engines are compatible with existing MySQL databases? (Choose all that apply.)
Microsoft SQL Server
MariaDB
Aurora
PostgreSQL
B, C. MariaDB and Aurora are designed as binary drop‐in replacements for MySQL. PostgreSQL is designed for compatibility with Oracle databases. Microsoft SQL Server does not support MySQL databases.
Which storage engine should you use with MySQL, Aurora, and MariaDB for maximum compatibility with RDS?
MyISAM
XtraDB
InnoDB
PostgreSQL
C. InnoDB is the only storage engine Amazon recommends for MySQL and MariaDB deployments in RDS and the only engine Aurora supports. MyISAM is another storage engine that works with MySQL but is not compatible with automated backups. XtraDB is another storage engine for MariaDB, but Amazon no longer recommends it. The PostgreSQL database engine uses its own storage engine by the same name and is not compatible with other database engines.
Which database engine supports the bring‐your‐own‐license (BYOL) model? (Choose all that apply.)
Oracle Standard Edition Two
Microsoft SQL Server
Oracle Standard Edition One
PostgreSQL
A, C. All editions of the Oracle database engine support the bring‐your‐own‐license model in RDS. Microsoft SQL Server and PostgreSQL only support the license‐included model.
Which database instance class provides dedicated bandwidth for storage volumes?
Standard
Memory optimized
Storage optimized
Burstable performance
B. Memory‐optimized instances are EBS optimized, providing dedicated bandwidth for EBS storage. Standard instances are not EBS optimized and top out at 10,000 Mbps disk throughput. Burstable performance instances are designed for development and test workloads and provide the lowest disk throughput of any instance class. There is no instance class called storage optimized.
If a MariaDB database running in RDS needs to write 200 MB of data every second, how many IOPS should you provision using io1 storage to sustain this performance?
12,800
25,600
200
16
A. MariaDB has a page size of 16 KB. To write 200 MB (204,800 KB) of data every second, it would need 12,800 IOPS. Oracle, PostgreSQL, or Microsoft SQL Server, which all use an 8 KB page size, would need 25,600 IOPS to achieve the same throughput. When provisioning IOPS, you must specify IOPS in increments of 1,000, so 200 and 16 IOPS—which would be woefully insufficient anyway—are not valid answers.
Using general‐purpose SSD storage, how much storage would you need to allocate to get 600 IOPS?
200 GB
100 GB
200 TB
200 MB
A. General‐purpose SSD storage allocates three IOPS per gigabyte, up to 10,000 IOPS. Therefore, to get 600 IOPS, you’d need to allocate 200 GB. Allocating 100 GB would give you only 300 IOPS. The maximum storage size for gp2 storage is 16 TB, so 200 TB is not a valid value. The minimum amount of storage you can allocate depends on the database engine, but it’s no less than 20 GB, so 200 MB is not valid.
If you need to achieve 12,000 IOPS using provisioned IOPS SSD storage, how much storage should you allocate, assuming that you need only 100 GB of storage?
There is no minimum storage requirement.
200 GB
240 GB
12 TB
C. When you provision IOPS using io1 storage, you must do so in a ratio no greater than 50 IOPS for 1 GB. Allocating 240 GB of storage would give you 12,000 IOPS. Allocating 200 GB of storage would fall short, yielding just 10,000 IOPS. Allocating 12 TB would be overkill for the amount of storage required.
What type of database instance only accepts queries?
Read replica
Standby database instance
Primary database instance
Master database instance
A. A read replica only services queries and cannot write to a database. A standby database instance in a multi‐AZ deployment does not accept queries. Both a primary and a master database instance can service queries and writes.
In a multi‐AZ deployment using Oracle, how is data replicated?
Synchronously from the primary instance to a read replica
Synchronously using a cluster volume
Asynchronously from the primary to a standby instance
Synchronously from the primary to a standby instance
D. Multi‐AZ deployments using Oracle, PostgreSQL, MariaDB, MySQL, or Microsoft SQL Server replicate data synchronously from the primary to a standby instance. Only a multi‐AZ deployment using Aurora uses a cluster volume and replicates data to a specific type of read replica called an Aurora replica.
Which of the following occurs when you restore a failed database instance from a snapshot?
RDS restores the snapshot to a new instance.
RDS restores the snapshot to the failed instance.
RDS restores only the individual databases to a new instance.
RDS deletes the snapshot.
A. When you restore from a snapshot, RDS creates a new instance and doesn’t make any changes to the failed instance. A snapshot is a copy of the entire instance, not just a copy of the individual databases. RDS does not delete a snapshot after restoring from it.