Question 1030
On a RHEL 10 machine, account worker19 and group project19 are in scope. The administrator must delete the named local group. A review considers `usermod -g project19 worker19` as an alternative. Its relevant behavior is: -g selects a primary group, rather than modifying supplementary memberships. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- groupadd project19
- groupdel project19
- usermod -aG project19 worker19
- usermod -g project19 worker19
Explanation
Correct Answer
B:groupdel removes the local group record, subject to system consistency restrictions. This matches the stated requirement to delete the named local group. By contrast, the plausible alternative `usermod -aG project19 worker19` has the effect: -aG appends a supplementary group instead of replacing the group list; that operation would not achieve the requested result.
Incorrect Answers
A:groupadd creates a new local group record using the supplied name. The stated task is to delete the named local group. Instead, `groupdel project19` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
C:-aG appends a supplementary group instead of replacing the group list. The stated task is to delete the named local group. Instead, `groupdel project19` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
D:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to delete the named local group. Instead, `groupdel project19` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
Question 1031
On a RHEL 10 machine, account worker20 and group project20 are in scope. The administrator must change the user’s primary group. A review considers `groupadd project20` as an alternative. Its relevant behavior is: groupadd creates a new local group record using the supplied name. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- id -nG worker20
- groupdel project20
- usermod -g project20 worker20
- groupadd project20
Explanation
Correct Answer
C:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `groupdel project20` has the effect: groupdel removes the local group record, subject to system consistency restrictions; that operation would not achieve the requested result.
Incorrect Answers
A:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project20 worker20` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
B:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project20 worker20` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
D:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project20 worker20` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1032
On a RHEL 10 machine, account worker21 and group project21 are in scope. The administrator must change the user’s primary group. A review considers `id -nG worker21` as an alternative. Its relevant behavior is: id -nG displays the human-readable group names for this identity. That is a different result from the requested operation. As an additional operational boundary, `groupadd project21` must also be excluded because its documented effect is: groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. The effect above does not perform that specific task; `usermod -g project21 worker21` is the relevant alternative. Which listed command satisfies the original requirement without substituting this other behavior?
- id -nG worker21
- groupdel project21
- groupadd project21
- usermod -g project21 worker21
Explanation
Correct Answer
D:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `groupadd project21` has the effect: groupadd creates a new local group record using the supplied name; that operation would not achieve the requested result.
Incorrect Answers
A:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project21 worker21` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
B:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project21 worker21` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
C:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project21 worker21` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1033
On a RHEL 10 machine, account worker22 and group project22 are in scope. The administrator must create a new local group. A review considers `usermod -aG project22 worker22` as an alternative. Its relevant behavior is: -aG appends a supplementary group instead of replacing the group list. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- groupadd project22
- usermod -aG project22 worker22
- usermod -g project22 worker22
- id -nG worker22
Explanation
Correct Answer
A:groupadd creates a new local group record using the supplied name. This matches the stated requirement to create a new local group. By contrast, the plausible alternative `id -nG worker22` has the effect: id -nG displays the human-readable group names for this identity; that operation would not achieve the requested result.
Incorrect Answers
B:-aG appends a supplementary group instead of replacing the group list. The stated task is to create a new local group. Instead, `groupadd project22` is the relevant alternative because groupadd creates a new local group record using the supplied name.
C:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to create a new local group. Instead, `groupadd project22` is the relevant alternative because groupadd creates a new local group record using the supplied name.
D:id -nG displays the human-readable group names for this identity. The stated task is to create a new local group. Instead, `groupadd project22` is the relevant alternative because groupadd creates a new local group record using the supplied name.
Question 1034
On a RHEL 10 machine, account worker23 and group project23 are in scope. The administrator must delete the named local group. A review considers `groupadd project23` as an alternative. Its relevant behavior is: groupadd creates a new local group record using the supplied name. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- groupadd project23
- groupdel project23
- usermod -aG project23 worker23
- usermod -g project23 worker23
Explanation
Correct Answer
B:groupdel removes the local group record, subject to system consistency restrictions. This matches the stated requirement to delete the named local group. By contrast, the plausible alternative `usermod -g project23 worker23` has the effect: -g selects a primary group, rather than modifying supplementary memberships; that operation would not achieve the requested result.
Incorrect Answers
A:groupadd creates a new local group record using the supplied name. The stated task is to delete the named local group. Instead, `groupdel project23` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
C:-aG appends a supplementary group instead of replacing the group list. The stated task is to delete the named local group. Instead, `groupdel project23` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
D:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to delete the named local group. Instead, `groupdel project23` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
Question 1035
On a RHEL 10 machine, account worker24 and group project24 are in scope. The administrator must add an existing user to the group without losing existing supplementary groups. A review considers `groupdel project24` as an alternative. Its relevant behavior is: groupdel removes the local group record, subject to system consistency restrictions. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- usermod -g project24 worker24
- id -nG worker24
- usermod -aG project24 worker24
- groupdel project24
Explanation
Correct Answer
C:-aG appends a supplementary group instead of replacing the group list. This matches the stated requirement to add an existing user to the group without losing existing supplementary groups. By contrast, the plausible alternative `usermod -g project24 worker24` has the effect: -g selects a primary group, rather than modifying supplementary memberships; that operation would not achieve the requested result.
Incorrect Answers
A:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project24 worker24` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
B:id -nG displays the human-readable group names for this identity. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project24 worker24` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
D:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project24 worker24` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
Question 1036
An operations policy is being applied to local account audituser00 on RHEL 10. The administrator must display password aging information for an account. Which command implements it?
- chage -M 90 audituser00
- chage -m 7 audituser00
- chage -W 14 audituser00
- chage -l audituser00
Explanation
Correct Answer
D:chage -l lists the account password aging and expiration fields. This matches the stated requirement to display password aging information for an account. By contrast, the plausible alternative `chage -M 90 audituser00` has the effect: chage -M sets the maximum number of days before a password must be changed; that operation would not achieve the requested result.
Incorrect Answers
A:chage -M sets the maximum number of days before a password must be changed. The stated task is to display password aging information for an account. Instead, `chage -l audituser00` is the relevant alternative because chage -l lists the account password aging and expiration fields.
B:chage -m configures the minimum interval before another password change is allowed. The stated task is to display password aging information for an account. Instead, `chage -l audituser00` is the relevant alternative because chage -l lists the account password aging and expiration fields.
C:chage -W sets the number of advance password-expiration warning days. The stated task is to display password aging information for an account. Instead, `chage -l audituser00` is the relevant alternative because chage -l lists the account password aging and expiration fields.
Question 1037
An operations policy is being applied to local account audituser01 on RHEL 10. The administrator must warn the user 14 days before password expiration. Which command implements it?
- chage -W 14 audituser01
- chage -d 0 audituser01
- chage -l audituser01
- chage -M 90 audituser01
Explanation
Correct Answer
A:chage -W sets the number of advance password-expiration warning days. This matches the stated requirement to warn the user 14 days before password expiration. By contrast, the plausible alternative `chage -d 0 audituser01` has the effect: Setting last password-change date to zero forces an update at next login; that operation would not achieve the requested result.
Incorrect Answers
B:Setting last password-change date to zero forces an update at next login. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser01` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
C:chage -l lists the account password aging and expiration fields. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser01` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
D:chage -M sets the maximum number of days before a password must be changed. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser01` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
Question 1038
An operations policy is being applied to local account audituser02 on RHEL 10. The administrator must warn the user 14 days before password expiration. A review considers `chage -d 0 audituser02` as an alternative. Its relevant behavior is: Setting last password-change date to zero forces an update at next login The flag controls another password-aging field. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- chage -d 0 audituser02
- chage -W 14 audituser02
- chage -l audituser02
- chage -M 90 audituser02
Explanation
Correct Answer
B:chage -W sets the number of advance password-expiration warning days. This matches the stated requirement to warn the user 14 days before password expiration. By contrast, the plausible alternative `chage -l audituser02` has the effect: chage -l lists the account password aging and expiration fields; that operation would not achieve the requested result.
Incorrect Answers
A:Setting last password-change date to zero forces an update at next login. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser02` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
C:chage -l lists the account password aging and expiration fields. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser02` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
D:chage -M sets the maximum number of days before a password must be changed. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser02` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
Question 1039
An operations policy is being applied to local account audituser03 on RHEL 10. The administrator must warn the user 14 days before password expiration. A review considers `chage -l audituser03` as an alternative. Its relevant behavior is: chage -l lists the account password aging and expiration fields The flag controls another password-aging field. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- chage -d 0 audituser03
- chage -l audituser03
- chage -W 14 audituser03
- chage -M 90 audituser03
Explanation
Correct Answer
C:chage -W sets the number of advance password-expiration warning days. This matches the stated requirement to warn the user 14 days before password expiration. By contrast, the plausible alternative `chage -l audituser03` has the effect: chage -l lists the account password aging and expiration fields; that operation would not achieve the requested result.
Incorrect Answers
A:Setting last password-change date to zero forces an update at next login. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser03` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
B:chage -l lists the account password aging and expiration fields. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser03` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
D:chage -M sets the maximum number of days before a password must be changed. The stated task is to warn the user 14 days before password expiration. Instead, `chage -W 14 audituser03` is the relevant alternative because chage -W sets the number of advance password-expiration warning days.
Question 1040
An operations policy is being applied to local account audituser04 on RHEL 10. The administrator must set maximum password lifetime to 90 days. Which command implements it?
- chage -m 7 audituser04
- chage -W 14 audituser04
- chage -d 0 audituser04
- chage -M 90 audituser04
Explanation
Correct Answer
D:chage -M sets the maximum number of days before a password must be changed. This matches the stated requirement to set maximum password lifetime to 90 days. By contrast, the plausible alternative `chage -W 14 audituser04` has the effect: chage -W sets the number of advance password-expiration warning days; that operation would not achieve the requested result.
Incorrect Answers
A:chage -m configures the minimum interval before another password change is allowed. The stated task is to set maximum password lifetime to 90 days. Instead, `chage -M 90 audituser04` is the relevant alternative because chage -M sets the maximum number of days before a password must be changed.
B:chage -W sets the number of advance password-expiration warning days. The stated task is to set maximum password lifetime to 90 days. Instead, `chage -M 90 audituser04` is the relevant alternative because chage -M sets the maximum number of days before a password must be changed.
C:Setting last password-change date to zero forces an update at next login. The stated task is to set maximum password lifetime to 90 days. Instead, `chage -M 90 audituser04` is the relevant alternative because chage -M sets the maximum number of days before a password must be changed.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests