Home
You may like this!
31.
Your manager has asked that you configure logrotate to run on a regular, unattended basis. What utility/feature should you configure to make this possible?
  • A.
    at
  • B.
    logrotate.d
  • C.
    cron
  • D.
    inittab
  • E.
    ntpd
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
The logrotate program can be started automatically—and unattended—on a regular basis by adding an entry for it in cron, so option C is correct. The at utility (option A) would be used if you wanted the program to run only once. logrotate.d (option B) defines how the program is to handle specific log files. The inittab file (option D) is used for services and startup and not for individual programs. The ntpd program (option E) is the Network Time Protocol daemon, which synchronizes the system’s clock with outside time sources.
Report
Name Email  
32.
You’ve set your system (software) clock on a Linux-only computer to the correct time, and now you want to set the hardware clock to match. What command might you type to accomplish this goal?
  • A.
    date --sethwclock
  • B.
    ntpdate
  • C.
    sysclock --tohc
  • D.
    time --set –hw
  • E.
    hwclock --utc --systohc
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
The hwclock utility is used to view or set the hardware clock. The --utc option tells it to use UTC, which is appropriate for a Linux-only system, and --systohc sets the hardware clock based on the current value of the software clock. Thus, option E is correct. Option A’s date utility can be used to set the software clock but not the hardware clock; it has no --sethwclock option. Option B’s ntpdate is used to set the software clock to the time maintained by an NTP server; it doesn’t directly set the hardware clock. Option C’s sysclock utility is fictitious. Option D’s time command is used to time how long a command takes to complete; it has no --set or --hw option and does not set the hardware clock.
Report
Name Email  
33.
As root, you type date 12110710. What will be the effect?
  • A.
    The software clock will be set to 7:10 a.m. on December 11 of the current year.
  • B.
    The software clock will be set to 12:11 p.m. on October 7 of the current year.
  • C.
    The software clock will be set to 7:10 a.m. on November 12 of the current year.
  • D.
    The software clock will be set to 12:11 p.m. on July 10 of the current year.
  • E.
    The software clock will be set to July 10 in the year 1211.
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The format of the date command’s date code is [MMDDhhmm[[CC]YY][.ss]]. Given that the question specified an eight-digit code, this means that the ordering of the items, in two-digit blocks, is month-day-hour-minute. Option A correctly parses this order, whereas options B, C, D, and E do not.
Report
Name Email  
34.
What will be the effect of a computer having the following two lines in /etc/ntp.conf?
server pool.ntp.org
server tardis.example.org
  • A.
    The local computer’s NTP server will poll a server in the public NTP server pool; the first server option overrides subsequent server options.
  • B.
    The local computer’s NTP server will poll the tardis.example.org time server; the last server option overrides earlier server options.
  • C.
    The local computer’s NTP server will poll both a server in the public NTP server pool and tardis.example.org and use whichever site provides the cleanest time data.
  • D.
    The local computer’s NTP server will refuse to run because of a malformed server specification in /etc/ntp.conf.
  • E.
    The local computer’s NTP server will poll a computer in the public NTP server pool but will fall back on tardis.example.org if and only if the public pool server is down.
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
Multiple server entries in /etc/ntp.conf tell the system to poll all the named servers and to use whichever one provides the best time data. Thus, option C is correct. (The pool .ntp.org subdomain and numbered computers within that subdomain give round-robin access to a variety of public time servers.) Options A and B both incorrectly state that one server statement overrides another, when in fact this isn’t the case. The server statements shown in the question are properly formed. These server entries are properly formed, so option D is incorrect. Although it is true that this configuration will result in use of tardis.example.com should the public-pool server be unavailable, as option E states, this is not the only reason the NTP server will use tardis.example.com; this could happen if the public-pool server provides an inferior time signal, for instance. Thus, option E is incorrect.
Report
Name Email  
35.
You’ve configured one computer (gateway.pangaea.edu) on your five-computer network as an NTP server that obtains its time signal from ntp.example.com. What computer(s) should your network’s other computers use as their time source(s)?
  • A.
    You should consult a public NTP server list to locate the best server for you.
  • B.
    Both gateway.pangaea.edu and ntp.example.com.
  • C.
    Only ntp.example.com
  • D.
    Only gateway.pangaea.edu.
  • E.
    None; NTP should be used on the Internet, not on small local networks
  • Answer & Explanation
  • Report
Answer : [D]
Explanation :
Once you’ve configured one computer on your network to use an outside time source and run NTP, the rest of your computers should use the first computer as their time reference. This practice reduces the load on the external time servers, as well as your own external network traffic. Thus, option D is correct. (Very large networks might configure two or three internal time servers that refer to outside servers for redundancy, but this isn’t necessary for the small network described in the question.) Option A describes the procedure to locate a time server for the first computer configured (gateway.pangaea .edu) but not for subsequent computers. Although configuring other computers to use ntp.example.com instead of or in addition to gateway.pangaea.edu is possible, doing so will needlessly increase your network traffic and the load on the ntp.example.com server. Thus, options B and C are both incorrect. Contrary to option E, NTP is suitable for use on small local networks, and in fact it’s very helpful if you use certain protocols, such as Kerberos.
Report
Name Email