Free CCDAK Exam Braindumps (page: 19)

Page 19 of 38

How often is log compaction evaluated?

  1. Every time a new partition is created
  2. Every time a segment is closed
  3. Every time a message is sent to Kafka
  4. Every time a message is flushed to disk

Answer(s): B

Explanation:

Log compaction is evaluated every time a segment is closed. It will be triggered if enough data is "dirty" (see dirty ratio config)



A producer application in a developer machine was able to send messages to a Kafka topic. After copying the producer application into another developer's machine, the producer is able to connect to Kafka but unable to produce to the same Kafka topic because of an authorization issue.

What is the likely issue?

  1. Broker configuration needs to be changed to allow a different producer
  2. You cannot copy a producer application from one machine to another
  3. The Kafka ACL does not allow another machine IP
  4. The Kafka Broker needs to be rebooted

Answer(s): C

Explanation:

ACLs take "Host" as a parameter, which represents an IP. It can be * (all IP), or a specific IP. Here, it's a specific IP as moving a producer to a different machine breaks the consumer, so the ACL needs to be updated



A producer just sent a message to the leader broker for a topic partition. The producer used acks=1 and therefore the data has not yet been replicated to followers. Under which conditions will the consumer see the message?

  1. Right away
  2. When the message has been fully replicated to all replicas
  3. Never, the produce request will fail
  4. When the high watermark has advanced

Answer(s): D

Explanation:

The high watermark is an advanced Kafka concept, and is advanced once all the ISR replicates the latest offsets. A consumer can only read up to the value of the High Watermark (which can be less than the highest offset, in the case of acks=1)



Which Kafka CLI should you use to consume from a topic?

  1. kafka-console-consumer
  2. kafka-topics
  3. kafka-console
  4. kafka-consumer-groups

Answer(s): A

Explanation:

Example kafka-console-consumer --bootstrap-server 127.0.0.1:9092 --topic test --from-beginning



Page 19 of 38



Post your Comments and Discuss Confluent CCDAK exam with other Community members:

Testbear commented on June 13, 2023
please upload
ITALY
upvote

Testbear commented on June 13, 2023
please upload
ITALY
upvote