Exclusive Black Friday Deal: 70% Off All Exam Bundles! Use coupon code below to unlock your savings! - Ends in 0d 00h 00m 00s - Coupon code: Friday70

Free Confluent Certified Developer for Apache Kafka Certification Examination Practice Questions

Question # 21

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?

Options:

A.  

NotEnoughReplicasException

B.  

NetworkException

C.  

NotCoordinatorException

D.  

NotLeaderForPartitionException

Discussion 0
Question # 22

(Your application consumes from a topic configured with a deserializer.

You want the application to be resilient to badly formatted records (poison pills).

You surround the poll() call with a try/catch block for RecordDeserializationException.

You need to log the bad record, skip it, and continue processing other records.

Which action should you take in the catch block?)

Options:

A.  

Log the bad record and seek the consumer to the offset of the next record.

B.  

Log the bad record and call consumer.skip() method.

C.  

Throw a runtime exception to trigger a restart of the application.

D.  

Log the bad record; no other action is needed.

Discussion 0
Question # 23

(You are writing a producer application and need to ensure proper delivery.

You configure the producer with acks=all.

Which two actions should you take to ensure proper error handling?

Select two.)

Options:

A.  

Check the value of ProducerRecord.status().

B.  

Use a callback argument in producer.send() where you check delivery status.

C.  

Check that producer.send() returned a RecordMetadata object and is not null.

D.  

Surround the call to producer.send() with a try/catch block to catch KafkaException.

Discussion 0
Question # 24

Clients that connect to a Kafka cluster are required to specify one or more brokers in the bootstrap.servers parameter.

What is the primary advantage of specifying more than one broker?

Options:

A.  

It provides redundancy in making the initial connection to the Kafka cluster.

B.  

It forces clients to enumerate every single broker in the cluster.

C.  

It is the mechanism to distribute a topic’s partitions across multiple brokers.

D.  

It provides the ability to wake up dormant brokers.

Discussion 0
Question # 25

You are writing a producer application and need to ensure proper delivery. You configure the producer with acks=all.

Which two actions should you take to ensure proper error handling?

(Select two.)

Options:

A.  

Use a callback argument in producer.send() where you check delivery status.

B.  

Check that producer.send() returned a RecordMetadata object and is not null.

C.  

Surround the call of producer.send() with a try/catch block to catch KafkaException.

D.  

Check the value of ProducerRecord.status().

Discussion 0
Question # 26

You have a consumer group with default configuration settings reading messages from your Kafka cluster.

You need to optimize throughput so the consumer group processes more messages in the same amount of time.

Which change should you make?

Options:

A.  

Remove some consumers from the consumer group.

B.  

Increase the number of bytes the consumers read with each fetch request.

C.  

Disable auto commit and have the consumers manually commit offsets.

D.  

Decrease the session timeout of each consumer.

Discussion 0
Question # 27

(You have a topic with four partitions. The application reading this topic is using a consumer group with two consumers.

Throughput is smoothly distributed among partitions, but application lag is increasing.

Application monitoring shows that message processing is consuming all available CPU resources.

Which action should you take to resolve this issue?)

Options:

A.  

Add more partitions to the topic to increase the level of parallelism of the processing.

B.  

Increase the max.poll.records property of consumers.

C.  

Add more consumers to increase the level of parallelism of the processing.

D.  

Decrease the max.poll.records property of consumers.

Discussion 0

CCDAK PDF

CCDAK PDF (Printable)
$46.5
$154.99

CCDAK Testing Engine

CCDAK PDF (Printable)
$51
$169.99

CCDAK PDF + Testing Engine

CCDAK PDF (Printable)
$63.9
$212.99

Free Exams Sample Questions