单项选择题
单项选择题 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.
单项选择题 YouaredevelopingaWindowsAzureapplicationinwhichawebroleandworkerrolewillcommunicatebyusingaWindowsAzureQueue.Youneedtorecommendanapproachforensuringthattheworkerroledoesnotattempttoprocessanymessagemorethanthreetimes.Whatshouldyourecommend?()A.Appropriatelyhandlepoisonmessages.B.Decreasethevisibilitytimeoutformessages.C.Reducethetime-to-liveintervalformessagesinthequeue.D.Increasethenumberofworkerroleinstancesreadingmessagesfromthequeue.