Winter Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

Oracle 1z0-106 Oracle Linux 8 Advanced System Administration Exam Practice Test

Page: 1 / 6
Total 60 questions

Oracle Linux 8 Advanced System Administration Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$43.75  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$38.5  $109.99
Question 1

Which two methods of changing kernel parameters can you use to modify values for the running system?

Options:

A.

Issuing the sysctl -w command to write values to specific files in the /proc/sys directory.

B.

Using the echo command to write values to specific files in the /proc/sys directory.

C.

Issuing the sysctl -w command to write values to specific files in the /sys directory.

D.

Using the echo command to write values to specific files in the /sys directory.

E.

Adding to or modifying parameters and values in the /etc/sysctl.conf file followed by issuing the sysctl -p command.

Question 2

Examine this command:

# ssh -L 5011:127.0.0.1:80 bob@10.10.2.20 -f sleep 30

Which two are true upon execution?

Options:

A.

A reverse tunnel is created back to the local host on port 80.

B.

A local port forward is created between client and server.

C.

A socket remains open for 30 minutes unless a connection is established.

D.

A web server is listening on port 5011.

E.

An SSH connection process is forked to the background.

Question 3

You must add an additional swap device and you add this entry to /etc/fstab:

/.swapfile none swap defaults 0 0

Examine these commands and output:

# dd if=/dev/zero of=/.swapfile bs=1024 count=1048576

1048576+0 records in

1048576+0 records out

1073741824 bytes (1.1 GB, 1.0 GiB) copied, 4.32499 s, 248 MB/s

# swapon -a

swapon: /.swapfile: insecure permissions 0644, 0600 suggested.

swapon: /.swapfile: read swap header failed

Which two actions must you perform to add this swap device?

Options:

A.

Initialize the .swapfile file by using the mkswap command.

B.

Execute swapon -all.

C.

Change defaults to user in the /etc/fstab entry.

D.

Assign a label to the .swapfile file by using the swaplabel command.

E.

Execute swapon -L swapfile /.swapfile after adding a label.

F.

Use a physical disk partition type of 82 (Linux swap).

Question 4

Which two are true about using Ksplice?

Options:

A.

Ksplice can be used without a network connection

B.

It can patch the kernel without shutting down the system.

C.

Yum cannot upgrade a kernel patched by Ksplice

D.

Ksplice has two clients; each can run in three different modes.

E.

The Ksplice client is freely available to all customers.

Question 5

Examine this command:

$ podman run –name=oracleshell -it oraclelinux:8 -slim

Which two statements are true upon execution?

Options:

A.

The container creates and starts an interactive shell.

B.

The container named oracleshell must already exist; otherwise, the command fails.

C.

The command fails if the oraclelinux:8 -slim image does not exist on the local machine.

D.

The container is created and started in a single command.

E.

The container is removed by typing exit at the bash shell prompt.

Question 6

Examine these commands executed by root:

# mkdir -p /jail /jail/bin /jail/lib64

# cp $(which bash) /jail/bin/

# ldd $(which bash)

linux-vdso.so.1 (0x00007ffd574f5000)

libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007fb458c2c000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007fb458a28000)

libc.so.6 => /lib64/libc.so.6 (0x00007fb458666000)

/lib64/ld-linux-x86-64.so.2 (0x00007fb459177000)

# cp /lib64/libtinfo.so.6 /jail/lib64/

# cp /lib64/libdl.so.2 /jail/lib64/

# cp /lib64/libc.so.6 /jail/lib64/

# cp /lib64/ld-linux-x86-64.so.2 /jail/lib64/

# chroot /jail

What is the output from the cd, pwd, and ls commands?

Options:

A.

bash-4.4# cd

bash: cd: /root: No such file or directory

bash-4.4# pwd

/

bash-4.4# ls

bin lib64

B.

bash-4.4# cd

bash: cd: /root: Unable to access chrooted file or directory /root

bash-4.4# pwd

/

bash-4.4# ls

bin lib64

C.

bash-4.4# cd

bash: cd: /root: No such file or directory

bash-4.4# pwd

/root

bash-4.4# ls

bash: ls: command not found

D.

bash-4.4# cd

bash: cd: command not found

bash-4.4# pwd

bash: pwd: command not found

bash-4.4# ls

bash: ls: command not found

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?

Options:

A.

authpriv.* /var/log/auth

B.

*.emerg *

C.

*.info;mail.none;authpriv.none;cron.none /var/log/messages

D.

#kern.* /dev/sssd/sssd.log

E.

cron.* /var/log/cron

Question 8

Which three are features of the btrfs file system?

Options:

A.

Block devices mirroring

B.

Copy-on-write metadata

C.

Cluster file system

