Simplifying data pipelines with Apache Kafka Quiz Answers

Get Simplifying data pipelines with Apache Kafka Quiz Answers

Many Big Data use cases have one thing in common – the use of Apache Kafka somewhere in the mix. Whether the distributed, partitioned, replicated commit log service is being used for messaging, website activity tracking, stream processing or more, there’s no denying it is a hot technology.

In this course, you will learn how Kafka is used in the real world and its architecture and components. You will quickly get up and running, producing and consuming messages using both the command line tools and the Java APIs. You also will get hands on experience connecting Kafka to Spark, and working with Kafka Connect.

Enroll on Cognitive Class

Module 1: Introduction to Apache Kafka

Question: Which of the following are a Kafka use case?

  • Messaging
  • All of the above
  • Stream Processing
  • Website Activity Tracking
  • Log Aggregation

Question: A Kafka cluster is comprised of one or more servers which are called “producers”

  • True
  • False

Question: Kafka requires Apache ZooKeeper

  • True
  • False

Module 2: Kafka Command Line

Question: There are two ways to create a topic in Kafka, by enabling the auto.create.topics.enable property and by using the kafka-topics.sh script.

  • True
  • False

Question: Which of the following is NOT returned when –describe is passed to kafka-topics.sh?

  • Configs
  • None of the Above
  • PartitionNumber
  • ReplicationFactor
  • Topic

Question: Topic deletion is disabled by default.

  • True
  • False

Module 3: Kafka Producer Java API

Question: The setting of ack that provides the strongest guarantee is ack=1

  • True
  • False

Question: The KafkaProducer is the client that publishes records to the Kafka cluster.

  • True
  • False

Question: Which of the following is not a Producer configuration setting?

  • batch.size
  • linger.ms
  • key.serializer
  • retries
  • None of the above

Module 4: Kafka Consumer Java API

Question: The Kafka consumer handles various things behind the scenes, such as:

  • a) Failures of servers in the Kafka cluster
  • b) Adapts as partitions of data it fetches migrates within the cluster
  • c) Data management and storage into databases
  • a) and b) only
  • All of the Above

Question: If enable.auto.commit is set to false, then committing offsets is done manually, which provides gives you more control.

  • True
  • False

Question: Rebalancing is a process where group of consumer instances within a consumer group, coordinate to own mutally shared sets of partitions of topics that the groups are subscribed to.

  • True
  • False

Module 5: Kafka Connect and Spark Streaming

Question: Which of the following are Kafka Connect features?

  • A common framework for Kafka connectors
  • Automatic offset management
  • REST interface
  • Streaming/batch integration
  • All of the above

Question: Kafka Connector has two types of worker nodes called standalone mode and centralized mode cluster

  • True
  • False

Question: Spark periodically queries Kafka to get the latest offsets in each topic and partition that it is interested in consuming form.

  • True
  • False

Final Exam

Question: If the auto.create.topics.enable property is set to false and you try to write a topic that doesn’t yet exist, a new topic will be created.

  • True
  • False

Question: Which of the following is false about Kafka Connect?

  • Kafka Connect makes building and managing stream data pipelines easier
  • Kafka Connect simplifies adoption of connectors for stream data integration
  • It is a framework for small scale, asynchronous stream data integration
  • None of the above

Question: Kafka comes packaged with a command line client that you can use as a producer.

  • True
  • False

Question: Kafka Connect worker processes work autonomously to distribute work and provide scalability with fault tolerance to the system.

  • True
  • False

Question: What are the three Spark/Kafka direct approach benefits? (Place the answers in alphabetical order.)

Answer:

Answer:

Answer:

Question: Kafka Consumer is thread safe, as it can give each thread its own consumer instance

  • True
  • False

Question: What other open source producers can be used to code producer logic?

  • Java
  • Python
  • C++
  • All of the above

Question: If you set acks=1 in a Producer, it means that the leader will write the received message to the local log and respond after waiting for full acknowledgement from all of its followers.

  • True
  • False

Question: Kafka has a cluster-centric design which offers strong durability and fault-tolerance guarantees.

  • True
  • False

Question: Which of the following values of ack will not wait for any acknowledgement from the server?

  • all
  • 0
  • 1
  • -1

Question: A Kafka cluster is comprised of one or more servers which are called “Producers”

  • True
  • False

Question: What are In Sync Replicas?

  • They are a set of replicas that are not active and are delayed behind the leader
  • They are a set of replicas that are not active and are fully caught up with the leader
  • They are a set of replicas that are alive and are fully caught up with the leader
  • They are a set of replicas that are alive and are delayed behind the leader

Question: In many use cases, you see Kafka used to feed streaming data into Spark Streaming

  • True
  • False

Question: All Kafka Connect sources and sinks map to united streams of records

  • True
  • False

Question: Which is false about the KafkaProducer send method?

  • The send method returns a Future for the RecordMetadata that will be assigned to a record
  • All writes are asynchronous by default
  • It is not possible to make asynchronous writes
  • Method returns immediately once record has been stored in buffer of records waiting to be sent

Conclusion:

We hope you know the correct answers to Simplifying data pipelines with Apache Kafka If Queslers helped you to find out the correct answers then make sure to bookmark our site for more Course Quiz Answers.

If the options are not the same then make sure to let us know by leaving it in the comments below.

Course Review:

In our experience, we suggest you enroll in this and gain some new skills from Professionals completely free and we assure you will be worth it.

This course is available on Cognitive Class for free, if you are stuck anywhere between quiz or graded assessment quiz, just visit Queslers to get all Quiz Answers and Coding Solutions.

More Courses Quiz Answers >>

Building Cloud Native and Multicloud Applications Quiz Answers

Accelerating Deep Learning with GPUs Quiz Answers

Blockchain Essentials Cognitive Class Quiz Answers

Deep Learning Fundamentals Cognitive Class Quiz Answers

Hadoop 101 Cognitive Class Answers

Machine Learning With R Cognitive Class Answers

Machine Learning with Python Cognitive Class Answers

Leave a Reply

Your email address will not be published. Required fields are marked *