Sample questions
Question 1Easy
Freshness, as a data-quality check, measures:
- How recently the data was updated
- How many columns the table has
- Whether values fall in a valid range
- Whether the table is compressed
Answer: A. How recently the data was updated
Explanation
Stale data can be correct but useless; freshness SLAs alert when loads are late.
Step-by-step solution
- Freshness checks if data is up-to-date.
- It ensures data reflects the latest changes.
- Stale data may not be useful even if accurate.
- This measures how recently data was updated.
- Final answer: A (How recently the data was updated).
Why the other options are wrong
- B. Column count measures the table's width, not freshness, which checks how recent the updates are.
- C. A valid value range is a validity check; freshness is about how recently the data was updated.
- D. Compression is a storage detail, not a data-quality check for freshness.
Question 2Easy
A column has 1,200 nulls out of 48,000 rows. What is its null rate?
- 0.25%
- 4%
- 2.5%
- 25%
Answer: C. 2.5%
Explanation
1,200 / 48,000 = 0.025 = 2.5%.
Step-by-step solution
- Nulls = 1200.
- Total rows = 48000.
- Divide nulls by total: 1200 / 48000 = 0.025.
- Convert to percentage: 0.025 * 100 = 2.5%.
- Null rate is 2.5%.
Why the other options are wrong
- A. 0.25% is off by a factor of ten; 1,200 divided by 48,000 is 2.5 percent.
- B. 4% would need 1,200 nulls out of 30,000 rows; with 48,000 rows the rate is 2.5%.
- D. 25% would need 1,200 nulls out of 4,800 rows; with 48,000 rows the rate is 2.5%.
Tip: Use formula: (nulls / total) * 100.
Question 3Easy
Which SQL finds duplicate order IDs?
- ORDER BY order_id DESC
- WHERE order_id IS NULL
- GROUP BY order_id HAVING COUNT(*) > 1
- SELECT DISTINCT order_id
Answer: C. GROUP BY order_id HAVING COUNT(*) > 1
Explanation
Grouping by the key and keeping groups with more than one row lists duplicates.
Step-by-step solution
- Duplicate order IDs are rows where the same key appears more than once.
- GROUP BY order_id puts rows with the same ID into one group.
- HAVING COUNT(*) > 1 keeps only the groups with more than one row.
- The correct answer is option C: GROUP BY order_id HAVING COUNT(*) > 1.
Why the other options are wrong
- A. ORDER BY only sorts rows; it does not find duplicates.
- B. IS NULL finds missing keys, not duplicate keys.
- D. DISTINCT removes duplicates from the output; it does not list them.
Tip: To find duplicates, GROUP BY the key and keep groups with HAVING COUNT(*) > 1.
Question 4Easy
A data contract between a producing team and consumers specifies:
- Which laptop each analyst uses
- The colour scheme of dashboards
- Schema, meaning and quality expectations
- The salaries of the data engineers
Answer: C. Schema, meaning and quality expectations
Explanation
Contracts make breaking changes explicit and testable.
Step-by-step solution
- Data contracts define how data is structured and understood.
- Schema, meaning and quality expectations ensure consistency.
- These details are essential for both producers and consumers.
- Other options relate to tools or compensation, not data structure.
- Final answer: Schema, meaning and quality expectations.
Why the other options are wrong
- A. Laptop choice is not part of a data contract, which covers data structure and meaning.
- B. A dashboard colour scheme is not part of a data contract; the contract covers the data itself.
- D. Engineer salaries are not part of a data contract, which describes schema, meaning and quality.
Question 5Easy
Timeliness, as a data-quality dimension, asks whether data is:
- Available when it is needed
- Stored in a columnar format
- Encrypted at rest on disk
- Loaded by a single pipeline
Answer: A. Available when it is needed
Explanation
Data that arrives after the decision it supports has little value, even if correct.
Step-by-step solution
- Timeliness is a data-quality dimension about whether data is ready when a decision needs it.
- Data that arrives after the decision it supports has little value, even if it is correct.
- The correct answer is option A, available when it is needed.
Why the other options are wrong
- B. A storage format is a design choice, not a data-quality dimension.
- C. Encryption is a security control; it does not measure whether data is timely.
- D. The number of pipelines says nothing about whether data arrives in time.
Tip: Timeliness means the right data at the right time for the decision.
Question 6Medium
Yesterday's load had 1.02 million rows; today's has 210,000 with no business reason. What should the pipeline do?
- Delete yesterday's data as well so that the two tables stay consistent
- Duplicate today's rows to restore the usual volume
- Publish it, since any non-zero load is acceptable
- Flag a volume anomaly and hold publishing until checked
Answer: D. Flag a volume anomaly and hold publishing until checked
Explanation
Row-count checks against recent history catch partial loads before users see wrong numbers.
Step-by-step solution
- Volume fell from 1.02 million to 210,000, about 80% down, with no business reason.
- That points to a possible upstream failure or partial load.
- Publishing could push wrong numbers to users, so flag it and hold until checked.
Why the other options are wrong
- A. Deleting yesterday's data destroys good data.
- B. Duplicating rows fabricates data.
- C. Non-zero volume does not mean the load is correct.
Tip: Big unexplained drop: hold and check.
Question 7Medium
The write-audit-publish pattern means:
- Write directly to production tables and audit them at the end of each month
- Publish first and let users report any problems
- Audit the source system before every single write
- Write to a staging area, run checks, then publish only if they pass
Answer: D. Write to a staging area, run checks, then publish only if they pass
Explanation
Consumers only ever see data that passed validation.
Step-by-step solution
- Write to a staging area first.
- Run checks.
- Publish only if they pass.
Why the other options are wrong
- A. Auditing monthly is too late.
- B. Publishing first exposes bad data.
- C. Audits happen after the write.
Tip: Write, audit, publish.
Question 8Medium
Order rows reference customer_id values that do not exist in the customer table. Which quality dimension fails?
- Timeliness of the order data
- Uniqueness of the order key
- Precision of decimal amounts
- Referential integrity (consistency)
Answer: D. Referential integrity (consistency)
Explanation
Orphaned foreign keys indicate missing or out-of-order loads.
Step-by-step solution
- Each order's customer_id must match a customer in the customer table.
- Orders with customer_id values that have no matching customer are orphaned.
- This breaks referential integrity, which checks that references point to existing rows.
- The correct answer is option D: referential integrity (consistency).
Why the other options are wrong
- A. Timeliness is about data being up to date, not about matching keys.
- B. Uniqueness is about duplicate keys, not about missing references.
- C. Precision is about the detail of decimal amounts, not about references.
Tip: A foreign key with no parent row is a referential integrity failure.
Question 9Medium
Bad records that fail validation are written to a separate quarantine table instead of failing the whole load. The benefit is:
- Good data still flows while bad rows are kept for inspection
- Bad rows are fixed automatically by the warehouse once they are quarantined
- The quarantine table replaces the main table
- Validation no longer needs to run at all
Answer: A. Good data still flows while bad rows are kept for inspection
Explanation
Quarantining isolates problems without blocking the pipeline or silently dropping data.
Step-by-step solution
- Quarantine isolates bad rows.
- Good rows continue.
- Bad rows are kept for review.
Why the other options are wrong
- B. No automatic fix.
- C. It does not replace the table.
- D. Validation still runs.
Tip: Quarantine = isolate, not stop.
Question 10Hard
A check confirms that every age value is between 0 and 120, yet many customers show age 0 because missing values were defaulted to 0. Which lesson does this illustrate?
- Nulls are invalid in every possible column
- Age columns should always be stored as text
- Range checks always catch default values, so the data must be correct
- Validity checks pass while the data is still inaccurate
Answer: D. Validity checks pass while the data is still inaccurate
Explanation
Values can be valid in form yet wrong in fact; check distributions and default-value spikes too.
Step-by-step solution
- Validity checks accept values that look correct but are actually wrong.
- Defaulted zeros pass range checks but represent missing data.
- This shows validity checks do not ensure data accuracy.
- The data may be valid in form but still inaccurate in fact.
- This illustrates validity checks pass while the data is still inaccurate.
- Final answer: D (Validity checks pass while the data is still inaccurate).
Why the other options are wrong
- A. Nulls are not invalid in every column; the lesson here is about defaults hiding missing data.
- B. Storing age as text is not the lesson; the issue is zeros used as defaults for missing values.
- C. Range checks do not always catch default values; a 0 is inside the allowed 0 to 120 range.
Tip: Check distributions and spot unusual spikes to find hidden issues.
Practise all 11 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →