Question 1080
Original unofficial RHEL 10 RHCSA skill-check scenario: A support account is given `NOPASSWD: ALL` for a single maintenance operation without an assessed exception. Which ongoing practice best prevents a recurrence?
Explanation
Correct Answer
In this RHEL 10 system administration case: A support account is given `NOPASSWD: ALL` for a single maintenance operation without an assessed exception. Underlying reason: Broad sudo policy expands the commands a user can execute as root. The most direct, approved resolution is: Narrow delegation to the approved command and authentication policy instead of unrestricted access. Confirm it by checking: The account performs the required operation without broader privilege escalation. Sustain the fix by: Audit wildcard and passwordless sudo grants regularly. This is the INTENDED response for the best ongoing operational safeguard. It is a knowledge-check explanation, not a verified hands-on Red Hat exam answer;
Incorrect Answers
Check `sudo -l` after role assignment. That is not sufficient for the reported RHEL task, because broad sudo policy expands the commands a user can execute as root.
Confirm UID allocation before restoring accounts and data. That is not sufficient for the reported RHEL task, because broad sudo policy expands the commands a user can execute as root.
Document reactivation approval and verification. That is not sufficient for the reported RHEL task, because broad sudo policy expands the commands a user can execute as root.