Skip to content
javabypankaj
HomeLibraryPopularCommunity
13
Database & SQL
17 topics · 141 questions
1SQL Basics: SELECT, WHERE, ORDER BY0/882Joins: INNER, LEFT, RIGHT, FULL, CROSS0/12123Aggregation: GROUP BY, HAVING, COUNT, SUM0/10104Subqueries & CTEs0/775Window Functions: ROW_NUMBER, RANK, LEAD, LAG0/886Indexing0/18187Transactions & ACID0/448Normalization & Schema Design0/779SQL vs NoSQL0/2210Connection Pooling0/6611Query Optimization & EXPLAIN0/5512Sharding & Partitioning0/7713Database Internals: B-tree, MVCC, WAL0/1114Stored Procedures, Views & Triggers0/6615Migrations & Schema Changes0/1116Practical SQL Queries0/343417Advanced: Replication, Consistency, CAP0/5
1SQL Basics: SELECT, WHERE, ORDER BY82Joins: INNER, LEFT, RIGHT, FULL, CROSS123Aggregation: GROUP BY, HAVING, COUNT, SUM104Subqueries & CTEs75Window Functions: ROW_NUMBER, RANK, LEAD, LAG86Indexing187Transactions & ACID48Normalization & Schema Design79SQL vs NoSQL210Connection Pooling611Query Optimization & EXPLAIN512Sharding & Partitioning713Database Internals: B-tree, MVCC, WAL114Stored Procedures, Views & Triggers615Migrations & Schema Changes116Practical SQL Queries3417Advanced: Replication, Consistency, CAP5
17 topics141 Qs0%
01Core Java17002OOP3203Collections6704Exception Handling2805Concurrency & Multithreading12706Java Streams, Lambda & Functional Programming32807Spring & Spring Boot2608Transactions3209JPA & Hibernate6910Microservices19411Kafka & Messaging9112DevOps, CI/CD & Tooling13313Database & SQL14114REST API & Web4015Design Patterns & LLD5716Advanced Java7117Coding Problems: DSA49218AWS & Cloud4119Data Engineering19420QA, Testing & SDET4121System Design3522Security2023Behavioral / HR: STAR Method37
17Topics
141Questions
0%Complete
17 of 17 topics
Topics
1SQL Basics: SELECT, WHERE, ORDER BY0/882Joins: INNER, LEFT, RIGHT, FULL, CROSS0/12123Aggregation: GROUP BY, HAVING, COUNT, SUM0/10104Subqueries & CTEs0/775Window Functions: ROW_NUMBER, RANK, LEAD, LAG0/886Indexing0/18187Transactions & ACID0/448Normalization & Schema Design0/779SQL vs NoSQL0/2210Connection Pooling0/6611Query Optimization & EXPLAIN0/5512Sharding & Partitioning0/7713Database Internals: B-tree, MVCC, WAL0/1114Stored Procedures, Views & Triggers0/6615Migrations & Schema Changes0/1116Practical SQL Queries0/3434
17Advanced: Replication, Consistency, CAP0/55

Advanced: Replication, Consistency, CAP

Database & SQL·Topic 17 of 17·5 questions
Q1CAP Theorem: Why the Real Choice is CP vs AP and How It Shapes Microservices

Partitions are inevitable, so the real CAP choice is CP (refuse rather than be wrong) versus AP (stay up and reconcile later).

Read Answer
Q2Common replication topologies and when to use each

Single-primary for most apps (simple, read scaling); multi-primary only when you truly need multi-region writes (and accept conflict resolution); cascading to offload fan-out from the primary.

Read Answer
Q3Physical/streaming vs logical replication

Physical replication is an exact binary copy of the whole cluster on the same engine; logical replication is selective row-level change events that can cross versions and engines.

Read Answer
Q4Synchronous vs asynchronous replication

Synchronous trades latency for zero data loss; asynchronous trades a small data-loss window for speed.

Read Answer
Q5Why Consistency Decisions Should Start From the Business Invariant

Start from "what must never happen": hard invariants demand strong consistency, cosmetic data permits eventual consistency; let requirements choose the technology.

Read Answer
Previous · Topic 16Practical SQL Queries34 questions
javabypankaj© 2026 javabypankaj
PrivacyTerms
HomeSearchLibrary