QuizzesInteractive Queries — Concept Check
intermediate
kafka

Interactive Queries — Concept Check

Questions on Interactive Queries. Interactive Queries expose state store contents over a REST API, turning the Kafka Streams instance into a queryable read model without an external DB.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Interactive Queries — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer wants to query the state store in a Kafka Streams application. What must be true for the store to be queryable?

    • AThe store must be materialized with a name.
    • BThe store must be anonymous.
    • CThe store must use a keyValueStore type.
    • DThe store must be external.
  2. 2.In a multi-instance Kafka Streams deployment, what happens when a query is made for a key not held by the instance receiving the request?

    • AThe request is proxied to the instance owning the key.
    • BThe query fails with an error.
    • CThe instance attempts to retrieve the key from an external database.
    • DThe instance randomly selects another instance to handle the query.
  3. 3.A Kafka Streams application is experiencing high latency. The application.server configuration is missing. What is likely happening?

    • AThe state store is not materialized.
    • BInstances cannot discover each other for key ownership.
    • CThe Kafka topic is not partitioned correctly.
    • DThe application is writing to an external database.
  4. 4.What store type should be used for querying counts of a word over a 1-minute tumbling window?

    • AKeyValueStore
    • BSessionStore
    • CWindowStore
    • DAnonymousStore
  5. 5.A developer queries a windowed state store but receives no results for recent data. What might be the issue?

    • AThe Kafka Streams application is not running.
    • BThe word does not exist in the input stream.
    • CThe query time range is incorrect.
    • DThe store is not materialized with a name.
  6. 6.What is the purpose of the KafkaStreams.store() API in the context of Interactive Queries?

    • ATo access a read-only view of a named state store.
    • BTo configure the application.server property.
    • CTo write data to an external database.
    • DTo manage Kafka topic partitions.
  7. 7.Why might a query to a sessionStore return unexpected results?

    • AThe store is not materialized with a name.
    • BThe Kafka topic is not partitioned correctly.
    • CThe session window boundaries are misconfigured.
    • DThe application.server property is missing.
  8. 8.A developer is setting up a Kafka Streams application with Interactive Queries. What must be configured for instances to discover each other?

    • Astate.store.name
    • Bwindow.size
    • Cexternal.database.url
    • Dapplication.server