Bird
0
0

You need to build a system that supports complex transactions with multiple table joins and strict data integrity. Which database type should you choose and why?

hard🚀 Application Q15 of 15
Elasticsearch - Basics and Architecture
You need to build a system that supports complex transactions with multiple table joins and strict data integrity. Which database type should you choose and why?
ARelational database, because it supports ACID transactions and joins.
BRelational database, because it is optimized for full-text search.
CElasticsearch, because it stores data in JSON and is schema-less.
DElasticsearch, because it handles complex joins efficiently.
Step-by-Step Solution
Solution:
  1. Step 1: Identify requirements

    The system needs complex transactions, multiple joins, and strict data integrity.
  2. Step 2: Match requirements to database features

    Relational databases provide ACID transactions and support joins, ensuring data integrity.
  3. Step 3: Compare Elasticsearch capabilities

    Elasticsearch is optimized for search and analytics, not transactional integrity or joins.
  4. Final Answer:

    Relational database, because it supports ACID transactions and joins. -> Option A
  5. Quick Check:

    Transactions + joins = Relational DB [OK]
Quick Trick: Use relational DB for transactions and joins, Elasticsearch for search [OK]
Common Mistakes:
MISTAKES
  • Choosing Elasticsearch for transactional systems
  • Confusing JSON storage with transactional support
  • Assuming Elasticsearch supports complex joins

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes