CCDAK Confluent Certified Developer for Apache Kafka Certification Examination Questions and Answers
(Which configuration determines the maximum number of records a consumer can poll in a single call to poll()?)
(You are writing a producer application and need to ensure proper delivery.
You configure the producer with acks=all.
Which two actions should you take to ensure proper error handling?
Select two.)
You create a producer that writes messages about bank account transactions from tens of thousands of different customers into a topic.
Your consumers must process these messages with low latency and minimize consumer lag
Processing takes ~6x longer than producing
Transactions for each bank account must be processed in orderWhich strategy should you use?
Kafka producers can batch messages going to the same partition.
Which statement is correct about producer batching?
(Your application consumes from a topic configured with a deserializer.
You want the application to be resilient to badly formatted records (poison pills).
You surround the poll() call with a try/catch block for RecordDeserializationException.
You need to log the bad record, skip it, and continue processing other records.
Which action should you take in the catch block?)
(An S3 source connector named s3-connector stopped running.
You use the Kafka Connect REST API to query the connector and task status.
One of the three tasks has failed.
You need to restart the connector and all currently running tasks.
Which REST request will restart the connector instance and all its tasks?)
You want to connect with username and password to a secured Kafka cluster that has SSL encryption.
Which properties must your client include?
(You create an Orders topic with 10 partitions.
The topic receives data at high velocity.
Your Kafka Streams application initially runs on a server with four CPU threads.
You move the application to another server with 10 CPU threads to improve performance.
What does this example describe?)
You need to correctly join data from two Kafka topics.
Which two scenarios will allow for co-partitioning?
(Select two.)
Your Kafka cluster has five brokers. The topic t1 on the cluster has:
Two partitions
Replication factor = 4
min.insync.replicas = 3You need strong durability guarantees for messages written to topic t1.You configure a producer acks=all and all the replicas for t1 are in-sync.How many brokers need to acknowledge a message before it is considered committed?
A stream processing application is tracking user activity in online shopping carts.
You want to identify periods of user inactivity.
Which type of Kafka Streams window should you use?
The producer code below features a Callback class with a method called onCompletion().
When will the onCompletion() method be invoked?
You have a consumer group with default configuration settings reading messages from your Kafka cluster.
You need to optimize throughput so the consumer group processes more messages in the same amount of time.
Which change should you make?
What is a consequence of increasing the number of partitions in an existing Kafka topic?
A producer is configured with the default partitioner. It is sending records to a topic that is configured with five partitions. The record does not contain any key.
What is the result of this?
You create a topic named stream-logs with:
A replication factor of 3
Four partitions
Messages that are plain logs without a keyHow will messages be distributed across partitions?
You create a topic named loT-Data with 10 partitions and replication factor of three.
A producer sends 1 MB messages compressed with Gzip.
Which two statements are true in this scenario?
(Select two.)
(Your configuration parameters for a Source connector and Connect worker are:
• offset.flush.interval.ms=60000
• offset.flush.timeout.ms=500
• offset.storage.topic=connect-offsets
• offset.storage.replication.factor=-1
Which two statements match the expected behavior?
Select two.)
You have a Kafka consumer in production actively reading from a critical topic.
You need to update the offset of your consumer to start reading from the beginning of the topic.
Which action should you take?
You are creating a Kafka Streams application to process retail data.
Match the input data streams with the appropriate Kafka Streams object.
Your company has three Kafka clusters: Development, Testing, and Production.
The Production cluster is running out of storage, so you add a new node.
Which two statements about the new node are true?
(Select two.)