D.

Efficient storage for small files

E.

Online resizing

F.

General-purpose volume manager

G.

Automatic defragmentation

Question 9

Which two directories store PAM authentication modules?

Options:

A.

/lib64/security

B.

/etc/pam.d

C.

/usr/lib

D.

/lib/security

E.

/var/lib

Question 10

Which three statements are true about DNF modules?

Options:

A.

Modules are a group of packages that are installed together along with dependencies.

B.

Installing a module allows a user to select a specific stream.

C.

Profiles are used to provide alternate versions of the same module.

D.

Streams are used to define optional configurations of modules.

E.

Streams cannot declare dependencies on the streams of other modules.

F.

Packages exist in multiple streams, where each stream contains a different version.

G.

Switching an enabled module stream automatically changes installed packages.

Question 11

Examine the contents of the /etc/exports file on an NFS server:

/status *(rw,async)

/usr/shared/tools *(all-squash,anonuid=501,anongid=501,ro)

/projects/big *(ro) pteam(rw)

The NFS server exports /usr/shared/tools to NFS clients. Which statement is true?

Options:

A.

All clients except those with a local 501 user can mount /usr/shared/tools read-only.

B.

All clients can mount /usr/shared/tools read-only and NFS explicitly maps all requests to the UID and GID of the privileged local 501 user.

C.

All clients can mount /usr/shared/tools read-only and NFS explicitly maps all requests to the UID and GID of the unprivileged local 501 user.

D.

All clients can mount /usr/shared/tools read-only and all-squash overrides explicit mapping of the UID and GID defined by anonuid and anongid.

E.

All clients can mount /usr/shared/tools read-only and NFS ignores the directives defined by the anonuid and anongid options.

Question 12

Which statement is true about slice units?

Options:

A.

A slice unit is a concept for hierarchically managing resources in a group of processes.

B.

Processes in a slice unit are named at the same level as scopes and services.

C.

The system.slice contains all system services and user sessions.

D.

A slice unit accepts multiple names by the creation of additional symlinks to the unit file.

Question 13

Which two statements are true about kernel boot parameters?

Options:

A.

Boot parameters are defined as values for the GRUB_CMDLINE_LINUX directive in the /etc/default/grub file.

B.

Boot parameters defined as values for the GRUB_BOOT command-line interface are persistent and apply to all subsequent reboots.

C.

Each kernel version's boot parameters are stored in independent configuration files in/boot/loader/entries.

D.

Parameters passed to the kernel from the GRUB 2 menu are persistent and apply to all subsequent reboots.

Question 14

Which two features does a user private group provide?

Options:

A.

Provision of a unique group.

B.

Capability to create new group users

C.

Capability to execute sudo

D.

Ability for only a group’s users to read files in a new directory

E.

Capability to prevent other users from modifying a file

Question 15

Which mdadm command creates a RAID-1 device consisting of two block volumes and one spare device?

Options:

A.

mdadm –create /dev/md0 –level=5 –raid-devices=2 /dev/xvdd1 /dev/xvdd2 –spare-devices=1 /dev/xvdd3

B.

mdadm –create /dev/md0 –level=1 –raid-devices=2 /dev/xvdd1 /dev/xvdd2

C.

mdadm –create /dev/md0 –level=1 –raid-devices=2 /dev/xvdd1 /dev/xvdd2 –spare-devices=1 /dev/xvdd3

D.

mdadm –create /dev/md0 –level=0 –raid-devices=2 /dev/xvdd1 /dev/xvdd2 –spare-devices=1 /dev/xvdd3

Question 16

Which two statements are true about the at and batch commands?

Options:

A.

batch schedules the execution of recurring tasks.

B.

at schedules the execution of recurring tasks.

C.

Both at and batch read from standard input, or you can specify a file and execute the commands with the -f option.

D.

batch executes a task when the system load average is greater than 0.8.

E.

at executes a one-time task to run at a specific time.

Question 17

Which two statements are true about control groups (cgroups) in Oracle Linux 8?

Options:

A.

Oracle Linux 8 implements cgroups v2 by default.

B.

A cgroup is a collection of processes bound to a set of limits or parameters defined in the cgroups filesystem.

C.

Different controllers from cgroups version 1 and cgroups version 2 cannot be used at the same time.

D.

The cgroups filesystem allows limits to be overwritten in the lower levels of the hierarchy.

E.

Cgroups allow processes to be organized into hierarchical groups whose resource usage cannot be limited and monitored.

Question 18

Which command produces human-readable timestamps in kernel ring buffer messages?

Options:

A.

dmesg -t

B.

dmesg -x

C.

dmesg -T

D.

dmesg -W

Page: 1 / 6
Total 60 questions