Lecture #5 Flashcards

1
Q

An index is a data Structure that optimizes security & accessing data.

A

True.

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

List the different types of indexes

A
  • Clustered
  • Non-Clustered
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Clustered indexes occur only once within a given table

A

True.

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

Non-clustered indexes access the data using another column also known as a secondary index.

A

True.

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

List index Pitfalls

A
  • Regular Maintenance
  • Requires additional Storage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Stored Procedures are a block of SQL that can be written given a name, and stored directly in the database, very similar to creating a function

A

True.

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

List Advantages of Stored Procedures.

A
  • Reduces Network Traffic
  • Centralizes business logic in the database
  • Make database more secure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List disadvantages of Stored Procedure.

A
  • Resources Usages
  • Troubleshooting
  • Maintenances
  • Implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An SQL injection is a technique used by malicious users to intentionally inject SQL commands, usually via a webpage.

A

True.

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

A Trigger is a Stored program invoked automatically in response to a DML event that occurs within the associated table.

A

True.

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

List the different Types of Triggers

A
  • Row-level Triggers
  • Statement-level Triggers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

List the Advantages of Triggers.

A
  • Provide another way to check data integrity.
  • Handle errors from the database layer.
  • Provides an alternative way to run scheduled tasks.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

List the Disadvantages of Triggers.

A
  • Can only provide extended validations.
  • Difficulty Troubleshooting
  • May increase overhead of the Mysql Server.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

List the Different Types of SQL commands

A
  • Data Definition Language (DDL)
  • Data Manipulation language (DML)
  • Data Control Language (DCL)
  • Transaction Control Languages(TCL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a SQL Transaction?

A

Logical units of work that consist of one or more database operations.

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

Explain table locking.

A

A flag associated with a table where a client session prevents other sessions from accessing the table during a specific period.

17
Q

Explain the Normalization Process

A

Data is organized and stored within a database in a logical and efficient manner.