PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Zoox

Design Transaction Data Quality Checks

Last updated: May 23, 2026

Quick Overview

This question evaluates the ability to design and implement data quality checks for relational transaction and vendor datasets, focusing on integrity constraints, referential integrity, business-rule validation (refund logic), missing/invalid values, and anomaly detection.

  • medium
  • Zoox
  • Software Engineering Fundamentals
  • Data Engineer

Design Transaction Data Quality Checks

Company: Zoox

Role: Data Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

You own data quality for the same credit-card transaction dataset. `transactions` | column | type | description | |---|---|---| | `transaction_id` | integer | Unique ID for a transaction. | | `user_id` | integer | Unique ID for a customer. | | `vendor_id` | integer | Unique ID for a vendor. | | `transaction_time` | timestamp | Time when the transaction was recorded. | | `transaction_dollars` | numeric | Dollar amount of the transaction. | | `transaction_type` | text | Transaction type, such as `PURCHASE` or `REFUND`. | | `refund_transaction_id` | integer | For a `REFUND`, the `transaction_id` of the original `PURCHASE`. | `vendors` | column | type | description | |---|---|---| | `vendor_id` | integer | Unique ID for a vendor. | | `city` | text | City where the vendor is located. | | `state_province` | text | State or province where the vendor is located. | | `country` | text | Two-letter country code. | Propose at least five data quality checks or validations for these tables. Consider integrity constraints, referential integrity, refund logic, invalid values, missing data, and anomaly detection. For at least two checks, provide SQL that returns the failing rows or failing keys.

Quick Answer: This question evaluates the ability to design and implement data quality checks for relational transaction and vendor datasets, focusing on integrity constraints, referential integrity, business-rule validation (refund logic), missing/invalid values, and anomaly detection.

Related Interview Questions

  • Explain seasons and compound interest - Zoox (medium)
  • Build a Stateful Calculator - Zoox (hard)
Zoox logo
Zoox
Apr 11, 2026, 12:00 AM
Data Engineer
Technical Screen
Software Engineering Fundamentals
0
0

You own data quality for the same credit-card transaction dataset.

transactions

columntypedescription
transaction_idintegerUnique ID for a transaction.
user_idintegerUnique ID for a customer.
vendor_idintegerUnique ID for a vendor.
transaction_timetimestampTime when the transaction was recorded.
transaction_dollarsnumericDollar amount of the transaction.
transaction_typetextTransaction type, such as PURCHASE or REFUND.
refund_transaction_idintegerFor a REFUND, the transaction_id of the original PURCHASE.

vendors

columntypedescription
vendor_idintegerUnique ID for a vendor.
citytextCity where the vendor is located.
state_provincetextState or province where the vendor is located.
countrytextTwo-letter country code.

Propose at least five data quality checks or validations for these tables. Consider integrity constraints, referential integrity, refund logic, invalid values, missing data, and anomaly detection. For at least two checks, provide SQL that returns the failing rows or failing keys.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Zoox•More Data Engineer•Zoox Data Engineer•Zoox Software Engineering Fundamentals•Data Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.