wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Security Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

An attacker injects malicious SQL code through a web form input to manipulate backend queries. Which database attack technique is most likely being used?

a)

Cross-Site Scripting (XSS)

b)

SQL Injection

c)

Cross-Site Request Forgery (CSRF)

d)

Directory Traversal

2.

A security team observes repeated database connection attempts with invalid credentials from multiple IPs over a short period. Which countermeasure best mitigates this?

a)

Input validation

b)

CAPTCHA integration and account lockout policies

c)

Parameterized queries

d)

Intrusion Detection Systems (IDS)

3.

In a secure online banking system, a customer disputes a transaction claiming it was never initiated by them. Which mechanism ensures non-repudiation to settle the dispute?

a)

Symmetric encryption keys

b)

Hashing with MD5

c)

Digital Signatures with Public Key Infrastructure (PKI)

d)

Transport Layer Security (TLS)

4.

If non-repudiation fails in a system, what is the most likely consequence?

a)

Data breaches will occur frequently.

b)

Users can deny their actions, reducing accountability.

c)

Confidentiality of data will be compromised.

d)

Availability of services will be lost.

5.

During a Distributed Denial of Service (DDoS) attack, the main security property under threat is:

a)

Integrity

b)

Availability

c)

Confidentiality

d)

Non-repudiation

6.

A hospital's patient portal becomes unavailable due to a ransomware attack. Which best practice improves availability in such cases?

a)

Frequent hashing of patient records

b)

Offsite backups and incident response planning

c)

Enforcing least privilege for doctors

d)

Deploying stronger encryption algorithms

7.

A company adopts Role-Based Access Control (RBAC) for its cloud applications. Which statement about RBAC is FALSE?

a)

Access rights are assigned based on job roles.

b)

It reduces administrative overhead.

c)

It enforces least privilege by default.

d)

Users directly manage their access rights.

8.

Which access control model enforces security labels like "Top Secret" and "Confidential" for both users and resources?

a)

Discretionary Access Control (DAC)

b)

Role-Based Access Control (RBAC)

c)

Mandatory Access Control (MAC)

d)

Attribute-Based Access Control (ABAC)

9.

A company implements firewalls, IDS, application security, and regular patching. This layered approach exemplifies:

a)

Zero Trust Security

b)

Least Privilege Principle

c)

Defense in Depth

d)

Access Control List (ACL)

10.

The Least Privilege Principle primarily aims to:

a)

Give maximum access to employees for efficiency

b)

Reduce the number of security patches needed

c)

Limit user access to only what is necessary

d)

Restrict access based on encryption standards