mongosh accepts a MongoDB host address in hostname:port form, so mongosh " node-1.cluster1.mycompany.local:27017 " is the valid choice among the commands shown. A canonical URI form such as mongosh " mongodb://node-1.cluster1.mycompany.local:27017 " is also valid, and the connection can alternatively be expressed using --host together with --port. Option A uses an unsupported --hostname switch rather than the documented --host option. Option B invents a --connect flag that is not the standard mongosh interface. Option C constructs an invalid string using an ampersand-style parameter rather than a MongoDB URI or a normal host:port target. Port 27017 is MongoDB ' s default server port, so it could often be omitted if the deployment uses the default, but explicitly including it is valid and removes ambiguity. In authenticated or TLS-enabled environments, the DBA would also supply credentials, authentication database, certificate settings, or a connection string carrying those parameters. For the simple host-and-port requirement in the question, option D is correct.
Study Guide reference/topic:Security, Networking, and Encryption - mongosh connectivity, host/port addressing, and connection options.
===========
C100DBA PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 70% Discount on All Products,
Use Coupon: "coponace"