SCA_SLES15 practice question 14 of 15

Which type of files are used for inter-process communications? (Choose two)

Full set: 69 questions
Answer options
A:

A. Array

B:

B. Pipe

Correct answer
C:

C. udev

D:

D. Redirect

E:

E. Block

F:

F. Character

G:

G. Socket

Correct answer
Correct Answer:
B. B. Pipe; G. G. Socket
Explanation

In Linux, Inter-Process Communication (IPC) can be achieved through various mechanisms that are represented in the filesystem. Pipes (specifically named pipes or FIFOs) and UNIX domain sockets are both represented as special file types. Processes can read from and write to these files to communicate with each other, making them fundamental file-based IPC methods.

Why Incorrect

A. Array: An array is a programming data structure, not a file type used for inter-process communication.
C. udev: udev is a device manager for the Linux kernel that handles device nodes, not a file type for IPC.
D. Redirect: Redirection is a shell feature for directing a process's standard streams, not a distinct file type for IPC.
E. Block: A block special file is used for buffered access to hardware devices like hard disks, not for general IPC.
F. Character: A character special file is used for unbuffered access to hardware devices like terminals, not for general IPC.

References

- SUSE Linux Enterprise Server 15 SP4 Administration Guide, Section 10.1, "Sockets": "A socket is a special file for communication between different processes."

- The man 7 pipe page on SLES 15 describes pipes as a mechanism for interprocess communication.

- The man 7 unix page on SLES 15 describes UNIX domain sockets, which are represented by filesystem pathnames.

Scroll to Top