nerdexam
MicrosoftMicrosoft

DP-420 · Question #179

DP-420 Question #179: Real Exam Question with Answer & Explanation

The correct answer is D: localhost:8081 and a well-known key. Develop locally using the Azure Cosmos DB emulator Create a new instance of CosmosClient using the emulator's credentials. using CosmosClient client = new( accountEndpoint: "https://localhost:8081/", authKeyOrResourceToken: "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD

Integrate an Azure Cosmos DB solution

Question

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?

Options

  • AComputer1 and the credentials used when installing the emulator
  • Blocalhost:443 and the built-in Administrator user account credentials
  • CComputer1 and a randomly-generated key
  • Dlocalhost:8081 and a well-known key

Explanation

Develop locally using the Azure Cosmos DB emulator Create a new instance of CosmosClient using the emulator's credentials. using CosmosClient client = new( accountEndpoint: "https://localhost:8081/", authKeyOrResourceToken: "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqy MsEcaGQy67XIw/Jw==" https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator

Topics

#Azure Cosmos DB Emulator#API for NoSQL#Local development#Connection details

Community Discussion

No community discussion yet for this question.

Full DP-420 PracticeBrowse All DP-420 Questions