Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB — Question 57
You have an on-premises computer named Computer1 that runs Windows 11.
On Computer1, you install the Azure Cosmos DB Emulator by using the default settings.
You need to connect to the API for NoSQL clients hosted by the emulator.
What should you use?
Answer options
- A. Computer1 and the credentials used when installing the emulator
- B. localhost:443 and the built-in Administrator user account credentials
- C. Computer1 and a randomly-generated key
- D. localhost:8081 and a well-known key
Correct answer: D
Explanation
The correct answer is D because the Azure Cosmos DB Emulator uses localhost:8081 for NoSQL API connections and a well-known key for authentication. Options A and C are incorrect as they do not specify the correct connection endpoint, while option B uses the wrong port (443) and relies on Administrator credentials, which are not required for the emulator.