DP-420 practice question 17 of 25

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?

Full set: 144 questions
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: 8681 and a well-known key Correct answer
Correct Answer:
D. localhost: 8681 and a well-known key
Explanation

By default the Azure Cosmos DB Emulator exposes its API for NoSQL endpoint on the local loopback address and secures it with the emulator’s well-known master key. Clients therefore connect to https://localhost:/ (default 8081) and supply the built-in primary key C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM0Lm6==. Option D is the only choice that specifies both localhost access and the well-known key, matching the documented connection method for NoSQL clients.

Why Incorrect

A. Uses the computer name instead of localhost and relies on installer credentials—emulator does not create per-user credentials.
B. Port 443 and Windows Administrator credentials are not used by the emulator; connection requires the emulator’s primary key.
C. Emulator key is fixed and well-known, not randomly generated; also uses computer name instead of localhost.

References

1. Microsoft Learn – “Use Azure Cosmos DB Emulator for local development and testing”

section “Connect to the Azure Cosmos DB Emulator” (Endpoint https://localhost:8081 and primary key)

https://learn.microsoft.com/azure/cosmos-db/local-emulator#connect-to-the-azure-cosmos-db-emulator

2. Microsoft Learn – “Emulator command-line parameters”

confirms endpoint is on localhost and secured by a predefined key

https://learn.microsoft.com/azure/cosmos-db/local-emulator#command-line-reference

Scroll to Top