TestOut LabSim 11.1.11 Questions

pdf

School

Eastern Gateway Community College *

*We aren’t endorsed by this school

Course

1680

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

16

Uploaded by MateCaribouMaster661

Report
11/1/23, 1 : 15 AM Page 1 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d-…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.11 Practice Questions Candidate: Levi Cloakey (Lcloakey) Date: 11/1/2023 1:15:20 am • Time Spent: 05:41 Score: 100% Passing Score: 80% Question 1: Correct What is the full path to the directory that contains log fi les, including secure, messages, [application], and kern.log? /var/log Explanation The /var/log directory contains log fi les, including secure, messages, [application], and kern.log. /var/log/secure logs any attempts to log in as the root user or attempts to use the su command. /var/log/messages is the default fi le for storing system messages on systems running init. /var/log/[application] stores application-speci fi c log entries. /var/log/kern.log stores kernel speci fi c log entries. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging
11/1/23, 1 : 15 AM Page 2 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_log_com_f_var_log_directory_lp6.question.fex Question 2: Correct You have just received an error message on your Linux server console, but you were not able to read all of it before it disappeared from the screen. Which of the following log fi les would store a copy of the error message? /var/log/dmesg /var/log/messages /var/log/cron /var/log/lastlog Explanation
11/1/23, 1 : 15 AM Page 3 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us The /var/log/messages log fi le includes copies of messages that appear on the console, internal kernel messages, and messages sent by networking programs. In this scenario, you would fi nd a copy of the error message in the messages log. The /var/log/lastlog log fi le holds information about the last time each user logged in. The /var/log/dmesg log fi le reports messages received in the process of con fi guring hardware devices as the system boots. The /var/log/cron log fi le stores messages related to tasks scheduled with cron. It keeps track of which tasks are run and when they were started. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_log_com_f_var_log_messages_lp6.question.fex Question 3: Correct
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
11/1/23, 1 : 15 AM Page 4 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us You are using the journald daemon for logging your system messages. You want to view all messages in the journal related to the Linux fi rewall. Which of the following commands could you use to view the fi rewall information? journalctl fi rewalld journalctl -b fi rewalld journalctl -f fi rewalld journalctl -u fi rewalld Explanation The journalctl -u fi rewalld command would display all messages in the journal related to the Linux fi rewall. The -u option displays only log entries related to a speci fi c service running on the system. The journalctrl command by itself displays the contents of the entire journal, starting with the oldest entries. Adding fi rewalld to the command would return an error message. The journalctrl -f command displays the last few entries in the journal and then prints new entries as they are added. There is no option for viewing only information related to a speci fi c daemon (such as fi rewalld ). The journalctrl -b command displays messages from the most recent system boot. You can add a number to display messages from a speci fi c boot (such as journalctrl -b 2 ), but there is no option for fi ltering by a speci fi c daemon. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts
11/1/23, 1 : 15 AM Page 5 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_journald_f_journalctl_u_lp6.question.fex Question 4: Correct Linux systems that use SysVinit (init) use the syslogd daemon to manage logging. Which of the following daemons is used on newer system-based distributions to provide a local system log fi le? journald syslog systemctl rsyslog Explanation Newer Linux distributions do not use SysVinit (init) and syslogd anymore. Instead, they use the journald daemon to provide a local system log fi le. Older init-based Linux distributions use the syslog daemon to manage system logging. rsyslog is a lightweight daemon that provides centralized logs. systemctl manages network services on systemd-based distributions. (journalctl is used to view the entire journal on a system running journald.) References 1.1.4 Server Roles Facts
11/1/23, 1 : 15 AM Page 6 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_journald_f_newer_log_lp6.question.fex Question 5: Correct You are using the journald daemon for logging your system messages. You want to store notice messages but not info or debug messages. Which of the following parameters would you set in the journald.conf fi le? MaxLevelStore 4 MaxLevelStore 7 MaxLevelStore 6 MaxLevelStore 5 Explanation
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
11/1/23, 1 : 15 AM Page 7 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d-…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us You would set the MaxLevelStore parameter to 5 (notice) to eliminate storing info or debug messages. Setting the parameter to 4 (warning) would exclude any notice messages. Setting the parameter to 6 would include info messages. Setting the parameter to 7 would include debug messages. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_journald_f_notice_level_lp6.question.fex Question 6: Correct There are several Linux commands available that let you view and manage binary log fi les. From the list of these commands on the left, drag a command to the correct description on the right.
11/1/23, 1 : 15 AM Page 8 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us Manages, compresses, renames, and deletes log fi les based on speci fi c criteria (such as size or date). logrotate Displays CPU and other system statistics. sar Displays information about all the hardware controlled by the kernel. dmsg Changes the message severity and where logged messages are sent. logger Displays a list of the dates and times for the last login for each user. lastlog Keyboard Instructions Explanation The following are the correct descriptions for the commands you can use to view the contents of a binary log fi le: dsmg - displays information about all the hardware controlled by the kernel. lastlog - displays a list of the dates and times for the last login for each user. logger - changes the message severity and where logged messages are sent. logrotate - manages, compresses, renames, and deletes log fi les based on speci fi c criteria (such as size or date). sar - displays CPU and other system statistics. References 1.1.4 Server Roles Facts
11/1/23, 1 : 15 AM Page 9 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_logs_binary_log_commands_lp6.question.fex Question 7: Correct There are several Linux commands available that let you view and manage text-based log fi les. From the list of these commands on the left, drag a command to the correct description on the right.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
11/1/23, 1 : 15 AM Page 10 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us Displays the fi rst ten lines of a text-based log fi le. head Lets you scroll through individual pages of a text-based log fi le. less Displays the entire contents of a text-based log fi le. cat Displays the last 10 lines of a text-based log fi le. tail Filters text from a text-based log fi le. grep Keyboard Instructions Explanation The following are the correct descriptions for the commands you can use to view the contents of a text-based log fi le: cat - displays the entire contents of a text-based log fi le. grep - fi lters text from a text-based log fi le. tail - displays the last ten lines of a text-based log fi le. head - displays the fi rst ten lines of a text-based log fi le. less - lets you scroll through individual pages of a text-based log fi le. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files
11/1/23, 1 : 15 AM Page 11 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…n/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_logs_text_log_commands_lp6.question.fex Question 8: Correct There are several commands available that you can use with the Linux logrotate utility. Several of these commands are listed on the left. Drag a command from the left to match it with the correct de fi nition on the right.
11/1/23, 1 : 15 AM Page 12 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us Creates a log fi le with a name identical to the one just rotated. create Speci fi es the number of times to rotate the log before deleting it. rotate Removes rotated logs that are older than the speci fi ed number of days. maxage Prevents errors from being displayed for missing log fi les. missingok Prohibits empty logs from being rotated. notifempty Keyboard Instructions Explanation The following are the correct de fi nitions for each command listed: maxage - removes rotated logs that are older than the speci fi ed number of days. rotate - speci fi es the number of times to rotate the log before deleting it. notifempty - prohibits empty logs from being rotated. create - creates a log fi le with a name identical to the one just rotated. missingok - prevents errors from being displayed for missing log fi les. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
11/1/23, 1 : 15 AM Page 13 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_logrotate_f_commands_match_lp6.question.fex Question 9: Correct Which of the following commands manages, compresses, renames, and deletes log fi les based on speci fi c criteria such as size or date? logger lastlog dmesg logrotate Explanation
11/1/23, 1 : 15 AM Page 14 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us logrotate manages, compresses, renames, and deletes log fi les based on speci fi c criteria (such as size or date). lastlog shows a list of the dates and times for the last login for each user. logger changes the message severity and where logged messages are sent. dmesg views the boot logs and troubleshoots hardware errors. The dmesg command shows information about all the hardware controlled by the kernel and displays error messages as they occur. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_logrotate_f_def_lp6.question.fex Question 10: Correct
11/1/23, 1 : 15 AM Page 15 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us You want to remove every rotated log older than 240 days. At the same time, you want to rotate the log fi le every week and ensure that there are no more than four archives. Which of the following logrotate commands would you use in a script to meet these requirements? weekly create 4 maxage 240 rotate 4 maxage 240 create weekly 4 rotate 240 size M weekly rotate 4 maxage 240 Explanation To meet the requirements of rotating the log fi le every week, ensuring there won't be more than four archives (one month), and removing log fi les older than 240 days, you would enter the following commands in the script: weekly rotate 4 maxage 240 The create command is designed for creating fi les. The size command is designed to remove log fi les based on a speci fi c size. References 1.1.4 Server Roles Facts 11.1.1 Linux Log Files 11.1.2 Log File Facts
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
11/1/23, 1 : 15 AM Page 16 of 16 https://labsimapp.testout.com/v6_0_574/exam-engine.html/96c2e46d…/30799322/783da08f-b2ef-464f-8624-23fec01f7276/end ? locale=en-us 11.1.3 journald Logging 11.1.4 Con " gure journald 11.1.5 journald Logging Facts 11.1.6 Viewing Log Files 11.1.7 Log File Display Facts 11.1.8 logrotate 11.1.9 logrotate Facts q_logrotate_f_maxage_lp6.question.fex Copyright © 2023 TestOut Corporation All rights reserved.