Backup & Recovery
Security & Permissions
Indexes & Optimization
Design & Normalization
SQL Server Tools & Concepts
100

This type of backup contains all data since the last full backup and is usually smaller.


What is a differential backup?

100

This principle says users should only get the exact permissions required for their job.


What is the Principle of Least Privelege?
100

This slow operation occurs when SQL Server must read every row in a table.


What is a table scan?

100

These are some reasons storing a phone number as an INT is a bad idea.

What is losing leading 0's (555-555-0050), reduced search-ability (finding by area code, etc.), we don't do math with them, can't store formatting, can exceed int range. 
100

This built-in mechanism ensures that a group of SQL statements either all complete successfully or none of them do.

What is a transaction?

200

This recovery model keeps the transaction log intact until backed up, allowing point-in-time recovery.


What is the FULL recovery model?

200

These are a server-level identity and a database-level identity both required to access the server and underlying databases.


What are a login and a user?

200

Created on columns to speed up searches, this structure acts like a book index. You may have more than one of these per table.


What is a non-clustered index?

200

Breaking data into multiple related tables to reduce repetition is called this.


What is normalization?

200

This SQL Server component allows you to automate backups, cleanups, and recurring scripts.


What is SQL Server Agent?

300

After accidental data deletion, this restore option allows you to pick a specific moment right before the incident.

What is STOPAT (or STOPATMARK)?

300

This system feature could track failed logins, permission changes, and other security events.


What is SQL Server Audit?

300

These are the reasons having too many indexes could be bad.

What are slower writes, increased storage, higher overhead/maintenance.
300

When one student can enroll in many classes and one class can have many students, this relationship and structure are required.

What is a many to many relationship and an associative (or join) table?

300

This kind of object returns a saved SELECT statement like a virtual table.

What is a view?

400

During a restore sequence, the database must stay in this state until all backup files are applied.

What is the NORECOVERY state? (Readonly also accepted)

400

Instead of assigning SELECT permissions to each individual analyst, you should create this organizational object.

What is a database role?

400

This feature keeps long-term query statistics and helps identify queries that suddenly became slower.


What is the Query Store?

400

This normal form is violated when storing multiple values in a single cell [1, 2, 3, 4] or multiple repeated columns [FavoriteColor1] [FavoriteColor2] [FavoriteColor3] etc.

1st normal form.

400

This records all changes made to a database.

What is the transaction log?
500

Your log file grows uncontrollably even though you take regular full backups. Name the most likely cause.

The database is in full recovery model but log backups are not being performed.

500

You want to prevent analysts from seeing salary data in the Employees table, but allow them to see all other columns. This SQL Server feature can enforce this.

What are column level permissions (or create a view)

500

A backend application calls the same SQL query 10,000 times a day to retrieve user data. Using ____ in the SELECT clause is a bad idea because _____.

  • SQL Server must fetch all columns even if only one is needed

  • Larger I/O == slower queries

  • Prevents 'covering' indexes from working

  • Increases network bandwidth

  • If new columns are added, queries silently change behavior

  • Risk returning sensitive data

500

Most databases strive for ______ because too much normalization may result in too many _____ during queries.

What are third normal form and joins?

500

These are the four properties (and definitions of each) that make up ACID.

Atomicity: a transaction is "all or nothing".

Consistency: the database always moves from one valid state to another.

Isolation: ensures that one transaction's changes can't interfere with another's until it has fully completed.

Durability: once a transaction commits, it is permanent.