Challenge - 5 Problems
Logging Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Drone log filtering command output
You have a drone log file named
flight.log containing thousands of lines. You want to extract only the lines that contain the word ERROR. Which command will correctly output these lines?Attempts:
2 left
💡 Hint
Think about the standard Linux command to search text in files, case-sensitive by default.
✗ Incorrect
The
grep ERROR flight.log command searches for the exact uppercase word ERROR in the file and outputs matching lines. Option A uses find which is not standard on Linux. Option A searches for lowercase 'error' which won't match uppercase ERROR. Option A is a Windows command.🧠 Conceptual
intermediate1:30remaining
Purpose of log rotation in drone systems
Why is log rotation important in drone software systems that generate continuous logs?
Attempts:
2 left
💡 Hint
Think about disk space and file management.
✗ Incorrect
Log rotation splits large log files into smaller chunks and deletes or archives old logs. This prevents disk space from filling up and keeps logs manageable. Options B, C, and D do not describe log rotation.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting missing logs in drone system
A drone system is not generating any logs in the expected directory
/var/log/drone. Which of the following is the most likely cause?Attempts:
2 left
💡 Hint
Think about the software responsible for writing logs.
✗ Incorrect
If no logs appear, the logging service or daemon might not be running or has crashed. Flying speed or battery level does not affect log generation directly. Encryption hides logs but does not prevent their creation.
🔀 Workflow
advanced3:00remaining
Analyzing drone logs for flight anomalies
You want to analyze drone flight logs to find all instances where the altitude dropped suddenly by more than 10 meters within 1 second. Which workflow sequence is correct?
Attempts:
2 left
💡 Hint
Think about the logical order of data extraction, calculation, filtering, and reporting.
✗ Incorrect
First extract data (1), then calculate differences (2), filter relevant drops (3), and finally report (4). Other orders skip necessary steps or filter before calculation.
✅ Best Practice
expert2:30remaining
Best practice for secure drone log storage
Which option is the best practice to securely store drone logs containing sensitive flight data?
Attempts:
2 left
💡 Hint
Consider data security and accessibility.
✗ Incorrect
Storing logs on an encrypted remote server with strict access control protects sensitive data from unauthorized access and loss. Local-only storage risks data loss. Unencrypted email and printing are insecure or impractical.