A Review Of 100% Correct CCDAK Exam Prep

Your success in Confluent CCDAK is our sole target and we develop all our CCDAK braindumps in a way that facilitates the attainment of this target. Not only is our CCDAK study material the best you can find, it is also the most detailed and the most updated. CCDAK Practice Exams for Confluent CCDAK are written to the highest standards of technical accuracy.

Page: 1 / 12
Total 150 questions Full Exam Access
Question 1
You have a consumer group of 12 consumers and when a consumer gets killed by the process management system, rather abruptly, it does not trigger a graceful shutdown of your consumer. Therefore, it takes up to 10 seconds for a rebalance to happen. The business would like to have a 3 seconds rebalance time. What should you do? (select two)
My answer: -
Reference answer: BE
Reference analysis:

session.timeout.ms must be decreased to 3 seconds to allow for a faster rebalance, and the heartbeat thread must be quicker, so we also need to decrease heartbeat.interval.ms

Question 2
To read data from a topic, the following configuration is needed for the consumers
My answer: -
Reference answer: B
Reference analysis:

All brokers can respond to Metadata request, so a client can connect to any broker in the cluster.

Question 3
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);
My answer: -
Reference answer: B
Reference analysis:

subscribe() and assign() cannot be called by the same consumer, subscribe() is used to leverage the consumer group mechanism, while assign() is used to manually control partition assignment and reads assignment

Question 4
Select all that applies (select THREE)
My answer: -
Reference answer: CDF
Reference analysis:

acks is a producer setting min.insync.replicas is a topic or broker setting and is only effective when acks=all

Question 5
In Avro, removing a field that does not have a default is a schema evolution
My answer: -
Reference answer: C
Reference analysis:

Clients with new schema will be able to read records saved with old schema.

Question 6
An ecommerce wesbite sells some custom made goods. What's the natural way of modeling this data in Kafka streams?
My answer: -
Reference answer: B
Reference analysis:

Mostly-static data is modeled as a table whereas business transactions should be modeled as a stream.

Question 7
In Avro, adding a field to a record without default is a schema evolution
My answer: -
Reference answer: A
Reference analysis:

Clients with old schema will be able to read records saved with new schema.

Question 8
If you enable an SSL endpoint in Kafka, what feature of Kafka will be lost?
My answer: -
Reference answer: C
Reference analysis:

With SSL, messages will need to be encrypted and decrypted, by being first loaded into the JVM, so you lose the zero copy optimization. See more information herehttps://twitter.com/ijuma/status/1161303431501324293?s=09

Question 9
In the Kafka consumer metrics it is observed that fetch-rate is very high and each fetch is small. What steps will you take to increase throughput?
My answer: -
Reference answer: E
Reference analysis:

This will allow consumers to wait and receive more bytes in each fetch request.

Question 10
Two consumers share the same group.id (consumer group id). Each consumer will
My answer: -
Reference answer: B
Reference analysis:

Each consumer is assigned a different partition of the topic to consume.

Question 11
Which KSQL queries write to Kafka?
My answer: -
Reference answer: CD
Reference analysis:

SHOW STREAMS and EXPLAIN <query> statements run against the KSQL server that the KSQL client is connected to. They don't communicate directly with Kafka. CREATE STREAM WITH <topic> and CREATE TABLE WITH <topic> write metadata to the KSQL command topic. Persistent queries based on CREATE STREAM AS SELECT and CREATE TABLE AS SELECT read and write to Kafka topics. Non-persistent queries based on SELECT that are stateless only read from Kafka topics, for example SELECT … FROM foo WHERE …. Non-persistent queries that are stateful read and write to Kafka, for example, COUNT and JOIN. The data in Kafka is deleted automatically when you terminate the query with CTRL-C.

Question 12
If I want to send binary data through the REST proxy, it needs to be base64 encoded. Which component needs to encode the binary data into base 64?
My answer: -
Reference answer: A
Reference analysis:

The REST Proxy requires to receive data over REST that is already base64 encoded, hence it is the responsibility of the producer

Question 13
By default, which replica will be elected as a partition leader? (select two)
My answer: -
Reference answer: BD
Reference analysis:

Preferred leader is a broker that was leader when topic was created. It is preferred because when partitions are first created, the leaders are balanced between brokers. Otherwise, any of the in-sync replicas (ISR) will be elected leader, as long as unclean.leader.election=false (by default)

Question 14
What is the risk of increasing max.in.flight.requests.per.connection while also enabling retries in a producer?
My answer: -
Reference answer: B
Reference analysis:

Some messages may require multiple retries. If there are more than 1 requests in flight, it may result in messages received out of order. Note an exception to this rule is if you enable the producer settingenable.idempotence=true which takes care of the out of ordering case on its own. Seehttps://issues.apache.org/jira/browse/KAFKA-5494

Question 15
Where are the ACLs stored in a Kafka cluster by default?
My answer: -
Reference answer: A
Reference analysis:

ACLs are stored in Zookeeper node /kafka-acls/ by default.

Question 16
What data format isn't natively available with the Confluent REST Proxy?
My answer: -
Reference answer: C
Reference analysis:

