更新时间: 试题数量: 购买人数: 提供作者:

有效期: 个月

章节介绍: 共有个章节

收藏
搜索
题库预览
A company develops a series of mobile games. All games use a single leaderboard service. You have the following requirements: ①Code must be scalable and allow for growth. ②Each record must consist of a playerId, 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 an Id based on the series title. You plan to store customer information in Azure Cosmos DB. The following data already exists in the database:(PartitionKey、RowKey、Email列,数据行:Harp/Walter/wsmith@contoso.com;Smith/Steve/ssmith@contoso.com;Smith/Jeff/jsmith@contoso.com)You develop the following code to save scores in the data store. (Line numbers are included for reference only.) 01 public void SaveScore(string gameId, string playerId, int score, long timePlayed) 02 { 03 CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString); 04 CloudTableClient tableClient = storageAccount.CreateCloudTableClient(); 05 CloudTable table = tableClient.GetTableReference("scoreTable"); 06 table.CreateIfNotExists(); 07 var scoreRecord = new PlayerScore(gameId, playerId, score, timePlayed); 08 TableOperation insertOperation = TableOperation.Insert(scoreRecord); 09 table.Execute(insertOperation); 10 } You develop the following code to query the database. (Line numbers are included for reference only.) 01 CloudTable table = tableClient.GetTableReference("people"); 02 03 TableQuery<CustomerEntity> query = new TableQuery<CustomerEntity>() 04 .Where(TableQuery.CombineFilters( 05 TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "Smith"), 06 TableOperators.And, TableQuery.GenerateFilterCondition("Email", QueryComparisons.Equal, "ssmith@contoso.com") 07 )); 08 await table.ExecuteQuerySegmentedAsync<CustomerEntity>(query, null); For each of the following statements, select Yes if the statement is true. Otherwise, select No.【缺少答案,请补充】