Question 90
The engineer proposes this implementation: Use chmod +x on the approved script while keeping ownership and write permissions controlled. The requirement is: An account must execute a maintenance script but cannot run it with execute permission removed. Which technical explanation best supports the proposed action?
Explanation
Correct Answer
The execution mode bit permits launching the script directly when its interpreter path is valid. It specifically supports the proposed action of Use chmod +x on the approved script while keeping ownership and write permissions controlled. for the requirement described.
Incorrect Answers
This explains another Linux operation, namely Run exec /path/to/program in the script at the handoff point., where The exec builtin replaces the shell process rather than spawning a shell child that later waits. It does not explain why Use chmod +x on the approved script while keeping ownership and write permissions controlled. satisfies the stated condition.
This explains another Linux operation, namely Use backup-command && subsequent-command and check its return status., where The && operator runs its right-hand command only when the preceding command returns status zero. It does not explain why Use chmod +x on the approved script while keeping ownership and write permissions controlled. satisfies the stated condition.
This explains another Linux operation, namely Assign stamp=$(date +%Y%m%d) in the script., where Command substitution executes date and substitutes captured standard output into the assignment. It does not explain why Use chmod +x on the approved script while keeping ownership and write permissions controlled. satisfies the stated condition.






LPI Level 1 (102-500) Practice Tests