单项选择题
单项选择题 AWindowsAzureapplicationretrievesdatafromSQLAzure.Youneedtorecommendanapproachforimprovingapplicationqueryperformance.Whatshouldyourecommend?()
单项选择题 YouaredesigningaWindowsAzureapplication.TheapplicationincludesawebroleandaworkerrolethatcommunicatebyusingaWindowsAzureQueue.Theworkerroleprocesseseachmessagewithin10secondsofretrievingitfromthequeue.Theworkerrolemustprocesseachmessageexactlyonetime.Ifaprocessdoesnotcomplete,theworkerrolemustreprocessthemessage.Youneedtorecommendanapproachfortheworkerroletomanagemessagesinthequeue.Whatshouldyourecommend?()A.Processthemessageandthendeleteitfromthequeue.B.Deletethemessagefromthequeuewhenretrievingthemessage.C.Setthevisibilitytimeoutofthemessageto1whenretrievingthemessage.D.Processthemessageandthensetthevisibilitytimeoutofthemessagetothemaximumvalue.
单项选择题 AWindowsAzureapplicationstoresdatainaSQLAzuredatabase.Theapplicationwillstartanoperationthatincludesthreeinsertstatements.YouneedtorecommendanapproachforrollingbacktheentireoperationiftheconnectiontoSQLAzureislost.Whatshouldyourecommend?()A.Ensurethatallstatementsexecuteinthesamedatabasetransaction.B.CreateastoredprocedureinthedatabasethatwrapstheinsertstatementsinaTRYCATCHblock.C.CreateastoredprocedureinthedatabasethatwrapstheinsertstatementsinaTRANSACTIONblock.D.Openanewconnectiontothedatabase.Useaseparatetransactionscopetorollbacktheoriginaloperation.