nerdexam
Huawei

H13-723_V2.0 · Question #93

In HDFS application development, which of the following are the interfaces supported by the HDFS service? (multiple choice)

The correct answer is A. BufferedOutputStream.write B. BufferedOutputStream.flush C. FileSystem.create D. FileSystem.append. All four options are correct because HDFS application development combines both HDFS-native Java APIs and standard Java I/O stream methods. FileSystem.create and FileSystem.append are core methods of the Hadoop FileSystem class - create opens a new file and returns an…

Distributed Storage Development (HDFS, HBase)

Question

In HDFS application development, which of the following are the interfaces supported by the HDFS service? (multiple choice)

Options

  • ABufferedOutputStream.write
  • BBufferedOutputStream.flush
  • CFileSystem.create
  • DFileSystem.append

How the community answered

(58 responses)
  • A
    100% (58)

Explanation

All four options are correct because HDFS application development combines both HDFS-native Java APIs and standard Java I/O stream methods. FileSystem.create and FileSystem.append are core methods of the Hadoop FileSystem class - create opens a new file and returns an FSDataOutputStream, while append opens an existing file for additional writes. BufferedOutputStream.write and BufferedOutputStream.flush are standard Java I/O methods that work directly on the output stream returned by HDFS operations, since FSDataOutputStream wraps standard Java streams.

Since all choices are correct, there are no distractors - the question is designed to test whether students mistakenly exclude the standard Java I/O methods, assuming HDFS only uses Hadoop-specific APIs.

Memory tip: Think of it as two layers - HDFS gives you the file handle (FileSystem.create/append), and standard Java streams let you use that handle (write/flush). Both layers are part of HDFS development, so always include them both.

Topics

#HDFS APIs#FileSystem Interface#I/O Operations#File Writing

Community Discussion

No community discussion yet for this question.

Full H13-723_V2.0 Practice