Challenge 2: Write a Connection String — Possible Solution ==================================================================== mongodb://db.internal:27018/inventory WHY THIS WORKS AS AN ANSWER ------------------------------ The connection string format is mongodb://:/, and each piece maps directly onto what the scenario specified: - Host: db.internal - Port: 27018 (explicitly NOT the default 27017, so it must be stated — omitting it would cause a client to fall back to the default port, connecting to the wrong instance) - Database: inventory Getting the port right here matters specifically because this scenario deliberately used a non-default port — a connection string that just wrote "mongodb://db.internal/inventory" (leaving the port out) would silently try port 27017 instead, which is a realistic real- world mistake when a MongoDB instance has been configured to listen on a non-standard port for any reason (e.g. security through a non-default port, or multiple instances on one host).