Bloom Filters in Distributed Database Query Engines

A deep dive into how Bloom filters minimize data shuffling and optimize joins in distributed systems like Apache Spark, Presto, and Cassandra.

Sample Questions

  1. What is the primary characteristic of a standard Bloom filter regarding set membership?

    • It can have false negatives but no false positives.
    • It can have false positives but no false negatives.
    • It provides 100% accuracy for both presence and absence.
    • It only works for numerical data types.
  2. In a distributed database join, how does a Bloom filter help reduce network traffic?

    • By compressing the entire table before transmission.
    • By encrypting the data packets.
    • By filtering out rows from the probe side that definitely do not match the build side.
    • By increasing the speed of the TCP/IP protocol.
  3. Which two parameters primarily determine the false positive rate of a Bloom filter?

    • CPU clock speed and RAM latency.
    • Number of rows in the table and column width.
    • Size of the bit array and the number of hash functions.
    • Database version and storage engine type.