CompTIACompTIA
XK0-005 · Question #718
XK0-005 Question #718: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #718. The question stem and answer options stay visible for context.
Scripting, Containers, and Automation
Question
A security analyst is monitoring the network to identify latency or slowdowns during a vulnerability scan. Which of the following functions will best achieve this? bash function x() { info=$(ping -c 1 $1 | awk -F "/" 'END {print $5}') echo "$1 | $info" }
Options
- Afunction x() { info=$(dig $(dig -x $1 | grep ptr | tail -n 1 | awk -F ".in-addr" '{print
- Bfunction x() { info=$(ping -c 1 $1 | awk -F "/" 'END {print $5}'); echo "$1 | $info" }
- Cfunction x() { info=$(nc -m 40 $1 | awk 'END {print $1}'); echo "$1 | $info" }
- Dfunction x() { info=$(geoiplookup $1); echo "$1 | $info" }
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Bash Scripting#Network Monitoring#Ping Utility#Awk Utility