0% found this document useful (0 votes)
326 views5 pages

DB 2 Dump

This document provides information about an exam for DB2 9 Fundamentals. It is divided into 6 sections that cover topics such as planning, security, working with databases and objects, SQL, tables and indexes, and data concurrency. The exam focuses on knowledge of DB2 concepts, tasks, and abilities such as creating and connecting to databases, writing SQL statements, and understanding locking and isolation levels.

Uploaded by

Avinash Raj
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
326 views5 pages

DB 2 Dump

This document provides information about an exam for DB2 9 Fundamentals. It is divided into 6 sections that cover topics such as planning, security, working with databases and objects, SQL, tables and indexes, and data concurrency. The exam focuses on knowledge of DB2 concepts, tasks, and abilities such as creating and connecting to databases, writing SQL statements, and understanding locking and isolation levels.

Uploaded by

Avinash Raj
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

This Database Associate is an entry level DBA or a user of any of the DB2 family

of products. This individual is knowledgeable about the fundamental concepts of


DB2 9 through either hands on experience or formal and informal education. The d
atabase associate should have an in-depth knowledge of the basic to intermediate
tasks required in day-to-day administration, basic SQL (Structured Query Langua
ge), understand how DB2 9 is packaged and installed, understand how to create da
tabases and database objects, and have a basic knowledge of database security an
d transaction isolation.
Save 50% off the retail price of this exam with the Certify and Save Promotion!
Learn more…
Section 1 – Planning (14%)
Knowledge of restricting data access
Knowledge of the features or functions available in DB2 tools (just tools that c
ome with product – distributed +space – i.e., control center, configuration advisor,
configuraiton assistant, command line processor)
Knowledge database workloads (OLTP vs warehousing)
Knowledge of non-relational data concepts (extenders)
Knowledge of XML data implications (non-shreading)
Section 2 – Security (11%)
Knowledge of DB2 products (client, server, etc.)
Knowledge of different privileges and authorities
Knowledge of encryption options (data and network)
Given a DDL SQL statement, knowledge to identify results (grant/revoke/connect s
tatements)
Section 3 – Working with Databases and Database Objects (17%)
Donwload Free PassGuide Braindumps-The Most Realistic Practice Questions and Ans
wers,Help You Pass any Exams
Ability to identify and connect to DB2 servers and databases
Ability to identify DB2 objects
Knowledge of basic characteristics and properties of DB2 objects
Given a DDL SQL statement, knowledge to identify results (ability to create obje
cts)
Section 4 – Working with DB2 Data using SQL (23.5%)
Given a DML SQL statement, knowledge to identify results
Ability to use SQL to SELECT data from tables
Ability to use SQL to SORT or GROUP data
Ability to use SQL to UPDATE, DELETE, or INSERT data
Knowledge of transactions (i.e., commit/rollback and transaction boundaries)
Ability to call a procedure or invoke a user defined function
Given an XQuery statement, knowledge to identify results
Section 5 – Working with DB2 Tables, Views and Indexes (23.5%)
Ability to demonstrate usage of DB2 data types
Given a situation, ability to create table
Knowledge to identify when referential integrity should be used
Knowledge to identify methods of data constraint
Knowledge to identify characteristics of a table, view or index
Knowledge to identify when triggers should be used
Knowledge of schemas
Knowledge of data type options for storing XML data
Section 6 – Data Concurrency (11%)
Knowledge to identify factors that influence locking
Ability to list objects on which locks can be obtained
Knowledge to identify characteristics of DB2 locks
Given a situation, knowledge to identify the isolation levels that should be use
d
======================================
Exam : IBM 000-730
Title : DB2 9 Fundamentals

