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?
(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 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.)
Which two statements are correct about transactions in Kafka?
(Select two.)
Your application is consuming from a topic with one consumer group.
The number of running consumers is equal to the number of partitions.
Application logs show that some consumers are leaving the consumer group during peak time, triggering a rebalance. You also notice that your application is processing many duplicates.
You need to stop consumers from leaving the consumer group.
What should you do?
(A stream processing application tracks user activity in online shopping carts, including items added, removed, and ordered throughout the day for each user.
You need to capture data to identify possible periods of user inactivity.
Which type of Kafka Streams window should you use?)
You are building a system for a retail store selling products to customers.
Which three datasets should you model as a GlobalKTable?
(Select three.)
(You are building real-time streaming applications using Kafka Streams.
Your application has a custom transformation.
You need to define custom processors in Kafka Streams.
Which tool should you use?)
What is the default maximum size of a message the Apache Kafka broker can accept?
(You create a topic with five partitions.
What can you assume about messages read from that topic by a single consumer group?)
What is a consequence of increasing the number of partitions in an existing Kafka topic?
You have a topic with four partitions. The application reads from it using two consumers in a single consumer group.
Processing is CPU-bound, and lag is increasing.
What should you do?
(Which configuration is valid for deploying a JDBC Source Connector to read all rows from the orders table and write them to the dbl-orders topic?)
(A consumer application needs to use an at-most-once delivery semantic.
What is the best consumer configuration and code skeleton to avoid duplicate messages being read?)
(You have a topic with four partitions. The application reading this topic is using a consumer group with two consumers.
Throughput is smoothly distributed among partitions, but application lag is increasing.
Application monitoring shows that message processing is consuming all available CPU resources.
Which action should you take to resolve this issue?)
(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 are working on a Kafka cluster with three nodes. You create a topic named orders with:
replication.factor = 3
min.insync.replicas = 2
acks = allWhat exception will be generated if two brokers are down due to network delay?
You need to consume messages from Kafka using the command-line interface (CLI).
Which command should you use?
(You have a Kafka consumer in production actively reading from a critical topic from which multiple other applications are consuming.
You have a new requirement to update the offset of your consumer to start reading from the beginning of the topic.
Which action would you take?)
Which two producer exceptions are examples of the class RetriableException? (Select two.)