Challenge - 5 Problems
Network Automation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Why use scripts to automate network connectivity tasks?
Which of the following is the main reason network scripts are used to automate connectivity tasks?
Attempts:
2 left
💡 Hint
Think about what happens when you do the same task many times by hand.
✗ Incorrect
Network scripts help by doing repetitive tasks quickly and without mistakes, saving time and effort.
💻 Command Output
intermediate1:30remaining
Output of a simple network connectivity check script
What is the output of this bash script that checks if google.com is reachable?
Bash Scripting
ping -c 1 google.com > /dev/null && echo "Connected" || echo "Not connected"
Attempts:
2 left
💡 Hint
If the ping command works, what message does the script print?
✗ Incorrect
The script sends one ping and prints "Connected" if successful, else "Not connected".
🔧 Debug
advanced2:00remaining
Identify the error in this network automation script
What error will this bash script produce when run?
Bash Scripting
if ping -c 1 8.8.8.8; then echo "Network is up" else echo "Network is down" fi
Attempts:
2 left
💡 Hint
Check if the if statement syntax is correct for bash.
✗ Incorrect
The script syntax is correct and will print network status based on ping result.
🚀 Application
advanced2:00remaining
What does this script automate in network management?
Given this bash script snippet, what network task is it automating?
for ip in 192.168.1.{1..5}; do
ping -c 1 $ip > /dev/null && echo "$ip is reachable" || echo "$ip is unreachable"
done
Attempts:
2 left
💡 Hint
Look at what the ping command does inside the loop.
✗ Incorrect
The script tests connectivity by pinging each IP and reporting reachability.
🧠 Conceptual
expert2:30remaining
Why is automation critical for large network connectivity tasks?
Why is automating network connectivity tasks especially important in large networks?
Attempts:
2 left
💡 Hint
Think about the challenges of managing many devices manually.
✗ Incorrect
Automation helps handle many devices quickly and reduces mistakes in large networks.