下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
《數(shù)據(jù)庫(kù)理論與技術(shù)》期終考試復(fù)習(xí)題一、選擇題:Chubbypresentsitselftoclientsasthisservice:a)Centralizedmutualexclusionb)Hierarchicalmutualexclusionc)Token-basedmutualexclusiond)Contention-basedmutualexclusion.Whichstatementbestdescribesaclient'sinteractionwithChubby?AclientcontactsanyChubbyserver,whichthenforwardstherequesttotheappropriateserverintheChubbycell.AclientcontactsanyChubbyserver,whichcanprocesstherequestsinceallChubbyserversarereplicated.AclientcontactstheChubbymaster,whichthenforwardstherequesttotheappropriateserverintheChubbycell.AclientcontactstheChubbymaster,whichhandlesallclientrequests.BysendingmessagesthroughPaxos,processescanensurethatconcurrentmessagesbecome:a)Globaltimeorderedmulticasts.b)Totallyorderedmulticasts.c)Causallyorderedmulticasts.d)Unorderedmulticasts.Basedontheirvectortimestamps,whicheventcausallyprecedes(4,2,8,5)?a)(3,1,7,7)b)(5,1,6,2)c)(4,2,8,4)d)(4,3,8,5)WithPaxos,messagesequencenumbersareassignedbythe:a)Acceptorb)Clientc)Learnerd)ProposerPaxosreachesagreementwhen:Allproposersagreeonavaluetosendtotheacceptors.Allacceptorsagreetoaproposedvalue.Themajorityproposersagreeonavaluetosendtotheacceptors.Themajorityofacceptorsagreetoaproposedvalue.Awrite-aheadlogdoesNOTenableaprocessto:a)Undochangesincaseofanabort.b)Recordthatatransactionhascommitted.c)Recordtheresponsethatwassenttoavoteinacommitprotocol.d)Achievehigherperformancebyprefetchingdata.Toabortadistributedtransaction:Atleastoneparticipantmustvotetoabort.Themajorityofparticipantsmustvotetoabort.Alloftheparticipantsmustvotetoabort.Allliveparticipantsmustvotetoabort.Themotivationforaneventualconsistencymodelwas:Itisimpossibletohavehighlyavailablereplicateddatathatisfullyconsistentinasystemthatcansurvivenetworkpartitioning.Datainconsistenciesarehighlyundesirable,sotheprimaryfocusshouldbeonensuringthatallreplicasareconsistent.Distributedcommitprotocolscanneverworkreliably,sodataisboundtobecomeinconsistentonsomeparticipants.Datamightbeinaninconsistentstateduringtheexecutionoftransactionsbutwillbemadeconsistentwhentheycommit.InBigtable,eachserverisresponsibleforservingtablets.Atabletis:Asubsetofrowsandcolumnfamilies.Asubsetofrowsbutstoresallcolumnfamilydataforthoserows.Asetofoneormorecolumnfamiliesbutitstoresallrowdataforthosecolumnfamilies.Exactlyonerowandonecolumnfamily.Differingfromadistributedhashtable,Bigtable:a)Cansupportreplicationforfaulttolerance.b)Supportsmorethanoneprimarykeyforlookingupdata.c)Canassociatelargeamountsofdatawithakey.d)Sortsitsdatabythekeyandallowsiterationoverrowsofsorteddata.Whichoftheseoperationsismostefficientlyimplementedonalarge-scaleGFS(GoogleFileSystem)system?a)Readone1TBfile.b)Read1million1MBfiles.c)Writeone1TBfile.d)Write1million1MBfiles.ThepartitioningfunctioninMapReducea)Determineswhichshardwillbeassignedtoaspecificmapworker.b)Filtersoutunnecessaryinputdatapriortobeingprocessedbythemapworker.c)Determinesthedivisionofavailableserversintomapworkersandreduceworkers.d)Determineswhichreduceworkerwillprocessdataassociatedwithaparticularkey.AmazonDynamoallowsanadministratortoaddagreaterloadtoabiggerserverinthegroupby
a)Configuringtheclientlibrarytoissueahigherpercentageofitsrequeststothatserver.b)Configuringotherserverstoforwardsomepercentageoftheirrequeststothebiggerserver.c)Usingconsistenthashingandgivingalargerconsecutiverangeofthehashspacetotheserver.d)Assigningmorevirtualnodestothatserver.WhichofthefollowingisNOTaresponsibilityofamapworkerintheMapReduceframework:a)Generate(key,value)pairs.b)Target(key,value)dataforoneofRreduceworkers.c)Partitionoriginaldataintoshards.d)Discarddataofnointerest.AkeydesignprincipleoftheGoogleclusterarchitectureisa)Mergingisfast;breakupdatabasesintolotsofpiecesanduselotsofprocesses,eachworkingonapieceofthedata.b)Minimizethenumberofphasesinatask;createmanyreplicasofadatabaseandalloweachsystemfullaccesstoitwithouttheneedforsharingorlocking.c)Minimizecontextswitchoverhead;machinesarecheapandit'smoreefficienttodevoteanodetoonetaskexclusively.d)Machinesandsoftwarefail;runthesametaskredundantlyinparalleltoensuresuccessfulexecution.二、簡(jiǎn)答題:考慮用二元聯(lián)系(圖1)對(duì)三元聯(lián)系(圖2)的表示:ABABECRARCRBBARC圖1圖1圖2分別給出圖1中E,A,B,C,RA,RB和RC的一個(gè)實(shí)例,這些實(shí)例不對(duì)應(yīng)圖2中A,B,C和R的任何實(shí)例;更改圖1中的ER圖,引入適當(dāng)?shù)募s束以確保滿(mǎn)足約束的E,A,B,C,RA,RB和RC的任何實(shí)例都對(duì)應(yīng)于A,B,C和R的一個(gè)實(shí)例;更改以上的轉(zhuǎn)化以表示在三元聯(lián)系上的全參與約束;Supposethatweareusingextendablehashingonafilethatcontainsrecordswiththefollowingsearch-keyvalues:2,3,5,7,11,17,19,23,29,31,35,27Showtheextendablehashstructureforthisfileifthehashfunctionish(x)=xmod11andbucketscanholdthreerecords.Showhowtheextendablehashstructureofpart1)changesastheresultofeachofthefollowingsteps:a.Delete11.b.Insert15.c.Delete31.d.Insert25.Thekey-valuestoreusesquorumsforconsistency.Thetotalnumberofreplicas,N,forakey,isfixed–however,Nmaybedifferentfordifferentkeys.Eachreadhastoaccessatleastrreplicas(andreturnsifallofthemagree),whileeachwritehastowritetoatleastwreplicas.Foreachofthefollowingdesignchoices,saywhetherit(byitself)doesordoesnotguaranteestrongconsistency,i.e.,onecopyserializability?a.w=3,r=1b.w=2N/3c.r+w=Nd.w=Ne.r+w>N/2f.r+w>3N/2g.r+w>3N/2,w>2N/3Thefollowingscenarioisadistributedfilesystemwhichspansmultipledatacenters.Thereareseveralchoicesforhowtohandlenetworkpartitionsthatoccurinbetweendatacenters(givenbelow).Foreachofthesechoices,tellme:ifitviolatesconsistency?Allowallpartitionstoprocessbothreadsandwrites.Allowallpartitionstoprocessreads,butonlyonespecialpartition(prechosen)toprocesswrites.Allowonlythepartitionwhichhasatleastaquorumnumberofservers(measuredacrossalldatacenters)toexecutewrites.Untilpartitionsarerepaired,allowonlyreadsbutnowrites.Allowonlypartitionswithaquorumofservers(measuredacrossalldatacenters)toexecutewritesandreads.Lamport’sLogicalClocks,amongotherthings,helpmakeinferencesaboutconsistencyofreplicateddataitemsoperateduponconcurrently.Thefollowingfigureshowsthetime-linediagramsofthreeprocessesP,QandR.Fillinthelogicaltimesforeachevent(a)–(o)inthethreeprocessesusingtherulesoflocalordering,send/receiveorderingandtransitiveclosure.Assumingyouaregivenonlythelogicaltimesforeacheventinaprocess,answerthefollowingTrue,FalseorUnknownquestionsEventbhappenedbeforeeventa.Eventsa,handmhappenedconcurrently.Eventnhappen
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年寧夏農(nóng)墾金融控股有限公司招聘筆試參考題庫(kù)含答案解析
- 2025年度住宅小區(qū)地下車(chē)庫(kù)車(chē)位產(chǎn)權(quán)轉(zhuǎn)讓及車(chē)位租賃合同3篇
- 2025版二手房買(mǎi)賣(mài)家居風(fēng)水咨詢(xún)合同3篇
- 2025年度個(gè)人汽車(chē)租賃押金退還服務(wù)協(xié)議2篇
- 2025年度文化藝術(shù)品展覽與拍賣(mài)合作協(xié)議3篇
- 2025年全球及中國(guó)達(dá)格列凈片行業(yè)頭部企業(yè)市場(chǎng)占有率及排名調(diào)研報(bào)告
- 2025-2030全球工業(yè)系統(tǒng)智能化解決方案行業(yè)調(diào)研及趨勢(shì)分析報(bào)告
- 2025-2030全球吸附無(wú)細(xì)胞百白破聯(lián)合疫苗行業(yè)調(diào)研及趨勢(shì)分析報(bào)告
- 2024年科普知識(shí)競(jìng)賽試題庫(kù)及答案(共80題)
- 所有股東股份轉(zhuǎn)讓協(xié)議
- GB/T 45120-2024道路車(chē)輛48 V供電電壓電氣要求及試驗(yàn)
- 2025年上海市嘉定區(qū)中考英語(yǔ)一模試卷
- 2025年中核財(cái)務(wù)有限責(zé)任公司招聘筆試參考題庫(kù)含答案解析
- 春節(jié)文化常識(shí)單選題100道及答案
- 華中師大一附中2024-2025學(xué)年度上學(xué)期高三年級(jí)第二次考試數(shù)學(xué)試題(含解析)
- 12123交管學(xué)法減分考試題及答案
- 2025年寒假實(shí)踐特色作業(yè)設(shè)計(jì)模板
- 《數(shù)據(jù)采集技術(shù)》課件-XPath 解析庫(kù)
- 財(cái)務(wù)報(bào)銷(xiāo)流程培訓(xùn)課程
- 成人腦室外引流護(hù)理-中華護(hù)理學(xué)會(huì)團(tuán)體 標(biāo)準(zhǔn)
- 24年追覓在線(xiàn)測(cè)評(píng)28題及答案
評(píng)論
0/150
提交評(píng)論