nerdexam
CompTIA

XK0-006 · Question #129

A Linux administrator notices that an application is having trouble connecting to an external database. Which of the following commands should the administrator use to validate the connection to the…

The correct answer is B. nc -v db.comptia.org 3306. This command tests connectivity to a specific remote host and port, allowing the administrator to verify whether the database service port is reachable from the system.

Troubleshooting and Diagnostics

Question

A Linux administrator notices that an application is having trouble connecting to an external database. Which of the following commands should the administrator use to validate the connection to the remote port exposed by a database server?

Options

  • Adig MX db.complia.org:3306
  • Bnc -v db.comptia.org 3306
  • Carp -an | grcp db.comptia.org | grcp 3306
  • Dss -plant | qrep 3306

How the community answered

(23 responses)
  • A
    9% (2)
  • B
    87% (20)
  • C
    4% (1)

Explanation

This command tests connectivity to a specific remote host and port, allowing the administrator to verify whether the database service port is reachable from the system.

Topics

#netcat#port connectivity#database connection#network troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice