Difficulty: Medium
Which normal form requires atomic column values?
A Second normal form
B Third normal form
C First normal form
D Boyce-Codd normal form
Answer: C. First normal form. First normal form requires each field to hold an atomic value.
When a non-key field depends on only part of a composite key, which normal form is violated?
A Third normal form
B Fourth normal form
C First normal form
D Second normal form
Answer: D. Second normal form. Second normal form removes partial dependencies on composite keys.
If one non-key field depends on another, which normal form addresses this?
A Third normal form
B Fifth normal form
C First normal form
D Second normal form
Answer: A. Third normal form. Third normal form removes transitive dependencies of non-key attributes.
In a functional dependency, what determines another attribute’s value?
A Foreign key
B Determinant
C Index page
D Transaction log
Answer: B. Determinant. The determinant is the attribute or attribute set that determines another value.
To limit rows before joining, which SQL clause applies?
A ORDER BY clause
B UNION clause
C WHERE clause
D HAVING clause
Answer: C. WHERE clause. WHERE filters source rows before grouped results are produced.
If a join unexpectedly doubles order totals, what should analysts inspect first?
A User password length
B Column display width
C Backup compression
D Join key cardinality
Answer: D. Join key cardinality. A one-to-many join can duplicate parent values in aggregate results.
How does a query optimizer estimate work?
A Uses statistics and cost
B Reads employee schedules
C Counts screen controls
D Checks printer status
Answer: A. Uses statistics and cost. The optimizer uses statistics and costs to choose an execution plan.
For a composite index beginning with customer_id, which query benefits most directly?
A Sorts an unrelated date
B Filters customer_id first
C Searches a separate table
D Filters only city
Answer: B. Filters customer_id first. Composite indexes are most useful when queries use their leading columns.
Why use a stored procedure for repeated database operations?
A Disable validation constraints
B Replace all relational keys
C Reuse controlled server-side logic
D Avoid transaction logging
Answer: C. Reuse controlled server-side logic. Stored procedures package reusable database-side operations and logic.
What can a trigger do after a row changes?
A Replace the primary key
B Create a new network
C Guarantee correct business rules
D Run a defined database action
Answer: D. Run a defined database action. A trigger runs automatically in response to specified database events.
When repeated reports are expensive, which object stores query results?
A Materialized view
B Sequence
C Transaction lock
D Foreign key
Answer: A. Materialized view. A materialized view persists computed results to speed repeated reads.
Why might designers denormalize a reporting database?
A Prevent analytical queries
B Improve read performance
C Eliminate every duplicate
D Reduce all storage use
Answer: B. Improve read performance. Denormalization can simplify or speed reads at the cost of extra redundancy.
Which setup can serve reads from additional database copies?
A Row validation
B Schema normalization
C Read replication
D Query parameterization
Answer: C. Read replication. Read replicas distribute read traffic while writes remain coordinated elsewhere.
How does horizontal partitioning divide a table?
A Duplicates every index
B Converts rows into views
C Splits columns into groups
D Splits rows into groups
Answer: D. Splits rows into groups. Horizontal partitioning divides rows into partitions using a key or rule.
Several database nodes hold different row ranges. What design is used?
A Sharding
B Serialization
C Normalization
D Materialization
Answer: A. Sharding. Sharding distributes subsets of data across separate database nodes.
Which warehouse technique preserves historical attribute versions?
A Type zero dimension
B Type two slowly changing dimension
C Full table deletion
D Single-value snapshot
Answer: B. Type two slowly changing dimension. Type 2 dimensions add new versions to preserve historical changes.
Where are measurable business events commonly stored in a star schema?
A Lookup index
B Audit policy
C Fact table
D Role table
Answer: C. Fact table. Fact tables store measures and keys for events such as sales.
What do dimension tables usually provide?
A Backup encryption keys
B Transaction lock records
C Only numeric measures
D Descriptive analysis attributes
Answer: D. Descriptive analysis attributes. Dimension tables provide descriptive context for analyzing facts.
During ETL, why transform source values?
A Align formats and business rules
B Increase source inconsistencies
C Remove destination controls
D Delay every load
Answer: A. Align formats and business rules. Transformations standardize and validate data for the target system.
Which files can support point-in-time database recovery?
A User manuals and reports
B Backups and transaction logs
C Index files alone
D Only screen captures
Answer: B. Backups and transaction logs. A suitable backup plus transaction logs can restore a chosen point in time.
What does recovery point objective limit?
A Database size
B Maximum restoration time
C Acceptable data loss
D Query response time
Answer: C. Acceptable data loss. RPO defines the maximum tolerable amount of data loss after disruption.
What does recovery time objective specify?
A Maximum duplicate rows
B Accepted query count
C Annual storage budget
D Target service restoration time
Answer: D. Target service restoration time. RTO sets the target time for restoring a service.
Before changing a production schema, what should be planned?
A Versioned schema migration
B Permanent query suspension
C Shared administrator access
D Untracked manual edits
Answer: A. Versioned schema migration. A versioned migration applies database structure changes consistently and repeatably.
Repeated facts cause update anomalies in which design?
A Partitioned design
B Denormalized design
C Atomic design
D Indexed design
Answer: B. Denormalized design. Redundant facts can become inconsistent when only some copies are updated.
How should applications prevent SQL injection?
A Concatenate raw input
B Grant broad database access
C Use parameterized queries
D Disable query logging
Answer: C. Use parameterized queries. Parameterized queries keep user input separate from executable SQL.