Essential cookies keep authentication working. With your permission, we also use analytics cookies to understand and improve the product. Read our Privacy Policy

DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPricingBlog
ProLogin
Home/Questions/General/Other/How would you model customer transaction data for both analytical and operational use cases?

How would you model customer transaction data for both analytical and operational use cases?

General/Otherhard0.5 min read

Reviewed by Aditya Kumar · Last reviewed 2026-03-24

Hybrid model with clear separation of concerns. WHY: OLTP and analytics have opposing requirements—low-latency writes vs. analytical scans. OLTP: Normalized schema (customers, accounts, transactions) with indexes; event sourcing for auditability. Analytics: Denormalized...

🤖 Analyze Your Answer
Frequency
Low
Asked at 1 company
Category
243
questions in General/Other
Difficulty Split
151E|43M|49H
in this category
Total Bank
1,863
across 7 categories
Asked at these companies
BCG
Key Concepts Tested
partitionsnowflakespark

Why This Question Matters

This hard-level General/Other question appears frequently in data engineering interviews at companies like BCG. While less common, it tests deeper understanding that distinguishes strong candidates. Mastering the underlying concepts (partition, snowflake, spark) will help you answer variations of this question confidently.

How to Approach This

This is a senior-level question that tests architectural thinking. Lead with the high-level design, then drill into specifics. Discuss trade-offs explicitly - there is rarely one correct answer. Show awareness of scale, fault tolerance, and operational complexity.

Expert Answer
103 words

Hybrid model with clear separation of concerns. WHY: OLTP and analytics have opposing requirements—low-latency writes vs. analytical scans. OLTP: Normalized schema (customers, accounts, transactions) with indexes; event sourcing for auditability. Analytics: Denormalized star/snowflake—fact table (transaction_id, customer_id, product_id, amount, ts) + dimensions. Bridge via CDC. ARCHITECTURE DIAGRAM:

[OLTP DB] --CDC--> [Kafka/Debezium]
| |
v v
[Operational APIs] [Spark/Flink]
|
v
[Delta Lake]
/ | \
v v v
[Bronze] [Silver] [Gold]
|
v
[Snowflake/BQ]
|
v
[BI / ML]

SCALABILITY: Partition by date; incremental models; single source of truth. COST: CDC vs batch—CDC reduces latency but increases infra; batch cheaper at lower freshness needs.

⚡
Pro Tip

Red Flag: Proposing one schema for both OLTP and analytics. Pro-Move: Show medallion layers and explain why you chose CDC over batch for this use case (latency SLA).

Want all answers as a PDF for offline study?
Seven focused volumes with 750+ in-depth answers — Answer Vault →

Related General/Other Questions

hardHave you worked on Data Warehousing projects?FreemediumHow would you read data from a web API? What steps would you follow after reading the data?FreehardRetrieve the most recent sale_timestamp for each product (Latest Transaction).FreehardWhat is the difference between OLTP and OLAP?FreemediumWhat is the difference between SQL and NoSQL databases?Free

Level up your prep

Recommended
Educative
Educative Unlimited

800+ hands-on courses — Grokking System Design, Coding Patterns, and AI mock interviews for your DE loop.

Start learning →

Some links below are affiliate links. If you buy through them we may earn a small commission at no extra cost to you — it helps keep DataEngPrep free.

According to DataEngPrep.tech, this is one of the most frequently asked General/Other interview questions, reported at 1 company. DataEngPrep.tech maintains an editor-reviewed database of 1,863 data engineering interview questions across 7 categories.

← Back to all questionsMore General/Other questions →
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeAWSAzureMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsPySpark QuestionsTop Python QuestionsTop System DesignKafka QuestionsAirflow QuestionsSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerAnswer Vault PDFsPricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer