Computing and Information Technology

Databases Practice Exam, Flashcards & Questions

Master foundational to advanced Databases with 473 verified curriculum items, worked engineering solutions, and spaced-repetition cards.

293 Total Questions 144 MCQs 75 Calculations 1 Formulas 73 Flashcards
Free Interactive Preview

Databases Sample Exam Questions & Rationale

Preview official questions below. The complete pool of 293 items is available in the offline app.

Question 1 of 4 CAP theorem

According to Eric Brewer's CAP theorem, what trade-off must any distributed data store make during an unavoidable network partition (P)?

A It must automatically reboot all replica nodes to clear partition state.
B It must choose between maintaining strict Consistency (C) or maintaining Availability (A).
C It must sacrifice Persistence (P) to preserve Atomicity and Durability.
D It must choose between Data Compression (C) or Auditability (A).
Accepted Answer: Option B (It must choose between maintaining strict Consistency (C) or maintaining Availability (A).)

Rationale: Because network partitions are physically inevitable in distributed networks, systems must trade off consistency against availability.

Question 2 of 4 Data warehousing

How do Online Transaction Processing (OLTP) and Online Analytical Processing (OLAP) database workloads fundamentally differ?

A OLTP focuses on fast, atomic read/write updates on few rows; OLAP focuses on complex historical aggregations over millions of rows.
B OLTP uses columnar disk layouts exclusively; OLAP uses row-based memory buffers only.
C OLTP stores historical analytical summaries; OLAP processes real-time shopping cart checkout transactions.
D OLTP operates on distributed cloud clusters; OLAP is restricted to single-node embedded devices.
Accepted Answer: Option A (OLTP focuses on fast, atomic read/write updates on few rows; OLAP focuses on complex historical aggregations over millions of rows.)

Rationale: OLTP emphasizes write throughput, concurrency, and normalized integrity; OLAP emphasizes read aggregations, denormalization, and columnar scans.

Question 3 of 4 Database security

What security doctrine dictates that database accounts and applications should possess only the absolute minimum permissions needed to perform their tasks?

A Principle of Least Privilege.
B Kerberos mutual authentication.
C Defense-in-depth perimeter routing.
D Zero-knowledge proof validation.
Accepted Answer: Option A (Principle of Least Privilege.)

Rationale: Least privilege minimizes blast radius: a compromised application account cannot drop tables or access unauthorized confidential columns.

Question 4 of 4 Document and key-value stores

What architectural capability distinguishes a document store (e.g. MongoDB) from a pure key-value store (e.g. Redis)?

A Document stores do not support unique identifiers or primary keys.
B Document stores treat stored values as completely opaque binary blobs.
C Document stores parse structured documents (JSON/BSON), allowing secondary indexing and querying on internal nested fields.
D Document stores are restricted to running entirely within in-memory caches.
Accepted Answer: Option C (Document stores parse structured documents (JSON/BSON), allowing secondary indexing and querying on internal nested fields.)

Rationale: Key-value stores retrieve values only by primary key; document stores inspect and index internal document attributes and nested arrays.

Active Recall Spaced Repetition Cards (Preview)

Card 1 • CAP theorem
A distributed system must choose between consistency and {{c1::availability}}.
A CP system rejects writes to maintain consistency; an AP system accepts writes on both sides of partition, risking stale reads.
Card 2 • Data warehousing
A schema with a central fact table surrounded by and directly connected to multiple denormalized dimension tables is a {{c1::star schema}}.
Star schemas minimize join depths for analytical queries by keeping dimension tables flat and unnormalized.

Databases Curriculum Modules & Topics Covered

Modules
Relational DatabasesSQLBeyond RelationalDatabase Design and Performance
Core Exam Topics
  • Functional dependencies
  • Tables and keys
  • Normalization
  • Relational algebra
  • ER diagrams
  • Integrity constraints
  • Normal forms (1NF to BCNF)
  • Schema design
  • Views
  • SELECT queries
Learning Objectives
  • Develop core conceptual recall and analytical problem-solving in Relational Databases.
  • Develop core conceptual recall and analytical problem-solving in SQL.
  • Develop core conceptual recall and analytical problem-solving in Beyond Relational.
  • Develop core conceptual recall and analytical problem-solving in Database Design and Performance.

Free Downloadable Databases Study Packs (.ZIP / .TSV)

Full Spreadsheet Data (TSV)
TSV • 293 items
Complete Course Pack
ZIP • 293 items
Elements (Standard)
ZIP • 293 items
Active Recall Flashcards
ZIP • 293 items
Formula Codex
ZIP • 293 items
Problem Solving (Complete)
ZIP • 293 items
Problem Solving (Mastery)
ZIP • 293 items
Problem Solving (Standard)
ZIP • 293 items
Artificial Intelligence (1,579) Artificial Intelligence and Machine Learning (507) Cloud Computing and DevOps (144) Compiler Design & Formal Languages (1,579) Computational Contact Mechanics: Penalty Function Method, Lagrange Multipliers & Mortar Contact Formulations (128) Computer Engineering & Algorithms (1,365)
Full Question Pool: 293 Verified Items

Unlock All 293 Databases Practice Questions

Study the full question pool with 13 active recall battle modes, FSRS v5 spaced repetition, and 1-click printable PDF mock exams with full answer keys on Android and Windows PC.

Get on Google Play (Android) Get on Microsoft Store (Windows PC)