Kafka for Developers - Data Contracts Using Schema Registry - Build a Coffee Shop Order Consumer

Kafka for Developers - Data Contracts Using Schema Registry - Build a Coffee Shop Order Consumer

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through setting up a Kafka consumer in IntelliJ, refactoring the code to handle coffee orders, configuring necessary properties like deserializers and group IDs, and testing the consumer with a producer. It also explains the use of default values in Avro schemas, ensuring smooth data handling even when certain fields are omitted.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in setting up the coffee order consumer project?

Set up a new Kafka topic

Create a package named COM loan Abro consumer

Create a new Java class named CoffeeOrderProducer

Initialize a new Maven project

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component is reused from the greeting app in the coffee order consumer?

Producer code

Consumer code

Database configuration

User interface

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the logback.xml file in the consumer application?

To manage user authentication

To define Kafka topic names

To set up logging references in the console

To configure database connections

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What indicates that the consumer application has started successfully?

A message saying 'Kafka connected'

A message saying 'Consumer started'

A message saying 'Application initialized'

A message saying 'Producer started'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What default value is assigned to the 'nickname' field in the Avro schema?

USA

Null

Empty string

New

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why does the 'store address' field default to 'USA' in the Avro record?

It is hardcoded in the application

It is the default value set in the schema

It is a user input

It is retrieved from a database

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default status value for the coffee order in the Avro schema?

New

Pending

Processed

Completed