1. A DRDA host database resides on a z/OS or an i5/OS system and listens on port
446. The TCP/IP address for this system is 19168.10.1 and the TCP/IP host name
is myhost. Which of the following commands is required to update the local node
directory so that a DB2 client can access this DRDA database?
A. CATALOG TCPIP NODE myhost REMOTE db2srv SERVER 446
B. CATALOG TCPIP NODE mydb2srv REMOTE myhost SERVER 446
C. CATALOG TCPIP NODE myhost REMOTE db2srv SERVER 192.168.10.1
D. CATALOG TCPIP NODE mydb2srv REMOTE myhost SERVER 192.168.10.1
Answer: B
2. Which of the following is NOT true about XML columns?
A. Data can be retrieved by SQL.
B. Data can be retrieved by XQuery or XPath.
C. XML columns must be altered to accommodate additional parent and child relati
onships.
D. Access to any portion of an XML document can be direct, without reading the w
hole document.
Answer: C
3. A UDT is a data type which _____.
A. must contain unique values.
B. cannot be CAST to other data types.
C. is created using the CREATE TYPE command.
D. contains a value that was automatically calculated from values in other colum
ns.
Answer: C
4. The following SQL statements were executed in sequence:
CREATE DISTINCT TYPE salary AS decimal(7,2) WITH COMPARISONS;
CREATE TABLE staffsalary(empid INT, empsalary salary);
INSERT INTO staffsalary VALUES (10, 50000);
INSERT INTO staffsalary VALUES (20, 50000.00);
UPDATE staffsalary SET empsalary = 60000
WHERE salary(50000) = empsalary;
What is the current content of the staffsalary table?
A. ID | EMPSALARY
0 | 60000
20 | 50000.00
B. ID | EMPSALARY
10 | 50000.00
20 | 50000.00
C. ID | EMPSALARY
10 | 60000.00
20 | 60000.00
D. ID | EMPSALARY
10 | 60000.00
20 | 50000.00
Answer: C
5. Given the following two tables:
TAB1
C1 C2
__ __________
1 Antarctica
2 Africa
3 Asia
4 Australia
TAB2
CX CY
__ _____________
5 Europe
6 North America
7 South America
Which of the following SQL statements will insert all rows found in table TAB2 i
nto table TAB1?
A. INSERT INTO tab1 SELECT cx, cy FROM tab2
B. INSERT INTO tab1 VALUES (tab2.cx, tab2.cy)
C. INSERT INTO tab1 VALUES (SELECT cx, cy FROM tab2)
D. INSERT INTO tab1 (c1, c2) VALUES (SELECT cx, cy FROM tab2)
Answer: A
======================================

Correct:A11.Given that the following statements were executed in order: CREATE T


