Pre-Summer Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Confluent CCDAK - Confluent Certified Developer for Apache Kafka Certification Examination

Page: 2 / 3
Total 90 questions

Which two statements are correct when assigning partitions to the consumers in a consumer group using the assign() API?

(Select two.)

A.

It is mandatory to subscribe to a topic before calling assign() to assign partitions.

B.

The consumer chooses which partition to read without any assignment from brokers.

C.

The consumer group will not be rebalanced if a consumer leaves the group.

D.

All topics must have the same number of partitions to use assign() API.

(You are writing to a Kafka topic with producer configuration acks=all.

The producer receives acknowledgements from the broker but still creates duplicate messages due to network timeouts and retries.

You need to ensure that duplicate messages are not created.

Which producer configuration should you set?)

A.

enable.auto.commit=true

B.

retries=2147483647max.in.flight.requests.per.connection=5enable.idempotence=false

C.

retries=2147483647max.in.flight.requests.per.connection=1enable.idempotence=true

D.

retries=0max.in.flight.requests.per.connection=5enable.idempotence=true

(You want to read messages from all partitions of a topic in every consumer instance of your application.

How do you do this?)

A.

Use the assign() method using all topic-partitions of the topic as argument.

B.

Use the assign() method with the topic name as argument.

C.

Use the subscribe() method with a regular expression argument.

D.

Use the subscribe() method with an empty consumer group name configuration.

Match each configuration parameter with the correct option.

To answer choose a match for each option from the drop-down. Partial

credit is given for each correct answer.

What is the default maximum size of a message the Apache Kafka broker can accept?

A.

1MB

B.

2MB

C.

5MB

D.

10MB

Which partition assignment minimizes partition movements between two assignments?

A.

RoundRobinAssignor

B.

StickyAssignor

C.

RangeAssignor

D.

PartitionAssignor

(Which configuration determines the maximum number of records a consumer can poll in a single call to poll()?)

A.

max.poll.records

B.

max.records.consumer

C.

fetch.max.records

D.

max.poll.records.interval

You have a Kafka client application that has real-time processing requirements.

Which Kafka metric should you monitor?

A.

Consumer lag between brokers and consumers

B.

Total time to serve requests to replica followers

C.

Consumer heartbeat rate to group coordinator

D.

Aggregate incoming byte rate

(You started a new Kafka Connect worker.

Which configuration identifies the Kafka Connect cluster that your worker will join?)

A.

cluster.id

B.

worker.id

C.

group.id

D.

connector.id

You are working on a Kafka cluster with three nodes. You create a topic named orders with:

replication.factor = 3

min.insync.replicas = 2

acks = allWhat exception will be generated if two brokers are down due to network delay?

A.

NotEnoughReplicasException

B.

NetworkException

C.

NotCoordinatorException

D.

NotLeaderForPartitionException