[Yandex Cloud documentation](../../index.md) > [Yandex MetaData Hub](../index.md) > Schema Registry > Tutorials > Delivering data in Debezium CDC format from Apache Kafka®

# Creating a schema registry to deliver data in Debezium CDC format from Apache Kafka®


You can create a schema registry to track schema evolution for an Apache Kafka® or Yandex Managed Service for Apache Kafka® source using [Yandex Data Transfer](../../data-transfer/index.md). This tutorial tracks the evolution of schemas for a Managed Service for Apache Kafka® source. 

To track schema changes for a Managed Service for Apache Kafka® source:

1. [Set up your infrastructure](#prepare-infrastructure).
1. [Create a schema registry](#create-schema-registry).
1. [Prepare and run your transfer](#set-up-transfer).

If you no longer need the resources you created, [delete them](#clear-out).

## Getting started {#prepare-cloud}


Sign up for Yandex Cloud and create a [billing account](../../billing/concepts/billing-account.md):
1. Navigate to the [management console](https://console.yandex.cloud) and log in to Yandex Cloud or create a new account.
1. On the **[Yandex Cloud Billing](https://center.yandex.cloud/billing/accounts)** page, make sure you have a billing account linked and it has the `ACTIVE` or `TRIAL_ACTIVE` [status](../../billing/concepts/billing-account-statuses.md). If you do not have a billing account, [create one](../../billing/quickstart/index.md) and [link](../../billing/operations/pin-cloud.md) a cloud to it.

If you have an active billing account, you can create or select a [folder](../../resource-manager/concepts/resources-hierarchy.md#folder) for your infrastructure on the [cloud page](https://console.yandex.cloud/cloud).

[Learn more about clouds and folders here](../../resource-manager/concepts/resources-hierarchy.md).

### Required paid resources {#paid-resources}

* Managed Service for Apache Kafka® cluster: use of computing resources allocated to hosts, storage and backup size (see [Managed Service for Apache Kafka® pricing](../../managed-kafka/pricing.md)).
* Each transfer: use of computing resources and the number of transferred data rows (see [Data Transfer pricing](../../data-transfer/pricing.md)).


## Set up your infrastructure {#prepare-infrastructure}

[Create a Managed Service for Apache Kafka® cluster](../../managed-kafka/operations/cluster-create.md) of any suitable configuration. If you intend to connect to broker hosts from the internet, enable public access. In this case, you can only connect to them using SSL.

## Create a schema registry {#create-schema-registry}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the [folder](../../resource-manager/concepts/resources-hierarchy.md#folder) you are going to use to work with your schema registry.
  1. Navigate to **Yandex MetaData Hub**.
  1. In the left-hand panel, select ![image](../../_assets/console-icons/layout-cells.svg) **Schema Registry** / **Namespace**.
  1. Click **Create namespace**. 
  1. Specify [namespace settings](../operations/create-name-space.md). After saving a namespace, you can use its ID to get the Schema Registry URL: `{namespace_id}.schema-registry.yandexcloud.net:443`.

{% endlist %}

## Prepare and run your transfer {#set-up-transfer}

{% list tabs group=instructions %}

- Management console {#console}

  1. Open the [management console](https://console.yandex.cloud).
  1. Navigate to **Yandex Data Transfer**. 
  1. [Create an Apache Kafka® source endpoint](../../data-transfer/operations/endpoint/source/kafka.md) with the following settings:

      * **Database type**: **Apache Kafka®**.
      * **Connection type**: **Manual setup**.
      * **Installation type**: **Managed Service for Apache Kafka®** cluster.
      * Under **Managed Service for Apache Kafka® cluster**:

          * **Managed Service for Apache Kafka® cluster**: Select the Managed Service for Apache Kafka® cluster you created previously.
          * **Authentication**: **SASL**.
          * **Username** and **Password**: User credentials in the Managed Service for Apache Kafka® cluster.

      * Under **Advanced settings** → **Conversion rules**:

          * **Conversion rules**: **Debezium CDC parser**.
          * **Schema Registry connection settings**: **On Premise Schema Registry**.
          * **Schema Registry URL**: Schema Registry URL you [got earlier](#create-schema-registry).

  1. [Create and run](../../data-transfer/operations/transfer.md) a data transfer.

{% endlist %}

## Delete the resources you created {#clear-out}

{% note info %}

Before deleting the resources, [deactivate the transfer](../../data-transfer/operations/transfer.md#deactivate).

{% endnote %}

Some resources are not free of charge. Delete the resources you no longer need to avoid paying for them:

{% list tabs group=instructions %}

- Management console {#console}

  1. [Managed Service for Apache Kafka® cluster](../../managed-kafka/operations/cluster-delete.md).
  1. [Transfer in Data Transfer](../../data-transfer/operations/transfer.md#delete).

{% endlist %}