Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Midterm 1 - Database Security Quiz

Total questions: 50

Worksheet time: 50mins

Name
Class
Date
1.

What is the primary goal of database security in an enterprise?

a)

To increase database performance

b)

To protect sensitive data from unauthorized access

c)

To reduce database storage costs

d)

To simplify database management

2.

Which of the following is NOT a core component of information systems security?

a)

Confidentiality

b)

Integrity

c)

Availability

d)

Scalability

3.

Why is database security critical for organizations?

a)

It ensures compliance with regulations like GDPR

b)

It improves user interface design

c)

It reduces hardware costs

d)

It automates database backups

4.

What is the primary purpose of a security architecture?

a)

To design user-friendly database interfaces

b)

To define a structured approach to protect systems and data

c)

To optimize database query performance

d)

To automate software updates

5.

How many phases are typically involved in creating and maintaining a security architecture?

a)

Two

b)

Three

c)

Four

d)

Five

6.

Which step in a disaster recovery plan reinstates a network after a disaster?

a)

Risk assessment

b)

Backup scheduling

c)

Restoration and recovery

d)

User training

7.

What should a database administrator verify before installing a DBMS?

a)

The color scheme of the user interface

b)

The compatibility of the DBMS with the operating system

c)

The number of database users

d)

The database query language

8.

Which of the following is a critical pre-installation step for database security?

a)

Disabling default accounts

b)

Increasing database storage size

c)

Designing database tables

d)

Optimizing query performance

9.

Why should an administrator review network configurations before DBMS installation?

a)

To ensure fast query execution

b)

To secure database connections against external threats

c)

To reduce database licensing costs

d)

To simplify user access

10.

How many main database models are commonly used in DBMSs?

a)

Two

b)

Three

c)

Four

d)

Five

11.

Which database model is most commonly used in modern DBMSs like Oracle and MySQL?

a)

Hierarchical

b)

Network

c)

Relational

d)

Object-oriented

12.

What is a key component of Oracle's architecture?

a)

The Query Optimizer

b)

The Instance and Database

c)

The Web Server

d)

The File System

13.

Which feature distinguishes MySQL's architecture from Oracle?

a)

Support for stored procedures

b)

Pluggable storage engines

c)

Automatic backups

d)

Role-based access control

14.

What is a primary function of SQL Server's Database Engine?

a)

Managing user interfaces

b)

Processing SQL queries and managing data

c)

Hosting web applications

d)

Encrypting network traffic

15.

What is the recommended version of MySQL for first-time installation?

a)

The latest beta release

b)

The latest General Availability (GA) release

c)

The oldest stable version

d)

The development milestone release

16.

Which step secures MySQL installation immediately after setup?

a)

Running mysql_secure_installation

b)

Creating new tables

c)

Optimizing queries

d)

Backing up the database

17.

How can you verify a MySQL installation package is free from tampering?

a)

Check the file size

b)

Verify the digital signature or checksum

c)

Install it directly

d)

Compare file names

18.

Which MySQL configuration setting enhances network security?

a)

bind-address=127.0.0.1

b)

max_connections=1000

c)

query_cache_size=64M

d)

innodb_buffer_pool_size=1G

19.

Which authentication mode is more secure for SQL Server?

a)

SQL Server Authentication

b)

Windows Authentication

c)

Mixed Mode Authentication

d)

Guest Authentication

20.

What is a best practice during SQL Server installation?

a)

Using the default sa account

b)

Enabling only necessary features

c)

Setting all ports to 1433

d)

Disabling encryption

21.

Why should unique accounts be used for SQL Server services?

a)

To simplify user management

b)

To reduce memory usage

c)

To limit the impact of a compromised account

d)

To improve query performance

22.

Which SQL Server configuration setting enhances security?

a)

Enabling remote desktop access

b)

Disabling the sa account

c)

Increasing max memory usage

d)

Allowing all IP connections

23.

Which Oracle feature enhances security during installation?

a)

Automatic Storage Management

b)

Database Vault

c)

Partitioning

d)

Data Pump

24.

What is a key security practice during Oracle installation?

a)

Using default passwords

b)

Locking unused accounts

c)

Enabling all optional features

d)

Disabling auditing

25.

Which Oracle configuration file controls network security?

a)

init.ora

b)

sqlnet.ora

c)

tnsnames.ora

d)

