Beruflich Dokumente
Kultur Dokumente
(*) Which Edition of DB2 is used to work with PDA (Personal Digital Assistants)
Palms?
(a) DB2 Everyplace Edition
(b) DB2 Enterprise Edition
(c) DB2 Personal Edition
(d) DB2 Satellite Edition
(*) Which DB2 Edition is used for full function database that enables a single user
to create databases on the workstation on which it was installed?
(a) DB2 Everyplace Edition
(b) DB2 Enterprise Edition
(c) DB2 Personal Edition
(d) DB2 Satellite Edition
(*) Which DB2 Edition support systems that operate disconnected from the
corporate system majority of the time, and connect occasionally to the
corporations central database to exchange data.
(a) DB2 Everyplace Edition
(b) DB2 Enterprise Edition
(c) DB2 Personal Edition
(d) DB2 Satellite Edition
(*) ?? is the scalability option that enables DB2 to partition data across clusters
or massively parallel computers. (Fill the ??)
(a) DB2 Enterprise Edition
(b) DB2 Personal Edition
(c) DB2 Enterprise-Extended Edition
(d) DB2 Workgroup Edition
(*) Product, which allows DB2 clients to access and join tables from databases,
such as Oracle, Sybase, Informix, and Microsoft SQL Server.
(a) DB2 Relational Connect
(b) DB2 Data Propagator
(c) DB2 Connect
(d) DB2 Net. Data
(*) Which product provides support for applications executing on Unix and Intel
platforms to transparently access DB2 databases on the OS/400, VM/VSE,
and OS/390 environments.
(a) DB2 Relational Connect
(b) DB2 Data Propagator
(c) DB2 Connect
(d) DB2 Net. Data
(*) A client application on OS/390 must access a DB2 server on Unix, Windows or
OS/2. At a minimum, which of the following is required to be the DB2 server
machine?
(a) DB2 Connect Enterprise Edition
(b) DB2 Universal Database Enterprise Edition
(c) DB2 Connect and DB2 Universal Database Workgroup Edition
(d) DB2 Connect and DB2 Universal Database Enterprise Edition
(*) Which product provides the ability for a web browser to access relational or
non-relational data.
(a) DB2 Relational Connect
1
DB2 UDB 512 Certification Sample Questions
(b) DB2 Data Propagator
(c) DB2 Connect
(d) DB2 Net. Data
(*) Which product provides replication capabilities for DB2 databases and is
integrated in DB2
(a) DB2 Relational Connect
(b) DB2 Data Propagator
(c) DB2 Connect
(d) DB2 Net. Data
(*) Which of the following products must be installed to provide a single point of
control for local and remote DB2 databases?
(a) DB2 Runtime Client
(b) DB2 Administration Client
(c) DB2 Connect Enterprise Edition
(d) DB2 Enterprise-Extended Edition
(a) Journal
(b) SQL Assist
(c) DB2 Alert Center
(d) DB2 Command Center
(*) Tool that helps you to manage scripts containing SQL statements, DB2
commands, or operating systems commands?
(a) DB2 Script Center
(b) Alert Center
(c) License Center
(d) Client Configuration Assistant
(*) Which of the following must be set up to allow the Control Center to view
database objects?
(a) ODBC
(b) JAVA
(c) DB2 Administration Server
2
DB2 UDB 512 Certification Sample Questions
(d) Client Configuration Assistant
(*) Which Instance is used by the DB2 administration tools, including the Control
Center and the Client Configuration Assistant, to satisfy the requests.
(a) DB2 Instance
(b) DAS Instance
(c) DB Instance
(d) DBA Instance
(*) Licensing in DB2 is controlled by which two components? (Choose two right
options)
(a) DB2 Server
(b) DB2 Client
(c) DB2 Connect
(d) DB2 Server and Client both
(*) Which tool allows you to monitor pending jobs, running jobs, and job
histories; review results; display recovery history and alert messages; and
show the log of DB2 messages.?
(a) DB2 Script Center
(b) Alert Center
(c) License Center
(d) The Journal
(*) Which of the following DB2 components can limit the resource consumption of
queries?
(a) DB2 Connect
(b) DB2 Query Patroller
(c) DB2 Performance Monitor
(d) DB2 Net Search Extender
(*) Which of the following will rebuild a package in the database from the existing
catalog information?
(a) bind
(b) rebind
(c) update
(d) rebuild
(*) By which tool you can use the information available from the graph to tune
your SQL queries for better performance?
(a) Visual Explain
(b) Performance Monitor
(c) SQL Assist
(d) Client Configuration Assistant
(*) Which of the following utilities would you run to order data and reclaim space
from deleted rows in a table?
(a) reorg
(b) db2look
(c) db2move
3
DB2 UDB 512 Certification Sample Questions
(d) runstats
(*) Which of the following DB2 CLP options specify the file that contains the
statements to be executed?
(a) -f
(b) -b
(c) -o
(d) -w
(*) Which Extender provides a capability for high-speed text search in DB2
databases, particularly advantageous in Internet applications where
performance is an important factor?
(a) XML Extender
(b) Net. Search Extender
(c) Spatial Extender
(d) Text Extender
(*) Software that enables you to build sophisticated decision support, planning,
and analysis applications for your enterprise.
(a) DB2 OLAP Starter Kit
(b) Spatial Extender
(c) Information Center
(d) Net. Data
(*) Which two of the following types of storage management method is supported
by DB2 OLAP Server?
(a) Object
(b) Network
(c) Relational
(d) Hierachical
(e) Multi-dimensional
(*) How many DB2 Administration Server (DAS) Instances can be set up per
physical machine?
(a) 0
(b) 1
(c) One for each instance on the physical machine
(d) One for each database on the physical machine
(*) A table containing a list of all seats on an airplane. A seat consists of a seat
number and whether or not it is assigned. An airline agent lists all the unassigned
seats on the plane. When the agent refreshes the list from the table, it should only
change if another agent un assigns a currently assigned seat.
Which of the following isolation levels should be used for this application?
(Select the correct response)
(*) Which of the following processing can occur for a unit of work using an
isolation level of Cursor Stability and allows scanning through the table more
than once within the unit of work?
(Select the correct response)
(*) Which of the following isolation levels will lock only the rows returned in the
result set?
(a) 0
(b) 1
(c) 4
(d) 5
(e) 6
(*) For which of the following can locks be obtained?
(a) A trigger
(b) A table view
(c) A table column
(d) A database buffer
(e) A row referenced by an index key
(*) Which two of the following modes can be used on the lock table statement?
(Select all that apply)
(a) SHARE MODE
(b) EXCLUSIVE MODE
(c) REPEATABLE READ MODE
(d) UNCOMMITTED READ MODE
(e) INTENT EXCLUSIVE MODE
(*) A view is used instead of a table for users to do which of the following?
(a) Avoid allocating more disk space per database
(b) Provide users with the ability to define indexes
(c) Restrict user's access to a subset of the table data
(d) Avoid allocating frequently used query result tables
(*) With DBADM authority on the database and given the statements:
CREATE TABLE t1 (c1 CHAR (1))
INSERT INTO t1 VALUES ('b')
CREATE VIEW v1 AS SELECT c1 FROM t1 WHERE c1='a' WITH CHECK OPTION
INSERT INTO v1 VALUES ('a')
INSERT INTO v1 VALUES ('b')
How many rows would be returned from the statement, SELECT c1 FROM t1?
(a) 0
(b) 1
(c) 2
(d) 3
(*) Given the statement:
CREATE TABLE t1 (c1 CHAR (1))
Data has been inserted into the table with rows of a, b, c, d, e, f. Given the
following command is issued:
ALTER TABLE t1 ADD CONSTRAINT con1 CHECK (c1 ='a') Which of the
following occurs?
(*) Why is a unique index not sufficient for creation of a primary key?
(*) Which of the following DELETE RULES on CREATE TABLE will delete a
dependent table row if the parent table row is deleted?
(a) CREATE TABLE tab1 (col1 INT, col2 CHAR(2), col3 CHAR(100), col4 INT)
(b) CREATE TABLE tab1 (col1 INT, col2 VARCHAR(2), col3 CHAR(100), col4
INT)
(c) CREATE TABLE tab1 (col1 INT, col2 CHAR(2), col3 VARCHAR(100), col4
INT)
(d) CREATE TABLE tab1 (col1 INT, col2 VARCHAR(2), col3
VARCHAR(100), col4 INT)
(*) Which of the following DB2 data types is used to store 50 MB of binary data
as a single value?
(a) BLOB
(b) CLOB
(c) DBCLOB
(d) FOR BIT DATA
(e) VARCHAR FOR BIT DATA
(*) A user has a numeric data column with a maximum value of 100,000. Which
of the following data types will use the minimum amount of storage for the
column?
(a) IDENTITY
(b) BIGINT
(c) INTEGER
(d) SMALLINT
(*) Given two embedded SQL programs and the following actions:
Pgm1 Pgm2
INSERT INTO mytab VALUES (...) DELETE FROM mytab
COMMIT ROLLBACK
DELETE FROM mytab INSERT INTO mytab VALUES (...)
ROLLBACK COMMIT
If there exists one (1) row in table mytab before the programs are executed
concurrently, how many records will be in the table once the programs
complete?
7
DB2 UDB 512 Certification Sample Questions
(a) 0
(b) 1
(c) 2
(d) 3
(e) 4
(*) Given an embedded SQL program with a single connection, two threads and
the following actions:
Thread 1: INSERT INTO mytab VALUES (...)
Thread 2: INSERT INTO mytab VALUES (...)
Thread 1: COMMIT
Thread 2: INSERT INTO mytab VALUES (...)
Thread 1: ROLLBACK
How many records will be successfully inserted and retained in the table
mytab?
(a) 0
(b) 1
(c) 2
(d) 3
(a) 0
(b) 1
(c) 2
(d) 3
(e) 4
(*) SELECT * FROM Employee - Statement will display columns in which order?
(a) Ambiguous order
(b) Order that was given in CREATE TABLE or CREATE VIEW.
(c) Alphabatical Ascending Order
Table2
col1 INT
col2 CHAR(30)
Which of the following statements will insert all the rows in TABLE2 into
TABLE1?
DEFIN2:
deptid SMALLINT NOT NULL
name VARCHAR(30)
started DATE
Which of the following statements will insert successfully into table DEFIN1?
9
DB2 UDB 512 Certification Sample Questions
(c) INSERT INTO defin1 (id, hired) AS SELECT DISTINCT 1, CURRENT DATE
FROM defin2
(d) INSERT INTO defin1 (name, hired) SELECT DISTINCT 'Florence', CURRENT
DATE FROM defin2
(*) Given table EMPLOYEE with columns EMPNO and SALARY and table JOB with
columns ID and TITLE, what is the effect of the statement:
UPDATE employee SET salary = salary * 1.15
WHERE salary < 15000 OR
EXISTS (SELECT 1 FROM job WHERE job.id = employee.empno AND job.title
= 'Mgr')
(a) Only managers that make less than 15,000 are given salary increases.
(b) Only non-managers that make less than 15,000 are given salaray
increases.
(c) Employees that make less than 15,000 but no managers are given salary
increases.
(d) Employees that make less than 15,000 and all managers are given
salary increases.
Which of the following statements will return all of the records ordered by job
with the salaries in descending order?
EMPLOYEE
empno INTEGER
firstname CHAR(30)
midinit CHAR
lastname CHAR(30)
workdept CHAR(3)
Which of the following statements will list the employee's employee number,
last name, and department name ONLY for those employees who have a
department?
PIM
Name PIM
Mats Sundin 14
Jaromir Jagr 18
Bobby Orr 12
Mark Messier 32
Brett Hull 66
Mario Lemieux 23
Joe Sakic 94
Which of the following statements will display the player's Names, points and
PIM for all players?
11
DB2 UDB 512 Certification Sample Questions
(*) Given table T1 with 100 rows, which of the following queries will retrieve 10
rows from table T1?
(*) Which of the following is possible once a user has been given maintenance
Authority?
(a) 0
(b) 1
(c) 2
(d) 5
(e) 6
(*) Which of the following statements will create an index and prevent table T1
from containing two or more rows with the same values for column C1?
(*) Which of the following is the result of the following SQL statement:
CREATE UNIQUE INDEX empno_ind ON employee (empno)
(a) COMMIT
(b) ROLLBACK
(c) TERMINATE
(d) SAVEPOINT
(f) CONNECT RESET
(*) Which one of the following SQL statements sets the default qualifier to "user1"?
(*) Using the Control Center Create Table dialog box, which of the following
dialogs allows the table creation DDL to be viewed?
(a) Copy
(b) Show SQL
(c) Show Related
(d) Sample Contents
(*) Which of the following can be used to determine the views that are affected
by a DROP TABLE statement?
(*) Which of the following is the most appropriate reason to consider revoking the
SELECT privilege on the catalog tables from PUBLIC after creating a
database?
(*) Which of the following is the best way to restrict user access to a subset of
columns in a table?
(a) Only grant access to the columns within a table that a user is allowed to
see.
(b)Create a view that only includes the columns a user is allowed to
see. Grant the user access to the view, not the base table.
(c) Create two tables: one with the columns that a user is allowed to see, and
one that has the confidential columns, and use a join when all data must
be presented.
(d) Create two tables: one with the columns that a user is allowed to see, and
one that has the confidential columns, and use a union when all data must
be presented.
(*) Which of the following privileges is necessary to populate the table with large
amounts of data?
(a) LOAD
(b) ALTER
(c) UPDATE
(c) IMPORT
15
DB2 UDB 512 Certification Sample Questions
(1) Which of the following are DDL statements
a) Select, Insert, Update, Delete
b) Alter, Create, Drop
c) Commit, Rollback, Savepoint
d) Grant, Revoke
5. Column Column1 of table Table1 is defined as User Defined Distinct Data Type
(UDT) db2admin.Type1. Which all commands are valid to retrieve the
contents of Table1 where Column1 contains xyz. (3 correct)
6. Table1
Id Name
--- -------
1 ABC
2 XYZ
3 LMN
Table2
Id Salary
-- -------
1 4500
2 2334
4 9800
5 3400
a) 4
b) 3
c) 2
d) 12
7. Table1
Id Name
--- -------
1 ABC
2 XYZ
3 LMN
Table2
Id Salary
-- -------
1 4500
2 2334
4 9800
5 3400
a) ID of Table1
b) ID of Table 2
c) The statement will not execute. Error Message will be displayed.
d) ID from any table, wherever it is available.
10. Table1
Id Name
--- -------
1 ABC
2 XYZ
3 LMN
17
DB2 UDB 512 Certification Sample Questions
Table2
Id Salary
-- -------
1 4500
2 2334
4 9800
5 3400
A user wishes to display the salaries and Ids of all the employees given in
both the tables. Which of the following command will give the desired output.
11. Table1
Id Name
--- -------
1 ABC
2 XYZ
3 LMN
Table2
Id Salary
-- -------
1 4500
2 2334
4 9800
5 3400
1. Table1
Id Name
--- -------
1 ABC
2 XYZ
3 LMN
Table2
Id Salary
-- -------
1 4500
2 2334
18
DB2 UDB 512 Certification Sample Questions
4 9800
5 3400
2. Which one is the correct syntax to update multiple fields of a table in a single
statement?
a) Update Table1 SET Name = Amit AND Age = 23 WHERE Id = E01
b) Update Table1 SET Name = Amit SET Age = 23 WHERE Id = E01
c) Update Table1 SET (Name = Amit, Age = 23 WHERE Id = E01
d) Update Table1 SET (Name, Age) = (Amit, 23) WHERE Id = E01
2. What is the correct way of displaying Id, Name and Age of those employees
whose Age is less than 20 or Age is more than 30. (2 correct)
a) SELECT Id, Name, Age from Table1 WHERE Age NOT BETWEEN 20
AND 30
b) SELECT Id, Name, Age from Table1 WHERE NOT Age BETWEEN 20 AND
30
c) SELECT Id, Name, Age from Table1 WHERE Age IS NOT BETWEEN 20 AND
30
d) SELECT Id, Name, Age from Table1 WHERE NOT Age BETWEEN 21 AND
29
3. What will be the output of following statement if there is only one record in
the table
SELECT 12/5 FROM Table1
a) 2.4
b) 12/5
c) 2
d) 2.40
4. Which statement would you use for displaying students name, marks and
result (less then 40 is fail otherwise pass)
a) SELECT Name, Marks, IF(Marks<40, Fail, Pass) FROM Table1
b) SELECT Name, Marks, IIF(Marks<40, Fail, Pass) FROM Table1
c) SELECT Name, Marks, CASE WHEN Marks<40 ELSE Fail END FROM
Table1
d) SELECT Name, Marks, SWITCH CASE WHEN Marks<40 ELSE Fail END
FROM Table1
Getting Started
(1) Which Instance is used by the DB2 administration tools, including the Control
Center and the Client Configuration Assistant, to satisfy the requests.
19
DB2 UDB 512 Certification Sample Questions
(a) DB2 Instance
(b) DAS Instance
(c) DB Instance
(d) DBA Instance
(6) Which registry contains a list of all instance names recognized by this
system?
(a) DB2 Instance-Level Profile Registry
(b) DB2 Global-Level Profile Registry
(c) DB2 Instance Node-Level Profile Registry
(d) DB2 Instance Profile Registry
20
DB2 UDB 512 Certification Sample Questions
(9) Since there are multiple places where a variable can be set, DB2 uses a hierarchy
to determine where it will look to determine a variables value. It do a search in which
Order:
1. The sessions environment variables.
2. DB2 Profile Registry variables set in the instance node level profile
3. DB2 Profile Registry variables set using db2set for the session
4. DB2 Profile Registry variables set at the instance level using the -i option of
db2set.
(a) 1,4,3,2
(b) 2,3,1,4
(c) 1,2,3,4
(d) 4,1,3,2
(11) Which file is used to hold parameters related to authentication, monitoring levels,
diagnostic levels and memory and process resources across the instance.
(a) Database Manager Configuration (DBM CFG) file
(b) Database Configuration file (DB CFG) file
(c) DBA Configuration File
(d) Administration Config File
(12) Which instance must be running on every DB2 server that you want to administer
remotely or detect using the client configuration search method.?
(a) DB2 Instance
(b) DAS Instance
(c) DB Instance
(d) DBA Instance
(13) A graphical tool that helps you get started using DB2 UDB like
Create the sample
Databases, View the product information library?
(a) Control Center
(b) DB2 First Steps
(c) DB2 Command Center
(d) DB2 Script Center
21