Question 6
CCDAK
CCDAK practice questions, page 2 of 3, with answer review and explanations.
Question 7
You are designing a stream pipeline to monitor the real-time location of GPS trackers, where historical location data is not required. Each event in the stream has the following structure: - Key: tracker_id - Value: latitude, longitude You need to ensure that the latest location for each tracker is always retained in the Kafka topic. Which topic configuration parameter should you set?
- retention.ms = 0
- min.cleanable.dirty.ratio = -1
- cleanup.policy = compact
- retention.ms = infinite
Question 8
You need to collect logs from a host and write them to a Kafka topic named 'logs-topic'. You decide to use Kafka Connect File Source connector for this task. What is the preferred deployment mode for this connector?
- Standalone mode
- Distributed mode
- Parallel mode
- SingleCluster mode
Question 9
You create a topic named 'IoT-Data' with 10 partitions and replication factor of three. A producer application is producing messages with 1 mb size. The messages need to be compressed using Gzip compression. Which two statements are true in this scenario? (Choose two.)
- Compression type will be stored in batch attributes.
- By default, compression is the producer's responsibility.
- The message is already compressed so it will not be serialized.
- All compressed messages will be stored in the same topic partition.
Question 10
The producer code below features a 'Callback' class with a method called 'onCompletion()'. When will the 'onCompletion()' method be invoked?
- When a consumer sends an acknowledgement to the producer
- When the producer puts the message into its socket buffer
- When the producer batches the message
- When the producer receives the acknowledgment from the broker