listener.ora

26.

What is a benefit of Oracle's freely downloadable version for learners?

a)

Full enterprise features

b)

Hands-on learning without cost

c)

Automatic security updates

d)

Unlimited user licenses

27.

What is the principle of least privilege in a database environment?

a)

Granting all users full access

b)

Assigning only necessary permissions to users

c)

Requiring complex passwords

d)

Disabling user accounts

28.

Which Oracle feature enforces password complexity?

a)

Profiles

b)

Roles

c)

Privileges

d)

Triggers

29.

What is a role in SQL Server?

a)

A user account

b)

A collection of privileges assigned to users

c)

A database table

d)

A password policy

30.

Which MySQL command grants a privilege to a user?

a)

CREATE USER

b)

GRANT

c)

REVOKE

d)

ALTER USER

31.

What is the difference between authentication and authorization?

a)

Authentication verifies identity; authorization determines access rights

b)

Authentication assigns roles; authorization creates users

c)

Authentication encrypts data; authorization audits logs

d)

Authentication manages backups; authorization secures connections

32.

Which SQL Server authentication mode uses Windows credentials?

a)

SQL Server Authentication

b)

Windows Authentication

c)

Mixed Mode

d)

Kerberos Authentication

33.

What is a best practice for managing users in Oracle?

a)

Reusing passwords across accounts

b)

Regularly reviewing user privileges

c)

Granting DBA role to all users

d)

Disabling password expiration

34.

Which MySQL privilege allows a user to modify table structures?

a)

SELECT

b)

INSERT

c)

ALTER

d)

EXECUTE

35.

What is a common SQL vulnerability?

a)

Improper indexing

b)

Unvalidated user input

c)

Large table sizes

d)

Slow query performance

36.

Which technique helps identify SQL vulnerabilities?

a)

Source code analysis

b)

Query optimization

c)

Data compression

d)

Table partitioning

37.

What does the SQL injection test ' OR '1'='1' attempt to do?

a)

Optimize query performance

b)

Bypass authentication checks

c)

Delete database tables

d)

Encrypt user passwords

38.

How can an attacker identify the DBMS vendor?

a)

By checking the server's IP address

b)

By analyzing error messages

c)

By reviewing table names

d)

By counting database rows

39.

What is a sign of a SQL vulnerability in a web application?

a)

Fast page loading

b)

Unexpected query results from user input

c)

Secure HTTPS connections

d)

Regular backups

40.

Which practice mitigates SQL vulnerabilities?

a)

Using dynamic SQL statements

b)

Implementing parameterized queries

c)

Storing passwords in plain text

d)

Allowing direct user input in queries

41.

Which DBMS is known for its pluggable storage engines?

a)

Oracle

b)

SQL Server

c)

MySQL

d)

PostgreSQL

42.

What is a benefit of using keys in a relational database?

a)

Faster query execution

b)

Reduced storage space

c)

Improved data integrity

d)

Simplified user access

43.

Which MySQL command removes a user's privilege?

a)

GRANT

b)

REVOKE

c)

DROP USER

d)

ALTER USER

44.

What is a common error users make that compromises database security?

a)

Using strong passwords

b)

Sharing login credentials

c)

Backing up data regularly

d)

Encrypting connections

45.

Which Oracle profile setting enforces password expiration?

a)

PASSWORD_LIFE_TIME

b)

PASSWORD_COMPLEXITY

c)

FAILED_LOGIN_ATTEMPTS

d)

SESSION_TIMEOUT

46.

What is a pre-installation step for SQL Server security?

a)

Enabling all default accounts

b)

Configuring a strong sa password

c)

Opening all network ports

d)

Disabling Windows Authentication

47.

Which network security practice protects database connections?

a)

Using VPNs or SSL/TLS

b)

Increasing bandwidth

c)

Disabling firewalls

d)

Allowing all IP addresses

48.

What is a drawback of Oracle's freely downloadable version?

a)

Lack of documentation

b)

Limited features for enterprise use

c)

High installation costs

d)

No security features

49.

Which SQL Server feature manages user permissions?

a)

Database Engine

b)

Security Roles

c)

Query Optimizer

d)

Backup Scheduler

50.

What is a sign of a SQL vulnerability during testing?

a)

Consistent query results

b)

Error messages exposing database structure

c)

Fast query execution

d)

Encrypted data output