Oracle Linux 8 Advanced System Administration (1z1-106) Free Practice Test
Question 1
Examine this command:
# ssh -L 5011:127.0.0.1:80 [email protected] -f sleep 30
Which two are true upon execution?
# ssh -L 5011:127.0.0.1:80 [email protected] -f sleep 30
Which two are true upon execution?
Correct Answer: A,B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
Which two statements are true about kernel boot parameters?
Correct Answer: C,D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
Examine these requirements for a host with a user oracle:
* Network services must run in a confined domain.
* The oracle user must be confined.
* The oracle user must be able to use Mozilla Firefox.
* Access to files and directories must be granted based only on SELinux contexts.
* The SELinux configuration must be persistent across system restarts.
* Users must be able to publish private HTML content.
Now examine these commands and output:
# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: permissive
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max Kernel policy version: 31
# setenforce enforcing
# semanage login -a -s guest_u oracle
# setsebool -P http_enable_homedirs on
Which requirements are satisfied?
* Network services must run in a confined domain.
* The oracle user must be confined.
* The oracle user must be able to use Mozilla Firefox.
* Access to files and directories must be granted based only on SELinux contexts.
* The SELinux configuration must be persistent across system restarts.
* Users must be able to publish private HTML content.
Now examine these commands and output:
# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: permissive
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max Kernel policy version: 31
# setenforce enforcing
# semanage login -a -s guest_u oracle
# setsebool -P http_enable_homedirs on
Which requirements are satisfied?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
Which two default user account settings are contained in /etc/login.defs?
Correct Answer: B,C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Which two statements are true about fdisk?
Correct Answer: A,E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
Which two statements are true about systemd system and service manager?
Correct Answer: C,D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
Examine this segment of /etc/rsyslog.conf:
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg :omusrmsg:*
Now examine this log output:
less
Nov 9 20:32:16 server02 sudo[4570]: pam_unix(sudo:session): session opened for user opc (uid=0) Nov 9 20:32:17 server02 sudo[4570]: pam_unix(sudo:session): session closed Nov 9 20:32:24 server02 unix_chkpwd[4661]: password check failed for user Nov 9 20:32:24 server02 su[4581]: pam_unix(su:auth): authentication failed; logname= uid=1000 euid=0 tty=pts/0 ruser=opc rhost= user=root Which setting enabled the reporting of this log file output?
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg :omusrmsg:*
Now examine this log output:
less
Nov 9 20:32:16 server02 sudo[4570]: pam_unix(sudo:session): session opened for user opc (uid=0) Nov 9 20:32:17 server02 sudo[4570]: pam_unix(sudo:session): session closed Nov 9 20:32:24 server02 unix_chkpwd[4661]: password check failed for user Nov 9 20:32:24 server02 su[4581]: pam_unix(su:auth): authentication failed; logname= uid=1000 euid=0 tty=pts/0 ruser=opc rhost= user=root Which setting enabled the reporting of this log file output?
Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).