Relational Databases Flashcards

1
Q

What type of SQL statements are associated with the DML (Data Manipulation Language) group

Insert, alter, or grant

A

Insert

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

What SQL statements are associated with the DDL (Data Definition Language) group?

Insert, alter, or grant

A

Alter

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

Which application is best supported through the use of a relational database?

A. Data gathering for a customer resource management application must support and retain values for entities with different numbers of values

B. An application where users need fast, reliable access to streaming media files that vary in size between 20GB and 5 MB.

C. An order processing engine for an online sales application that needs to perform high-speed OLTP operations

D. An application that must be able to rapidly load values from different IoT sensors that are coded by time into temporary storage with data treated as transparent

A

C. An order processing engine for an online sales application that needs to perform high-speed OLTP operations

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

The structure used to sort values to help optimize query performance is?

A

Index

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

A virtual table whose content is defined through a query

A

View

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

The value used to identify each table entity as unique

A

Primary Key

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

T/F: Rows in the same table can have different numbers of columns

A

False

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

T/F: A table can have any number of any rows

A

True

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

T/F: The primary key is used to enforce uniqueness on rows

A

True

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

T/F:
Normalization helps to minimize data duplication

A

True

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

What are two characteristics of database normalization?

A. Less data to store
B. Reduced query complexity
C. Fewer Tables
D. Improved data integrity
E. Fewer foreign keys

A

A (less data to store)
D (improved data integrity)

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

What DB object should be used to uniquely identify each row in the table?

A

Primary Key

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

Which Db object should you use to enable easily accessible aggregated results from the table!

A

View

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

To quickly access rows using specific product tags in the table what Db object should you use?

A

Index

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

You have an Azure Database that is used to store employee salaries. How would you write the query for the top 10 salaries?

A

SELECT*
FROM employee.salaries
ORDER BY salary DESC
LIMIT 10;

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

In a relational database, what is the purpose of an index

A

To improve read performance by searching for specific data in a table

17
Q

What SQL command should you use to remove a database table and it’s content from a database

A

Drop

18
Q

What type of cloud service is delivered by SQL Server in Azure Virtual Machines (VMs)

A

Iaas

19
Q

Which type of cloud service is delivered by Azure SQL Managed Instances

A

PaaS

20
Q

Which type of cloud service is delivered by Azure SQL Database

A

PaaS

21
Q

Which command is a Data Manipulation Language Command?

DROP
UPDATE
ALTER
CREATE

A

UPDATE

22
Q

T/F:
Azure SQL Database allows you to choose the SQL Server engine version

A

False

23
Q

T/F:
Azure SQL Database includes a fully managed backup service

A

True

24
Q

T/F:
Azure SQL Database automatically applies security patches in the underlying OS

A

True

25
Q

_______ is a constraint used to enforce data integrity in relational databases by indicating which column (or combination of columns) uniquely identifies each row in a table.

A

Primary Key

26
Q

A company is moving its on-prem DB to azure. The databases support custom applications. Two applications are stable only when they are used with SQL Server 2016 SP2

What Azure SQL Service should you choose

A

SQL Server on virtual machine