(You need to send a JSON message on the wire. The message key is a string.
How would you do this?)
You need to set alerts on key broker metrics to trigger notifications when the cluster is unhealthy.
Which are three minimum broker metrics to monitor?
(Select three.)
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?
(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?)
(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 need to collect logs from a host and write them to a Kafka topic named 'logs-topic'. You decide to use Kafka Connect File Source connector for this task.
What is the preferred deployment mode for this connector?
(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?)
(You create a topic with five partitions.
What can you assume about messages read from that topic by a single consumer group?)
You are sending messages to a Kafka cluster in JSON format and want to add more information related to each message:
Format of the message payload
Message creation time
A globally unique identifier that allows the message to be traced through the systemWhere should this additional information be set?
A stream processing application is consuming from a topic with five partitions. You run three instances of the application. Each instance has num.stream.threads=5.
You need to identify the number of stream tasks that will be created and how many will actively consume messages from the input topic.
Which two producer exceptions are examples of the class RetriableException? (Select two.)
You have a topic t1 with six partitions. You use Kafka Connect to send data from topic t1 in your Kafka cluster to Amazon S3. Kafka Connect is configured for two tasks.
How many partitions will each task process?
You are creating a Kafka Streams application to process retail data.
Match the input data streams with the appropriate Kafka Streams object.
You have a Kafka client application that has real-time processing requirements.
Which Kafka metric should you monitor?
(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 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 are designing a stream pipeline to monitor the real-time location of GPS trackers, where historical location data is not required.
Each event has:
• Key: trackerId
• Value: latitude, longitude
You need to ensure that the latest location for each tracker is always retained in the Kafka topic.
Which topic configuration parameter should you set?)
You need to consume messages from Kafka using the command-line interface (CLI).
Which command should you use?
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.)