Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 5 MCQs Spark Streaming with Apache Kafka

INT315 — Cluster Computing 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Fundamentals of Apache Kafka Easy

    What is Apache Kafka primarily used for?

  2. Question 2 of 60 Fundamentals of Apache Kafka Easy

    What is a topic in Apache Kafka?

  3. Question 3 of 60 Fundamentals of Apache Kafka Easy

    Which description best matches an event in Kafka?

  4. Question 4 of 60 Apache Kafka cluster architecture Easy

    What is a Kafka broker?

  5. Question 5 of 60 Apache Kafka cluster architecture Easy

    Why is a Kafka topic divided into partitions?

  6. Question 6 of 60 Apache Kafka cluster architecture Easy

    What is the main purpose of replication in a Kafka cluster?

  7. Question 7 of 60 Apache Kafka installation Easy

    Which software platform is commonly required to run Apache Kafka?

  8. Question 8 of 60 Apache Kafka installation Easy

    What should usually be configured before starting a Kafka broker?

  9. Question 9 of 60 Integration of Apache Kafka with Spark Easy

    Which Spark feature is commonly used to process streaming data from Kafka?

  10. Question 10 of 60 Integration of Apache Kafka with Spark Easy

    In a Spark and Kafka integration, what role does Kafka usually play?

  11. Question 11 of 60 Integration of Apache Kafka with Spark Easy

    Which information does Spark need to connect to a Kafka cluster?

  12. Question 12 of 60 Producer and consumer messaging model Easy

    What does a Kafka producer do?

  13. Question 13 of 60 Producer and consumer messaging model Easy

    What does a Kafka consumer do?

  14. Question 14 of 60 Producer and consumer messaging model Easy

    What is the purpose of a Kafka consumer group?

  15. Question 15 of 60 Kafka pipeline Easy

    Which sequence represents a basic Kafka data pipeline?

  16. Question 16 of 60 Kafka pipeline Easy

    What is the role of Kafka in a data pipeline?

  17. Question 17 of 60 Kafka pipeline Easy

    What does an offset identify in a Kafka partition?

  18. Question 18 of 60 Ingestion patterns Easy

    Which ingestion pattern processes events soon after they are generated?

  19. Question 19 of 60 Ingestion patterns Easy

    Which ingestion pattern collects data over a period before processing it together?

  20. Question 20 of 60 Ingestion patterns Easy

    Which ingestion pattern is suitable for continuously arriving sensor readings?

  21. Question 21 of 60 Fundamentals of Apache Kafka Medium

    An application requires all events for the same customer to be processed in the order in which they were produced. Which Kafka design best supports this requirement?

  22. Question 22 of 60 Fundamentals of Apache Kafka Medium

    A Kafka topic has a retention period of seven days. A consumer remains offline for nine days and then resumes from its last committed offset. What is the most likely outcome?

  23. Question 23 of 60 Fundamentals of Apache Kafka Medium

    A topic contains six partitions, and each partition receives approximately 500 messages per second. Assuming an even distribution, what is the approximate total ingestion rate?

  24. Question 24 of 60 Apache Kafka cluster architecture Medium

    A partition has replication factor 3. Its leader broker fails, but two replicas remain in the in-sync replica set. What should the cluster normally do?

  25. Question 25 of 60 Apache Kafka cluster architecture Medium

    A Kafka topic has 12 partitions and is consumed by one consumer group containing 15 active consumers. How many consumers can process records simultaneously at most?

  26. Question 26 of 60 Apache Kafka cluster architecture Medium

    Why are partition replicas usually distributed across different Kafka brokers?

  27. Question 27 of 60 Apache Kafka installation Medium

    When configuring a multi-broker Kafka cluster, which combination is required for the brokers to operate as members of the same cluster?

  28. Question 28 of 60 Apache Kafka installation Medium

    Kafka starts successfully, but remote clients receive broker addresses such as localhost:9092 and cannot connect. Which configuration should be checked first?

  29. Question 29 of 60 Apache Kafka installation Medium

    After installing Kafka, an administrator wants to verify end-to-end messaging before connecting Spark. Which test is most appropriate?

  30. Question 30 of 60 Integration of Apache Kafka with Spark Medium

    A Spark Structured Streaming application must resume from the correct Kafka offsets after a driver restart. Which feature should be configured?

  31. Question 31 of 60 Integration of Apache Kafka with Spark Medium

    A Kafka topic has eight partitions, but a Spark streaming job is configured with 20 executor cores. What primarily limits the initial parallelism of Kafka reads?

  32. Question 32 of 60 Integration of Apache Kafka with Spark Medium

    In Spark Structured Streaming, Kafka records expose key and value as binary columns. What should the application normally do before applying string or JSON operations?

  33. Question 33 of 60 Integration of Apache Kafka with Spark Medium

    A Spark streaming query reads Kafka events containing event timestamps and performs a windowed aggregation. Which feature helps limit state for events arriving late?

  34. Question 34 of 60 Producer and consumer messaging model Medium

    A producer sets acks=all for a replicated Kafka topic. What is the main effect?

  35. Question 35 of 60 Producer and consumer messaging model Medium

    A consumer processes a record and commits its offset before writing the result to a database. The database write then fails. What delivery problem can occur?

  36. Question 36 of 60 Producer and consumer messaging model Medium

    Two independent applications must each receive every event from the same Kafka topic. How should their consumers be configured?

  37. Question 37 of 60 Kafka pipeline Medium

    In a pipeline producers → Kafka → Spark → database, the database becomes temporarily slow. What Kafka capability most directly helps absorb the slowdown?

  38. Question 38 of 60 Kafka pipeline Medium

    Several producers send JSON events to a shared Kafka topic, but they use incompatible field types for the same attribute. Which pipeline practice best prevents processing failures?

  39. Question 39 of 60 Ingestion patterns Medium

    A company must ingest continuous sensor readings with low latency while also importing one large historical file each night. Which design is most appropriate?

  40. Question 40 of 60 Ingestion patterns Medium

    A corrected Spark transformation must be applied to the last three days of Kafka events without asking producers to resend them. Which ingestion pattern enables this?

  41. Question 41 of 60 Fundamentals of Apache Kafka Hard

    A producer publishes records with keys A, B, and C to a topic with six partitions using Kafka's default key-based partitioning. What property is guaranteed if the number of partitions remains unchanged?

  42. Question 42 of 60 Fundamentals of Apache Kafka Hard

    A Kafka topic has retention.ms=86400000 and retention.bytes=10737418240. The topic contains 20 GB of log data, and all segments are older than the retention time. Which statement best describes retention behavior?

  43. Question 43 of 60 Fundamentals of Apache Kafka Hard

    A producer uses acks=all and enables idempotence. A record is acknowledged after being written to all in-sync replicas, but the leader fails before the producer receives the response. What is the safest producer behavior?

  44. Question 44 of 60 Apache Kafka cluster architecture Hard

    A topic has replication factor 3 and min.insync.replicas=2. The producer uses acks=all. One replica becomes unavailable, but the leader and one follower remain in the ISR. What is the expected result for new writes?

  45. Question 45 of 60 Apache Kafka cluster architecture Hard

    A topic's partitions are distributed across three brokers, but each partition's leader and its first replica are placed in the same rack. What is the main unresolved availability risk?

  46. Question 46 of 60 Apache Kafka cluster architecture Hard

    A consumer group has eight consumers assigned to a topic with five partitions. Assuming no idle or standby assignment behavior, what is the most accurate result?

  47. Question 47 of 60 Apache Kafka installation Hard

    A Kafka installation is configured with a listener advertised as PLAINTEXT://localhost:9092, and remote Spark executors attempt to connect using the broker metadata. The TCP port is reachable, but clients still fail after metadata retrieval. What is the most likely cause?

  48. Question 48 of 60 Apache Kafka installation Hard

    An administrator starts a Kafka broker in KRaft mode but supplies only a broker process role and no controller quorum configuration. Which outcome is expected in a standard combined-node deployment?

  49. Question 49 of 60 Apache Kafka installation Hard

    A broker is configured with a log directory on a nearly full disk. Kafka begins rejecting new records even though topic-level retention appears correct. Which operational explanation is most plausible?

  50. Question 50 of 60 Integration of Apache Kafka with Spark Hard

    A Structured Streaming query reads Kafka records, performs a deterministic transformation, and writes to an idempotent external sink. The query fails after the sink write but before the Spark checkpoint is updated. What behavior should the sink support?

  51. Question 51 of 60 Integration of Apache Kafka with Spark Hard

    A Spark Structured Streaming job reads from Kafka with startingOffsets=latest, but the query is restarted after its checkpoint directory is deleted. New records arrive during startup. Which result is expected?

  52. Question 52 of 60 Integration of Apache Kafka with Spark Hard

    A Kafka topic has 100 partitions, but a Spark streaming query is limited by maxOffsetsPerTrigger to 10,000 records. If partition rates are highly skewed, what limitation can this setting introduce?

  53. Question 53 of 60 Integration of Apache Kafka with Spark Hard

    A Spark job reads Kafka data, applies a stateful aggregation, and is configured with a short trigger interval. Processing time regularly exceeds the trigger interval. What is the most likely consequence?

  54. Question 54 of 60 Producer and consumer messaging model Hard

    Two consumers belong to the same Kafka consumer group and process different partitions. Consumer A commits offset 120 for partition 0, while Consumer B fails before committing offset 85 for partition 1. After rebalance, what does the group normally resume from?

  55. Question 55 of 60 Producer and consumer messaging model Hard

    A consumer processes a record for 40 seconds, while max.poll.interval.ms is 30 seconds. The consumer continues sending heartbeats but does not call poll during processing. What is the likely result?

  56. Question 56 of 60 Producer and consumer messaging model Hard

    A producer sends keyed events to a partition. Retries are enabled, but idempotence is disabled. A transient acknowledgment failure causes a retry after the first append succeeded. Which issue is possible?

  57. Question 57 of 60 Kafka pipeline Hard

    A pipeline consumes clickstream events, enriches them, and republishes results to a second Kafka topic. The enrichment service is nondeterministic and the output topic is compacted. Which design most reliably supports replay without inconsistent final state?

  58. Question 58 of 60 Kafka pipeline Hard

    A Kafka pipeline has a source topic, a stream processor, and a sink topic. The processor commits source offsets before publishing sink records. If it crashes immediately afterward, what failure mode is most likely?

  59. Question 59 of 60 Kafka pipeline Hard

    A pipeline uses a compacted Kafka topic for the latest customer profile. A tombstone for customer C7 is produced, but downstream consumers start after the tombstone has been removed. What conclusion is correct?

  60. Question 60 of 60 Ingestion patterns Hard

    A Spark streaming application must ingest a bursty Kafka workload while preventing a temporary spike from exhausting executor memory. Which strategy is most appropriate?

That's unit 5

Answer a few questions and your score shows up here.