DP-420 practice question 13 of 25
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…
Full set: 144 questionsYou need a source connector (reads from Cosmos DB and writes to Kafka), map the container telemetry to topic iot, and serialize the messages in a compact binary format such as Avro. Consequently:
• connector.class must be com.azure.cosmos.kafka.connect.source.CosmosDBSourceConnector.
• connect.cosmos.containers.topicmap must bind iot to telemetry: "iot#telemetry".
• key.converter (and value.converter) should use io.confluent.connect.avro.AvroConverter to emit Avro-encoded, compact messages.
B Uses JsonConverter – JSON is not a compact binary format. E Topic map lacks container mapping, so no telemetry data is ingested. F SinkConnector is for writing into Cosmos DB, not reading from it.
1. Microsoft Docs – “Azure Cosmos DB Kafka Connector (source)”
Configuration properties table
connector.class & containers.topicmap (https://learn.microsoft.com/azure/cosmos-db/kafka-connector#source-configuration).
2. Confluent Docs – “Avro Converter”
Section ‘Why Avro’ (https://docs.confluent.io/platform/current/schema-registry/serdes-develop/index.html).
3. Apache Kafka Connect – Converter overview
§ Binary formats (https://kafka.apache.org/documentation/#connect).
Keep practicing
Take the free DP-420 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DP-420 practice questions
- Question 1You have an Azure Cosmos DB for NoSQL account. You need to create an Azure Monitor query …
- Question 3You have a database in an Azure Cosmos DB Core (SQL) API account. You need to create an A…
- Question 6You are troubleshooting the current issues caused by the application updates. Which actio…
- Question 9You have an Azure Cosmos DB Core (SQL) API account that is used by 10 web apps. You need …
- Question 12You need to create a data store for a directory of small and medium-sized businesses (SMB…
- Question 16You configure multi-region writes for account1. You need to ensure that App1 supports the…
