Question 310
Original unofficial RHEL 10 RHCSA skill-check scenario: A backup script assumes an input directory exists and creates an empty archive when it is absent. Which observation best confirms the intended outcome?
Explanation
Correct Answer
In this RHEL 10 system administration case: A backup script assumes an input directory exists and creates an empty archive when it is absent. Underlying reason: A precondition must be validated before invoking dependent work. The most direct, approved resolution is: Check directory existence with a test condition before starting the archive operation. Confirm it by checking: Missing directories produce a controlled failure and no misleading successful backup file. Sustain the fix by: Include negative-path checks in backup jobs. This is the INTENDED response for the strongest objective verification result. It is a knowledge-check explanation, not a verified hands-on Red Hat exam answer;
Incorrect Answers
Match, no-match and file-read failure have the intended outcomes. That is not sufficient for the reported RHEL task, because a precondition must be validated before invoking dependent work.
The downstream command receives exactly the same number of distinct filenames. That is not sufficient for the reported RHEL task, because a precondition must be validated before invoking dependent work.
Installed and absent packages take different branches correctly. That is not sufficient for the reported RHEL task, because a precondition must be validated before invoking dependent work.