Red Hat Certified System Administrator RHCSA Simulator #5
Simulator Summary
0 of 60 Questions completed
Questions:
Information
You have already completed the simulator before. Hence you can not start it again.
Simulator is loading…
You must sign in or sign up to start the simulator.
You must first complete the following:
Results
Results
0 of 60 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
-
Unfortunately, your results in the simulator were not up to the desired standards. 😔
However, take advantage of your unlimited access and continue to practice.
Remember, persistence and dedication will lead to mastery. 😎 -
Congratulations! 🎉
You have successfully passed the simulator and are now one step closer to achieving your certification.
We hope you will consider joining us again in your future certification journey.Wishing you the best of luck with the upcoming exam. Keep up the great work! 💪
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 60
1. Question
You are troubleshooting a service on a Red Hat system and want to redirect both the standard output and standard error of the command service-check to a file named service.log. Which command should you use to accomplish this?
CorrectIncorrect -
Question 2 of 60
2. Question
You have two commands, generate-report and send-report. You want to take the output of generate-report and use it as the input for send-report. Which command sequence should you use?
CorrectIncorrect -
Question 3 of 60
3. Question
You are tasked with logging into a remote server named server01.example.com using SSH. The username you have been given is adminuser. Which of the following commands would correctly allow you to access the remote system?
CorrectIncorrect -
Question 4 of 60
4. Question
You need to copy a file named data.txt from your local machine to a directory /home/adminuser/documents/ on a remote server server02.example.com using the user adminuser. Which of the following commands should you use?
CorrectIncorrect -
Question 5 of 60
5. Question
You are currently logged in as user1 on a Red Hat system. Your supervisor has asked you to switch to user2 without asking for user2’s password. Which command should you use, assuming you have root privileges?
CorrectIncorrect -
Question 6 of 60
6. Question
During an audit, you are required to log in directly as root in a terminal. However, upon entering the root password, you find that you’re unable to log in. What could be the most likely reason for this behavior?
CorrectIncorrect -
Question 7 of 60
7. Question
You are tasked with creating a script that checks whether a user-specified file exists and is readable. If both conditions are met, the script should print “File is readable.” Which of the following scripts fulfills these requirements?
CorrectIncorrect -
Question 8 of 60
8. Question
A junior administrator has written a script that checks if a directory is empty. However, he’s unsure about the correctness of his conditional checks. Which of the following snippets will correctly print “Directory is empty.” if the specified directory is empty?
CorrectIncorrect -
Question 9 of 60
9. Question
You are asked to create a script that accepts a list of file names as command line arguments and then prints each filename with its respective line count. Which of the following scripts would successfully achieve this task?
CorrectIncorrect -
Question 10 of 60
10. Question
You’ve been given a task to create a script that echoes back the names of all directories within the current working directory. Which of the following scripts achieves this?
CorrectIncorrect -
Question 11 of 60
11. Question
You’ve written a script to automate some tasks, and it accepts two arguments: a username and an email address. You wish to print a welcome message using these inputs. Which of the following scripts correctly prints “Welcome [username], your email is [email]”?
CorrectIncorrect -
Question 12 of 60
12. Question
You are tasked with creating a script that receives exactly three arguments: a file name, a search string, and a replacement string. The script should replace the search string in the file with the replacement string. Which line of code should you use to ensure that the script exits if not provided with three arguments?
CorrectIncorrect -
Question 13 of 60
13. Question
During a boot process of a system using GRUB2, you need to gain access to the system due to a forgotten root password. Which of the following steps should you perform immediately after the system starts and the GRUB2 menu appears?
CorrectIncorrect -
Question 14 of 60
14. Question
You’ve interrupted the boot process at the GRUB2 menu to reset the root password. After modifying the kernel line and booting, which command should you use to change the root filesystem into a usable root environment?
CorrectIncorrect -
Question 15 of 60
15. Question
A server is experiencing high CPU utilization, and you want to identify the most CPU-intensive process. Which command would provide a real-time display of system processes sorted by CPU usage?
CorrectIncorrect -
Question 16 of 60
16. Question
While monitoring processes on a system, you identify a misbehaving application with PID 1234 consuming excessive memory. You want to terminate this process gracefully. Which command will achieve this?
CorrectIncorrect -
Question 17 of 60
17. Question
You’re running an application with PID 4567 that’s critical for a current operation, and you want to give it higher priority over other processes. Which command should you use to adjust the priority level (niceness) of this process to a more favorable scheduling?
CorrectIncorrect -
Question 18 of 60
18. Question
An administrator wants to start a backup process but doesn’t want it to monopolize system resources and interfere with other running applications. Which command would initiate a new process with a decreased priority?
CorrectIncorrect -
Question 19 of 60
19. Question
James is tasked with creating a new partition on a disk /dev/sda which uses the MBR partitioning scheme. Which command would he use to start the partition creation process?
CorrectIncorrect -
Question 20 of 60
20. Question
Rebecca has a new 4TB hard drive on her server. She wants to create a partition scheme that allows her to create more than four primary partitions. Which partitioning scheme should she choose?
CorrectIncorrect -
Question 21 of 60
21. Question
John is setting up LVM on his Red Hat system and needs to convert a freshly created partition, /dev/sdb1, into a physical volume for LVM. Which command should he use?
CorrectIncorrect -
Question 22 of 60
22. Question
Emily wants to remove a physical volume /dev/sdc1 from LVM. Before doing this, she needs to make sure it’s not part of any volume group. Which command should she use to remove this physical volume?
CorrectIncorrect -
Question 23 of 60
23. Question
Alice has just created two new physical volumes, /dev/sdb1 and /dev/sdc1. She wants to add both of these physical volumes to an existing volume group named vg_data. Which command should she use?
CorrectIncorrect -
Question 24 of 60
24. Question
Robert wants to ensure that the physical volume /dev/sdd1 is a part of the volume group vg_backup. Which command should he use to verify the assignment?
CorrectIncorrect -
Question 25 of 60
25. Question
You have been given the task of mounting a remote NFS share located at 192.168.1.10:/shared to a local directory /mnt/nfs. Which of the following commands will correctly mount the NFS share?
CorrectIncorrect -
Question 26 of 60
26. Question
After troubleshooting network connectivity issues, you need to unmount an NFS share mounted at /mnt/nfs. Which of the following commands will unmount the NFS share without forcibly closing any opened files?
CorrectIncorrect -
Question 27 of 60
27. Question
Your company wants to configure autofs to automatically mount an NFS share located at server:/data when accessed via /net/data. Which of the following lines should be added to the /etc/auto.master file to achieve this?
CorrectIncorrect -
Question 28 of 60
28. Question
You are trying to troubleshoot an issue with autofs not auto-mounting a directory. You decide to restart the autofs service. Which of the following commands will correctly restart the service?
CorrectIncorrect -
Question 29 of 60
29. Question
You have an LVM logical volume named lv_data under the volume group vg_projects. You’ve been asked to extend this logical volume by 50GB. Which of the following commands would be used to extend the logical volume?
CorrectIncorrect -
Question 30 of 60
30. Question
You’ve extended the logical volume lv_web in the volume group vg_services by 20GB. The filesystem on this logical volume is ext4. Before the new space is usable, which command must be run?
CorrectIncorrect -
Question 31 of 60
31. Question
Your organization uses the httpd service for its web server. After performing a routine maintenance, you need to ensure the httpd service is up and running and will start automatically upon system reboot. Which of the following commands will achieve this?
CorrectIncorrect -
Question 32 of 60
32. Question
You have been given a server that you suspect is booting directly into a graphical environment. You want to configure it to boot into a multi-user environment without a graphical interface. Which command would you use to set the system to boot into the desired target?
CorrectIncorrect -
Question 33 of 60
33. Question
You are tasked with setting up a Red Hat server that should boot into emergency mode for recovery purposes. Which of the following commands would allow the server to boot into emergency mode by default?
CorrectIncorrect -
Question 34 of 60
34. Question
A system administrator is setting up a new Red Hat server and wants to configure it to synchronize time with a remote NTP server at ntp.example.com. Which command should the administrator use to achieve this?
CorrectIncorrect -
Question 35 of 60
35. Question
You are tasked with installing the software package named “webtool” from a remote repository at http://repos.example.com/rhel. What is the correct command to achieve this?
CorrectIncorrect -
Question 36 of 60
36. Question
You’ve just set up a DHCP service on your Red Hat server to provide IP addresses for devices in your local network. You need to ensure that every time the system boots, the DHCP service starts automatically. Which of the following commands will achieve this?
CorrectIncorrect -
Question 37 of 60
37. Question
You’ve been tasked with ensuring that the Apache web server (httpd) is not only running but also set to start automatically every time your Red Hat server boots. After starting the httpd service, which command should you execute next?
CorrectIncorrect -
Question 38 of 60
38. Question
As a system administrator, you’re troubleshooting a hostname resolution issue on a Red Hat server. You suspect a problem with the DNS resolution order. Which file should you inspect to determine the order in which the system consults various data sources for name resolution?
CorrectIncorrect -
Question 39 of 60
39. Question
Gabriel wishes to add a secondary static IPv6 address, 2001:db8::10/64, to his Red Hat server’s network interface, ens34. Which of the following commands will allow him to make this change?
CorrectIncorrect -
Question 40 of 60
40. Question
Rebecca wants to configure an IPv6 address of 2001:db8::2 on the interface eth1. After adding the address, she wants to verify it. Which command should she use to check the IPv6 address configuration on eth1?
CorrectIncorrect -
Question 41 of 60
41. Question
John is setting up a web server on RHEL 8 and wants to ensure that the Apache HTTP service, httpd, starts every time the system boots. However, he does not want to start the service immediately. Which command should John execute?
CorrectIncorrect -
Question 42 of 60
42. Question
Elena is receiving reports that her company’s web server isn’t accessible externally. She suspects a firewall issue. Which firewall-cmd command should Elena use to check if HTTP service is allowed in the default zone?
CorrectIncorrect -
Question 43 of 60
43. Question
As a security measure, you want to ensure that the passwords for all users expire after 90 days. How can you set this default password aging policy?
CorrectIncorrect -
Question 44 of 60
44. Question
You’ve just been informed that there’s a new project starting in your organization, and you’ve been tasked with setting up a new group for the project team named projectX. Which command will correctly create this new group?
CorrectIncorrect -
Question 45 of 60
45. Question
A new team member, Ella, has recently joined the projectX team. You need to add her to the projectX group without removing her from any of her existing groups. Which command should you use?
CorrectIncorrect -
Question 46 of 60
46. Question
As the system administrator, you’ve been asked to give a user named “peter” superuser privileges for administrative tasks without sharing the root password. Which file should you edit to accomplish this?
CorrectIncorrect -
Question 47 of 60
47. Question
Your colleague, Sarah, needs to be able to run all commands as the root user but without the need for a password. Which entry should you add to the /etc/sudoers file?
CorrectIncorrect -
Question 48 of 60
48. Question
An intern mistakenly removed user “alice” from the “finance” group. As the system administrator, you need to re-add Alice to the finance group without changing her primary group or removing her from other groups. Which command will you use?
CorrectIncorrect -
Question 49 of 60
49. Question
John is working on a Red Hat server and needs to set SELinux to permissive mode for troubleshooting without rebooting the system. Which command should he use?
CorrectIncorrect -
Question 50 of 60
50. Question
Samantha wants to change the SELinux mode to enforcing on her Red Hat system. Which command should she use?
CorrectIncorrect -
Question 51 of 60
51. Question
David is troubleshooting a web server and needs to identify the SELinux context of the main web server configuration file, /etc/httpd/conf/httpd.conf. Which command should he use?
CorrectIncorrect -
Question 52 of 60
52. Question
Samantha needs to check the SELinux context of the running httpd process. Which command will provide her with the necessary information?
CorrectIncorrect -
Question 53 of 60
53. Question
While configuring a web server, Peter mistakenly changed the SELinux context of the entire /var/www/html directory. He needs to reset the directory and its contents back to the default SELinux contexts. Which command should he use?
CorrectIncorrect -
Question 54 of 60
54. Question
Anna, a system administrator, noticed that a configuration file /etc/myconfig.conf has an incorrect SELinux context. She wants to restore the default SELinux context for that file without affecting other files. Which command will help her achieve this?
CorrectIncorrect -
Question 55 of 60
55. Question
Alice wants to run an Nginx server inside a container on port 8080 of the host, mapping it to the default port 80 of Nginx in the container. Which command should she use?
CorrectIncorrect -
Question 56 of 60
56. Question
John needs to run a PostgreSQL service inside a container. He also wants to set an environment variable POSTGRES_PASSWORD=mysecretpassword during the container startup. Which of the following commands is correct for this purpose?
CorrectIncorrect -
Question 57 of 60
57. Question
John wants to generate a systemd service unit file for a container named “web_app” so that it starts automatically with the system boot. Which podman command should John use?
CorrectIncorrect -
Question 58 of 60
58. Question
After generating a systemd service unit file for her container, Emily wants to enable and start the container service named “database_container”. Which set of commands should Emily use?
CorrectIncorrect -
Question 59 of 60
59. Question
Alice is attempting to run a PostgreSQL container and wants to make sure that the data remains persistent even if the container stops or is deleted. She has created a directory /data/pgsql on her host machine. Which command should Alice use to run the PostgreSQL container with persistent storage?
CorrectIncorrect -
Question 60 of 60
60. Question
Bob wants to ensure that the SELinux labels are set correctly when he attaches a persistent storage directory, /app/data, from the host to his container at /container/data. Which command will correctly run the container with the adjusted SELinux labels?
CorrectIncorrect