DB2

考试总分:138分

考试类型:模拟试题

作答时间:60分钟

已答人数:967

试卷答案:有

试卷介绍: DB2

开始答题

试卷预览

  • 1. WhichstatementaboutBEFOREtriggersisFALSE?[1分]

    AABEFOREtriggercanbeusedtoperformvalidationofinputdata.

    BABEFOREtriggercanbeusedtoautomaticallygeneratevaluesfornewlyinsertedrows.

    CABEFOREtriggerisfiredforeachrowinthesetofaffectedrowsbeforethetriggereventexecutes.

    DABEFOREtriggerisfiredforeachrowinthesetofaffectedrowsinsteadofexecutingthetriggerevent.

  • 2. WhichcasewillrequireasequencetobedroppedandrecreatedinsteadofbeingmodifiedbytheALTERSEQUENCEstatement?[1分]

    AChangethedatatypeofthesequence.

    BResetthesequencetoitsstartingvalue.

    CEstablishnewminimumormaximumvalues.

    DChangetheincrementbetweenfuturevalues.

  • 3. AftercreatingseveralnewindexesandexecutingRUNSTATS,userUSER1wantstore-createapackagethatisstoredinthedatabasesoitwilltakeadvantageofthenewindexes.Whichauthority/privilegemustuserUSER1begrantedinordertore-createthepackage?[1分]

    ABIND

    BREBIND

    CBINDADD

    DBIND_REBIND

  • 4. Whichofthefollowingprivilegesallowausertoupdatethecommentonasequence?[1分]

    AALTER

    BUSAGE

    CUPDATE

    DCOMMENT

  • 5. WhatistheminimumproductrequiredforDB2connectivityacrossallplatforms?[1分]

    ADB2PersonalEdition

    BDB2DevelopmentEdition

    CDB2ConnectPersonalEdition

    DDB2DevelopmentUnlimitedEdition

  • 6. WhichDB2objectlimitstheuser'sabilitytoretrievedatafromatablebydefiningaSQLstatementintheobject?[1分]

    AView

    BIndex

    CTrigger

    DCheckconstraint

  • 7. Whatneedstobedefinedinordertotrackchangesmadetoasystem-periodtemporaltableovertime?[1分]

    AOncetherow-begin,row-end,andtransaction-start-idcolumnsarecreated,allchangesaretracked.

    BAhistorytablemustbecreatedwithidenticalcolumnstothebasetableandauniqueindexmustbedefinedonthetransaction-start-idcolumn.

    CAhistorytablemustbecreatedasaclonetableofthebasetableaftertherow-begin,row-end,andtransaction-start-idcolumnshavebeendefined.

    DAhistorytablemustbecreatedwithidenticalcolumnstothebasetableandthenthebasetablealteredwiththeADDVERSIONINGclausetorelateittothehistorytable.

  • 8. Whichstatementaboutlargeobject(LOB)locatorsistrue?[1分]

    AALOBlocatorisadatatypethatisusedtostoreLOBdatainbinaryfiles.

    BALOBlocatorisadatatypethatisusedtostoreLOBdatainadatabase.

    CALOBlocatorrepresentsavalueforaLOBresourcethatisstoredinadatabase.

    DALOBlocatorrepresentsavalueforaLOBresourcethatisstoredinabinaryfile.

  • 9. AtablenamedSALEScontainsarecordforeverysalestransactionacompanyprocesses.Auserwishestoseethenumberoftransactionsthataremadebyeachsalesman.WhichSQLstatementwillproducethedesiredresults?[1分]

    ASELECTname,COUNT(*)AStransactionsFROMsales

    BSELECTname,COUNT(DISTINCTname)AStransactionsFROMsales

    CSELECTname,COUNT(*)AStransactionsFROMsalesGROUPBYname

    DSELECTDISTINCTname,COUNT(*)AStransactionsFROMsalesGROUPBYtransactions

  • 10. WhenaCOMMITstatementisexecuted,whathappens?[1分]

    AAlllocksheldonthedatabaseareautomaticallyreleased.

    BDatastoredinglobaltemporarytablesisautomaticallydeleted.

    COpencursorsdefinedWITHHOLDareclosed,buttheirdataisretained.

    DThecurrenttransactionisterminatedandanewtransactionboundaryisstarted.

  • 11. Whichtypeofstoredprocedureisnotassociatedwithanexternalapplicationprogram?[1分]

    AAJavastoredprocedure.

    BAREXXstoredprocedure.

    CAnativeSQLstoredprocedure.

    DAnexternalSQLstoredprocedure.

  • 12. Whichstatementaboutsystem-periodtemporaltablesistrue?[1分]

    ATheystoreuser-basedperiodinformation.

    BTheydonothaveaseparatehistorytable.

    CTheycanbequeriedwithoutatimeperiodspecification.

    DTheymanagedatabasedontimecriteriaspecifiedbyusersorapplications.

  • 13. Whichstatementaboutforeignkeysistrue?[1分]

    AAtablecanhaveonlyoneforeignkey.

    BForeignkeyscanonlybedefinedwhenatableiscreated.

    CAforeignkeycanbedefinedonacolumnorasetofcolumnsinatable.

    DForeignkeysareenforcedonlyduringtheexecutionofINSERTstatements.

  • 14. Whichstatementregardingreferentialintegrityconstraintsistrue?[1分]

    AMultipleprimarykeyscanbedefinedforatable.

    BAforeignkeycanreferencemultipleprimarykeys.

    CAprimarykeycanbereferencedbyonlyoneforeignkey.

    DPrimarykeysandforeignkeysareusedtodefinerelationships.

  • 15. UserUSER1wantstostorepartnumbersandpartdescriptionsinatablenamedPARTS;userUSER1alsowantstoensurethatanycomparisonsofpartdescriptionsthataremadewillbedonesoinbinary,regardlessofthedatabasecollatingsequenceused.WhichstatementshoulduserUSER1executetocreatethedesiredtable?[1分]

    ACREATETABLEparts(part_noINTEGER,descCLOB))

    BCREATETABLEparts(part_noINTEGER,descVARCHAR(200))

    CCREATETABLEparts(part_noINTEGER,descCLOBFORBITDATA))

    DCREATETABLEparts(part_noINTEGER,descVARCHAR(200)FORBITDATA)

  • 16. Whichdatatypeshouldbeusedtostoredatainacolumnthatrepresentsmoneyandaccuratelyreturnsatwopositionscale?[1分]

    ABIGINT

    BBINARY

    CDOUBLE

    DDECIMAL

  • 17. WhenisanINTENTEXCLUSIVE(IX)lockrequired?[1分]

    AWhenatransactionintendstoreadorchangedata.

    BWhenatransactionintendstochangebutnotreaddata.

    CWhenatransactionintendstoreadbutnotchangedata.

    DWhenatransactionintendstochangethesystemcatalog.

  • 18. Whatfactorinfluenceslockconversion/promotion?[1分]

    ALocksize

    BNumberoflocks

    CLockmodeneeded

    DAvailablerealstorage

  • 19. WhichDB2objectcanbeusedtoimprovetheexecutionperformanceofqualifiedSELECTstatements?[1分]

    ATrigger

    BSQLProcedure

    CSequenceObject

    DMaterializedQueryTable

  • 20. Whenisitappropriatetouseasequence?[1分]

    AWhenyouwanttocontroltheorderinwhichtriggersarefired.

    BWhenyouwanttocontroltheorderinwhichstoredprocedurescanbeinvoked.

    CWhenyouwanttoautomaticallygenerateanumericvaluethatisnottiedtoanyspecificcolumnortable.

    DWhenyouwanttoautomaticallygenerateanumericvalueforeachrowthatisaddedtoaspecifictable.

  • 21. WhichclauseshouldbeincludedinaALTERTABLEstatementtoupdateatabledefinitionwithanewcolumn?[1分]

    AADDCOLUMN

    BALTERCOLUMN

    CAPPENDCOLUMN

    DRENAMECOLUMN

  • 22. Whichobjectisastoredproceduredefinedinto?[1分]

    ATable

    BSchema

    CPackage

    DDatabase

  • 23. Whichactionneedstobeperformedinordertocompletethedefinitionofanapplication-periodtemporaltable?[1分]

    AAtransaction-start-idcolumnmustbedefinedforthetable.

    BAhistorytablemustbedefinedandassociatedwiththebasetable.

    CABUSINESS_TIMEperiodmustbespecifiedinaCREATEorALTERofthetable.

    DAuniqueindexmustbecreatedthatpreventsoverlappingoftheBUSINESS_TIMEperiodofthetable.

  • 24. WhatistheprimaryfunctionofanOnlineTransactionProcessing(OLTP)workload?[1分]

    ATocombinedatafrommultiplesources.

    BTodiscoverhiddenrelationshipsindata.

    CToanalyzelargeamountsofdatatofindpatterns.

    DTomakechangestoasmallnumberofrecordswithinasingletransaction.

  • 25. Whichisolationleveloffersthegreatestprotectionofdatabutprovidestheleastamountofconcurrency?[1分]

    AReadStability(RS)

    BCursorStability(CS)

    CRepeatableRead(RR)

    DUncommittedRead(UR)

  • 26. Whatfactorinfluenceslockescalation?[1分]

    ATablesize

    BBufferspace

    CNumberoflocks

    DAvailablerealstorage

  • 27. Whichtypeoflockallowsthelockownerandallconcurrentapplicationstoread,butnotupdate,thelockeddata?[1分]

    AShare(S)

    BUpdate(U)

    CExclusive(X)

    DIntentExclusive(IX)

  • 28. WhichfunctioncanbeusedtoobtainvaluesfromXMLdocumentsthataretobeinsertedintooneormoretables?[1分]

    AXMLTABLE

    BXMLPARSE

    CXMLEXISTS

    DXMLATTRIBUTES

  • 29. UserUSER1wantstoretrieverecordsfromatablenamedEMPLOYEEthatsatisfyatleastoneofthefollowingcriteria:-Theemployee'shiredate(HIREDATE)isbefore1999andtheemployee'ssalary(SALARY)islessthan$40,000.00ayear.-TheemployeehasattendeduniversityWhichSQLstatementwillaccomplishthis?[1分]

    ASELECT*FROMemployeeWHERE(hiredate<'1999-01-01'ANDsalary<40000)OR(education='University')

    BSELECT*FROMemployeeWHERE(hiredate<'1999-01-01')OR(salary<40000)OR(education='University')

    CSELECT*FROMemployeeWHERE(hiredate<'1999-01-01'OR(salary<40000AND(education='University')

    DSELECT*FROMemployeeWHERE(hiredate<'1999-01-01'ANDsalary<40000AND(education='University')

  • 30. WhichSQLstatementwillretrievetheemployeenumber(EMPNO),hiredate(HIREDATE),andsalary(SALARY)foreachemployeefromatablenamedEMPLOYEEwhowashiredbefore1998andearnsasalaryoflessthan$35,000.00peryear?[1分]

    ASELECTempno,hiredate,salaryFROMemployeeFORhiredate<'1998-01-01'ANDsalary<35000

    BSELECTempno,hiredate,salaryFROMemployeeWHEREhiredate<'1998-01-01'ANDsalary<35000

    CSELECTempno,hiredate,salaryFROMemployeeWHEREhiredate<'1998-01-01'ORsalary<35000

    DSELECTempno,hiredate,salaryFROMemployeeFORhiredate<'1998-01-01'ORsalary<35000

  • 31. Ifthefollowingresultsetisdesired:LASTNAMEFIRSTNAMESALARYJOB--------------------------HAASCHRISTINE152750.00PRESKWANSALLY98250.00MANAGERPULASKIEVA96170.00MANAGERTHOMPSONMICHAEL94250.00MANAGERHENDERSONEILEEN89750.00MANAGERWhichSQLstatementmustbeexecuted?[1分]

    ASELECTlastname,firstnme,salary,jobFROMemployeeORDERBY3FETCHFIRST5ROWSONLY

    BSELECTlastname,firstnme,salary,jobFROMemployeeORDERBY3DESCFETCHFIRST5ROWSONLY

    CSELECTlastname,firstnme,salary,jobFROMemployeeORDERBY3FETCHFIRST5ROWS

    DSELECTlastname,firstnme,salary,jobFROMemployeeORDERBY3DESCFETCHFIRST5ROWS

  • 32. WhichstatementistrueaboutanindexthatisusedtosupportaUNIQUEconstraint?[1分]

    AItmustnotcontainmorethanonecolumn.

    BItcannotbeusedinareferentialconstraint.

    CItmustbedefinedwiththeUNIQUEattribute.

    DItmustbedefinedasUNIQUEWHERENOTNULL.

  • 33. Whichstatementregardingtriggersistrue?[1分]

    AOnlyoneINSERT,UPDATE,orDELETEtriggercanbedefinedpertable.

    BTriggerscannotbemodified,theymustbedroppedandrecreatedwithnewdefinitions.

    CAddingatriggertoatablethatalreadyhasrowsinitwillcausetriggeredactionstobefired.

    DTriggerscanonlybefiredonetimeperstatementirrespectiveofthenumberofrowsaffected.

  • 34. AtablenamedSTATESwascreatedasfollows:CREATETABLEstates(state_cdCHAR(2)NOTNULL,state_descCHAR(20));CREATEUNIQUEINDEXindx1ONstates(state_cd);Whatwillhappen?[1分]

    AAnerrorwillbereturnedandtheoperationwillfail.

    BAwarningwillbereturnedandtheuniqueindexINDX1willbecometheindexfortheprimarykey.

    CTheprimarykeywillbesuccessfullyaddedandtheuniqueindexINDX1willbedroppedandrecreatedastheprimarykeyindex.

    DTheprimarykeywillbesuccessfullyadded,theuniqueindexINDX1willbedropped,andanewindexwillbecreatedfortheprimarykey.

  • 35. Whenanapplicationusingatemporarytableterminatesordisconnectsfromthedatabaseunexpectedly,whathappenstothetemporarytableandanydatastoredinit?[1分]

    AThedatainthetableisdeletedandthetablepersists.

    BThedatainthetableisdeletedandthetableisimplicitlydropped.

    CThetemporarytableisconvertedtoabasetableandthedataisdeleted.

    DThetemporarytableisconvertedtoabasetableandthedataispersistent.

  • 36. Giventhefollowingstatement:GRANTDELETEONTABLEsalesTOUser1WITHGRANTOPTION;Whichstatementiscorrect?[1分]

    AUSER1canonlyremovetheSALEStable.

    BUSER1canonlyremoverecordsfromtheSALEStable.

    CUSER1canremovetheSALEStableandgranttheprivilegetoremovetheSALEStabletootherusers.

    DUSER1canremoverecordsfromtheSALEStableandgranttheprivilegetoremoverecordsfromtheSALEStabletootherusers.

  • 37. WhichmethodforrestrictingdataaccessreliesonaSQLsearchconditionthatdescribeswhatsetofrowsauserhasaccessto?[1分]

    AAuthentication

    BAuthoritiesandprivileges

    CLabel-basedaccesscontrol

    DRowandcolumnaccesscontrol

  • 38. WhichSQLstatementwilltaketheabilitytocreatetablesinatablespacenamedMYTBSPawayfromuserUSER1?[1分]

    AREVOKEUSEOFTABLESPACEmytbspFROMuser1

    BREVOKEALTERONTABLESPACEmytbspFROMuser1

    CREVOKEUPDATEOFTABLESPACEmytbspFROMuser1

    DREVOKECREATETABONTABLESPACEmytbspFROMuser1

  • 39. Inatrustedcontextenvironment,ifaswitchrequestismadewithanauthorizationIDthatisnotallowedonatrustedconnection,whatstateistheconnectionplacedin?[1分]

    ALocked

    BWaiting

    CPending

    DUnconnected

  • 40. Whenisamaskusedtolimitaccesstodatainatable?[1分]

    AWhenmandatoryaccesscontrol(MAC)isusedtoprotectthetable.

    BWhendiscretionaryaccesscontrol(DAC)isusedtoprotectthetable.

    CWhenlabel-basedaccesscontrol(LBAC)isusedtoprotectthetable.

    DWhenrowandcolumnaccesscontrol(RCAC)isusedtoprotectthetable.

  • 41. WhichprotocolprovidesapplicationstheabilitytoconnecttoandupdatemultipleDB2databaseswithinthesametransaction?[1分]

    AType-1connect

    BType-2connect

    CType-3connect

    DType-4connect

  • 42. Whichstatementaboutbitemporaltablesisvalid?[1分]

    ABitemporaltablesaresystemtablesandcanonlybequeriedbytheschemaowner.

    BCreatingabitemporaltableissimilartocreatingaregulartableexceptusersmustspecifyasystemtimeperiodcolumn.

    CWhendatainabitemporaltableisupdated,arowisaddedtoit'sassociatedhistorytable.

    DQueryingabitemporaltablewillproduceresultsforacompletetimeline;aviewmustbecreatedtoobtainresultsforaspecifictimeperiod.

  • 43. Whichobjectcanabufferpoolbeassignedto?[1分]

    ASchema

    BTablespace

    CStoragegroup

    DStoredprocedure

  • 44. WhichSQLstatementwouldbeusedtoretrieveonlysalariesthataregreaterthan$100,000.00fromatablenamedEMPLOYEE?[1分]

    ASELECT*FROMemployeeWHEREsalary<100000

    BSELECTsalaryFROMemployeeWHEREsalary>100000

    CSELECTsalaryFROMemployeeWHEREsalary>100,000.00

    DSELECT*FROMemployeeWHEREsalaryGREATERTHAN100000

  • 45. WhichSQLstatementshouldbeusedtoretrievetheminimumandmaximumsalaries(SALARY)foreachjobcode(JOB),sortedbyjobcode,fromatablenamedEMPLOYEE?[1分]

    ASELECTjob,MIN(salary),MAX(salary)FROMemployeeGROUPBYjobORDERBYjob;

    BSELECTjob,MIN(salary),MAX(salary)FROMemployeeORDERBYjob;

    CSELECTjob,MIN(salary),MAX(salary)FROMemployeeGROUPBYSALARYORDERBYjob;

    DSELECTjob,MIN(salary),MAX(salary)FROMemployeeGROUPBYMIN(salary),MAX(salary)ORDERBYjob;

  • 46. IfatablenamedMY_TABcontains100rowsandthefollowingstatementisexecuted:UPDATE(SELECT*FROMmy_tabORDERBYcol1DESCFETCHFIRST10ROWSONLY)AStempSETcol3=99;Howmanyrowswillbeupdated?[1分]

    A0

    B1

    C10

    D99

  • 47. AnSQLfunctionnamedDEPT_INFOwascreatedasfollows:CREATEFUNCTIONdept_info()RETURNSTABLE(dept_idINTEGER,dept_nameVARCHAR(20))LANGUAGESQLREADSSQLDATABEGINATOMICRETURNSELECTdeptno,deptnameFROMdepartmentWHEREdeptnameLIKE'S%';ENDWhatisthecorrectwaytousethisfunctioninaquery?[1分]

    ASELECTdept_info(dept_id,dept_name)

    BSELECTdept_id,dept_nameFROMdept_info()

    CSELECTTABLEdept_id,dept_nameFROMdept_info()

    DSELECTdept_id,dept_nameFROMTABLE(dept_info())ASresults

  • 48. Whichdatabaseobjectprovidesanalternativewayofdescribingdatathatexistsinoneormorebasetables?[1分]

    AAlias

    BView

    CIndex

    DSequence

  • 49. TheWITHCHECKOPTIONclauseoftheCREATEVIEWstatementallowsyoutodowhichofthefollowing?[1分]

    ADefineaviewononeormoretablesorviews.

    BRevalidateallinvalidobjectsthatarereferencedonaview'sfullselect.

    CEnsurethatanyinsertedorupdatedrowsconformtothedefinitionoftheview.

    DDefineaviewthatonlyconsistsofcolumnsthathavecheckconstraintsdefined.

  • 50. WhichtypeofconstraintcanbeusedtotelltheDB2Optimizerthataparent-childrelationshipexistsbetweentwotables,butthattherelationshipisnotenforced?[1分]

    ACheck

    BUnique

    CReferential

    DInformational

  • 51. WhicheventwillNOTcauseatriggertobefired?[1分]

    AExecutionofanINSERTstatement.

    BExecutionofLOADREPLACEoperation.

    CExecutionofanINSERToperationofaMERGEstatement.

    DExecutionofanUPDATEoperationofaMERGEstatement.

  • 52. WhatistheprimarypurposeforusingtheINCLUDEclausewithaCREATEUNIQUEINDEXstatement?[1分]

    ATooverridethelimitonindexkeycolumns.

    BTofurtherenforcetheuniquenessofindexvalues.

    CTocombinetwoormoreindexestocreateasingleuniqueindex.

    DToimproveperformanceofsomequeriesbyallowingindex-onlyaccess.

  • 53. Ifnoisolationlevelisspecified,whatisthedefaultisolationlevelused?[1分]

    ACursorStability(CS)

    BRepeatableRead(RR)

    CReadStability(RS)withCurrentlyCommittedsemantics

    DCursorStability(CS)withCurrentlyCommittedsemantics

  • 54. Whatisolationlevelpreventsdirtyreads,nonrepeatablereads,andphantoms?[1分]

    AReadstability(RS)

    BCursorstability(CS)

    CRepeatableread(RR)

    DUncommittedread(UR)

  • 55. Whichtypeoftemporaltablecanbeusedtostoreonlytime-sensitivedata?[1分]

    ABitemporal

    BTime-period

    CSystem-period

    DApplication-period

  • 56. Whenanindexiscreatedforatable,whereisthemetadataforthatindexstored?[1分]

    AInthetabledefinition.

    BInthesystemcatalog.

    CIntheschemathattheindexresidesin.

    DInthemetadataofthetabletheindexwascreatedfor.

  • 57. Whichproductisusedtocustomizeexecutionenvironmentsforthepurposeofcontrollingsystemresourcessothatonedepartmentorserviceclassdoesnotoverwhelmthesystem?[1分]

    ApureScale

    BWorkloadmanager

    CDatapartitioningfeature

    DSelf-tuningmemorymanager

  • 58. Whattypeofmechanismisasimpletokenvaluethatisusedtorefertoamuchbiggerlargeobject(LOB)?[1分]

    Alocator

    Bpointer

    Caddress

    Dreference

  • 59. WhichoperationnormallydoesNOTrequireanexclusivelock?[1分]

    ABIND

    BDROP

    CGRANT

    DSELECT

  • 60. WhenaCOMMITstatementisexecuted,whathappens?[1分]

    AAlllocksheldonthedatabaseareautomaticallyreleased.

    BDatastoredinglobaltemporarytablesisautomaticallydeleted.

    COpencursorsdefinedWITHHOLDareclosed,buttheirdataisretained.

    DThecurrenttransactionisterminatedandanewtransactionboundaryisstarted.

  • 61. Whichcommandisusedtobackoutasubsetofdatabasechangesthathavebeenmadewithinaunitofwork?[1分]

    ACOMMIT

    BROLLBACK

    CCOMMITTOSAVEPOINT

    DROLLBACKTOSAVEPOINT

  • 62. AnSQLfunctiondesignedtoconverttemperaturesfromFahrenheittoCelsiuswascreatedasfollows:CREATEFUNCTIONconv_temp(INtemp_fFLOAT)RETURNSINTEGERNOEXTERNALACTOINSPECIFICconvert_ftocRETURNINT((temp_f-32)/1.8)Howcanthisfunctionbeusedtoconvertaveragetemperature(AVG_TEMP)datastoredinatablecalledCLIMATE_INFO?[1分]

    ACALLconv_temp(climate_info.avg_temp);

    BCALLconvert_ftoc(climate_info.avg_temp);

    CSELECTconv_temp(avg_temp)FROMclimate_info;

    DSELECTconvert_ftoc(avg_temp)FROMclimate_info;

  • 63. IfauserhasbeengrantedSYSCTRLauthority,whichactivitiescantheyperform?[1分]

    ALoadoperations

    BBackup/copytablespaces

    CCreateanddropdatabases

    DMonitordatabaseperformance

  • 64. Whatisthepurposeofarole?[1分]

    ATodefineexactlywhataspecificusercandowithinaparticulardatabaseoncetheyhavebeenauthenticated.

    BTogroupacollectionofprivilegestogethersothattheycanbesimultaneouslygrantedtoandrevokedfrommultipleusers.

    CToestablishacrediblerelationshipbetweenDB2andanexternalentity,suchasadatabaseadministratororamiddlewareserver.

    DTogroupacollectionofuserstogethersothattheycanbesimultaneouslygrantedandrevokedspecificauthoritiesandprivileges.

  • 65. WhichSQLstatementwillgiveuserUSER1theabilitytoassignacommenttoasequencenamedMYSEQ?[1分]

    AGRANTALTERONSEQUENCEmyseqTOuser1

    BGRANTUSAGEONSEQUENCEmyseqTOuser1

    CGRANTSELECTONSEQUENCEmyseqTOuser1

    DGRANTCOMMENTONSEQUENCEmyseqTOuser1

  • 66. Acolumnmaskthatistobeusedforrowandcolumnaccesscontrol(RCAC)wascreatedwiththeDISABLEoptionspecified.WhatmustbedoneifthismaskistobeusedtorestrictaccesstodatastoredinatablenamedEMPLOYEE?[1分]

    AThecolumnmaskmustbeenabled;theEMPLOYEEtablemustbealteredtoactivatecolumnaccesscontrol.

    BThecolumnmaskmustbeenabled(columnaccesscontrolfortheEMPLOYEEtablewillbeactivatedautomatically).

    CTheEMPLOYEEtablemustbealteredtoactivatecolumnaccesscontrol(thecolumnmaskwillbeenabledautomatically).

    DTheEMPLOYEEtablemustbealteredtoactivatecolumnaccesscontrol;rowpermissionmustbegrantedtoeveryonewhoneedstousethecolumnmask.

  • 67. Bydefault,acolumndefinedasaTIMESTAMPincludeswhichattributes?[1分]

    ANofractionaldigitsortimezone.

    B6fractionaldigitsandnotimezone.

    C12fractionaldigitsplusatimezone.

    D12fractionaldigitsandnotimezone.

  • 68. WhichisNOTavalidreasonforcreatinganindex?[1分]

    AToallowqueriestorunmoreefficiently.

    BToenforceconstraintssuchasuniquenessonindexkeys.

    CToorderthecolumnsofatableinascendingordescendingsequenceaccordingtovaluesinarow.

    DToordertherowsofatableinascendingordescendingsequenceaccordingtothevaluesinacolumn.

  • 69. WhichtypeofconstraintcanbeusedtoensurethatanINTEGERcolumninatablewillneverbeassignedmorethanonerecordthatcontainsaNULLvalue?[1分]

    AUniqueconstraint

    BPrimarykeyconstraint

    CInformationalconstraint

    DColumndefaultconstraint

  • 70. Whichstatementistrueregardingconstraints?[1分]

    AAtablecanonlyhaveoneuniquekeyconstraint.

    BAtablecanhavemultipleprimarykeyconstraints.

    CInformationalconstraintstellDB2whatrulesthedataconformsto,buttherulesarenotenforced.

    DForeignkeyconstraintsareenforcedonthevalueswithintherowsofatable,orbetweentherowsoftwotables,byauniqueindexonaforeignkey.

  • 71. WhichstatementisvalidabouttheRowandColumnAccessControl(RCAC)feature?[1分]

    AArowmask'saccesscontrolruleisdefinedbyanSQLCASEexpression;acolumnpermission'saccesscontrolruleisdefinedbyanSQLsearchcondition.

    BArowpermission'saccesscontrolruleisdefinedbyanSQLCASEexpression;acolumnmask'saccesscontrolruleisdefinedbyanSQLsearchcondition.

    CArowmask'saccesscontrolruleisdefinedbyanSQLsearchcondition;acolumnpermission'saccesscontrolruleisdefinedbyanSQLCASEexpression.

    DArowpermission'saccesscontrolruleisdefinedbyanSQLsearchcondition;acolumnmask'saccesscontrolruleisdefinedbyanSQLCASEexpression.

  • 72. Whichtypeoftableshouldyouuseifyouwanttodefinespecifictimeperiodswhendataisvalid?[1分]

    AMaterializedquerytable

    BSystem-periodtemporaltable

    CDeclaredglobaltemporarytable

    DApplication-periodtemporaltable

  • 73. WhichSQLstatementwillcreateaDB2objectthatcanbeusedtostorenumericaldataasCanadiancurrency?[1分]

    ACREATEDISTINCTALIAScanadian_dollarASDECIMAL(9,3)WITHCOMPARISONS

    BCREATEDISTINCTTYPEcanadian_dollarASDECIMAL(9,3)WITHCOMPARISONS

    CCREATEDISTINCTPROCEDUREcanadian_dollarASDECIMAL(9,3)WITHCOMPARISONS

    DCREATEDISTINCTFUNCTIONcanadian_dollarASDECIMAL(9,3)WITHCOMPARISONS

  • 74. Whichobjectcanbeenabledforcompression?[1分]

    AView

    BBufferpool

    CStoragegroup

    DTemporarytable

  • 75. WhichDB2productisadatabaseclustersolutionfornon-mainframeplatformsandisbestsuitedforOnlineTransactionProcessing(OLTP)workloads?[1分]

    ADB2Connect

    BDB2pureScale

    CWorkloadManager

    DHighAvailabilityDisasterRecovery

  • 76. Whattypeoflargeobject(LOB)isusedtostoreLOBdatatogetherwiththeformattedrowsondatapages,insteadofinaseparateLOBstorageobject?[1分]

    Ainline

    Bbinary

    Cinternal

    Dpartitioned

  • 77. WhichproductreplacedtheControlCenterusedinversionspriortoDB2v10?[1分]

    AIBMDataStudio

    BIBMAdministrator

    CIBMDataManager

    DIBMCommandCenter

  • 78. WhichDB2productisNOTsuitableforverylargedatawarehouseapplications?[1分]

    ADB2fori

    BDB2forAIX

    CDB2forz/OS

    DDB2forLinux

  • 79. WhichplatformsupportsDB2pureScaleenvironments?[1分]

    AAIX

    BiOS

    Cz/OS

    DWindows

  • 80. WhichstatementaboutUPDATEprocessingisFALSE?[1分]

    ATheUPDATEstatementlogsthebeforeandaftervalueofeverycolumnitmodifies.

    BAsearchedUPDATEisusedtoupdateoneormorerowsandapositionedUPDATEisusedtoupdateexactlyonerow.

    CWhentheUPDATEstatementmodifiesparentkeycolumns,thevalueofcorrespondingforeignkeycolumnsarealsomodified.

    DTheUPDATEstatementmodifiesthevaluesofspecifiedcolumnsintherowsofatable,view,orunderlyingtable(s)ofaspecifiedfullselect.

  • 81. Giventhefollowingstatements:CREATETABLEemployee(empidINTEGER,infoXML);INSERTINTOemployeeVALUES(1,'JoeSmithDevelopment');IfthefollowingXQuerystatementisexecuted:XQUERYfor$infoindeb2-fn:xmlcolumn('EMPLOYEE.INFO')/employeeinforeturn$info/nameWhatwillbetheresult?[1分]

    AJoeSmith

    BJoeSmith

    CJoeSmith>DB2

    DJoeSmith

  • 82. AtablenamedSTATEShasthefollowingcolumns:STATE_CD,REGION_CD,andSTATE_NAME.WhichSQLstatementwillreturnthenumberofstatesineachregion,orderedbynumberofstates?[1分]

    ASELECTstate_cd,COUNT(*)FROMstatesORDERBYCOUNT(*);

    BSELECTstate_cd,COUNT(*)FROMstatesGROUPBYstate_cdORDERBYstate_cd;

    CSELECTregion_cd,COUNT(*)FROMstatesGROUPBYstate_cdORDERBYCOUNT(*);

    DSELECTregion_cd,COUNT(*)FROMstatesGROUPBYregion_cdORDERBYCOUNT(*);

  • 83. Whenauser-definedfunction(UDF)iscreatedandnoschemaisspecified,whatschemaisusedtostoretheUDF?[1分]

    ATheSYSIBMschema.

    BTheSYSFUNschema.

    CAschemawiththenameoftheUDF.

    DAschemawiththeuseridoftheUDFdefiner.

  • 84. UserUSER1wantstodefinearequiredrelationshipbetweentwotablesnamedTAB1andTAB2insuchawaythatwheneverarecordisdeletedfromtableTAB1,anyrelatedrecordsaredeletedfromtableTAB2.WhatmustuserUSER1dotoaccomplishthis?[1分]

    A1)CreateaprimarykeyontableTAB1;2)CreateaforeignkeyontableTAB2thatreferencestheprimarykeyontableTAB1andadherestotheONDELETECASCADErule.

    B1)CreateaprimarykeyontableTAB2;2)CreateaforeignkeyontableTAB1thatreferencestheprimarykeyontableTAB2andadherestotheONDELETECASCADErule.

    C1)CreateaprimarykeyontableTAB1;2)CreateaforeignkeyontableTAB2thatreferencestheprimarykeyontableTAB1andadherestotheONDELETERESTRICTrule.

    D1)CreateaprimarykeyontableTAB2;2)CreateaforeignkeyontableTAB1thatreferencestheprimarykeyontableTAB2andadherestotheONDELETERESTRICTrule.

  • 85. Whichstatementaboutadeadlockistrue?[1分]

    AThevictimwillberolledback.

    BThevictimwillreadthroughthelock.

    CBothvictimandholderarerolledback.

    DThevictimmustwaituntiltheholderreleasesthelock.

  • 86. Whattakesplacewhenaprocessaccessesadataobjectonwhichitalreadyholdsalock,andtheaccessmoderequiresamorerestrictivelockthantheonecurrentlyheld?[1分]

    ALockwait

    BLocktimeout

    CLockescalation

    DLockconversion

  • 87. Whatistheactofreleasingalargenumberofrow-levellocksthatanapplicationholdsonasingletabletoacquireatable-levellockknownas?[1分]

    ALockexchange

    BLockpromotion

    CLockescalation

    DLockconversion

  • 88. GiventhefollowingDDLstatement:CREATETABLEsales(itemCHAR(20));IfaDBAwishestoincreasethesizeoftheITEMcolumn,whichSQLstatementneedstobeused?[1分]

    AALTERTABLEsalesADDCOLUMNitemCHAR(40);

    BALTERTABLEsalesALTERCOLUMNitemCHAR(40);

    CALTERTABLEsalesMODIFYCOLUMNitemCHAR(40);

    DALTERTABLEsalesALTERCOLUMNitemSETDATATYPECHAR(40);

  • 89. YouhaveabusinessneedtoqueryDB210andDB29databasesandyouwanttowriteanapplicationthatcanrunonmostplatformsunchanged.Whichinterfacewouldyouusetoachieveyourgoal?[1分]

    ACLI

    BXML

    CJDBC

    DRUBY

  • 90. Whattypeoflargeobject(LOB)isusedtostoreLOBdatatogetherwiththeformattedrowsondatapages,insteadofinaseparateLOBstorageobject?[1分]

    Ainline

    Bbinary

    Cinternal

    Dpartitioned

  • 91. WhichtoolallowsuserstoconnecttoaDB2databaseusingawizard?[1分]

    AControlCenter

    BIBMDataStudio

    CUniversalConnectionExpert

    DDB2ConnectionPoolManager

  • 92. Whichstatementwillpreventconcurrentapplicationprocessesfromperforminganythingotherthanread-onlyoperationsagainstatablenamedTAB1?[1分]

    ALOCKTABLEtab1INREADMODE

    BLOCKTABLEtab1INSHAREMODE

    CLOCKTABLEtab1INEXCLUSIVEMODE

    DLOCKTABLEtab1INREAD-ONLYMODE

  • 93. Whatistheactofexchangingonelockanapplicationholdsonaresourceforamorerestrictivelockonthesameresourceknownas?[1分]

    ALockescalation

    BLocksubstitution

    CLockswitch/exchange

    DLockconversion/promotion

  • 94. GivenanEMPLOYEEStableandaSALEStable,auserwantstoproducealistofallemployeesandtheirassociatedrevenue,evenifnorevenueexists.WhichSQLstatementwillproducethedesiredlist?[1分]

    ASELECTemployees.name,sales.revenueFROMemployeesINNERJOINsalesONemployees.id=sales.emp_id

    BSELECTemployees.name,sales.revenueFROMemployeesINNERJOINsalesONsales.emp_id=employees.id

    CSELECTemployees.name,sales.revenueFROMsalesLEFTOUTERJOINemployeesONemployees.id=sales.emp_id

    DSELECTemployees.name,sales.revenueFROMsalesRIGHTOUTERJOINemployeesONemployees.id=sales.emp_id

  • 95. Whichcommandwilldeleteallrowsfromatablewithoutgeneratinglogrecords?[1分]

    ATRIM

    BDROP

    CDELETE

    DTRUNCATE

  • 96. WhichstatementaboutINSERToperationsistrue?[1分]

    ATheINSERTstatementisusedtoinsertrowsintoatable,view,ortablefunction.

    BInsertedvaluesmustsatisfytheconditionsofanycheckconstraintsdefinedonthetable.

    CIfanINSERTstatementomitsanycolumnfromtheinsertedrowthatisdefinedasNULLorNOTNULLWITHDEFAULT,thestatementwillfail.

    DIftheunderlyingtableofaviewbeingreferencedbyanINSERTstatementhasoneormoreuniqueindexes,eachrowinserteddoesnothavetoconformtotheconstraintsimposedbythoseindexes.

  • 97. WhichSQLstatementshouldbeusedtoselecttheminimumandmaximumsalaries(SALARY),byjobcode(JOB),fromatableEMPLOYEE?[1分]

    ASELECTjob,MIN(salary),MAX(salary)FROMemployeeGROUPBYjob;

    BSELECTjob,MIN(salary),MAX(salary)FROMemployeeORDERBYjob;

    CSELECTjob,MIN(salary),MAX(salary)FROMemployeeGROUPBYjob,MIN(salary),MAX(salary);

    DSELECTJOB,MIN(salary),MAX(salary)FROMemployeeORDERBYjob,MIN(salary),MAX(salary);

  • 98. AtablenamedEMPLOYEEwascreatedasfollows:CREATETABLEemployee(emp_idINTEGERNOTNULLPRIMARYKEY,f_nameVARCHAR(30),l_nameVARCHAR(40),ssnCHAR(9)NOTNULL)WhichactionwillpreventunauthorizedusersfromaccessingSSNdata?[1分]

    AAssigntheSSNcolumntoarestrictedrolethatonlyauthorizeduserscanaccess.

    BOnlygrantACCESSCTRLauthorityfortheSSNcolumntouserswhoneedtoaccessSSNdata.

    CAlterthetabledefinitionsothatSSNdataisstoredinaseparateschemathatonlyauthorizeduserscanaccess.

    DCreateaviewfortheEMPLOYEEtablethatdoesnotcontaintheSSNcolumnandrequireunauthorizeduserstousetheview.

  • 99. AnewusernamedUSER1needstoretrieveinformationfromadatabasenamedMYDB.WhatauthoritymustbegrantedtouserUSER1?[1分]

    ADBCTRLauthority

    BSQLADMauthority

    CDATAACCESSauthority

    DACCESSCTRLauthority

  • 100. Whichstatementabouttriggersistrue?[1分]

    AAtriggerisdesignedtoreturnspecifictypesofvaluesandcontainsexecutablecode.

    BAtriggerisdesignedtoreturnspecifictypesofvaluesbutcontainsnoexecutablecode.

    CAtriggerperformsactionstocapturedetailsaboutanactivitylikeajoinoperationagainstmultipletables.

    DAtriggerperformsactionsinresponsetoaneventlikeanINSERT,UPDATEorDELETEoperationonatable.

  • 101. Whatistheprimarypurposeofaview?[1分]

    AToenableuniqueness.

    BToensuredataclustering.

    CTocombinedatafrommultipletables.

    DTooptimizequeriesranagainstmultipletables.

  • 102. Bydefault,whereisthedatastoredforacolumndefinedwithanXMLdatatype?[1分]

    AInanXMLindex.

    BInlinewiththerestofthedataforthetable.

    CInanXMLstorageobjectthatisseparatefromthetable.

    DInlinewiththerestofthedataforthetable,forXMLcolumnslessthan32KB.

  • 103. Whatisusedinconjunctionwithaforeignkeytodefinearelationshipbetweentwotables?[1分]

    APrimarykey

    BPartitioningkey

    CCheckconstraint

    DUniqueconstraint

  • 104. Whatprivilegeisrequiredtocreateaviewonatablethatyouarenottheownerof?[1分]

    AINSERT

    BSELECT

    CCREATE

    DTRIGGER

  • 105. WhichSQLstatementwillgiveausernamedUSER1theabilitytorunanembeddedSQLapplicationnamedBENEFITSthatcallsapackagenamedCORPDATA.PKGA?[1分]

    AGRANTEXECUTEONAPPLICATIONbenefitsTOuser1

    BGRANTEXECUTEONPACKAGEcorpdata.pkgaTOuser1

    CGRANTEXECUTEONAPPLICATIONPACKAGEcorpdata.pkgaTOuser1

    DGRANTEXECUTEONAPPLICATIONbenefitsUSINGPACKAGEcorpdata.pkgaTOuser1

  • 106. GiventheSQLstatement:CREATEALIAStotal_salesFORsalesWhichstatementisvalid?[1分]

    ASALEScanbethenameofaschema.

    BSALEScanbethenameofapackage.

    CSALEScanbethenameofanexistingalias.

    DSALEScanbethenameofadeclaredglobaltemporarytable.

  • 107. AtablenamedEMPLOYEESwascreatedasfollows:CREATETABLEemployees(emp_noVARCHAR(4)NOTNULL,emp_nameVARCHAR(50)NOTNULL,emp_emailVARCHAR(30)NOTNULL)Then,thefollowingINSERTstatementswereexecuted:INSERTINTOemployeesVALUES('1A2B','JoeSmith','joe.smith@abc.com');INSERTINTOemployeesVALUES('1122','LisaCarter','');INSERTINTOemployeesVALUES('1A2B','JohnDoe','john.doe@abc.com');Ifthefollowingqueryisexecuted:SELECTcount(*)FROMemployees;Whatwillbetheresults?[1分]

    A0

    B1

    C2

    D3

  • 108. WhichDB2objectisassociatedwithPREVIOUSVALUEandNEXTVALUEexpressions?[1分]

    AView

    BTable

    CSequence

    DIdentityColumn

  • 109. Whichobjectisusedtocachetableandindexdataasitisreadfromdisk?[1分]

    ADatabase

    BBufferpool

    CTablespace

    DPackagecache

  • 110. WhichtoolallowsuserstoconnecttoaDB2databaseusingawizard?[1分]

    AControlCenter

    BIBMDataStudio

    CUniversalConnectionExpert

    DDB2ConnectionPoolManager

  • 111. Whichstatementaboutrollbackoperationsiscorrect?[1分]

    AWhenaROLLBACKstatementisexecuted,alllocksheldbytheterminatingtransactionarereleased.

    BWhenaROLLBACKTOSAVEPOINTstatementisexecuted,alllocksacquireduptothesavepointarereleased.

    CWhenaROLLBACKTOSAVEPOINTstatementisexecuted,alllocksacquiredafterthesavepointarereleased.

    DWhenaROLLBACKstatementisexecuted,alllocksacquiredforopencursorsthatweredeclaredWITHHOLD,areheld.

  • 112. WhichSQLstatementwillretrievethedepartmentnumber(WORKDEPT)andaveragedepartmentalsalary(SALARY)foralldepartmentsinatablenamedEMPLOYEEandarrangetheresultsetinascendingorderbyaveragedepartmentalsalary?[1分]

    ASELECTworkdept,AVG(salary)FROMemployeeORDERBYworkdeptGROUPBY2

    BSELECTworkdept,AVG(salary)FROMemployeeORDERBYworkdeptARRANGEBY2

    CSELECTworkdept,AVERAGE(salary)FROMemployeeGROUPBYworkdeptORDERBY2

    DSELECTworkdept,AVG(salary)FROMemployeeGROUPBYworkdeptORDERBY2

  • 113. AtablenamedDEPARTMENTcontainsthefollowingdata:DEPTNODEPTNAMEMGRNOADMRDEPT--------------------------A01PLANNING000020A00B02BRANCHOFFICE1-E01C22BRANCHOFFICE2-E01D22BRANCHOFFICE3-E01E22BRANCHOFFICE4-E01IfauserattemptstoexecutethefollowingstatementUPDATEemployeeSETworkdept=(SELECTdeptnoFROMdepartmentWHEREadmrdeptLIKE'E%')WHEREworkdeptISNULL;Whatwillhappen?[1分]

    AThestatementwillfailbecauseasubquerycannotbeusedinanUPDATEstatement.

    BThestatementwillfailbecausetheresultsetproducedbythesubquerywillcontainmorethanonerow.

    CThestatementwillsucceed;thelastrecordretrievedbythesubquerywillbeusedtoprovideaWORKDEPTvaluefortheupdateoperation.

    DThestatementwillsucceed;thefirstrecordretrievedbythesubquerywillbeusedtoprovideaWORKDEPTvaluefortheupdateoperation.

  • 114. Whatisafunctionofatablecheckconstraint?[1分]

    AToprovideamethodofavoidingduplicateentriesforacolumn.

    BToprovideamethodofensuringacolumn'svaluesarewithinaspecificrange.

    CToensurethatXMLcolumnsareproperlypopulatedinanassociatedXMLtablespace.

    DToenforcerelationshipsbetweentablesbycheckingtheexistenceofrowsinonetableagainstanother.

  • 115. Whichtypeoftableisbestsuitedforrecordingresultsfromapplicationdatamanipulationthatisnotrequiredtobepersistent?[1分]

    ABaseTable

    BTemporalTable

    CTransitionTable

    DTemporaryTable

  • 116. WhatareINSTEADOFtriggersusedfor?[1分]

    AToupdatedatainothertables.

    BToperforminsert,update,anddeleteoperationsagainstcomplexviews.

    CTocheckormodifyvaluesbeforetheyareactuallystoredinadatabase.

    DTorunnon-databaseoperationsthatarecodedinuser-definedfunctions.

  • 117. Whatmechanismistypicallyusedtoautomaticallyupdateothertables,generateortransformvaluesforinsertedorupdatedrows,andperformtaskssuchasissuingalerts?[1分]

    ATrigger

    BProcedure

    CTablefunction

    DScalarfunction

  • 118. TheEXCLUSIVEMODEoptionoftheLOCKTABLEstatementisusedtopreventwhichofthefollowing?[1分]

    AConcurrentapplicationprocessesfromperforminganyoperationsonthetable.

    BConcurrentapplicationprocessesfromperforminganyread-onlyoperationsonthetable.

    CConcurrentapplicationsprocessesthatarerunningunderthecursorstability(CS)isolationlevelfromperformingread-onlyoperationsonthetable.

    DConcurrentapplicationsprocessesthatarerunningundertheuncommittedread(UR)isolationlevelfromperformingread-onlyoperationsonthetable.

  • 119. ApplicationAPP_AisperformingupdatestotableTAB1usingthereadstability(RS)isolationlevel.WhichisolationlevelwillallowapplicationAPP_BtoretrieveallrowsfromtableTAB1immediately,ratherthanhavetowaituntilapplicationAPP_Ahasfinishedmakingupdates?[1分]

    AReadStability(RS)

    BCursorStability(CS)

    CRepeatableRead(RR)

    DUncommittedRead(UR)

  • 120. Ifthefollowingcommandisexecuted:CREATEDATABASEtestWhatisthepagesize(inkilobytes)ofthedatabase?[1分]

    A4

    B8

    C16

    D32

  • 121. WhatfunctionalityallowsuserstoperformaUNIONoperationbetweenaDB2tableandanOracleview?[1分]

    AOracleconnect

    BTrustedcontext

    COraclefederation

    DDistributedrequest

  • 122. WhichDB2objectisusedtoprovidealogicalgroupingofotherdatabaseobjects?[1分]

    AAlias

    BIndex

    CSchema

    DCollection

  • 123. WhatisthepurposeoftheQueryTuner?[1分]

    AToautomaticallycaptureandstoproguequeries.

    BToproviderecommendationsandanalysisfortuningasinglequery.

    CToproviderecommendationsandanalysisfortuningupto100queries.

    DTorecommendindexesandtoguideDBAsthroughtheprocessofcreatingnewindexes.

  • 124. ApplicationAPP_AisperformingupdatestotableTAB1usingthecursorstability(CS)isolationlevel.IfapplicationAPP_BwantstoretrieveallrowsfromtableTAB1withoutwaitingforapplicationAPP_Atofinishmakingupdates,whatisolationlevelmustapplicationAPP_Buse?[1分]

    AReadStability(RS)

    BRepeatableRead(RR)

    CUncommittedRead(UR)

    DCursorStability(CS)

  • 125. WhenisanINTENTEXCLUSIVE(IX)lockrequired?[1分]

    AWhenatransactionintendstoreadorchangedata.

    BWhenatransactionintendstochangebutnotreaddata.

    CWhenatransactionintendstoreadbutnotchangedata.

    DWhenatransactionintendstochangethesystemcatalog.

  • 126. Whatisolationlevelpreventsdirtyreads,nonrepeatablereads,andphantoms?[1分]

    AReadstability(RS)

    BCursorstability(CS)

    CRepeatableread(RR)

    DUncommittedread(UR)

  • 127. IfatablenamedMY_TABcontains100rowsandthefollowingstatementisexecuted:DELETEFROM(SELECT*FROMmy_tabORDERBYcol1DESCFETCHFIRST5ROWSONLY)AStmp;Whatwillhappen?[1分]

    AThelast5rowsinthetablewillbedeleted.

    BThefirst5rowsinthetablewillbedeleted.

    CThestatementwillfailbecauseasubquerycannotbeusedwithaDELETEstatement.

    DThestatementwillfailbecauseatablenamewasnotspecifiedwiththeDELETEstatement.

  • 128. Whichstatementaboutapplication-periodtemporaltablesistrue?[1分]

    AConsistsofexplicitly-suppliedtimestampsandaseparateassociatedhistorytable.

    BIsbasedonexplicitly-suppliedtimestampsthatdefinethetimeperiodsduringwhichdataisvalid.

    CIsusefulwhenonewantstokeepbothuser-basedperiodinformationandsystem-basedhistoricalinformation.

    DConsistsofapairofcolumnswithdatabase-managermaintainedvaluesthatindicatetheperiodwhenarowiscurrent.

  • 129. Inatrustedcontextenvironment,ifaswitchrequestismadewithanauthorizationIDthatisnotallowedonatrustedconnection,whatstateistheconnectionplacedin?[1分]

    ALocked

    BWaiting

    CPending

    DUnconnected

  • 130. UserUSER1holdsbothDBADMandSECADMauthorityandyouwanttoseparatedatabaseadministrationactivitiesfromsecurityadministrationtasks.WhatauthoritymustyouhaveinordertorevokeSECADMauthorityfromuserUSER1andassignittosomeoneelse?[1分]

    ADBADM

    BDBCTRL

    CSECADM

    DDBMAINT

  • 131. WhichSQLstatementwillallowuserUSER1tocreateaviewonatablenamedEMPLOYEE?[1分]

    AGRANTCREATETABONDATABASETOuser1

    BGRANTSELECTONTABLEemployeeTOuser1

    CGRANTCREATEVIEWONDATABASETOuser1

    DGRANTREFERENCESONTABLEemployeeTOuser1

  • 132. Whichprivilegeisrequiredtoinvokeauserdefinedfunction?[1分]

    ACALL

    BUSAGE

    CEXECUTE

    DREFERENCES

  • 133. Whenauser-definedfunction(UDF)iscreatedandnoschemaisspecified,whatschemaisusedtostoretheUDF?[1分]

    ATheSYSIBMschema.

    BTheSYSFUNschema.

    CAschemawiththenameoftheUDF.

    DAschemawiththeuseridoftheUDFdefiner.

  • 134. Whichtwostatementsaretrueaboutforeignkeyconstraints?(Choosetwo.)[1分]

    ATheforeignkeyconstraintcolumnsmustbesupportedbyanindex.

    BTheforeignkeyconstraintcolumnsmustbedefinedasNOTNULL.

    CThenumberanddatatypesofforeignkeyconstraintcolumnsmustmatchtheparentkey.

    DThecolumnsofoneforeignkeyconstraintcannotbeusedinanotherforeignkeyconstraint.

    ETodefineaforeignkeyconstrainttheremustbeanassociatedprimarykeyoruniquekeyinthesameordifferenttable.

  • 135. WhichtwooperationsareallowedinthebodyofanSQLscalaruser-definedfunction?(Choosetwo.)[1分]

    ACALLstatements.

    BExternalfileaccess.

    CUseofascratchpad.

    DCOMMITstatements.

    ESQLcontrolstatements.

  • 136. Whichtwoactivitiesindicatetheneedforadatawarehouse?(Choosetwo.)[1分]

    AConfirmproductinventory.

    BMonitorproductavailability.

    CSummarizesalesbyregion.

    DIdentifypatternsforproductssoldinthelastfiveyears.

    EAssociateoneormoreproductswithapurchaseorder.

  • 137. WhataretwovalidobjectsthatcanbecreatedinDB2?(Choosetwo.)[1分]

    ATree

    BNode

    CTrigger

    DContexts

    ESequence

  • 138. WhichtwoDB2objectscanaviewbederivedfrom?(Choosetwo.)[1分]

    AView

    BIndex

    CTable

    DTrigger

    EProcedure

相关试卷
相关题库