exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 24 question 14 discussion

Actual exam question from Microsoft's AZ-203
Question #: 14
Topic #: 24
[All AZ-203 Questions]

HOTSPOT -
A company develops a series of mobile games. All games use a single leaderboard service.
You have the following requirements:
✑ Code should be scalable and allow for growth.
✑ Each record must consist of a playedId, gameId, score, and time played.
✑ When users reach a new high score, the system will save the new score using the SaveScore function below.
✑ Each game is assigned and Id based on the series title.
You have the following code. (Line numbers are included for reference only.)

You store customer information in an Azure Cosmos database. The following data already exists in the database:

You develop the following code. (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1: Yes -
Code for CosmosDB, example:
// Parse the connection string and return a reference to the storage account.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
CloudConfigurationManager.GetSetting("StorageConnectionString"));
// Create the table client.
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
// Retrieve a reference to the table.
CloudTable table = tableClient.GetTableReference("people");
// Create the TableOperation object that inserts the customer entity.
TableOperation insertOperation = TableOperation.Insert(customer1);

Box 2: No -
A new record will always be added as TableOperation.Insert is used, instead of TableOperation.InsertOrReplace.

Box 3: No -
No partition key is used.

Box 4: Yes -
References:
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet

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
chintan4190
Highly Voted 5 years, 1 month ago
Box should be yes as gameId is used as partition key
upvoted 14 times
LTiwana
4 years, 9 months ago
Chintan4190 seems correct. Here is the reference to MS Docs: "Azure Cosmos DB transparently and AUTOMATICALLY manages the placement of logical partitions on physical partitions to efficiently satisfy the scalability and performance needs of the container." https://docs.microsoft.com/en-us/azure/cosmos-db/partitioning-overview#managing-logical-partitions
upvoted 1 times
...
...
Juanlu
Most Recent 4 years, 5 months ago
Answers are correct ! Same as https://www.examtopics.com/exams/microsoft/az-203/view/8/
upvoted 1 times
...
oxaytol
4 years, 11 months ago
This.partitionkey = gameid; Therefore gameid is partitionkey and answer should be yes
upvoted 2 times
...
XXXX
5 years ago
https://www.sharetotest.com/images/AZ-202.files/image137.jpg
upvoted 2 times
t8203
4 years, 9 months ago
mistake, it is correct https://vceguide.com/wp-content/uploads/2020/05/Microsoft-AZ-203-date-05-08-2020_Page_125_Image_0001.jpg
upvoted 1 times
...
...
Daltonic75
5 years, 1 month ago
Repeated: https://www.examtopics.com/exams/microsoft/az-203/view/8/ Options: https://www.examtopics.com/exams/microsoft/az-203/view/8/
upvoted 1 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