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
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.