A producer application was sending messages to a partition with a replication factor of 2 by connecting to Broker 1 that was hosting partition leader. If the Broker 1 goes down, what will happen?
Once the client connects to any broker, it is connected to the entire cluster and in case of leadership changes, the clients automatically do a Metadata Request to an available broker to find out who is the new leader for the topic. Hence the producer will automatically keep on producing to the correct Kafka Broker
What isn't an internal Kafka Connect topic?
connect-configs stores configurations, connect-status helps to elect leaders for connect, and connect-offsets store source offsets for source connectors
You want to sink data from a Kafka topic to S3 using Kafka Connect. There are 10 brokers in the cluster, the topic has 2 partitions with replication factor of 3. How many tasks will you configure for the S3 connector?
You cannot have more sink tasks (= consumers) than the number of partitions, so 2.
while (true) {
ConsumerRecords
try {
consumer.commitSync();
} catch (CommitFailedException e) {
log.error("commit failed", e)
}
for (ConsumerRecord
{
System.out.printf("topic = %s, partition = %s, offset =
%d, customer = %s, country = %s
",
record.topic(), record.partition(),
record.offset(), record.key(), record.value());
}
}
What kind of delivery guarantee this consumer offers?
Here offset is committed before processing the message. If consumer crashes before processing the message, message will be lost when it comes back up.
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)
Both key and value serializer are mandatory.
Daniel Robinson
21 days agoBarbara Flores
2 months agoMatthew Davis
2 months agoJoshua Reed
3 months agoNancy Harris
3 months agoJeffrey Williams
4 months agoHarold Roberts
4 months agoAshley Flores
5 months agoMichelle Adams
5 months agoDonald Walker
6 months agoJames Rivera
6 months agoMichelle Perez
6 months agoEdward Miller
6 months agoGerald Anderson
5 months agoElizabeth Nelson
5 months agoCoral
7 months agoErin
7 months agoRex
7 months agoPortia
7 months agoFabiola
8 months agoAnnamae
8 months agoAllene
8 months agoJosphine
9 months agoMaurine
9 months agoMatthew
9 months agoMerri
9 months agoAlbina
10 months agoAugustine
10 months agoMarylou
10 months agoYoulanda
10 months agoOllie
11 months agoAlex
11 months agoGearldine
11 months agoEmiko
11 months agoRozella
12 months agoOnita
12 months agoTawna
1 year agoWilda
1 year agoOwen
1 year agoSkye
1 year agoLizette
1 year agoLonny
1 year agoShawna
1 year agoVincent
1 year agoCory
1 year agoFrancisca
1 year agoCarry
1 year agoNorah
2 years agoBurma
2 years agoMica
2 years agoCatina
2 years agoLouisa
2 years agoJaime
2 years agoNikita
2 years agoAnnita
2 years agoGladys
2 years agoMira
2 years agoRolande
2 years agoCarey
2 years agoVirgina
2 years agoAllene
2 years agoBroderick
2 years agoGary
2 years agoShelton
2 years agoMisty
2 years agoMabel
2 years agoDorian
2 years agoMicheal
2 years agoLinsey
2 years ago