Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtreat

CCDAK Confluent Certified Developer for Apache Kafka Certification Examination Questions and Answers

Questions 4

There are two consumers C1 and C2 belonging to the same group G subscribed to topics T1 and T2. Each of the topics has 3 partitions. How will the partitions be assigned to consumers with Partition Assigner being Round Robin Assigner?

Options:

A.

C1 will be assigned partitions 0 and 2 from T1 and partition 1 from T2. C2 will have partition 1 from T1 and partitions 0 and 2 from T2.

B.

Two consumers cannot read from two topics at the same time

C.

C1 will be assigned partitions 0 and 1 from T1 and T2, C2 will be assigned partition 2 from T1 and T2.

D.

All consumers will read from all partitions

Buy Now
Questions 5

When auto.create.topics.enable is set to true in Kafka configuration, what are the circumstances under which a Kafka broker automatically creates a topic? (select three)

Options:

A.

Client requests metadata for a topic

B.

Consumer reads message from a topic

C.

Client alters number of partitions of a topic

D.

Producer sends message to a topic

Buy Now
Questions 6

To prevent network-induced duplicates when producing to Kafka, I should use

Options:

A.

max.in.flight.requests.per.connection=1

B.

enable.idempotence=true

C.

retries=200000

D.

batch.size=1

Buy Now
Questions 7

Which of the following Kafka Streams operators are stateless? (select all that apply)

Options:

A.

map

B.

filter

C.

flatmap

D.

branch

E.

groupBy

F.

aggregate

Buy Now
Questions 8

There are 3 brokers in the cluster. You want to create a topic with a single partition that is resilient to one broker failure and one broker maintenance. What is the replication factor will you specify while creating the topic?

Options:

A.

6

B.

3

C.

2

D.

1

Buy Now
Questions 9

To get acknowledgement of writes to only the leader partition, we need to use the config...

Options:

A.

acks=1

B.

acks=0

C.

acks=all

Buy Now
Questions 10

Which is an optional field in an Avro record?

Options:

A.

doc

B.

name

C.

namespace

D.

fields

Buy Now
Questions 11

A consumer wants to read messages from partitions 0 and 1 of a topic topic1. Code snippet is shown below.

consumer.subscribe(Arrays.asList("topic1"));

List pc = new ArrayList<>();

pc.add(new PartitionTopic("topic1", 0));

pc.add(new PartitionTopic("topic1", 1));

consumer.assign(pc);

Options:

A.

This works fine. subscribe() will subscribe to the topic and assign() will assign partitions to the consumer.

B.

Throws IllegalStateException

Buy Now
Questions 12

Select all that applies (select THREE)

Options:

A.

min.insync.replicas is a producer setting

B.

acks is a topic setting

C.

acks is a producer setting

D.

min.insync.replicas is a topic setting

E.

min.insync.replicas matters regardless of the values of acks

F.

min.insync.replicas only matters if acks=all

Buy Now
Questions 13

Partition leader election is done by

Options:

A.

The consumers

B.

The Kafka Broker that is the Controller

C.

Zookeeper

D.

Vote amongst the brokers

Buy Now
Questions 14

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?

Options:

A.

6

B.

1

C.

2

D.

3

Buy Now
Questions 15

How will you read all the messages from a topic in your KSQL query?

Options:

A.

KSQL reads from the beginning of a topic, by default.

B.

KSQL reads from the end of a topic. This cannot be changed.

C.

Use KSQL CLI to set auto.offset.reset property to earliest

Buy Now
Questions 16

You are using JDBC source connector to copy data from 3 tables to three 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?

Options:

A.

2

B.

1

C.

3

D.

6

Buy Now
Questions 17

Which of these joins does not require input topics to be sharing the same number of partitions?

Options:

A.

KStream-KTable join

B.

KStream-KStream join

C.

KStream-GlobalKTable

D.

KTable-KTable join

Buy Now
Questions 18

How will you find out all the partitions without a leader?

Options:

A.

kafka-topics.sh --broker-list localhost:9092 --describe --under-replicated-partitions

B.

kafka-topics.sh --bootstrap-server localhost:2181 --describe --unavailable-partitions

C.

kafka-topics.sh --zookeeper localhost:2181 --describe --unavailable-partitions

D.

kafka-topics.sh --zookeeper localhost:2181 --describe --under-replicated-partitions

Buy Now
Questions 19

If I supply the setting compression.type=snappy to my producer, what will happen? (select two)

Options:

A.

The Kafka brokers have to de-compress the data

B.

The Kafka brokers have to compress the data

C.

The Consumers have to de-compress the data

D.

The Consumers have to compress the data

E.

The Producers have to compress the data

Buy Now
Questions 20

StreamsBuilder builder = new StreamsBuilder();

KStream textLines = builder.stream("word-count-input");

KTable wordCounts = textLines

.mapValues(textLine -> textLine.toLowerCase())

.flatMapValues(textLine -> Arrays.asList(textLine.split("\W+")))

.selectKey((key, word) -> word)

.groupByKey()

.count(Materialized.as("Counts"));

wordCounts.toStream().to("word-count-output", Produced.with(Serdes.String(), Serdes.Long()));

builder.build();

What is an adequate topic configuration for the topic word-count-output?

Options:

A.

max.message.bytes=10000000

B.

cleanup.policy=delete

C.

compression.type=lz4

D.

cleanup.policy=compact

Buy Now
Questions 21

A Zookeeper configuration has tickTime of 2000, initLimit of 20 and syncLimit of 5. What's the timeout value for followers to connect to Zookeeper?

Options:

A.

20 sec

B.

10 sec

C.

2000 ms

D.

40 sec

Buy Now
Questions 22

You are sending messages with keys to a topic. To increase throughput, you decide to increase the number of partitions of the topic. Select all that apply.

Options:

A.

All the existing records will get rebalanced among the partitions to balance load

B.

New records with the same key will get written to the partition where old records with that key were written

C.

New records may get written to a different partition

D.

Old records will stay in their partitions

Buy Now
Exam Code: CCDAK
Exam Name: Confluent Certified Developer for Apache Kafka Certification Examination
Last Update: May 17, 2024
Questions: 150
CCDAK pdf

CCDAK PDF

$28  $80
CCDAK Engine

CCDAK Testing Engine

$33.25  $95
CCDAK PDF + Engine

CCDAK PDF + Testing Engine

$45.5  $130