CCDAK Exam Questions
220 real CCDAK exam questions with expert-verified answers and explanations. Page 2 of 5.
- Question #51Developing Kafka Consumers
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 con...
high watermarkacksreplicationconsumer visibility - Question #52Kafka Client Fundamentals
Which Kafka CLI should you use to consume from a topic?
kafka-console-consumerCLIconsumetools - Question #53Deployment and Troubleshooting
The Controller is a broker that is... (select two)
Controller brokerZookeeper electionpartition leader electionbroker roles - Question #54Developing Kafka Consumers
What kind of delivery guarantee this consumer offers? while (true) { ConsumerRecords<String, String> records = consumer.poll(100); try { consumer.commitSync(); } catch (CommitFaile...
delivery semanticsat-most-oncecommitSyncconsumer offset - Question #55Developing with Kafka Streams
What Java library is KSQL based on?
KSQLksqlDBKafka Streamsstreaming SQL - Question #56Developing Kafka Producers
A producer application was sending messages to a partition with a replication factor of 2 by connecting to Broker 1 that was hosting partition leader. If the Broker 1 goes down, wh...
leader electionproducer failoverreplication factorfault tolerance - Question #57Developing Kafka Consumers
How can you gracefully make a Kafka consumer to stop immediately polling data from Kafka and gracefully shut down a consumer application?
consumer shutdownwakeupWakeUpExceptionconsumer lifecycle - Question #58Developing Kafka Producers
To prevent network-induced duplicates when producing to Kafka, I should use
idempotent producerenable.idempotenceduplicate preventionexactly-once - Question #59Application Design
Once sent to a topic, a message can be modified
message immutabilityappend-only logKafka fundamentalslog - Question #60Developing Kafka Consumers
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<TopicPartition> pc = new...
subscribeassignIllegalStateExceptionconsumer API - Question #61Developing Kafka Consumers
A consumer starts and has auto.offset.reset=none, and the topic partition currently has data for offsets going from 45 to 2311. The consumer group has committed the offset 10 for t...
auto.offset.resetconsumer offsetsoffset out of rangeconsumer configuration - Question #62Developing Kafka Producers
The rule "same key goes to the same partition" is true unless...
partitioningpartition keydefault partitionerpartition count - Question #63Developing Kafka Producers
What is returned by a producer.send() call in the Java API?
producer APIFutureRecordMetadataJava API - Question #64Kafka Client Fundamentals
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)
auto.create.topics.enabletopic auto-creationbroker configurationmetadata request - Question #65Monitoring
You are building a consumer application that processes events from a Kafka topic. What is the most important metric to monitor to ensure real-time processing?
consumer lagrecords-lag-maxmonitoring metricsreal-time processing - Question #66Security
What is not a valid authentication mechanism in Kafka?
authentication mechanismsSASLSSLSAML - Question #67Developing Kafka Producers
To produce data to a topic, a producer must provide the Kafka client with...
bootstrap serversproducer configurationbroker discoverytopic name - Question #68Application Design
What is the disadvantage of request/response communication?
messaging patternsrequest/responsecouplingevent-driven architecture - Question #69Developing with Kafka Streams
Which of these joins does not require input topics to be sharing the same number of partitions?
GlobalKTableco-partitioningstream joinsKafka Streams - Question #70Deployment and Troubleshooting
What are the requirements for a Kafka broker to connect to a Zookeeper ensemble? (select two)
Zookeeperbroker.idzookeeper.connectbroker configuration - Question #71Developing Kafka Producers
A kafka topic has a replication factor of 3 and min.insync.replicas setting of 2. How many brokers can go down before a producer with acks=1 can't produce?
acksmin.insync.replicasreplication factorbroker failure tolerance - Question #72Deployment and Troubleshooting
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,...
rack awarenessreplica placementpartition replicationbroker topology - Question #73Developing Kafka Producers
What happens if you write the following code in your producer? producer.send(producerRecord).get()
synchronous sendthroughputFuture.get()producer performance - Question #74Developing Kafka Producers
If I supply the setting compression.type=snappy to my producer, what will happen? (select two)
compressionsnappyproducer compressionconsumer decompression - Question #75Development
What is the default port that the KSQL server listens on?
KSQLdefault portConfluent platformksqlDB - Question #76Deployment and Troubleshooting
How much should be the heap size of a broker in a production setup on a machine with 256 GB of RAM, in PLAINTEXT mode?
JVM heap sizebroker configurationproduction setuppage cache - Question #77Developing Kafka Consumers
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 consume...
session.timeout.msrebalancemax.poll.interval.msconsumer group - Question #78Security
What is the protocol used by Kafka clients to securely connect to the Confluent REST Proxy?
REST ProxyHTTPSSSL/TLSConfluent platform - Question #79Developing Kafka Producers
You are receiving orders from different customer in an "orders" topic with multiple partitions. Each message has the customer name as the key. There is a special customer named ABC...
custom partitionerpartition assignmentproducer partitionermessage routing - Question #80Application Design
In Avro, removing or adding a field that has a default is a __ schema evolution
Avroschema evolutionfull compatibilitySchema Registry - Question #81Developing Kafka Producers
A topic has three replicas and you set min.insync.replicas to 2. If two out of three replicas are not available, what happens when a produce request with acks=all is sent to broker...
min.insync.replicasacks=allNotEnoughReplicasExceptionreplication - Question #82Application Design
Your manager would like to have topic availability over consistency. Which setting do you need to change in order to enable that?
unclean leader electionavailability vs consistencytopic configurationleader election - Question #83Developing with Kafka Streams
Your streams application is reading from an input topic that has 5 partitions. You run 5 instances of your application, each with num.streams.threads set to 5. How many stream task...
stream tasksnum.streams.threadsparallelismpartition count - Question #84Deployment and Troubleshooting
How do you create a topic named test with 3 partitions and 3 replicas using the Kafka CLI?
kafka-topics.shbootstrap-servertopic creationCLI - Question #85Developing with Kafka Streams
An ecommerce wesbite sells some custom made goods. What's the natural way of modeling this data in Kafka streams?
KStreamKTabledata modelingstream-table duality - Question #86Development
Which of the following is not an Avro primitive type?
Avroprimitive typesschemaserialization - Question #87Developing Kafka Consumers
What is a generic unique id that I can use for messages I receive from a consumer?
message IDtopic partition offsetconsumer recordsoffset - Question #88Developing with Kafka Streams
Which of the following Kafka Streams operators are stateless? (select all that apply)
stateless operatorsmapfiltergroupBy - Question #89Kafka Client Fundamentals
What's a Kafka partition made of?
partition internalssegment filesindex fileslog storage - Question #90Developing with Kafka Connect
You are using JDBC source connector to copy data from a table to Kafka topic. There is one connector created with max.tasks equal to 2 deployed on a cluster of 3 workers. How many...
JDBC source connectormax.taskstask parallelismKafka Connect - Question #91Security
If you enable an SSL endpoint in Kafka, what feature of Kafka will be lost?
SSL/TLSzero copysendfile optimizationsecurity tradeoffs - Question #92Kafka Client Fundamentals
By default, which replica will be elected as a partition leader? (select two)
leader electionpreferred leaderin-sync replicasauto.leader.rebalance.enable - Question #93Kafka Client Fundamentals
Partition leader election is done by
leader electioncontroller brokerZookeepercluster management - Question #94Developing Kafka Consumers
Consumer failed to process record # 10 and succeeded in processing record # 11. Select the course of action that you should choose to guarantee at least once processing
at-least-once semanticsoffset commitdelivery guaranteesconsumer error handling - Question #95Developing with Kafka Streams
We want the average of all events in every five-minute window updated every minute. What kind of Kafka Streams window will be required on the stream?
hopping windowwindowingtime-based aggregationsliding interval - Question #96Kafka Client Fundamentals
Which of the following statements are true regarding the number of partitions of a topic?
partition countkafka-topics.shtopic modificationpartition management - Question #97Kafka Client Fundamentals
Which of the following is true regarding thread safety in the Java Kafka Clients?
thread safetyKafkaProducerKafkaConsumerJava client - Question #98Application Design
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 f...
replication factorfault tolerancebroker failureavailability - Question #99Developing with Kafka Streams
Where are KSQL-related data and metadata stored?
KSQLmetadata storageinternal topicsKafka topics - Question #100Developing Kafka Consumers
A consumer has auto.offset.reset=latest, and the topic partition currently has data for offsets going from 45 to 2311. The consumer group never committed offsets for the topic befo...
auto.offset.resetlatestconsumer offset resetoffset management