Title | Practice Exam 2011, Advanced Database Systems, questions and answers |
---|---|
Course | Advanced Database Systems |
Institution | University of Queensland |
Pages | 17 |
File Size | 473.8 KB |
File Type | |
Total Downloads | 91 |
Total Views | 135 |
Download Practice Exam 2011, Advanced Database Systems, questions and answers PDF
Question1.FundamentalsofDBMS 1.WhatdoesACIDstandfor? Atomicity Consistency Isolation Durability 2.Whatarethetwobasicdatabaseaccessoperationsinatransaction? Readandwrite. 3.Whatisthepurposeofsystemlogusedinatransactionprocessingsystem? Thesystemlogkeepsarecordofalltransactionoperationsondatabaseitems. Sooperationsofthetransactioncanbetracedbackandhavingrecordedoldvaluesofwritten itemsyoucandoarollback.Itcanfacilitateinasystemfailure. 4.Nametwotransactionprocessingsystemsyoumayhaveusedinyourdailylife? bankingsystems airlinereservations Ebaypurchase 5.Whatisthepurposeofconcurrencycontrolinatransactionprocessingsystem? Concurrencycontrolensuresthattransactionsrunninginparallelappearasiftheyarerunin isolation.Topreventmultipledifferentusersfromtryingtoupdatethesamedataatthesame timewhilefollowingACIDproperties.
Question2.DistributedDatabaseDesign 1.GivetwobenefitsofDDBsandbrieflyexplainthem. ANYOFTHEFOLLOWING: ○ Transparency ■ Network ● Doesn’tmatterwherethedataisstoredonthenetwork ■ Replication ● cascadeupdates ■ Fragmentation ■ Onlyuseasectionofthetablesneededinsteadoftheentiredatabase ● Abstractionoftheentiresystem ○ Reliability ■ Nosinglepointsoffailure(multiplenodes) ○ Availability ■ Redundancy ○ Performance ■ Doingthingsinparallelorhavingalocalcopyofthedata ○ Expansion ■ Easytoaddanothernodeinsteadofhavingahugemulticomputer ○ DataIntegrity
2.Thefollowingglobalschemaisgiven: R1=(ABCD) R2=(EFIG) R3=(HPZ) Assumetherearetwosites.Site1frequentlyaccessestuplesthatsatisfythefollowing conditionsE>200,A500;andsite2frequentlyaccessestuplesthatsatisfyE=100,H>600.Designacorrecthorizontaldatafragmentationoftheaboveschema.If replicationsoffragmentsareneeded,describethemandjustifyyourdecision. Site1: R1.1=(A,B,C,D)whereA=300. R2.2=(E,F,I,G)whereE=100. ReplicationofR2.2. ReplicationofR3.2. Justification: R1 R1hasacompletehorizontalfragmentationoverthetwosites. R2 Site1containsthefragmentR2.1whereE>=300. Site1alsocontainsthefragmentR2.2whereE200andE300.ItjustneedstobeabletoaccessE>200...butyesthattoo Site2containsareplicationofthefragmentR2.2whereE=500. Site2containsareplicationofthefragmentR3.2whereH>=500. ThisleavesthefragmentR3.1,whichcontainstheinfrequentlyaccessedtuplesEpreparetoall, all>voteyettoHobart, Hobart>committoall, all>acktoHobart Hobartend
Question5. 1)Completethefollowingarchitectures(LS:localschema,LES:localexternalschema)
Local/Global externalschema=user’sview:thedefinitionofdataisinthecontextofreportsandscreens designedtoaidindividualsindoingtheirspecificjobs. internalschema=computerview:dataisdefinedintermsoffilestructuresforstorageand retrieval.
2)Considerdatamodelsoftwocompanies: IncompanyA,employeerecordsarestoredinonetableEmp Emp(Emp#,Fname,Lname,Bdate,Dept#,Rank,Salary) IncompanyB,employeerecordsarestoredinmanytablesoneforeachcompanydepartment Deptxxx(Sid,Fname,Sname,Position,Phone#,email,URL) Createaviewtointegrateallemployeerecordsinthesetwocompanies(supposecompanyB hastwodepartments). CreateviewEMP_DATA(Emp#,Fname,Lname,Bdate,Dept#,Rank,Salary,Position,Phone#, email,URL)AS SELECTEmp#,Fname,Lname,Bdate,Dept#,Rank,Salary,NULL,NULL,NULL,NULLFROM EMP UNION SELECTSid,Fname,Sname,NULL,‘Dept01’,NULL,NULL,Position,Phone#,email,URL FROMDept01 UNION SELECTSid,Fname,Sname,NULL,‘Dept02’,NULL,NULL,Position,Phone#,email,URL FROMDept02 . Question6.DataQualityControl(5Marks) 1)WhatarethebasicstepsofDataGovernance?(2marks) 1.Recognisetheproblem. 2.Measureitscosts(usingmetrics). 3.Deviseasolutiontotheproblem. 4.Aimtowardsdatagovernancematurity. 2)Thefollowingarethevalues(i.e.strings)infieldBUSINESS_NAMEinatable BUSINESS_NAME AmazonOnlineBook BordersBookStore
SecondHandBookShop BennettsBookStore Supposethefieldvaluesaretokenizedinto.words.Foreachofthefollowingtokens,whatis thetermfrequency,inversedocumentfrequencyandtermscore.(3marks) a)Amazon documentfrequency=1 no.docs=4 idf=4/1=4 (AmazonOnlineBook) termscore=tf*idf tf=1 termscore=log(1+tf)*log(4)=log(2)*log(4)=0.181
b)Book documentfrequency=4 no.docs=4 idf=4/4=1 (AmazonOnlineBook) tf=1 termscore=log(1+tf)*log(1)=log(2)*log(1)=0 (BordersBookStore) tf=1 termscore=log(1+tf)*log(1)=log(2)*log(1)=0 (SecondHandBookShop) tf=1 termscore=log(1+tf)*log(1)=log(2)*log(1)=0 (BennettsBookStore) tf=1 termscore=log(1+tf)*log(1)=log(2)*log(1)=0
Project Part Supplier Quantity
2)Astarschemawiththefacttabledesignedin1),andappropriatedimensiontables(2marks)
ProjectDimension Project_No Name Budget Manager PartDimension Part_No Name Weight Dimensions Type
SupplierDimension Supplier_ID Address Phone Fax Website Contact 3)Supposethereare5supplier,4parts,and3projectsinthisdatacube.Selecttwodimensions andshowthecrosstabulationbypivotingonthesetwodimensions(leavecellsempty) (2marks) Notcoveredin2012.
Question8.SpatialDataManagement(5Marks) 1)SpatialRangequery,NearestNeighbourqueryandSpatialJoinqueryaremainquerytypes overspatialdata.Explainthem.(2marks) Notcoveredin2012.
Notcoveredin2012.
Question9.RFIDandSensorDataManagement(5Marks) SupposeyourRFIDapplicationisparceltracking.ThedatacollectedbyRFIDtagscontinues flowingin.Usercanquerytheinformationaboutthelocationsofparcelsaswellasarrivaland departuretime.Twoapproachescanbeusedtoanswerqueries.TheyarePushapproachand Pullapproach. 1)Brieflyexplainthesetwoapproaches(2marks) Notcoveredin2012. 2)UserAisanetworktroubleshooterwhosejobistoidentifyparcelswheretheactualstation differsfromtheexpectedstation.Forthistypeofusers,whichapproach(Push/Pull)willbe usedtoanswerthequery?Andwhy?(3marks) Notcoveredin2012.
Question10.DataModels(5Marks), 1)Tickfromthefollowingsthemainreasons(multipleticks)ofthesuccessoftherelational model(2mark) ☑Logicaldataindependenceeasierwithasimplerdatamodel ☑Setatatimelanguagesaregoodbecausetheyprovidephysicaldataindependence oSchemafirst oBetterathidingmathematics ☑Functionaldependenciesandnormalization ☑Effectivequeryoptimizers IalsohadwritteninmynotesthattheRelationalmodelusessetatatimewhichprovides physicaldataindependence. 2)XMLisasemistructureddatamodel.WhatisthemainapplicationareaofXMLcurrently andintheexpectedfuture?WhatisthemaindisadvantageofXML?(3marks) XMLiscurrentlyadatamodelandisalsoadatainterchangeformat.Itisexpectedthatthedata modelwilldieout,whilethedatainterchangeformatwillcontinuetobeused.XML’s disadvantageasadatamodelisthatitisexcessivelycomplex,notclearonhowtoimplementlet alonebeefficient. ...