Red Hat Certified System Administrator RHCSA Simulator #3
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 have been given a task to create a new file named report.txt in the /home/user directory and then add content to it. Which of the following commands will allow you to create and then edit the file using the default text editor?
CorrectIncorrect -
Question 2 of 60
2. Question
You are troubleshooting a system issue and need to quickly append a line of text, “Error observed at 3 PM,” to a log file named system.log located in the /var/logs directory. Which of the following commands will accomplish this task?
CorrectIncorrect -
Question 3 of 60
3. Question
You are working on a Linux system and need to create a new directory named project_data within the /home/user directory and then move a file named data.txt from /tmp to this newly created directory. Which of the following sequences of commands will accomplish this task?
CorrectIncorrect -
Question 4 of 60
4. Question
You have a directory named old_reports which contains several report files. You need to make a copy of this entire directory and name the copy backup_reports, both directories being in the same parent directory. Which of the following commands will allow you to accomplish this?
CorrectIncorrect -
Question 5 of 60
5. Question
You have a critical configuration file named config.conf in the /etc/app directory. You need to create a hard link named config.hlink within the same directory. Which command will accomplish this?
CorrectIncorrect -
Question 6 of 60
6. Question
You are asked to create a symbolic link named latest.log in the /logs directory that points to a file named log_20231025.txt within the same directory. Which of the following commands will help you achieve this?
CorrectIncorrect -
Question 7 of 60
7. Question
You are writing a script that requires two input arguments: a source file and a destination directory. You want to ensure that if the user doesn’t provide both arguments, the script prints a helpful message. Which of the following code snippets accomplishes this?
CorrectIncorrect -
Question 8 of 60
8. Question
In a script, you want to print out the first argument given to it. However, if no argument is provided, you want it to print “No argument given.” Which of the following code snippets accomplishes this?
CorrectIncorrect -
Question 9 of 60
9. Question
You are tasked with creating a script that checks for the amount of free memory on your system and sends a warning message if the free memory is less than 500MB. Which of the following code snippets would accomplish this?
CorrectIncorrect -
Question 10 of 60
10. Question
You want to create a script that counts the number of active SSH connections to your server. Which of the following code snippets will accomplish this?
CorrectIncorrect -
Question 11 of 60
11. Question
You have a script that requires the user to provide a username as an argument. You need to verify that the provided argument is not empty. Which of the following code snippets correctly checks if the argument is empty?
CorrectIncorrect -
Question 12 of 60
12. Question
You want to write a script that checks if a directory exists. If it doesn’t, the script should create it. Which of the following code snippets accomplishes this task for a directory named “backup”?
CorrectIncorrect -
Question 13 of 60
13. Question
You suspect there might have been an authentication issue on a Red Hat system. To verify this suspicion, you decide to inspect the relevant system log. Which of the following log files would you specifically check to find authentication-related messages?
CorrectIncorrect -
Question 14 of 60
14. Question
You’re troubleshooting a service failure on a Red Hat system. To get a more detailed timestamped account of system events, you decide to utilize the systemd journal. Which of the following commands will display the journal logs?
CorrectIncorrect -
Question 15 of 60
15. Question
After a recent audit, the security team has recommended preserving systemd journal logs on your Red Hat system for longer durations for compliance reasons. Which of the following steps should you take to ensure systemd journal logs are stored persistently beyond the default behavior?
CorrectIncorrect -
Question 16 of 60
16. Question
You are tasked with limiting the amount of disk space that systemd journal logs can use on your Red Hat system. Which file would you edit to impose this restriction?
CorrectIncorrect -
Question 17 of 60
17. Question
You have been informed that the SSH service on a Red Hat system is not responding to incoming requests. You want to check its status. Which of the following commands would you use to achieve this?
CorrectIncorrect -
Question 18 of 60
18. Question
Your manager has asked you to temporarily disable the HTTP service on a Red Hat system to perform some maintenance tasks. After the tasks are completed, you’ll be asked to re-enable the service. Which command should you use to stop the HTTP service but ensure it starts again after a reboot?
CorrectIncorrect -
Question 19 of 60
19. Question
Alice needs to create a new partition on a GPT disk named /dev/sdb. Which utility should she use, considering she prefers a command-line interface?
CorrectIncorrect -
Question 20 of 60
20. Question
John has been asked to list all the partitions along with their filesystem types on a disk named /dev/sdc. Which command should he use to accomplish this task?
CorrectIncorrect -
Question 21 of 60
21. Question
Emma is setting up a new Linux system and needs to create a physical volume on the /dev/sdb1 partition for use in a logical volume. Which command should she use?
CorrectIncorrect -
Question 22 of 60
22. Question
After repurposing a disk, Lucas wants to remove the physical volume that was previously set up on /dev/sdc1. What command should he use to accomplish this
CorrectIncorrect -
Question 23 of 60
23. Question
Julia is planning to expand the storage capacity of a volume group named “DataVG”. She has initialized a new physical volume on /dev/sdd1. Which command should she use to add this physical volume to the “DataVG” volume group?
CorrectIncorrect -
Question 24 of 60
24. Question
Leo has a physical volume on /dev/sde1 that he mistakenly added to the volume group “BackupVG”. He intended to add it to “MainVG”. Which sequence of commands should he use to reassign the physical volume from “BackupVG” to “MainVG”?
CorrectIncorrect -
Question 25 of 60
25. Question
You have an existing ext4 file system mounted at /data. You need to unmount this file system, convert it to xfs, and then remount it. Which set of commands should you use?
CorrectIncorrect -
Question 26 of 60
26. Question
You have been instructed to mount an NFS share from a server named nfs-server.example.com with the export path /exports/data to your local directory /mnt/data. Which command will correctly mount the NFS share?
CorrectIncorrect -
Question 27 of 60
27. Question
You have an NFS share mounted at /mnt/data from nfs-server.example.com. You are required to unmount this NFS share. Which command will successfully unmount it?
CorrectIncorrect -
Question 28 of 60
28. Question
You have been given a task to automatically mount the NFS share nfs-server.example.com:/exports/docs to the directory /auto/docs when accessed, and unmount it after it’s no longer in use. Which of the following configurations in the /etc/auto.master file would facilitate this requirement?
CorrectIncorrect -
Question 29 of 60
29. Question
You have a system where home directories are meant to be automatically mounted from an NFS server when a user logs in. The NFS server is nfs-server.example.com, and the exported home directories are located at /exports/home/. Which entry in /etc/auto.master will direct autofs to manage the automatic mounting of home directories?
CorrectIncorrect -
Question 30 of 60
30. Question
You are tasked with extending the logical volume named lv_data in the volume group vg_projects by 5GB. Which command would you use to achieve this?
CorrectIncorrect -
Question 31 of 60
31. Question
You are setting up a new Red Hat server and need to ensure that the httpd service starts automatically upon system boot. Which of the following systemctl commands should you use to achieve this?
CorrectIncorrect -
Question 32 of 60
32. Question
A system administrator notices that a particular service, myservice, is not running after a system reboot. To troubleshoot, the administrator wants to check the current status and see any logs related to the service’s most recent start attempt. Which of the following commands should be executed?
CorrectIncorrect -
Question 33 of 60
33. Question
A Linux server at your organization has been configured to boot into a graphical target by default. However, due to a change in requirements, you now need to configure it to boot into multi-user mode by default, which doesn’t provide any graphical interface. Which command accomplishes this?
CorrectIncorrect -
Question 34 of 60
34. Question
You are configuring a Red Hat server which should boot into emergency mode by default for maintenance purposes. Which command ensures the server boots into this mode automatically during the next system startup?
CorrectIncorrect -
Question 35 of 60
35. Question
You are tasked with configuring a Red Hat Enterprise Linux system to synchronize its clock with a specific NTP server: ntp.example.com. Which of the following commands should you use to add this server for synchronization?
CorrectIncorrect -
Question 36 of 60
36. Question
You have a system that needs to synchronize its time with an internal NTP server, and you have decided to use chronyd for this task. You’ve already installed the chrony package. What is the next step you need to perform?
CorrectIncorrect -
Question 37 of 60
37. Question
Jacob is managing a RHEL 8 server which runs a critical web application. To ensure the web server service starts automatically after a system reboot, which of the following commands should Jacob use?
CorrectIncorrect -
Question 38 of 60
38. Question
Linda is troubleshooting a RHEL 8 machine which has a network service that isn’t starting automatically upon boot. She suspects the service isn’t enabled. To check the enabled status of a service called networkManager, which command should she use?
CorrectIncorrect -
Question 39 of 60
39. Question
Alex is working as a system administrator for a company. He wants to temporarily allow incoming SSH traffic to the server. Which firewall-cmd command should Alex use to achieve this?
CorrectIncorrect -
Question 40 of 60
40. 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 41 of 60
41. Question
Daniel wants to configure a static IP address of 192.168.1.10 with a netmask of 255.255.255.0 on the interface eth0. Which command should he use to achieve this?
CorrectIncorrect -
Question 42 of 60
42. 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 43 of 60
43. Question
As a system administrator, you need to allow a user named “mark” to restart the httpd service without entering a password, but he should not have permissions to stop or start the service. Which configuration should you add to the sudoers file?
CorrectIncorrect -
Question 44 of 60
44. Question
A new project in your organization requires a temporary user account for an external consultant named “Alan”. The account should exist for only 30 days. Which command would correctly create this user account with the specified condition?
CorrectIncorrect -
Question 45 of 60
45. Question
To onboard a new developer in your team named “Sophie”, you are asked to create a new user account for her with the default shell set to /bin/tcsh. How can you accomplish this?
CorrectIncorrect -
Question 46 of 60
46. Question
You’ve received a request to ensure that the user account “jdoe” has a password that expires every 60 days. Which command will set this requirement for user “jdoe”?
CorrectIncorrect -
Question 47 of 60
47. Question
An audit recommendation has indicated that all user passwords should be changed at least every 45 days. You decide to modify the default settings to ensure compliance. Which command will enforce this policy?
CorrectIncorrect -
Question 48 of 60
48. Question
You are setting up a new project environment and want to create a new group named “projectX” to which you can add users who are members of this project. Which command will achieve this?
CorrectIncorrect -
Question 49 of 60
49. Question
John is a system administrator responsible for managing a Red Hat Enterprise Linux server. He needs to add a custom port label, mycustomport, to SELinux to allow network services to bind to it. Which command should he use to add the custom port label?
CorrectIncorrect -
Question 50 of 60
50. Question
Sarah, a system administrator, needs to remove a custom port label, mycustomport, from SELinux because it’s no longer needed. Which command should she use to remove the custom port label?
CorrectIncorrect -
Question 51 of 60
51. Question
Alice is a system administrator managing a Red Hat Enterprise Linux server. She needs to allow Apache HTTP to connect to network services and perform network-related operations. Which boolean value should she set to enable this access?
CorrectIncorrect -
Question 52 of 60
52. Question
John needs to allow the FTP server to connect to the network and perform network-related operations. Which boolean value should he set to enable this access?
CorrectIncorrect -
Question 53 of 60
53. Question
Sarah is a system administrator working with a Red Hat Enterprise Linux server. After configuring a new service, she encounters an SELinux policy violation. What command can she use to diagnose the SELinux violations and generate relevant audit logs for analysis?
CorrectIncorrect -
Question 54 of 60
54. Question
David is a system administrator responsible for maintaining a Red Hat Enterprise Linux server. He encounters an SELinux policy violation related to a custom application. After using the audit2why command to diagnose the violation, it suggests that he should change the SELinux boolean to allow the action. Which command can he use to change an SELinux boolean?
CorrectIncorrect -
Question 55 of 60
55. Question
Sophia has a web application running inside a container. She wants to ensure that user uploads within the container are stored on the host filesystem for persistence. Which of the following podman commands will correctly attach a directory from the host to the container at /app/uploads?
CorrectIncorrect -
Question 56 of 60
56. Question
Eli is running a PostgreSQL container and wants to ensure that the database data remains persistent even if the container is removed. He decided to mount a directory from the host to /var/lib/postgresql/data inside the container. Which consideration regarding SELinux context should Eli remember when mounting this directory?
CorrectIncorrect -
Question 57 of 60
57. Question
Liam wants to search for a MySQL container image in a remote registry without actually downloading it. Which of the following podman commands can he use to achieve this?
CorrectIncorrect -
Question 58 of 60
58. Question
Ella is planning to retrieve a specific version of the Nginx container image from a remote registry. She knows the version is 1.18. Which of the following commands should she use to correctly pull this version?
CorrectIncorrect -
Question 59 of 60
59. Question
Oliver recently downloaded a Redis container image and wants to inspect the detailed configuration of this image. Which command should Oliver use to retrieve detailed information about the Redis container image?
CorrectIncorrect -
Question 60 of 60
60. Question
Sophia wants to find out the creation date of the latest alpine container image she has on her system. Which command will provide her with this specific information?
CorrectIncorrect