Hadoop Questions and Answers – Avro – 1

This set of Hadoop Multiple Choice Questions & Answers (MCQs) focuses on “Avro – 1”.

1. Avro schemas are defined with _____
a) JSON
b) XML
c) JAVA
d) All of the mentioned
View Answer

Answer: a
Explanation: JSON implementation facilitates implementation in languages that already have JSON libraries.

2. Point out the correct statement.
a) Avro provides functionality similar to systems such as Thrift
b) When Avro is used in RPC, the client and server exchange data in the connection handshake
c) Apache Avro, Avro, Apache, and the Avro and Apache logos are trademarks of The Java Foundation
d) None of the mentioned
View Answer

Answer: a
Explanation: Avro differs from these systems in the fundamental aspects like untagged data.

3. __________ facilitates construction of generic data-processing systems and languages.
a) Untagged data
b) Dynamic typing
c) No manually-assigned field IDs
d) All of the mentioned
View Answer

Answer: b
Explanation: Avro does not require that code be generated.

4. With ______ we can store data and read it easily with various programming languages.
a) Thrift
b) Protocol Buffers
c) Avro
d) None of the mentioned
View Answer

Answer: c
Explanation: Avro is optimized to minimize the disk space needed by our data and it is flexible.

advertisement
advertisement

5. Point out the wrong statement.
a) Apache Avro™ is a data serialization system
b) Avro provides simple integration with dynamic languages
c) Avro provides rich data structures
d) All of the mentioned
View Answer

Answer: d
Explanation: Code generation is not required to read or write data files nor to use or implement RPC protocols in Avro.

6. ________ are a way of encoding structured data in an efficient yet extensible format.
a) Thrift
b) Protocol Buffers
c) Avro
d) None of the mentioned
View Answer

Answer: b
Explanation: Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. Thrift resolves possible conflicts through _________ of the field.
a) Name
b) Static number
c) UID
d) None of the mentioned
View Answer

Answer: b
Explanation: Avro resolves possible conflicts through the name of the field.

8. Avro is said to be the future _______ layer of Hadoop.
a) RMC
b) RPC
c) RDC
d) All of the mentioned
View Answer

Answer: b
Explanation: When Avro is used in RPC, the client and server exchange schemas in the connection handshake.

advertisement

9. When using reflection to automatically build our schemas without code generation, we need to configure Avro using?
a) AvroJob.Reflect(jConf);
b) AvroJob.setReflect(jConf);
c) Job.setReflect(jConf);
d) None of the mentioned
View Answer

Answer: c
Explanation: For strongly typed languages like Java, it also provides a generation code layer, including RPC services code generation.

10. We can declare the schema of our data either in a ______ file.
a) JSON
b) XML
c) SQL
d) R
View Answer

Answer: c
Explanation: Schema can be declared using an IDL or simply through Java beans by using reflection-based schema building.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.