Suppose you have 6 brokers and you decide to create a topic with 10 partitions and a replication factor of 3. The brokers 0 and 1 are on rack A, the brokers 2 and 3 are on rack B, and the brokers 4 and 5 are on rack C. If the leader for partition 0 is on broker 4, and the first replica is on broker 2, which broker can host the last replica? (select two)
When you create a new topic, partitions replicas are spreads across racks to maintain availability. Hence, the Rack A, which currently does not hold the topic partition, will be selected for the last replica
What is true about partitions? (select two)
Only one of the replicas is elected as partition leader. And a broker can definitely hold many partitions from the same topic on its disk, try creating a topic with 12 partitions on one broker!
What data format isn't natively available with the Confluent REST Proxy?
Protocol buffers isn't a natively supported type for the Confluent REST Proxy, but you may use the binary format instead
To produce data to a topic, a producer must provide the Kafka client with...
All brokers can respond to a Metadata request, so a client can connect to any broker in the cluster and then figure out on its own which brokers to send data to.
A consumer wants to read messages from partitions 0 and 1 of a topic topic1. Code snippet is shown below.
consumer.subscribe(Arrays.asList("topic1"));
List
pc.add(new PartitionTopic("topic1", 0));
pc.add(new PartitionTopic("topic1", 1));
consumer.assign(pc);
subscribe() and assign() cannot be called by the same consumer, subscribe() is used to leverage the consumer group mechanism, while assign() is used to manually control partition assignment and reads assignment
Portia
2 days agoFabiola
9 days agoAnnamae
20 days agoAllene
28 days agoJosphine
1 month agoMaurine
1 month agoMatthew
2 months agoMerri
2 months agoAlbina
2 months agoAugustine
2 months agoMarylou
3 months agoYoulanda
3 months agoOllie
3 months agoAlex
3 months agoGearldine
4 months agoEmiko
4 months agoRozella
4 months agoOnita
5 months agoTawna
5 months agoWilda
5 months agoOwen
5 months agoSkye
5 months agoLizette
6 months agoLonny
6 months agoShawna
6 months agoVincent
6 months agoCory
8 months agoFrancisca
9 months agoCarry
11 months agoNorah
12 months agoBurma
1 year agoMica
1 year agoCatina
1 year agoLouisa
1 year agoJaime
1 year agoNikita
1 year agoAnnita
1 year agoGladys
1 year agoMira
1 year agoRolande
1 year agoCarey
1 year agoVirgina
1 year agoAllene
1 year agoBroderick
1 year agoGary
2 years agoShelton
2 years agoMisty
2 years agoMabel
2 years agoDorian
2 years agoMicheal
2 years agoLinsey
2 years ago