Hadoop Questions and Answers – Thrift with Hadoop – 2

This set of Interview Questions & Answers focuses on “Thrift with Hadoop – 2”.

1. _______ transport is required when using a non-blocking server.
a) TZlibTransport
b) TFramedTransport
c) TMemoryTransport
d) None of the mentioned
View Answer

Answer: b
Explanation: TFramedTransport sends data in frames, where each frame is preceded by length information.

2. Point out the correct statement.
a) To create a Mahout service, one has to write Thrift files that describe it, generate the code in the destination language
b) Thrift is written in Java
c) Thrift is a lean and clean library
d) None of the mentioned
View Answer

Answer: c
Explanation: The predefined serialization styles include: binary, HTTP-friendly and compact binary.

3. __________ uses memory for I/O in Thrift.
a) TZlibTransport
b) TFramedTransport
c) TMemoryTransport
d) None of the mentioned
View Answer

Answer: c
Explanation: The Java implementation uses a simple ByteArrayOutputStream internally.

4. ________ uses blocking socket I/O for transport.
a) TNonblockingServer
b) TSimpleServer
c) TSocket
d) None of the mentioned
View Answer

Answer: c
Explanation: TFramedTransport must be used with this server.

advertisement
advertisement

5. Point out the wrong statement.
a) There are no XML configuration files in Thrift
b) Thrift gives cross-language serialization with lower overhead than alternatives such as SOAP due to use of binary format
c) No framework to code is a feature of Thrift
d) None of the mentioned
View Answer

Answer: d
Explanation: There are no build dependencies or non-standard software. No mix of incompatible software licenses.

6. Which of the following is a multi-threaded server using non-blocking I/O?
a) TNonblockingServer
b) TSimpleServer
c) TSocket
d) None of the mentioned
View Answer

Answer: a
Explanation: Java implementation uses NIO channels.

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

7. __________ is a single-threaded server using standard blocking I/O.
a) TNonblockingServer
b) TSimpleServer
c) TSocket
d) None of the mentioned
View Answer

Answer: b
Explanation: TSimpleServer is useful for testing.

8. Which of the following performs compression using zlib?
a) TZlibTransport
b) TFramedTransport
c) TMemoryTransport
d) None of the mentioned
View Answer

Answer: a
Explanation: TZlibTransport is used in conjunction with another transport. Not available in the Java implementation.

advertisement

9. ________ is a multi-threaded server using standard blocking I/O.
a) TNonblockingServer
b) TThreadPoolServer
c) TSimpleServer
d) None of the mentioned
View Answer

Answer: b
Explanation: TFramedTransport must be used with this server.

10. _____________ transport writes to a file.
a) TNonblockingServer
b) TFileTransport
c) TFramedTransport
d) TMemoryTransport
View Answer

Answer: b
Explanation: TMemoryTransport uses memory for I/O.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice all interview questions and answers on Thrift, here is complete set of 1000+ Multiple Choice Questions and Answers.

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.