Protocol buffers isn't a natively supported type for the Confluent REST Proxy, but you may use the binary format instead

Question 17
What is the disadvantage of request/response communication?
My answer: -
Reference answer: C
Reference analysis:

Point-to-point (request-response) style will couple client to the server.

Question 18
Which Kafka CLI should you use to consume from a topic?
My answer: -
Reference answer: A
Reference analysis:

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

Question 19
To allow consumers in a group to resume at the previously committed offset, I need to set the proper value for...
My answer: -
Reference answer: C
Reference analysis:

Setting a group.id that's consistent across restarts will allow your consumers part of the same group to resume reading from where offsets were last committed for that group

Question 20
What's is true about Kafka brokers and clients from version 0.10.2 onwards?
My answer: -
Reference answer: C
Reference analysis:

Kafka's new bidirectional client compatibility introduced in 0.10.2 allows this. Read more herehttps://www.confluent.io/blog/upgrading-apache-kafka-clients-just-got-easier/

Question 21
Suppose you have 6 brokers and you decide to create a topic with 10 partitions and a replication factor of 3. The brokers 0 and 1 are on rack A, the brokers 2 and 3 are on rack B, and the brokers 4 and 5 are on rack C. If the leader for partition 0 is on broker 4, and the first replica is on broker 2, which broker can host the last replica? (select two)
My answer: -
Reference answer: BE
Reference analysis:

When you create a new topic, partitions replicas are spreads across racks to maintain availability. Hence, the Rack A, which currently does not hold the topic partition, will be selected for the last replica

Question 22
An ecommerce website maintains two topics - a high volume "purchase" topic with 5 partitions and low volume "customer" topic with 3 partitions. You would like to do a stream- table join of these topics. How should you proceed?
My answer: -
Reference answer: C
Reference analysis:

In case of KStream-KStream join, both need to be co-partitioned. This restriction is not applicable in case of join with GlobalKTable, which is the most efficient here.

Question 23
What is returned by a producer.send() call in the Java API?
My answer: -
Reference answer: C
Reference analysis:

Seehttps://kafka.apache.org/21/javadoc/org/apache/kafka/clients/producer/KafkaProducer. html

Question 24
When using plain JSON data with Connect, you see the following error messageorg.apache.kafka.connect.errors.DataExceptionJsonDeserializer with schemas.enable requires "schema" and "payload" fields and may not contain additional fields. How will you fix the error?
My answer: -
Reference answer: C
Reference analysis:

You will need to set the schemas.enable parameters for the converter to false for plain text with no schema.

Question 25
If I supply the setting compression.type=snappy to my producer, what will happen? (select two)
My answer: -
Reference answer: C
Reference analysis:

Kafka transfers data with zero copy and no transformation. Any transformation (including compression) is the responsibility of clients.

Question 26
A client connects to a broker in the cluster and sends a fetch request for a partition in a topic. It gets an exception Not Leader For Partition Exception in the response. How does client handle this situation?
My answer: -
Reference answer: B
Reference analysis:

In case the consumer has the wrong leader of a partition, it will issue a metadata request. The Metadata request can be handled by any node, so clients know afterwards which broker are the designated leader for the topic partitions. Produce and consume requests can only be sent to the node hosting partition leader.

Question 27
What is true about replicas ?
My answer: -
Reference answer: C
Reference analysis:

Replicas are passive - they don't handle produce or consume request. Produce and consume requests get sent to the node hosting partition leader.

Question 28
The Controller is a broker that is... (select two)
My answer: -
Reference answer: AB
Reference analysis:

Controller is a broker that in addition to usual broker functions is responsible for partition leader election. The election of that broker happens thanks to Zookeeper and at any time only one broker can be a controller

Question 29
Kafka is configured with following parameters - log.retention.hours = 168 log.retention.minutes = 168 log.retention.ms = 168 How long will the messages be retained for?
My answer: -
Reference answer: B
Reference analysis:

If more than one similar config is specified, the smaller unit size will take precedence.

Question 30
A Kafka producer application wants to send log messages to a topic that does not include any key. What are the properties that are mandatory to configure for the producer configuration? (select three)
My answer: -
Reference answer: ACD
Reference analysis:

Both key and value serializer are mandatory.

Question 31
How will you find out all the partitions where one or more of the replicas for the partition are not in-sync with the leader?
My answer: -
Reference answer: D
Reference analysis:

None

Question 32
How will you read all the messages from a topic in your KSQL query?
My answer: -
Reference answer: C
Reference analysis:

Consumers can set auto.offset.reset property to earliest to start consuming from beginning. For KSQL, SET 'auto.offset.reset'='earliest';

Question 33
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)
My answer: -
Reference answer: ABD
Reference analysis:

A kafka broker automatically creates a topic under the following circumstances- When a producer starts writing messages to the topic - When a consumer starts reading messages from the topic - When any client requests metadata for the topic

Question 34
Where are KSQL-related data and metadata stored?
My answer: -
Reference answer: A
Reference analysis:

metadata is stored in and built from the KSQL command topic. Each KSQL server has its own in-memory version of the metastore.

Page: 1 / 12
Total 150 questions Full Exam Access