Database Management MCQs (Set-4)

Difficulty: Hard

Which isolation level aims to make transactions behave serially?

A Read uncommitted
B Read committed
C Read only
D Serializable

In what way does MVCC let readers avoid blocking writers?

A Reads a consistent row version
B Disables transaction commits
C Locks every database table
D Deletes active row versions

If a repeated query returns a new matching row, which anomaly occurred?

A Write skew
B Phantom read
C Dirty read
D Lost update

When a row changes between two reads in one transaction, what happened?

A Dirty write
B Deadlock
C Non-repeatable read
D Phantom deletion

Two transactions each pass separate checks but jointly violate a rule. What can occur?

A Dirty read
B Index drift
C Lost insert
D Write skew

What condition creates a classic database deadlock?

A Cyclic resource waiting
B A stale backup
C A missing index
D A large table

Which log rule supports crash recovery with write-ahead logging?

A Data pages before log records
B Log records before data pages
C Skip logs for committed writes
D Delete logs before checkpoints

Which write order does write-ahead logging require?

A Replay latest query alone
B Copy active memory pages
C Restore backup then replay logs
D Restore indexes only

Point-in-time recovery rebuilds a target moment using which steps?

A Four hours of downtime always
B Four hours to restart
C Four hours of query time
D Four hours of changes

With an RPO of four hours, what is the maximum accepted data gap?

A Restore service within four hours
B Up to four hours
C Finish queries in four hours
D Keep backups four hours old

When most requests hit one shard key, what risk appears?

A Normalization anomaly
B Hot shard
C Replica checksum
D Phantom read

How can partition pruning reduce query work?

A Rebuild the whole database
B Duplicate every matching row
C Skip irrelevant partitions
D Disable all table indexes

Which index can satisfy a query without reading table rows?

A Foreign key
B Hash partition
C Cluster address
D Covering index

Wrapping an indexed column in a function can cause which issue?

A Predicate becomes non-sargable
B Transaction becomes atomic
C Table loses its schema
D Primary key becomes nullable

Which optimizer estimate strongly affects join-plan selection?

A Backup file names
B Rows produced by each step
C Font size of reports
D Number of user passwords

What is a main risk of cascading deletes?

A Slower screen rendering only
B Automatic backup creation
C Unexpected related data removal
D Guaranteed duplicate prevention

How does two-phase commit coordinate a distributed transaction?

A Index then partition data
B Backup then compress files
C Read then sort rows
D Prepare then commit decision

When a distributed workflow spans independent services, what pattern supports recovery?

A Saga with compensating actions
B Shared global password
C Single local rollback only
D Unlogged table truncation

Which technique tracks row changes for downstream systems?

A Data masking
B Change data capture
C Table normalization
D Query federation

What does replication lag describe?

A Duration of a local query
B Age of a schema file
C Delay before copies match
D Time to create an index

Which dimension method retains old and new values?

A Current-only lookup
B Overwrite-only dimension
C Type zero dimension
D Type two slowly changing dimension

Which privilege pattern limits a database account’s exposure?

A Least privilege
B Shared administrator role
C Public write access
D Permanent root access

Which protection safeguards stored database files?

A Query caching
B Encryption at rest
C Schema validation
D Row sorting

Before relying on a backup, what verifies that it can be restored?

A Unverified copy count
B Extra screen theme
C Routine restore test
D Longer table names

What tradeoff can arise when replicas serve stale reads?

A Schema versus formatting
B Sorting versus grouping
C Indexes versus keys
D Freshness versus availability