What is not a valid authentication mechanism in Kafka?
Reveal answer details Close answer details
Correct answerC
Learn more about security here
https://kafka.apache.org/documentation/#security
Confluent · CCDAK
Preview real exam questions, verified answers and available explanations before choosing a study plan.
|
Single choice
What is not a valid authentication mechanism in Kafka? Reveal answer details Close answer detailsCorrect answerC Explanation Learn more about security here
Single choice
If I produce to a topic that does not exist, and the broker setting auto.create.topic.enable=true, what will happen? Reveal answer details Close answer detailsCorrect answerC Explanation The broker settings comes into play when a topic is auto created
Single choice
Consumer failed to process record # 10 and succeeded in processing record # 11. Select the course of action that you should choose to guarantee at least once processing Reveal answer details Close answer detailsCorrect answerB
Multiple choice
What are the requirements for a Kafka broker to connect to a Zookeeper ensemble? (select two) Reveal answer details Close answer detailsCorrect answersB, D Explanation Each broker must have a unique broker id and connect to the same zk ensemble and root zNode
Single choice
There are five brokers in a cluster, a topic with 10 partitions and replication factor of 3, and a quota of producer_bytes_rate of 1 MB/sec has been specified for the client. What is the maximum throughput allowed for the client? Reveal answer details Close answer detailsCorrect answerD Explanation Each producer is allowed to produce @ 1MB/s to a broker. Max throughput 5 * 1MB, because we have 5 brokers.
Single choice
How much should be the heap size of a broker in a production setup on a machine with 256 GB of RAM, in PLAINTEXT mode? Reveal answer details Close answer detailsCorrect answerA Explanation In Kafka, a small heap size is needed, while the rest of the RAM goes automatically to the page cache (managed by the OS). The heap size goes slightly up if you need to enable SSL
Single choice
A topic has three replicas and you set min.insync.replicas to 2. Reveal answer details Close answer detailsCorrect answerA Explanation With this configuration, a single in-sync replica becomes read-only. Produce request will receive NotEnoughReplicasException.
Single choice
How will you find out all the partitions without a leader? Reveal answer details Close answer detailsCorrect answerC Explanation Please note that as of Kafka 2.2, the --zookeeper option is deprecated and you can now usekafka- topics.sh --bootstrap-server localhost:9092 --describe --unavailable-partitions
Single choice
Where are KSQL-related data and metadata stored? Reveal answer details Close answer detailsCorrect answerA Explanation metadata is stored in and built from the KSQL command topic. Each KSQL server has its own in-memory version of the metastore.
Single choice
Your manager would like to have topic availability over consistency. Which setting do you need to change in order to enable that? Reveal answer details Close answer detailsCorrect answerB Explanation unclean.leader.election.enable=true allows non ISR replicas to become leader, ensuring availability but losing consistency as data loss will occur
Single choice
In Avro, removing a field that does not have a default is a__schema evolution Reveal answer details Close answer detailsCorrect answerC Explanation Clients with new schema will be able to read records saved with old schema.
Single choice
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? Reveal answer details Close answer detailsCorrect answerD Explanation You cannot have more sink tasks (= consumers) than the number of partitions, so 2.
Single choice
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. Reveal answer details Close answer detailsCorrect answerA Explanation 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
Multiple choice
By default, which replica will be elected as a partition leader? (select two) Reveal answer details Close answer detailsCorrect answersB, D Explanation Preferred leader is a broker that was leader when topic was created. It is preferred because when partitions are first created, the leaders are balanced between brokers. Otherwise, any of the in-sync replicas (ISR) will be elected leader, as long as unclean.leader.election=false (by default)
Single choice
You want to perform table lookups against a KTable everytime a new record is received from the KStream. What is the output of KStream-KTable join? Reveal answer details Close answer detailsCorrect answerD Explanation Here KStream is being processed to create another KStream.
Single choice
You are using JDBC source connector to copy data from 2 tables to two Kafka topics. There is one connector created with max.tasks equal to 2 deployed on a cluster of 3 workers. How many tasks are launched? Reveal answer details Close answer detailsCorrect answerC Explanation we have two tables, so the max number of tasks is 2
Single choice
A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored? Reveal answer details Close answer detailsCorrect answerB
Single choice
To continuously export data from Kafka into a target database, I should use Reveal answer details Close answer detailsCorrect answerC Explanation Kafka Connect Sink is used to export data from Kafka to external databases and Kafka Connect Source is used to import from external databases into Kafka.
Multiple choice
Which of the following errors are retriable from a producer perspective? (select two) Reveal answer details Close answer detailsCorrect answersC, D Explanation Both of these are retriable errors, others non-retriable errors. See the full list of errors and their "retriable" status here
Single choice
To get acknowledgement of writes to only the leader partition, we need to use the config... Reveal answer details Close answer detailsCorrect answerA Explanation Producers can set acks=1 to get acknowledgement from partition leader only.
Single choice
Two consumers share the same group.id (consumer group id). Each consumer will Reveal answer details Close answer detailsCorrect answerB Explanation Each consumer is assigned a different partition of the topic to consume.
Single choice
A consumer starts and has auto.offset.reset=none, and the topic partition currently has data for offsets going from 45 to 2311. The consumer group has committed the offset 10 for the topic before. Where will the consumer read from? Reveal answer details Close answer detailsCorrect answerC Explanation auto.offset.reset=none means that the consumer will crash if the offsets it's recovering from have been deleted from Kafka, which is the case here, as 10 < 45
Single choice
If I want to send binary data through the REST proxy to topic "test_binary", it needs to be base64 encoded. Reveal answer details Close answer detailsCorrect answerB Explanation On the producer side, after receiving base64 data, the REST Proxy will convert it into bytes and then send that bytes payload to Kafka. Therefore consumers reading directly from Kafka will receive binary data. |