Question 590
At Harbor Municipal IT, a proposed 8 GiB swap file is created but swapon refuses activation because the file is world readable. The team is preparing a reversible change and needs a test that distinguishes the suspected fault from unrelated symptoms. Which combined administrator action and observed check most defensibly addresses the requirement?
Explanation
Correct Answer
Create a fully allocated supported swap file, restrict its mode to owner-only, initialize it and enable it safely. Verify that swapon --show reports the intended file and permissions prevent other users from reading its contents. Swap file provisioning requires correct allocation, permissions and initialization.
Incorrect Answers
Swap may contain sensitive process data and tools reject insecure file permissions.
That check concerns an application creates millions of metadata updates and unnecessary atime writes affect a heavily used local filesystem; instead, verify that swapon --show reports the intended file and permissions prevent other users from reading its contents.
The pair addresses an application creates millions of metadata updates and unnecessary atime writes affect a heavily used local filesystem. Here, verify that swapon --show reports the intended file and permissions prevent other users from reading its contents.