Where are the ACLs stored in a Kafka cluster by default?
A
Explanation:
ACLs are stored in Zookeeper node /kafka-acls/ by default.
is KSQL ANSI SQL compliant?
B
Explanation:
KSQL is not ANSI SQL compliant, for now there are no defined standards on streaming SQL languages
What information isn't stored inside of Zookeeper? (select two)
B
Explanation:
Consumer offsets are stored in a Kafka topic __consumer_offsets, and the Schema Registry stored
schemas in the _schemas topic.
Which KSQL queries write to Kafka?
C, D
Explanation:
SHOW STREAMS and EXPLAIN <query> statements run against the KSQL server that the KSQL client is
connected to. They don't communicate directly with Kafka. CREATE STREAM WITH <topic> and
CREATE TABLE WITH <topic> write metadata to the KSQL command topic. Persistent queries based
on CREATE STREAM AS SELECT and CREATE TABLE AS SELECT read and write to Kafka topics. Non-
persistent queries based on SELECT that are stateless only read from Kafka topics, for example
SELECT … FROM foo WHERE …. Non-persistent queries that are stateful read and write to Kafka,
for example, COUNT and JOIN. The data in Kafka is deleted automatically when you terminate the
query with CTRL-C.
There are two consumers C1 and C2 belonging to the same group G subscribed to topics T1 and T2.
Each of the topics has 3 partitions. How will the partitions be assigned to consumers with Partition
Assigner being Round Robin Assigner?
A
Explanation:
The correct option is the only one where the two consumers share an equal number of partitions
amongst the two topics of three partitions. An interesting article to read
ishttps://medium.com/@anyili0928/what-i-have-learned-from-kafka-partition-assignment-strategy-
799fdf15d3ab
A client connects to a broker in the cluster and sends a fetch request for a partition in a topic. It gets
an exception Not Leader For Partition Exception in the response. How does client handle this
situation?
B
Explanation:
In case the consumer has the wrong leader of a partition, it will issue a metadata request. The
Metadata request can be handled by any node, so clients know afterwards which broker are the
designated leader for the topic partitions. Produce and consume requests can only be sent to the
node hosting partition leader.
What is the risk of increasing max.in.flight.requests.per.connection while also enabling retries in a
producer?
B
Explanation:
Some messages may require multiple retries. If there are more than 1 requests in flight, it may result
in messages received out of order. Note an exception to this rule is if you enable the producer
settingenable.idempotence=true which takes care of the out of ordering case on its own.
Seehttps://issues.apache.org/jira/browse/KAFKA-5494
A Kafka producer application wants to send log messages to a topic that does not include any key.
What are the properties that are mandatory to configure for the producer configuration? (select
three)
A, C, D
Explanation:
Both key and value serializer are mandatory.
To import data from external databases, I should use
D
Explanation:
Kafka Connect Sink is used to export data from Kafka to external databases and Kafka Connect Source
is used to import from external databases into Kafka.
You are running a Kafka Streams application in a Docker container managed by Kubernetes, and upon
application restart, it takes a long time for the docker container to replicate the state and get back to
processing the dat
a. How can you improve dramatically the application restart?
A
Explanation:
Although any Kafka Streams application is stateless as the state is stored in Kafka, it can take a while
and lots of resources to recover the state from Kafka. In order to speed up recovery, it is advised to
store the Kafka Streams state on a persistent volume, so that only the missing part of the state needs
to be recovered.
What client protocol is supported for the schema registry? (select two)
A, B
Explanation:
clients can interact with the schema registry using the HTTP or HTTPS interface
If I produce to a topic that does not exist, and the broker setting auto.create.topic.enable=true, what
will happen?
C
Explanation:
The broker settings comes into play when a topic is auto created
You want to perform table lookups against a KTable everytime a new record is received from the
KStream. What is the output of KStream-KTable join?
D
Explanation:
Here KStream is being processed to create another KStream.
Using the Confluent Schema Registry, where are Avro schema stored?
D
Explanation:
The Schema Registry stores all the schemas in the _schemas Kafka topic
Which of the following setting increases the chance of batching for a Kafka Producer?
D
Explanation:
linger.ms forces the producer to wait to send messages, hence increasing the chance of creating
batches