Kafka for Developers - Data Contracts Using Schema Registry - Add a Timestamp, Decimal Logical Type to the CoffeeOrder S

Kafka for Developers - Data Contracts Using Schema Registry - Add a Timestamp, Decimal Logical Type to the CoffeeOrder S

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explores the implementation of logical types in a coffee order schema using Avro. It covers defining order time with timestamp logical type and cost with decimal logical type. The tutorial demonstrates generating Avro classes, resolving errors, and validating schema changes. It also addresses handling compilation issues in Gradle and Maven projects. Finally, it shows how to publish and consume coffee orders, including converting UTC to local time.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What logical type is used to represent the order time in the coffee order schema?

String

Timestamp

Integer

Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which logical type is used to represent the cost in the coffee order schema?

Double

Float

Decimal

String

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the precision and scale used for the decimal logical type in the schema?

Precision 3, Scale 2

Precision 4, Scale 1

Precision 2, Scale 3

Precision 1, Scale 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in generating Avro classes for schema changes?

Restart the server

Compile the code

Click on Generate Avro

Run the application

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do if the new fields are not visible in the generated Avro classes?

Reinstall the software

Ignore the issue

Delete the classes and regenerate

Restart the computer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the recommended action if Gradle does not rerun a task due to it being up-to-date?

Reinstall Gradle

Use the --rerun-tasks flag

Restart the IDE

Clear the cache

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Java class is used to represent the order time in the generated Avro classes?

LocalDate

Calendar

Date

Instant

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?