nerdexam
ExamsCAS-001Questions#174
CompTIA

CAS-001 · Question #174

CAS-001 Question #174: Real Exam Question with Answer & Explanation

The correct answer is D: The Linux file system in use cannot write files as fast as they can be read by the Java program resulting. The scenario describes millions of small files being written one at a time from a network source, then immediately accessed by a local Java program. The most likely cause is a race condition where the Java program attempts to read a file before the write operation has fully compl

Question

A data processing server uses a Linux based file system to remotely mount physical disks on a shared SAN. The server administrator reports problems related to processing of files where the file appears to be incompletely written to the disk. The network administration team has conducted a thorough review of all network infrastructure and devices and found everything running at optimal performance. Other SAN customers are unaffected. The data being processed consists of millions of small files being written to disk from a network source one file at a time. These files are then accessed by a local Java program for processing before being transferred over the network to a SELinux host for processing. Which of the following is the MOST likely cause of the processing problem?

Options

  • AThe administrator has a PERL script running which disrupts the NIC by restarting the CRON process
  • BThe Java developers accounted for network latency only for the read portion of the processing and
  • CThe virtual file system on the SAN is experiencing a race condition between the reads and writes of
  • DThe Linux file system in use cannot write files as fast as they can be read by the Java program resulting

Explanation

The scenario describes millions of small files being written one at a time from a network source, then immediately accessed by a local Java program. The most likely cause is a race condition where the Java program attempts to read a file before the write operation has fully completed and been flushed to disk. Since the files are small, the window between 'file created' and 'file fully written' is narrow but real - the Java program may open and begin reading the file while the write is still in progress, resulting in partial data. The network team confirmed infrastructure is optimal (eliminating network issues). Option A (PERL script disrupting NIC via CRON) is speculative and unrelated to the described symptoms. Option B blames Java developers for not accounting for read latency, but the issue is writes not completing before reads begin. Option C (SAN race condition on virtual file system) is less specific and less likely than the direct read-before-write-completes scenario.

Community Discussion

No community discussion yet for this question.

Full CAS-001 Practice