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?
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
This section is not available anymore. Please use the main Exam Page.AZ-204 Exam Questions
Log in to ExamTopics
Sign in:
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.
Mr2302682
Highly Voted 4 years, 10 months agomlantonis
Highly Voted 4 years agowafa_chaari
Most Recent 4 months, 2 weeks agoTej_007
9 months, 1 week agodimsok
2 years, 4 months agoJorax
1 month, 4 weeks agoNhiendo
2 years, 5 months agoAvinashVarma
2 years, 6 months agoOPT_001122
2 years, 6 months agorohitpatil113
2 years, 9 months agoEltooth
3 years agopetitbilly
3 years, 3 months agoFreidrich
3 years, 3 months agooescm
3 years, 4 months agoMev4953
3 years, 4 months agolugospod
3 years, 4 months agosanjayrawat
3 years, 8 months agodebanjan10
3 years, 8 months ago