Red Hat Certified Specialist In Security- Linux Free Sample Questions

12 free sample questions140 in the full practice test

Try simulator

EX415 Sample Questions

  1. Question 1

    Intermediate

    Configure encrypted storage · Configure encrypted storage persistence using NBDE

    You are the lead security administrator for a financial institution using Red Hat Enterprise Linux 9. You need to configure Network-Bound Device Encryption (NBDE) to ensure your servers can decrypt their root volumes automatically upon reboot only when they are within the secure corporate network. You have deployed a Tang server at 192.168.10.5. Which command must be executed on the client machine to bind the existing LUKS-encrypted device /dev/nvme0n1p3 to this Tang server using Clevis?

    Answer and explanation

    Correct answer: B

    The clevis luks bind command is used to bind a LUKS device to a pin. In this case, the pin is 'tang' and the configuration JSON string must specify the 'url' of the Tang server. This creates a new keyslot in the LUKS header secured by the Tang server's advertisement.

  2. Question 2

    Intermediate

    Configure intrusion detection · Configure AIDE to monitor critical system files

    A security auditor requires a report of all file integrity changes on a production server over the last 24 hours. You have AIDE (Advanced Intrusion Detection Environment) installed and initialized. You run a manual check and find differences. To update the database so that the current state becomes the new baseline for future checks, which sequence of commands should you run?

    Answer and explanation

    Correct answer: D

    The aide --update command runs a check and creates a new database file (aide.db.new.gz) that reflects the current system state. To make this the new baseline, you must replace the existing database (aide.db.gz) with this new file.

  3. Question 3

    Advanced

    Restrict USB devices · Manage administrative policy and daemon configuration

    You are configuring USBGuard on a kiosk system that should only allow a specific USB touch screen and keyboard. You have generated an initial policy allowing connected devices. However, you want to ensure that if the USBGuard daemon stops or crashes, all USB devices are blocked immediately to prevent tampering. Which configuration directive in /etc/usbguard/usbguard-daemon.conf controls this behavior?

    Answer and explanation

    Correct answer: B

    The ImplicitPolicyTarget directive determines how the daemon treats devices that do not match any rule in the policy. However, regarding the daemon state, PresentControllerPolicy and ImplicitPolicyTarget work together. For fail-safe behavior specifically when the daemon is not running, the kernel enforcing usually keeps the last state, but within the configuration, ensuring ImplicitPolicyTarget=block ensures that any device not explicitly allowed is blocked during evaluation.

  4. Question 4

    Beginner

    Configure SELinux · Analyze and correct existing SELinux configurations

    While investigating a permission issue on a web server, you notice that the Apache service cannot read files in a custom directory /srv/www/html. You suspect an SELinux context mismatch. You decide to compare the file contexts of the working default directory /var/www/html with your custom directory. Which command should you use to view the security context of the files?

    Answer and explanation

    Correct answer: C

    The ls -Z command displays the SELinux security context (user:role:type:level) of files and directories, allowing you to compare the contexts between the two locations.

  5. Question 5

    Intermediate

    Configure system auditing · Write rules to log auditable events

    You need to configure the Linux Audit system to monitor all write access and attribute changes to the /etc/passwd file by any user. The rule must add a key named 'identity_change' to the log entries. Which audit rule is correct?

    Answer and explanation

    Correct answer: D

    The -w flag sets a file system watch. The -p flag specifies permissions to watch for: 'w' (write) and 'a' (attribute change). The -k flag assigns a key to the rule for searching logs later.

  6. Question 6

    Advanced

    Configure Ansible Automation Platform · Implement access controls for automation controller

    Your organization uses Red Hat Ansible Automation Platform. You need to ensure that a junior administrator, 'UserA', can only run playbooks against a specific set of development servers defined in an inventory named 'DevInventory'. They should not see or access the 'ProdInventory'. Which combination of permissions must be assigned to UserA in the Automation Controller?

    Answer and explanation

    Correct answer: C

    To run a job, a user needs 'Execute' permission on the Job Template. The Job Template is linked to an Inventory. To use that inventory, the user specifically needs the 'Use' role on that Inventory object. They do not need 'Admin' or 'Read' on other inventories they shouldn't access.

Register free for 6 more questions

Or unlock all 140 EX415 questions with explanations, timed mode and flashcards.