0
0
Drone Programmingprogramming~20 mins

Logging and log analysis in Drone Programming - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Logging Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2: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?
Agrep ERROR flight.log
Bcat flight.log | find ERROR
Cgrep 'error' flight.log
Dfindstr ERROR flight.log
Attempts:
2 left
💡 Hint
Think about the standard Linux command to search text in files, case-sensitive by default.
🧠 Conceptual
intermediate
1:30remaining
Purpose of log rotation in drone systems
Why is log rotation important in drone software systems that generate continuous logs?
ATo combine all logs into one big file for easier reading
BTo delete all logs after every flight automatically
CTo prevent log files from growing too large and consuming all disk space
DTo encrypt logs for security purposes
Attempts:
2 left
💡 Hint
Think about disk space and file management.
Troubleshoot
advanced
2: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?
AThe log files are encrypted and hidden
BThe logging service is not started or crashed
CThe drone is flying too fast to generate logs
DThe drone battery is low
Attempts:
2 left
💡 Hint
Think about the software responsible for writing logs.
🔀 Workflow
advanced
3: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?
A1,3,2,4
B3,1,2,4
C2,1,3,4
D1,2,3,4
Attempts:
2 left
💡 Hint
Think about the logical order of data extraction, calculation, filtering, and reporting.
Best Practice
expert
2:30remaining
Best practice for secure drone log storage
Which option is the best practice to securely store drone logs containing sensitive flight data?
AStore logs on an encrypted remote server with access control
BKeep logs only on the drone's local storage without backup
CSend logs via unencrypted email to the operator
DPrint logs on paper after each flight
Attempts:
2 left
💡 Hint
Consider data security and accessibility.