CCDAK practice questions, page 3 of 3, with answer review and explanations.
Question 11
What is the purpose of the key.serializer property?
key.serializer specifies the serializer class to use for the key of the message.
key.serializer specifies the serializer class to use for the value of the message.
key.serializer determines which class to use for the message.
key.serializer determines where to send the message.
Question 12
You are working on an Orders microservice that is publishing messages to an Orders topic. It is a business requirement that the Orders for a given customer are processed sequentially. The Orders topic is partitioned for scalability. You need to ensure the business requirements are met during application development. Which action should you take?
Enable producer Idempotence. Ensure the message key is set to current timestamp, set batch.size =1, and set linger.ms to 0, and the number of partitions is not changed.
Enable producer Idempotence. Ensure the message key is set to customer id, set max-in-flight requests per connection to less than or equal to 5, and the number of partitions is not changed.
Enable producer Idempotence. Ensure the message key is set to producer id, set max-in-flight requests per connection to 1, and the number of partitions is changed.
Enable producer Idempotence. Ensure the message key is set to current timestamp, set linger.ms to 0, set acks=0, and the number of partitions is not changed.
Question 13
Which configuration determines how many bytes of data are collected before sending messages to the Kafka broker?
batch.size
max.block.size
buffer.memory
send.buffer.bytes
Question 14
Your company has three Kafka clusters: Development, Testing, and Production. The Production cluster is running out of storage so you add a new node to the Kafka cluster. Which two statements about the new node are true? (Choose two.)
A node id will be assigned to the new node automatically.
A newly added node will have KRaft controller role by default.
A new node will not have any partitions assigned to it unless a new topic is created.
A new node can be added without stopping existing cluster nodes.