Which is a common best practice to automatically reduce disk usage associated with the storage of log files?
Suggested Answer: A
Get Premium LFCA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
36 comments · newest first
CA
Carmela
11 months ago
Manually emptying logs? That sounds like a hassle!
KA
Kandis
11 months ago
I agree, A is the best practice here.
DO
Dortha
12 months ago
Wait, deleting the /var/log directory? That sounds risky!
LE
Lelia
12 months ago
B is a bad idea, you need logs for troubleshooting.
KE
Kerrie
1 year ago
Definitely A, logrotate is the way to go!
CH
Chi
1 year ago
Deleting the entire 'var/log' directory seems extreme and could cause issues; I wouldn't recommend that at all.
HE
Helga
1 year ago
I recall a practice question about log management, and I think using logrotate was the answer there too.
DO
Dottie
1 year ago
I'm not entirely sure, but I feel like creating a cron job to delete logs daily might not be the best approach.
AL
Alecia
1 year ago
I think option A sounds familiar; I remember studying about log rotation and how it helps manage disk space.
AL
Alison
1 year ago
Okay, let's see here. Deleting the entire log directory seems like a bad idea, that would just prevent any logging from happening. And manually emptying the logs every day sounds way too tedious. I think the loqrotate utility is probably the way to go here.
ST
Starr
1 year ago
Hmm, I'm a bit unsure about this one. I know there are different ways to handle log file storage, but I'm not sure which one is considered the "best practice." I'll have to think this through carefully.
CH
Cherry
1 year ago
This seems like a straightforward question about managing log file storage. I'm pretty confident I know the best practice here, so I'll go with option A.
MA
Marleen
1 year ago
I'm a little confused by this question. I know there are ways to manage log file storage, but I'm not sure I'm familiar with the "loqrotate" utility they're mentioning. I'll have to do a quick search on that before answering.
LA
Latia
1 year ago
Hmm, I'm a bit unsure about this one. I'll have to review the material on handling bottlenecks in Agile teams.
LI
Lina
2 years ago
Option A is the clear winner here. Rotating logs is the way to go. It's like the recycling of the digital world - reduce, reuse, recycle!
GE
Germaine
2 years ago
Wilda: No problem, it's a common best practice for managing log files.
NI
Nieves
2 years ago
I didn't know about logrotate, thanks for the tip!
WI
Wilda
2 years ago
Absolutely, it's important to rotate logs to prevent them from taking up too much space.
SH
Shawna
2 years ago
I agree, using the logrotate utility is the best way to automatically reduce disk usage.
NE
Nelida
2 years ago
I prefer creating a cron job to delete log files daily. It's a simple and effective solution.
CH
Cheryl
2 years ago
I don't think deleting the log files every day manually is efficient. It's better to automate it with logrotate.
MA
Malissa
2 years ago
I agree with Willard, using logrotate utility is a common best practice to manage disk usage.
WI
Willard
2 years ago
I think the best practice is to use the logrotate utility to rotate the log files.
KR
Kristin
2 years ago
Manually emptying the logs every day? Somebody's got way too much free time on their hands. Ain't nobody got time for that!
LE
Leonie
2 years ago
Option C is just asking for trouble. Preventing the logs from being created? That's like trying to stop a river by building a dam with duct tape.
NI
Nikita
2 years ago
B) That's true, option C is definitely not a good idea.
TE
Tequila
2 years ago
A) Use the logrotate utility to periodically rotate the log files.
JA
Jacki
2 years ago
Deleting all the logs every day? That's a bit extreme, don't you think? Wouldn't that cause more problems than it solves?
CA
Cathrine
2 years ago
C) Agreed, it could cause more issues than it solves.
DO
Domitila
2 years ago
B) No, deleting all logs daily is not a good idea.
KE
Keva
2 years ago
A) Use the logrotate utility to periodically rotate the log files.
CA
Catrice
2 years ago
Option A sounds like the way to go. Rotating logs periodically is a common best practice to manage disk usage. Plus, it's less destructive than just deleting everything.
LE
Levi
2 years ago
Definitely, it's a simple solution that can save a lot of storage space in the long run.
NU
Nu
2 years ago
I've used logrotate before and it really does make a difference in keeping disk usage in check.
NI
Nickolas
2 years ago
I think so too, it helps keep the log files organized and prevents them from taking up too much space.
GR
Graciela
2 years ago
I agree, using the logrotate utility is a good way to manage disk usage.