exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 10 discussion

Actual exam question from Microsoft's AZ-204
Question #: 10
Topic #: 3
[All AZ-204 Questions]

You develop Azure solutions.
You must connect to a No-SQL globally-distributed database by using the .NET API.
You need to create an object to configure and execute requests in the database.
Which code segment should you use?

  • A. new Container(EndpointUri, PrimaryKey);
  • B. new Database(EndpointUri, PrimaryKey);
  • C. new CosmosClient(EndpointUri, PrimaryKey);
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mr2302682
Highly Voted 4 years, 8 months ago
The Answer is correct!
upvoted 49 times
...
mlantonis
Highly Voted 3 years, 11 months ago
Correct Answer: C Azure Cosmos DB is a fully managed NoSQL database for modern app development. Single-digit millisecond response times, and automatic and instant scalability, guarantee speed at any scale. // Create a new instance of the Cosmos Client this.cosmosClient = new CosmosClient(EndpointUri, PrimaryKey) //ADD THIS PART TO YOUR CODE await this.CreateDatabaseAsync(); Reference: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.cosmosclient?view=azure-dotnet https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-get-started
upvoted 23 times
...
wafa_chaari
Most Recent 2 months, 3 weeks ago
Selected Answer: C
cosmosclient is the entry point for interacting with Azure Cosmos DB
upvoted 1 times
...
Tej_007
7 months, 2 weeks ago
wow. finally one correct answer.
upvoted 1 times
...
dimsok
2 years, 2 months ago
I dont get this question, Cosmos DB is a No-SQL globally-distributed database, but there are others that .NET can connect.
upvoted 2 times
Jorax
3 days, 13 hours ago
Yes, but "You develop Azure solutions."
upvoted 1 times
...
...
Nhiendo
2 years, 3 months ago
Correct Answer: C
upvoted 1 times
...
AvinashVarma
2 years, 4 months ago
Selected Answer: C
CosmosClient(String, String, CosmosClientOptions) https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.cosmosclient?view=azure-dotnet
upvoted 1 times
...
OPT_001122
2 years, 5 months ago
Selected Answer: C
C. new CosmosClient(EndpointUri, PrimaryKey);
upvoted 1 times
...
rohitpatil113
2 years, 8 months ago
Selected Answer: C
The Answer is correct!
upvoted 1 times
...
Eltooth
2 years, 10 months ago
Selected Answer: C
C is correct answer. Global fully managed No-SQL DB = CosmosDB
upvoted 2 times
...
petitbilly
3 years, 1 month ago
Got it in exam 03/22
upvoted 2 times
...
Freidrich
3 years, 1 month ago
Selected Answer: C
The correct answer is C.
upvoted 1 times
...
oescm
3 years, 2 months ago
Got this one 02/2022. Went with highly voted answer.
upvoted 5 times
...
Mev4953
3 years, 2 months ago
Got this in the exam 01/22
upvoted 5 times
...
lugospod
3 years, 3 months ago
Got this one 01/2022. Went with most voted (to avoid writing answers again)
upvoted 5 times
...
sanjayrawat
3 years, 6 months ago
Answer : C
upvoted 2 times
...
debanjan10
3 years, 6 months ago
Order: Cosmos Client > Database > Container > Item
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago