Which two components are used for creating a new rsyslog rule?
Correct Answer: A,B
* Option A (Correct):In rsyslog, afilteris used to determine which messages should be selected for further processing. Filters can be based on different criteria such as facility, severity, or specific message content. * Option B (Correct):Anactionin rsyslog defines what to do with messages that match a filter. Actions can include writing to a log file, sending to a remote server, running a script, etc. * Option C (Incorrect):A parser is not typically a component for creating a new rsyslog rule; it is involved in interpreting message formats. * Option D (Incorrect):A module in rsyslog is a loadable component that provides additional capabilities, such as support for different protocols or output formats. It is not a direct component of a logging rule. * Option E (Incorrect):Security policy is unrelated to the basic components used for defining rsyslog rules. Oracle Linux Reference:Refer to: * OracleLinux 8: Configuring Rsyslog
1z1-106 Exam Question 17
The ss command was invoked with options to: * limit output to all listening and non-listening TCP ports * display ports instead of the protocols that typically use those ports * display all available internal TCP information * display only connections whose source or destination port is 80 Which two results are produced by the command?
Correct Answer: C,D
Explanation of Answer C:Thesscommand can be used to display all available internal TCP information, including established connections with detailed TCP metrics, which matches the output in Answer C. Explanation of Answer D:Thesscommand can display listening ports (TCP in this case) with details like congestion control algorithms (cubic), which aligns with Answer D. The output indicates a listening TCP socket on port 80.
1z1-106 Exam Question 18
Which two statements are true about the proc and sys file systems?
Correct Answer: A,C
* Option A (Correct):The/procfile system is a pseudo-file system that contains runtime system information (e.g., system memory, mounted devices, hardware configuration, etc.). Files such as/proc /meminfoand/proc/cpuinfoprovide detailed information about memory and CPUs, respectively. * Option C (Correct):The/sysfile system, also known as sysfs, provides a view of the kernel's device model. It contains information about system hardware, including CPUs and memory. For example,/sys /devices/system/cpu/contains directories and files that provide detailed information about each CPU. * Option B (Incorrect):The/sysfile system does not contain a list of running processes. Running processes are listed in the/procfile system, with each process having its own directory under/proc. * Option D (Incorrect):/procdoes not contain a list of network drivers specifically. Network driver information is available under/proc/net, but this does not equate to a list of drivers. * Option E (Incorrect):The/sysfile system does not contain a list of mounted devices. Mounted devices are listed in/proc/mountsor the/etc/mtabfile. Oracle Linux Reference:For more details, see: * OracleLinux 8: The/procand/sysFile Systems.
1z1-106 Exam Question 19
Examine this command: # nft add rule inet filter input tcp dport 80 drop Which two statements are true upon execution?
Correct Answer: A,E
* Option A (Correct):The rule is applied to both IPv4 and IPv6 packets. Theinettable is used for filtering both IPv4 and IPv6 traffic, and since the rule is added to theinettable, it affects both IP versions. * Option E (Correct):The rule drops TCP packets inbound on port 80. The rule specifies theinputchain in thefiltertable, and it drops (drop) all TCP traffic (tcp) destined for port 80 (dport 80), which means any incoming TCP traffic on port 80 will be dropped. * Option B (Incorrect):The command does not automatically update the configuration on disk; the rule is applied immediately in memory but does not persist across reboots unless explicitly saved. * Option C (Incorrect):The rule specifies TCP packets only, not all traffic. Therefore, it does not drop traffic for protocols other than TCP. * Option D (Incorrect):Although this statement is correct, it is less specific than Option A, which is more accurate because it mentions both IP versions. * Option F (Incorrect):The rule applies to inbound traffic, not outbound, so it does not drop outbound traffic. Oracle Linux Reference:Refer to: * OracleLinux 8: Managing Firewall Rules with nftables
1z1-106 Exam Question 20
Which is true about the /etc/sysconfig directory in an Oracle Linux 8 system?
Correct Answer: C
The/etc/sysconfigdirectory contains configuration files for various system services and applications. The content of this directory depends on which packages are installed on the system. Each package may provide one or more configuration files stored in/etc/sysconfigto control its behavior.