ABLE tab1(c1 CHAR(1))INSERT INTO tab1 VALUES (
b
) CREATE VIEW view1 AS SELECT c1 FROM tab1 WHERE c1 =
a
INSERT INTO view1 VALUES (
a
) INSERT INTO view1 VALUES (
b
) How many rows would be returned from the following statement? SELECT c1 FROM t
ab1A.0B.1C.2D.3Correct:D12.An application bound with isolation level Uncommitted
Read updates a row. Which of the following is true regarding the locking of thi
s row?A.No row lock is acquired when the row is updated.B.The row lock is releas
ed when the cursor accessing the row is closed.C.The row lock is released when t
he application issues a COMMIT statement.D.The row lock is released when the cur
sor accessing the row is moved to the next row.Correct:C13.Given these columns f
rom the DEPARTMENT table: deptno CHAR(3) NOT NULL deptname CHAR(20) NOT NULL mgr
no CHAR(6) admrdept CHAR(3) location CHAR(20) NOT NULL Which of the following wi
ll select the rows that do not have a value in the MGRNOcolumn?A.SELECT * FROM d
epartment WHERE mgrno =
B.SELECT * FROM department WHERE mgrno= NULL C.SELECT * FROM department WHERE mg
rno IS NULLD.SELECT * FROM department WHERE mgrno IS UNKNOWNCorrect:C14.Given th
e SQL statement: ALTER TABLE table1 ADD col2 INT WITH DEFAULT Which of the follo
wing is the result of the statement?A.The statement fails because no default val
ue is specified.B.A new column called COL2 is added to TABLE1 which would have a
null value if selected.C.A new column called COL2 is added to TABLE1 which woul
d have a value of zero if selected.D.A new column called COL2 is added to TABLE1
which would require the default value to be set before working with the table.C
orrect:C15.Given the following SQL statements: CREATE TABLE birthday1 (day INT C
HECK(dayBETWEEN 1 AND 31), month INT CHECK(month BETWEEN 1 AND 6), year INT) CRE
ATE TABLE birthday2 (day INT CHECK(day BETWEEN 1 AND 31), month INT CHECK(month
BETWEEN7 AND12), year INT) CREATE VIEW birthdays AS SELECT * FROM birthday1 UNIO
N ALL SELECT* FROMbirthday2 INSERT INTO birthday1 VALUES( 22,10, 1973) INSERT IN
TO birthday1 VALUES( 40, 8,1980) INSERT INTO birthday1 VALUES( 8, 3, 1990) INSER
T INTO birthday1 VALUES( 22, 10, 1973) INSERT INTO birthday1 VALUES( 3, 3, 1960)
What will be the result ofthe following SELECT statement? SELECT COUNT(*) FROM
birthdaysA.0B.2C.3D.5D.5Correct:B16.Which of the following actions describes whe
n SQL indexes can be explicitly referenced by name within an SQL statement?A.Whe
n dropping the index B.When altering the index C.When selecting on the indexD.Wh
en inserting using the indexCorrect:A17.Which of the following tools can be used
to identify inefficient SQL statemen
ts without executing them?A.QMFB.Task CenterC.Visual Explain D.Development Cente
r Correct:C18.Table T1 has a column C1 char(3) that contains strings in upper an
d lower case letters. Whichof the following queries will find all rows where C1
is the string
ABC
in any case?A.SELECT * FROM t1 WHERE c1 =
ABC
B.SELECT * FROM t1 WHERE UCASE(c1) =
ABC
C.SELECT * FROM t1 WHERE IGNORE_CASE(c1 =
ABC
)D.SELECT * FROM t1 WHERE c1 =
ABC
WITH OPTION CASE INSENSITIVECorrect:B19.Given the following table definitions: C
REATE TABLE employee (empid INT NOT NULL PRIMARY KEY, emp_fname CHAR(30), emp_ln
ame CHAR(30) ) CREATE TABLE payroll (empid INTEGER, weeknumber INTEGER, paycheck
DECIMAL(6,2), CONSTRAINT fkconst FOREIGN KEY(empid) REFERENCES employee (empid)
ON DELETE SET NULL, CONSTRAINT chk1 CHECK(paycheck>0 AND weeknumber BETWEEN 1 a
nd 52)) The appropriate indexes exist to support the tables created with the pre
vious CREATE statements. Which two of thefollowing operations can cause the enfo
rcement of a constraint defined on PAYROLL?A.Update of a row in PAYROLL B.Deleti
on of a row in PAYROLL C.Deletion of a rowin EMPLOYEED.Addition of a new column
to PAYROLL E.Rollback of a row deletion on PAYROLL Correct:A C20.What is the min
imum privilege required to allow USER1 to access table data?A.READ privilege on
the table B.SELECT privilege on the table C.REFERENCES privilege on the tableD.S
ELECT privilege WITH GRANT OPTION on the tableCorrect:B21.Given the following ta
ble definition: STAFF id INTEGER name CHAR(20) dept INTEGER jobCHAR(20) years IN
TEGER salary DECIMAL(10,2) comm DECIMAL(10,2) Where the job columncontains job t
ypes: manager, clerk, and salesperson. Which of the following statements will re
turnthe data with all managers together, all clerks together, and all salespeopl
e together in the output?A.SELECT * FROM staff ORDER BY jobB.SELECT job, name FR
OM staff GROUP BY name, jobC.SELECT * FROM staff GROUP BY name, job, id, dept, y
ears, salary, comm D.SELECT* FROM staff ORDER BY name, job, id, dept, years, sal
ary, comm Correct:A22.Assuming the proper privileges, which two of the following
would allow accessto data in a table T1 using the name A1?A.CREATE ALIAS a1 FOR
t1B.CREATE TABLE a1 LIKE t1C.CREATE INDEX a1 ON t1 (col1)D.CREATE VIEW a1 AS SE
LECT * FROM t1E.CREATE TRIGGER trig1 AFTER INSERT ON t1 FOR EACH ROW MODE DB2SQL
INSERT INTO a1Correct:A D23.Given a user defined function, U.UDF1, that takes a
n input parameter of typeINTEGER, andUSER6 running the following SQL statement:
SELECT w.udf1(col6) FROM t.tab1 WHEREcol4 =
ABC
Which of the following statement(s) would allow USER6 to execute the statement?A
.GRANT ALL PRIVILEGES ON TABLE t.tab1 TO user6B.GRANT SELECT ON TABLE t.tab1 TO
user6 GRANT USE ON FUNCTION u.udf1(INT) TO user6
C.GRANT SELECT ON TABLE t.tab1 TO user6 GRANT REFERENCES ON FUNCTION u.udf1(INT)
TOuser6D.GRANT ALL PRIVILEGES ON TABLE t.tab1 TO user6 GRANT EXECUTE ON FUNCTION
u.udf1(INT) TO user6Correct:D24.Which of the following is defined on the depend
ent table to implement a referential constraint?A.Primary key B.Foreign key C.Ch
eck constraint D.Update trigger Correct:B25.A stored procedure has been created
with the following statement: CREATE PROCEDURE P1(INOUT VAR1 VARCHAR(10))
From the command line processor (CLP), which isthe correct way to call this proc
edure?A.Call P1(?) B.Call P1(DB2) C.Call P1(
DB2') D.Call P1(
DB2?) Correct:C26.Which of the following DB2 UDB isolation levels will lock no r
ows during readprocessing?A.Read Stability B.Repeatable Read C.Uncommitted ReadD
.Cursor StabilityCorrect:C27.Given the following SQL statement: GRANT REFERENCES
ON TABLE tab1 TO USER useraWhich of the following describes what USERA is allow
ed to do?A.Create a read only view using TAB1. B.Alter TAB1 to add a check const
raint.C.Define a primary key or unique constraint on TAB1. D.Define a dependent
tablewhere TAB1 is the parent. Correct:D28.Which of the following extenders allo
ws data to be presented in a three dimensional format?A.DB2 AVI Extender B.DB2 X
ML Extender C.DB2 Text Extender D.DB2 Spatial ExtenderCorrect:D29.A database adm
inistrator has supplied the following information: Protocol: TCP/IP PortNumber:
446 Host Name: ZEUS Database Name: SAMPLE Database Server Platform: OS/400Which
are the appropriate commands to set up the ability to connect to the database?A.
CATALOG TCPIP NODE zeus REMOTE zeus SERVER 446 OSTYPE os400 DATABASE sample; B.C
ATALOG TCPIP DATABASE sample REMOTE zeus SERVER 446 OSTYPE os400; CATALOG DATABA
SE dcssam AS sample AT NODE zeus AUTHENTICATION dcs;C.CATALOG TCPIP NODE zeus RE
MOTE zeus SERVER 446 OSTYPE os400; CATALOG DCS DB dcssam AS sample; CATALOG DATA
BASE dcssam AS sample AT NODE zeus AUTHENTICATION dcs; D.CATALOG TCPIP NODE samp
le REMOTE sample SERVER 446 OSTYPE os400; CATALOG DCS DB sample AS dcssam; CATAL
OG DATABASE dcssam AS sample AT NODE zeus AUTHENTICATION dcs; Correct:C30.Which
of the following occurs if an application ends abnormally during an active unit
of work?A.The unit of work remains activeB.The unit of work is rolled backC.The
unit of work moves to CHECK_PENDINGD.The unit of work moves to pending stateCorr
ect:Bhttp://www.ibm.com/developerworks/data/library/tutorials/db2cert/db2cert_V8
_tut.html

You might also like