Considering you have a server with 4 processor cores and 8GB of memory, which of the following is the lowest cost DB2 edition that can be used to take advantage of all server's resources? A. DB2 Enterprise Edition B. DB2 Workgroup Edition //slide 29 C. DB2 Express Edition D. DB2 Express-C Edition 2. Which of the following statements is TRUE? A. Licensing by PVU is available on DB2 Express-C edition. B. DB2 Express-C includes support to Table Partitioning. //neni pravda C. DB2 Express can only be licensed by Authorized User. //neni pravda D. The Storage Optimization feature for DB2 Enterprise edition includes Row, Index, Temporary Table and XML Compression. 3. Which of the following isolation levels lets you see data that has been updated by other applications before it is committed? A. Cursor stability B. Read stability C. Repeatable read//jako jediny nedovoluje phantom reads...tedy cist stare hodnoty ktere nekdo meni D. Uncommitted read 4. Which of the following is FALSE about DB2 Instances? A. It has a stand-alone DB2 environment. B.
Only one instance can exist using the same DB2 executable files. //executable files jsou spolecny pro vsechny instance C. Each instance has its own configuration file. D. There could be multiple instances per data server. 5. Which of the following statements CANNOT be issued against indexes? A. CREATE B. ALTER C. DROP D. All of the above can be issued against indexes. 6. Consider a table TAB1 having the following values: TAB1 ----------------COL1 COL2 ---- ---A 10 B 20 C 30 A 10 D 40 C 20 Consider the result of a given query: COL1 ---A B C D Which of the following statements would produce the given query result: A. SELECT COL1 FROM TAB1 ORDER BY COL1 FETCH FIRST 4 ROWS ONLY B.
SELECT COL1 FROM TAB1 FETCH FIRST 4 ROWS ONLY C. SELECT DISTINCT COL1 FROM TAB1 D. SELECT UNIQUE COL1 FROM TAB1 //tohle chce overit ale prijde mi to jako nejlepsi moznost 7. The SELECT privilege is NOT available for which of the following database objects? A. Sequence B. Nickname//tohle je asi ono...nickname asi ani nexistuje ale existuje alias C. View D. Table 8. Which of the following information is NOT part of the backup file name? A. Database alias B. Timestamp of the backup C. Instance name D. Backup type SAMPLE.0.DB2INST.NODE0000.CATN0000.20100314131259.001...podle me tu je vsechno, tak nevim co chteji odpovedet...slide 243 9. One transaction is trying to acquire a lock to modify a row in table A. Consider the database lock timeout (locktimeout) parameter is set to 20 and that DB2 checks for deadlocks every 60 seconds. What will happen to the transaction after 20 seconds waiting? A. DB2 will randomly select one application and rollback its current transaction to try to free up the lock being held. B. The application will rollback and the application will receive an error. C. The application will commit but the operation waiting for the lock is not completed. D.
The application will commit because after 20 seconds are passed the transaction acquires the lock by force. 10. Which of the following is NOT a valid authentication type that can be used by DB2? A. CLIENT B. CLIENT_ENCRYPT //slide 212 C. SERVER D. SERVER_ENCRYPT 11. What is SAX? //tohle sem fulltextem nenasel A. A parsing mechanism, which uses stream events to process XML nodes. B. A parsing mechanism, which uses a binary tree-based algorithm to process XML nodes. C. A parsing mechanism, which uses a character-based algorithm to process XML nodes. D. A parsing mechanism, which uses the PHP SAX interface to process XML nodes. 12. Assuming that you are currently connected to TESTDB, which of the following will allow the view of the database manager settings with details? A. db2 get dbm cfg with details B. db2 get dbm cfg show detail C. db2 get db cfg with details D. db2 get db cfg show detail 13. Which of the following is FALSE about DSAC? A. Database must be added to the connection list before it can be monitored. B. Dashboard tab displays performance metrics and their values. C.
" Is this statement: A.Alert List tab shows warnings associated for each database. B. A table space can have only one Buffer Pool associated to it. D. Smaller buffer pool works better for a small. None of the above. An index can be defined on a view. sequentially accessed table space. The predefined value assigned by a default constraint can not be overwritten. C. A user can define multiple indexes for a single table in DB2. A database can have more than one Buffer Pool. Healthy Summary tab summarizes the status of the last operation to run in the database. A constraint can be added to an existing table using the ALTER TABLE statement. D. 14. B. Two or more same values can be assigned to the column when there is a unique constraint. True. Which of the following statements is incorrect? A. 16. D. B. Larger buffer pool works better for a table space for an OLTP application. An index for a table is used to improve SQL query performance. C. "Indexes can be created on computed columns. B. Which of the following statements is FALSE regarding Buffer Pools on DB2? A. Consider the following statement. 15.
. 17. The NOT NULL constraint can be used to ensure that a particular column in a table is never assigned a zero value D. C. Which of the following statements is true about constraints? A.
4 C.. D. 6 19. An entity C. A record B. You are currently connected to a database called MYDB as the user MYUSER. In relational terminology. C and D. A field D. 18. but only when the column data is produced by a sequence. 5 D.pripadne poupravte B. how many DB2 server licenses by PVU do they need in total assuming all users can be using all machines they have access to at the same time? A. while user Y needs access to server B. DB2INST1
.. User X needs access to server A and B. Consider the following scenario. When creating a table within this database. False. an attribute is? A. 3 B. but only when the column data is produced by a sequence. you use the command: CREATE TABLE MYTABLE (DEPT CHAR(3) NOT NULL) Under which schema is the table MYTABLE created? A.False. MYDB//prijde mi to logicky. A table
20. True. C. MYUSER C.
B.. INSERT INTO USERS VALUES ( 23. Given the following table: USERS -------------------------ID INTEGER NOT NULL NAME CHAR(20) NOT NULL PASSWORD VARCHAR(30) Which INSERT statement is NOT correct? A. 21. 'Jim'. as the table schema is not specified. INSERT INTO USERS VALUES ( 23. User Temporary Table Spaces 22.proto myslilm ze tohle je ono D. Application code is embedded inside the DB2 database. User Table Spaces B. D. 'password')//to ma neco spolecnyho s tim jak rikal ze pokud vlozime null. NULL ) C. System Temporary Table Spaces C. 'Jim'. INSERT INTO USERS VALUES ( 23. NULL.
. Application code can be compiled by DB2 compiler. 'password') B. Which of the following is NOT a valid DB2 Table Space ? A. INSERT INTO USERS VALUES ( 23.tak to neni stejny jako prazdny misto. Metadata Table Spaces// slide 65 D. C.D. 'password') 23. Application needs to be precompiled. ''. Application can be directly compiled by the programming language compiler. Which of the following options is TRUE about applications developed with Embedded SQL? A. You get an error because your command is ambiguous.
the incremental cumulative backup from Tuesday. the incremental delta from Wednesday. B. Given the options below. In the following situation: Suday: full backup Monday: delta incremental Tuesday: incremental Wednesday: delta incremental Thursday: system crashed Which of the following options contains the correct restore order so that the database can be restored to the last stable moment before the crash? A. If table TABLE1 contains 50 rows. Restore only the delta incremental backup from Wednesday. SELECT * FROM table1 WHILE ROW < 5 D.. then roll forward the database using the transaction log files. which of the following statement will only return the first five of the rows? A. SELECT * FROM table1 MAXROWS 5 B. C. Restore the full backup from Sunday. Restore the incremental backup from Tuesday and the incremental backup from Wednesday. CHANGE C.
. 25. Once a table is defined and created it cannot be altered. UPDATE D. SELECT * FROM table1 FETCH FIRST 5 ROWS ONLY 26.. ALTER//nebo tu je nejaky figl? B. then roll forward the database using the transaction log files.24.//opet. SELECT * FROM table1 RETURN FIRST 5 ROWS C. which of the following statements can alter a table? A.prijde mi to logicky kdyztak opravte D.
Operations inside a transaction are executed in parallel. UNDO TRANSACTION 30. 29. A COMMIT can be executed right after a ROLLBACK statement in order to revert the effects of the ROLLBACK. Which privilege is required to invoke a user-defined function? A. COMMIT B.
. B. the delta incremental from Wednesday. EXECUTE C. Several COMMIT statements can be executed inside the same transaction. RETURN D. ROLLBACK C.Restore the full backup from Sunday. Which of the following packages have the smallest footprint but is still suitable for executing JDBC applications? A. IBM Data Server Client B. Which of the following commands can be used to undo operations executed inside a unit of work? A. then roll forward the transaction log files. 27. Which of the following statements is TRUE about transactions? A. C. CALL D. D. USAGE 28. REFERENCES B. Transactions guarantee atomicity of a group of operations.
Which of the following statements is correct? A. DELETE. UPDATE.1 WHERE dept = 'D1' D. Adding GROUP BY to a SELECT statement will always return less rows than the same SELECT statement without the GROUP BY clause. DROP. All JOIN operators can be expressed as a combination of SELECT statements and cartesian products B. INSERT. INSERT. UPDATE employees WHERE dept = 'D1' SET salary = salary * 1. 34. INSERT. The cartesian product of 2 sets will never have duplicate rows C. REMOVE D. Which of the following statements can be used to increase in 10% the salary of all employess in department D1: A.IBM Data Server Runtime Client C.1 ON TABLE employees WHERE dept = 'D1' 32. INSERT. ALTER. UPDATE employees SET salary = (salary * 1. UPDATE salary = salary * 1. IBM Data Server Driver for JDBC and SQLJ D. The four basic SQL statements of the Data Manipulation Language are: A. DROP B. IBM Data Server Driver Package 31. DROP C. Given the following tables with the given data:
. ALTER. INNER JOIN and OUTER JOIN of 2 tables will always be different D. UPDATE employees SET salary = salary * 1. UPDATE. SELECT 33.1 B. SELECT.1) C. CREATE.
name.STUDENT -----------------name id ----. NAME COUNT ---------------.----Jim 1 Sarah 2 Frank 3 PROFESSOR -----------------name course ----. NAME COUNT ---------------.-------Angie 1 Jenny 3 Mark 1 B.-------Angie 6
.----Jenny PHY_102 Mark MAT_202 Angie DB_101 Jenny CSI_201 ENROLL -----------------student_id course_id -----.----2 PHY_102 2 DB_101 3 PHY_102 1 CSI_201 3 MAT_202 After executing the query: SELECT P.name What would the result be? A. COUNT AS COUNT FROM STUDENT LEFT JOIN ENROLL ON id=student_id. PROFESSOR AS P GROUP BY P.
Which of the following is true about the table below? CREATE TABLE EMPLOYEE ( ID INTEGER NOT NULL.
. Each column typically is called by its column name or column header or attribute name 36. B. Which of the following is NOT a definition of a relation? A. It is compiled and executed by an application at run-time.Jenny 12 Mark 6 C. D. A relation may be thought of as a set of columns. Dynamic SQL does not exist. Which of the following is true about Dynamic SQL? A. The structured of an SQL statement must be completely specified at precompile time. NAME COUNT ---------------.
37. C. B.-------Angie 1 Jenny 2 Mark 1 D. Each row has a value of an item or set of items that uniquely identifies that row in the table D.-------Angie 3 Jenny 6 Mark 3
35. It is precompiled and binded in dynamic databases. Each row represents a fact that corresponds to a real-world entity or relationship C. NAME COUNT ---------------.
Which of the following statements is FALSE? A. 1. The MANAGER domain consists only of the value Y D. ID is a value found in the EMPLOYEE table B. MANAGER VARCHAR(30) NOT NULL PRIMARY KEY (ID)). TERMINATE. 3 makes up a row in the EMPLOYEE table C. Primary key D. ID. Jennifer L makes up a column in the EMPLOYEE table
. NAME. Cursor C. 2. John S. B. EXTENSION INTEGER NOT NULL. and add or change the comment associated with the sequence. Pointer B. changing the increment value for the sequence. Foreign key
39. The ALTER sequence privilege allows a user to perform administrative tasks like restarting the sequence. The link between a column or set of columns in one table that refers to the set of column in another table is? A. Susan P.NAME VARCHAR(30) NOT NULL. ID NAME EXTENSION MANAGER 1 John S 53412 Y 2 Susan P 54123 N 3 Jennifer L 51234 N
Which of the following is NOT displayed by DB2 Access Plan? A. The ALTER privilege for tables allows a user to modify the structure of a table. the user/group receiving privileges is given the ability to grant the CONTROL privilege to others. Namespaces help to uniquely identify XML elements by associating them to an URL. B. considering that performance is critical to the application? A. Which of the following is the best implementation for a User Defined Function that emphasizes on database operations. C. Namespaces help to distinguish between same element names in different domains. Namespaces are types of nodes within XML documents. Which is a true statement about Namespaces? A. D. Authorization type
40. D. Properties for operators B. Composed function D. Java external function B. Namespaces are the same as a root node within an XML document. which is a valid web page.When the GRANT statement is executed with the WITH GRANT OPTION clause specified. The USAGE privilege is the sequence privilege that allows a user to use the PREVIOUS VALUE and NEXT VALUE expressions that are associated with the sequence. C built-in function 42. C. Indexes or columns C. SQL PL function C. Global information D.
<XDS FIL=C1. "John Smithson". <XDS FIL=C2. SYSADM authority 44.xml' />" 1002. "<XDS FIL='C1. "<XDS= 'C3. "Mary David".xml' />" C.xml' />" 1001."Jane Doe".xml/> B."Jane Doe". "Mary David".xml' />" 1002. "<XDS FIL='C2.xml' />" 1001. 1000.xml' />" 1002. "<XDS FIL='C2.43. NAME(VARCHAR(10)).xml' />" D.del import files will be accepted by DB2? A. INFO(XML). "Mary David". you issue the following command:
. DBADM authority D. 1000. "<XDS FIL='C3. "John Smith". What is the lowest privilege/authority required to execute the following SQL statement? CREATE VIEW view1 AS SELECT * FROM table1 WHERE AGE > 18 A. Which of the following /data/dept.xml/> 1002. 1000.xml' />"
45. "Mary David". "John Smith". REFERENCES privilege on table1 B.xml' />" 1001. As the user MYUSER."Jane Doe". "<XDS= 'C2. Consider the following.del of DEL XML FROM /data/xmlfiles INSERT INTO dept The table dept contains three columns: CID (INTEGER).xml/> 1001. 1000. SELECT privilege on table1 C. "<XDS FIL='C1. "<XDS FIL='C3. "John Smith". "<XDS= 'C1. Consider the following IMPORT statement: IMPORT FROM /data/dept."Jane Doe". <XDS FIL=C3.
C. B. Data will be passed to the server unencrypted. The alias DEFAULT. 0 B. Which of the following statements is TRUE regarding the case when a client using the SERVER_ENCRYPT authentication type connects to a server using the SERVER authentication type? A. The alias ALIAS. as the schema is not specified. D. Server will be unable to process the encrypted data and an error will occur. Consider TB1 has no rows initially and that the auto commit feature is disabled.
.A1 is created for MYUSER. how many rows will be inserted in TB1? INSERT INTO TB1 VALUES (1.A1 is created for DEFAULT.T1. You get an error because your command is ambiguous. 46. C. 'ABC') INSERT INTO TB1 VALUES (2.A1 is created for ALIAS. 1 C. The alias MYUSER. Data will be passed to the server encrypted.T1. None of the above is true. 3 47.CREATE ALIAS A1 for T1 What will be the result of the command? A.T1. 'GHI') ROLLBACK COMMIT A. After execution of the following statements. D. B. 2 D. 'DEF') COMMIT INSERT INTO TB1 VALUES (3.
BACKUP DATABASE SAMPLE TARGET= D:\bkp C. Node D. C. SELECT * FROM sample ISOLATION UR B. which of the following will change the isolation level to UR for the current statement? A. A foreign key must? A. The type of data structure that is used in a relational model is? A. Be defined in all tables in the database B. START BACKUP DATABASE SAMPLE USING D:\bkp B. Be unique D.48. SELECT * FROM sample USE UR
. Which of the following commands produces a backup image from a database? A. Be numeric 49. Match the field value of a primary key in a related table or be NULL. Tree C. None of the above 51. BACKUP DATABASE SAMPLE TO D:\bkp D. If the current session has an isolation level of CS. START BACKUP DATABASE SAMPLE TO D:\bkp 50. SELECT * FROM sample UR C. Table B.
Which of the following is NOT true about Database Management Systems? A. C. CALL proc1(DEFAULT) B. Consider a Stored Procedure with the following definition: CREATE OR REPLACE PROCEDURE proc1 (IN p2 VARCHAR(20)) BEGIN … END @
Using DB2 CLP. Applications can choose to bypass the Database Management System when accessing databases for performance reasons. DB2 is a Database Management System. All of the above. Relational Database Management Systems use Structured Query Language to interact with databases. Database Management Systems act as an interface used to communicate with databases.D. B. CALL proc1(?)
. Provide support for data processing. Provide an organized mechanism for manipulating data. A database can be used to do which of the following? A. C. D.
54. Create a repository of data. D. 53. which of the following commands would successfully execute procedure PROC1? A. SELECT * FROM sample WITH UR 52. B.
SELECT INTO XSLTRANSFORM (XMLDOC USING XSLT) FROM XMLDATA. XMLTRANS WHERE ID = 1 and XSLID = 2 . Using an external XML-only database 56. SELECT XSLTRANSFORM (XMLDOC USING XSLT) FROM XMLDATA. CALL proc1(NULL) D. None of the above 55. /customerinfo/name/"cid" 57. Inserting XML documents in an integer column D. Shredding XML documents into tables in a RDBMS B. Storing XML documents in CLOB columns C. C. Which of the following is NOT a valid approach for storing XML documents? A. Which one of the following is a valid XPATH expression to retrieve an attribute value within an XML document? A. /customerinfo/name/data(@cid) D. /customerinfo/name/text(@cid) C. XMLTRANS WHERE ID = 1 and XSLID = 2 .
. XMLTRANS WHERE ID = 1 and XSLID = 2 . D. /customerinfo/name/cid B. B. SELECT FROM XSLTRANSFORM (XMLDOC USING XSLT) FROM XMLDATA. XMLTRANS WHERE ID = 1 and XSLID = 2 .C. Which of the following is the correct syntax for using the XMLTRANSFORM SQL/XML function? A. 58. UPDATE XSLTRANSFORM (XMLDOC USING XSLT) FROM XMLDATA.
Given the following UPDATE statement: UPDATE employees SET workdept = (SELECT deptno FROM department WHERE deptno = 'A01') WHERE workdept IS NULL
. insert. D. Data describes a variable or set of variables. or delete database records B. Data is useful and has meaning associated to it. ---------------------------------------------
61. C. select. provide data object access control D. or drop database objects C. update. The Data Manipulation Language is used to: A. modify. Essentially data can be thought of as the result of observations based on things like measurements and statistics. B. C# 59.Which of the following languages can NOT be used to create a UDF in DB2 9. Perl// mam pocit ze tam pisou ze je pouzitelny jen C.7? A. Which of the following is NOT true about data? A. SQL PL C. create. Java D. Data can be quantitative or qualitative. a Java B. all of the above 60. C++.
A Table Space is always associated to a Buffer Pool
63. A Table Space is a logical object in between logical table and physical containers B. All tables. Assume a table which contains the following columns: EMP_ID EMP_NAME PHONE EMAIL SALARY 64. only the first record will be used to perform the update D. The statement will only succeed if the data retrieved by the subquery does not contain multiple records C. indexes and tables in temporary memory D.
. Which of the following statements is NOT true regarding Table Spaces on DB2?
A. Which of the following is the simplest way to restrict users from viewing SALARY information. while still allowing them to see the other values?
A. The statement will only succeed if every record in the EMPLOYEES table has a null value in the WORKDEPT column 62. A Table Space is a logical object required to store data. indexes. and other data are stored in a table space C. if the data retrieved by the subquery contains multiple records.Which of the following describes the result if this statement is executed?
A. The statement will fail because an UPDATE statement cannot contain a subquery B. The statement will succeed.
Grant access to the view and revoke access from the original table. Create a view that does not contain the SALARY column. Assuming that you are currently connected to TESTDB. Revoke SELECT access for the SALARY column from users who should not see SALARY data. which of the following statements can add records to a table?
. C. db2 get dbm cfg with detail D. db2 get dbm cfg show detail 66. Store SALARY data in a separate table and grant SELECT privilege for that table to the appropriate users.Encrypt the table's data. D. db2 get db cfg with detail B. which of the following will allow the view of the database settings with details?
A. Which of the following statements grants user John the ability to insert data to table tab1?
A. GRANT INSERT ON TABLE tab1 TO USER John 67. GRANT ADD ON TABLE tab1 TO USER John D. GRANT INSERT ON TABLE tab1 TO John C. B. db2 get db cfg show detail C. Given the options below.
65. GRANT ADD ON TABLE tab1 TO John B.
Rows in the same table can have a different set of columns. B. INSERT D. update and delete data. Which of the following is true about Relational Databases?
A. 68.A. What data storage method is the most optimal solution for the company?
A. ADDRECORD C. Comma delimited data files C. Rows are also known as fields of the table. Spreadsheets D. ADDREC B. ADD A company has a large amount of data to store and wants to be able to do the following with the data: Have a standard interface for accessing the data. D. A column can store values of different data types. Make changes to the data without risk of losing data and its consistency. Database
. Text files B. Have tools for data backup. Have multiple users with the ability to insert. Have the capability to handle huge volumes of data and users. restore and recovery. A table consists of columns and rows.
DB2 Express Edition B. DB2 Everyplace D. Which of the following is a tool to configure automatic database backup?
A. DB2 Express Edition B. Which of the following is the lowest cost DB2 product that can be legally installed on a Linux server that has 2 CPUs?
A. DB2 Workgroup Server Edition 73. Configure Automatic Maintenance wizard B.70. DB2 Workgroup Edition C. DB2 Express-C Edition D.
. Design Advisor C. Explain tool D. DB2 Enterprise Server Edition C. EXPORT utility 72. Which of the following is the lowest cost DB2 product that can be legally installed on a windows server that has 4 CPUs capable of performing row compression?
A. DB2 Enterprise Edition 71.
75. B. which of the following privileges is required for the user to use a package?
A. This command will return an error to the user. an application is required to create a new connection specifying the desired level. Isolation level is determined at the moment an application connects to the database. Creation of a temporary table space called mytbsp1 that is managed automatically. Isolation level to be used can be specified when executing the COMMIT operation. C.How can an application modify the isolation level of operations running against a DB2 database?
A. Creation of a user table space called mytbsp1 that is managed automatically. Isolation level can be changed for a particular SQL statement. When a user is connected to a database. C. EXECUTE
. Consider the following command: CREATE TABLESPACE MYTBSP1 MANAGED BY AUTOMATIC What will the command result in?
A. To change the isolation level. Creation of a normal table space called mytbsp1 that is managed automatically. Isolation level can only be changed for the whole user session and all operations in that session will be affected. D. BIND B. B. BINDADD C. 74. D.
Consider the following XML document: <customerinfo> <name>John Smith</name> <addr country="Canada"> <street>Fourth</street> <city>Calgary</city> <prov-state>Alberta</prov-state> <pcode-zip>M1T 2A9</pcode-zip>
. DURING D.D. B. USE 76. D. Which of the following is NOT a supported type of trigger?
A. Authorization is a process that validates that you are who you claim to be by verifying your user ID and password. BEFORE C. C.
78. Authorization is the process where the DBA gathers information to see who will have access to the database. AFTER B. What is authorization?
A. Authorization is a process that checks whether you have sufficient privileges to perform the desired database operation. INSTEAD OF 77. Authorization is the process where the DB2 database checks with Windows security to see if you have access to the DB2 database.
</addr> <phone type="work">963-289-4136</phone> </customerinfo> Consider the following UPDATE expression: update xmlcustomer set info = xmlquery( 'transform copy $new := $i modify ( do insert <phone type="cell">777-555-3333</phone> after $new/customerinfo/addr. <customerinfo> <name>John Smith</name> <addr country="Canada"> <street>Fourth</street> <city>Calgary</city> <prov-state>Alberta</prov-state> <pcode-zip>M1T 2A9</pcode-zip> </addr> <phone type="cell">777-555-3333</phone> <phone type="work">963-289-4136</phone> </customerinfo> B. for $j in $new/customerinfo/addr/phone return do rename $j as "telephone" ) return $new' passing info as "i") where cid = 1000. <customerinfo> <name>John Smith</name> <addr country="Canada"> <street>Fourth</street> <city>Calgary</city> <prov-state>Alberta</prov-state> <pcode-zip>M1T 2A9</pcode-zip> </addr> <phone type="cell">777-555-3333</phone> <telephone type="work">963-289-4136</telephone> </customerinfo> C. <customerinfo> <name>John Smith</name>
. Which of the following represents the XML document after the TRANSFORM expression has been executed:
Relations. A collection of instances of entities. <customerinfo> <name>John Smith</name> <addr country="Canada"> <street>Fourth</street> <city>Calgary</city> <prov-state>Alberta</prov-state> <pcode-zip>M1T 2A9</pcode-zip> <phone type="cell">777-555-3333</phone> </addr> <telephone type="work">963-289-4136</telephone> </customerinfo> 79. rows and columns
Which of the following best define what a transaction is?
A. A set of independent operations that can be executed in parallel. A collection of instances of record types.
. Table. B. A sequence of one or more SQL operations grouped together. also known as a single unit of work. attributes and tuples C. What are the entities used to model data in the Relational Model?
A. B. D.<addr country="Canada"> <street>Fourth</street> <city>Calgary</city> <prov-state>Alberta</prov-state> <pcode-zip>M1T 2A9</pcode-zip> </addr> <phone type="cell">777-555-3333</phone> <telephone type="work">963-289-4136</telephone> </customerinfo> D. C.
A data isolation level that can help prevent deadlocks by allowing reads on previously committed data. ALTER TABLE users
81. An object of a DB2 database. DROP TABLE users C.----A 10 B 20 C 30 D 40
. DELETE TABLE users D.
80. REMOVE TABLE users B. Which of the following SQL statements can be used to remove data from table "users":
A. Given the following table: TAB1 ------------------COL1 COL2 ----.----A 10 B 20 C 30 A 10 D 40 C 30 Assuming the following results are desired: TAB1 ------------------COL1 COL2 ----. D.
A.//zas tipuju tak kdyztak opravte D. SELECT UNIQUE(*) FROM tab1 D.SQL/XML is part of the XQuery standard and provides various publishing functions to transform XML data into relational form and vice versa. D. C.
83. The model should define relationships between the managed objects. SELECT DISTINCT * FROM tab1 C.
.Which of the following statements will produce the desired results?
A. Which of the following is NOT true about your model?
A. SQL/XML is an extension to SQL standard and provides various publishing functions to transform XML data into relational form and vice versa. SELECT UNIQUE * FROM tab1 B. SQL/XML is a communication protocol for DB2 databases. B. What is SQL/XML?
A. C. You are tasked with designing a model that can be used by the software developer to implement a given application. The model being designed is an Information Model. The model includes specific implementation and protocol details. SELECT DISTINCT(*) FROM tab1 82. SQL/XML is a language that provides various publishing functions to transform XML data into relational form and vice versa. B. The model is a low level of abstraction with concrete and detailed design.
LET clause C.. Given the following two tables: TAB1 -----------------COL_1 COL_2 ----.----A 10 B 12 C 14 TAB2 ------------------COL_A COL_B ----.C 14 C 23 . Which of the following is NOT part of the XQuery FLOWR expression?
A. FOR clause B. ORDER BY clause D. Assuming the following results are desired: COL_1 COL_2 COL_A COL_B A 10 A 21 B 12 .84.D 25 Which of the following joins will produce the desired results?
. WITH clause
85.----A 21 C 23 D 25 86.
Given the following table definition: SALES -------------------------SALES_DATE DATE SALES_PERSON CHAR(20) REGION CHAR(20) SALES INTEGER Which of the following SQL statements will remove all rows that had a SALES_DATE in the year 1995?
A. Which of the following objects you would need to create in order to execute a block of code every time table TB1 is updated?
A. A UDF C. An User Defined Type 88. SELECT * FROM tab1 RIGHT OUTER JOIN tab2 ON col_1 = col_a D.A.
. SELECT * FROM tab1 INNER JOIN tab2 ON col_1 = col_a B. SELECT * FROM tab1 LEFT OUTER JOIN tab2 ON col_1 = col_a C. DELETE FROM sales WHERE YEAR(sales_date) = 1995 C. A Stored Procedure D. SELECT * FROM tab1 FULL OUTER JOIN tab2 ON col_1 = col_a
87. An AFTER trigger B. DELETE * FROM sales WHERE YEAR(sales_date) = 1995 B.
Application B wants to read a subset of rows from table EMPLOYEE multiple times inside the same transaction. it is necessary to:
A. Repeatable Read D. Which of the following is NOT true about columns?
. and then setup a SSH communication to the remote node C. and then select the remote database from the list 91. to access a remote database for the first time. Currently Committed B. First catalog the remote system or node. First register the remote system user in the system catalog. Read Stability C. and then catalog the database within the remote node B. Using DB2's CLP. Which isolation level should be used in order to guarantee that every time the same set of rows is returned?
A. Uncommitted Read
90.DROP * FROM sales WHERE YEAR(sales_date) = 1995 D. DB2 cannot use databases in remote systems unless SYSADM authority is granted to the local user D. DROP FROM sales WHERE YEAR(sales_date) = 1995
89. First list all the remote databases with the db2 list database directory command.
20 C. Columns are also known as fields
92. Columns must be designated a specific data type D.A. 9 B. marks
A.---------------Wayne Gretzky 99 Jaromir Jagr 68 Bobby Orr 4 Bobby Hull 23 Mario Lemieux 66 MARKS -------------------------------NAME Marks -------. Each column consists of one or more fields//opet typ B. Each column contains a specific type of information C. 5 D.
. Given the following two tables NAMES -------------------------------STUDENT_NAME STUDENT_NUMBER -----------.------Wayne Gretzky 80 Bobby Orr 94 Brett Hull 77 Mario Lemieux 83 How many rows would be returned using the following statement? SELECT distinct name FROM student_names.
Has one or more root nodes.TAX(SALARY) FROM EMPLOYEE
A. Only 1 COMMIT statement can be executed inside the same transaction. Which of the following statements is FALSE about transactions?
A. Transactions guarantee atomicity of a group of operations. User Defined Type
93.TAX is: SELECT APP. D.6
92. 94. Trigger D. Operations inside a transaction are executed in parallel. User Defined Function B. B.
. Considering the SQL statement below. Tags can have at most one attribute. C. Which of the following is true about a well-formed XML document?
A. A ROLLBACK or COMMIT statement finalizes a transaction. End tags are optional. D. Always has a single document node. Stored Procedure C. B. which option best describes what APP. C.
INSERT INTO current_employees (name. INSERT INTO current_employees VALUES (10. salary FROM past_employees WHERE empid = 20) 96. INSERT INTO current_employees SELECT empid.2) PAST_EMPLOYEES ----------------------------EMPID INTEGER NOT NULL NAME CHAR(20) SALARY DECIMAL(10. 85000.2) 95. salary FROM past_employees WHERE empid = 20 D. 'JAGGER'.Given the following table: CURRENT_EMPLOYEES ----------------------------EMPID INTEGER NOT NULL NAME CHAR(20) SALARY DECIMAL(10. Assuming both tables contain data.------Wayne Gretzky 99 Jaromir Jagr 68 Bobby Orr 4 Bobby Hull 23 Mario Lemieux 66
. which of the following statements will NOT successfully add data to table CURRENT_EMPLOYEES?
A.00) C. Given the following two tables: NAMES --------------------------NAME NUMBER ---------. salary) VALUES (SELECT name. name. INSERT INTO current_employees (empid) VALUES (10) B.
5 C. None of the above. 25 97. Drop a view associated to the table STUDEN. which of the following actions is USER1 allowed to perform?
A. Grant all privileges on table STUDENT to other users. After the following SQL statement is executed: GRANT ALL PRIVILEGES ON TABLE student TO USER user1 Assuming user USER1 has no other authorities or privileges. points
A. Drop the table STUDENT. C. 98.POINTS ---------------------------NAME POINTS ---------. A Dirty Read occurs when?
.------Wayne Gretzky 244 Bobby Orr 129 Brett Hull 121 Mario Lemieux 189 Joe Sakic 94 How many rows would be returned using the following statement? SELECT * FROM names. 10 D. B. D. 0 B.
You are connected to a DB2 database in your Linux server as db2inst1 and issue the following statement: SELECT * FROM table_1 Which table will you be selecting data from:
A. Which of the following is an XML-based language for transforming XML documents?
A. You have 3 tables with the same name (TABLE_1) under 3 different schemas (SYSIBM. SYSIBM.// slide 171 98. Two transactions read and then attempt to update the same data. A search based on some criterion returns additional rows after consecutive searches during a transaction. Consider the following scenario. B. You get an error because your query is ambiguous. A transaction read the same row of data twice and returns different data values with each read. XHTML B. but the transaction that originated them was rolled back. XSLT C. as the table schema is not specified B. DB2INST1. D.table_1 99. C. DEFAULT.table_1 D.A. Uncommitted data is returned.table_1 C. the second update will overwrite the first update before it is committed. DEFAULT and DB2INST1). Java
. HTML D.
IBM Data Server Runtime Client D. To replicate data between a DB2 database and relational databases from other vendors D. SQL developers can define Access Plans to tell DB2 the best way to retrieve the data from a SQL query B. IBM Data Server Driver for ODBC and CLI C. Backup all of the data that has changed since the last successful full or delta backup. B. D. Backup of the entire database. C. IBM Data Server Driver Package
. 102. IBM Data Server Client B. Backup all of the data that has changed since the last full backup. To visually construct complex DML statements and examine the results of their execution
101. Which of the following best describes what an incremental cumulative backup is?
A. Backup of a single table space. Describes the order of operations to access data necessary to execute a SQL or XQuery statement C. Which of the following DB2 client/driver packages is NOT suitable for developing ODBC applications?
A.100. What is the purpose of a DB2 Access Plan?
It is a special area in a buffer pool that can be written only by a selected set of users. D. The structured of an SQL statement must be completely specified at precompile time. B. It is a DB2 capability that allows users to establish a connection to the database without providing user name or password. Which of the following commands would delete the SAMPLE database?
A. db2 drop sample db D. What is a Trusted Context?
A. C. It is precompiled and binded in dynamic databases.
105. db2 delete database sample C. C. B. db2 drop database sample
104. It is a DB2 capability that allows applications to change users without breaking the connection to the database.. It is compiled and executed by an application at run-time. Dynamic SQL does not exist. db2 drop sample// snad si to pamatuju spravne B.// snad tomou rozumim spravme.slide 214 D. It is a type of container in a table space that allows faster I/O operations. Which of the following is true about Dynamic SQL?
106.com" Gender="MALE"> <FirstName>Amitabh</FirstName> <LastName>Patel</LastName> </Name> B. Can be used interchangeably with tables when retrieving data 108. the data is changed in the underlying table D. Automatic storage simplifies storage management by allowing you to specify storage paths where the database manager can place table space data. How does automatic storage work in DB2?
. C. and where the database manager allocates space for various uses. 107. Automatic Storage can be used to automatically reorganize the data on the physical media in order to improve performance. Automatic storage is a function of DB2 that allows tables to be backed up automatically on a set schedule. When changes are made to data through a view.default. D. independent of its definition C. Automatic storage is an option which is set when you create a DB2 database. <Name xmlns="htpp://sample. It allows transactions that are written to the database to be automatically committed. B. Do not contain real data// snad ot je ono B. Which of the following is FALSE about views?
A.nspace. Any view can be updated. Which of the following is a well-formed XML document?
Network 120. Columns are where the individual pieces of information are stored for each record C. Each column consists of one or more records B. <Name Gender="MALE"> <FirstName>Amitabh <LastName>Patel</FirstName> </LastName> </Name> D.nspace. Semantic D. Which of the following is true about columns?
A. Which Data Model was created with the focus of providing better data independence?
A.com" MALE="Gender"> <FirstName>Amitabh</FirstName> <LastName>Patel</LastName> </name> C. Relational B.default. Columns are also known as records
. Columns must be designated a specific data type D.<Name xmlns="http://sample. Hierarchical C.//trochu sem premyslel jestli neni problem u gender=female ale snad to je enum <Name Gender=FEMALE> <FirstName>Jaya</FirstName> <LastName>Patel</LastName> </Name> 109.