Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-420 Exam - Topic 2 Question 74 Discussion

Posted by Cheryl on Mar 30, 2026 at 07:47 PM

You need to configure an Apache Kafka instance to ingest data from an Azure Cosmos DB Core (SQL) API account. The data from a container named telemetry must be added to a Kafka topic named iot. The solution must store the data in a compact binary format.

Which three configuration items should you include in the solution? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Suggested Answer: C, D, F

C: Avro is binary format, while JSON is text.

F: Kafka Connect for Azure Cosmos DB is a connector to read from and write data to Azure Cosmos DB. The Azure Cosmos DB sink connector allows you to export data from Apache Kafka topics to an Azure Cosmos DB database. The connector polls data from Kafka to write to containers in the database based on the topics subscription.

D: Create the Azure Cosmos DB sink connector in Kafka Connect. The following JSON body defines config for the sink connector.

Extract:

'connector.class': 'com.azure.cosmos.kafka.connect.sink.CosmosDBSinkConnector',

'key.converter': 'org.apache.kafka.connect.json.AvroConverter'

'connect.cosmos.containers.topicmap': 'hotels#kafka'

Incorrect Answers:

B: JSON is plain text.

Note, full example:

{

'name': 'cosmosdb-sink-connector',

'config': {

'connector.class': 'com.azure.cosmos.kafka.connect.sink.CosmosDBSinkConnector',

'tasks.max': '1',

'topics': [

'hotels'

],

'value.converter': 'org.apache.kafka.connect.json.AvroConverter',

'value.converter.schemas.enable': 'false',

'key.converter': 'org.apache.kafka.connect.json.AvroConverter',

'key.converter.schemas.enable': 'false',

'connect.cosmos.connection.endpoint': 'https://<cosmosinstance-name>.documents.azure.com:443/',

'connect.cosmos.master.key': '<cosmosdbprimarykey>',

'connect.cosmos.databasename': 'kafkaconnect',

'connect.cosmos.containers.topicmap': 'hotels#kafka'

}

}


https://docs.microsoft.com/en-us/azure/cosmos-db/sql/kafka-connector-sink

https://www.confluent.io/blog/kafka-connect-deep-dive-converters-serialization-explained/

Get Premium DP-420 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
LE
Leatha 3 months ago
C is good for compact format. A, D, and C make sense together.
HA
Harley 3 months ago
I agree with A and D, but I’m not sure about C.
JA
Jacquelyne 3 months ago
I think A, D, and C are the right choices.
DO
Donte 4 months ago
I had no idea Cosmos DB could connect to Kafka like this!
IV
Ivette 4 months ago
Wait, why not use B) for the key converter? Seems off.
EM
Emerson 4 months ago
D) makes sense for mapping the container to the topic.
CA
Carmelina 5 months ago
I think C) is the right choice for compact binary format.
JU
Jules 6 months ago
A) is definitely needed for the connector.
MA
Marci 6 months ago
I feel like we practiced a similar question where we had to choose the right connector and converters, and I think A and C might be the right choices here.
FL
Florinda 7 months ago
I think option D makes sense because it maps the Cosmos container to the Kafka topic, but I'm not completely confident about the syntax.
CO
Cordelia 7 months ago
I'm a bit unsure about the converters; I thought we needed a binary format, but I'm not sure if that means we should use Avro or JSON.
AN
Annelle 7 months ago
I remember we discussed the CosmosDBSourceConnector in class, so I think option A is definitely one of the correct answers.
0/2000 characters

Save Cancel