Beruflich Dokumente
Kultur Dokumente
a) remove
b) delete
c) del
d) drop
2) Which of the following is true about well-formed xml document?
a) mess or more root nodes
b) tags can here at most are attribute
c) always has a single document node
d) end tags are optional
3) Which of the following is true about table space in DB2?
a) a table space is a file managed by the as where db2 can store data
b) a TS is always associates with a buffer pool
c) a TS to store users temporary table data is automatically created when
DB is created
d) a TS can be managed by the database (db2) or by an entered
application
4) Not true about info model
a) absent management of object at a conceptual level
b) define relationship between managed objects
c) group of discussion explaining objects at a data model
d) data models can be used to map an information model to s/w implementation
5) Lowest cost db2 product logically installed on a Linux server that has 2 CPUs
a) db2 express edition
b) db2 enterprise server
c) db2 every place
d) db2 workgroup server
6) When using Dbms which do not apply
a) Accesses data using DML such as SQL
b) define your DB schema using a DDL
c) data is stored in a hierarchical model
d) you can use normalization to avoid redundant data in tables
7) Which of the following objects you would need create in order to executed a block of code
every time table is up date
a) an after trigger
b) a UDF
c) a stored procedure
d) an user defined type
8) Using DB2 CPP to access a remote DB for the 1st time it is necessary
a) First catalog the remote system or node and then catalog the DB
written the remote node
b) b. First register the remote system user in system catalog and then
setup a SQL communication to the remote node
c. db2 load
d. db2 clcp
23) which of the following is a character of high availability
a. it allows compression of data
b. it allows definition of policy to guarantee quality of service to applications
c. it allows replication of data to a standby server that can take over in case of failure
d. it allows high performance of a db2 server by distributing work load across several
machines
24)which of the following is false about views
a. do not contain real data
b. any view can be updated independent of its definition
c. when changes are made to data through a view the data is changed in the underlying table
d. can be used interchangeably with table when retrieving data
25) which of the following is characteristic difference b/w cursor stability and currently
committed
a. reader block reader
b. reader block writer
c. writer block reader
d. writer block writer
26) which of the following statement is false about transactions
a. operations inside a transaction are executed in a parallel
b. only 1 commit statement can be executed inside the same transaction
c. transaction guarantee atomicity of a group of operation
d. a rollback or commit statement finalize a transaction
27) Consider the following command
Create table space mytabsp1 managed by automatic
a. Creation of normal table space called mytbsp1 that is managed automatically
b. creation of user table space called mytbsp1 that is managed automatically
c. creation of user table space called mytbsp1 that is managed automatically
d. this command will return an error to the user
28) Assuming that you are current connected to test db which of the following will allow the
view of the database setting with details
a. db2 get db cfg with details
b. db2 get db cfg show details
c. db2 get db cfg with detail
d. db2 get db cfg show detail
29) which of the following statement grants user john the ability to insert data to table 1
a. grant add on table to john
b. grant insert on table 1 to john
c. grant add on table 1 to user john
d. grant insert on table to user john
30) which of the following is not a supported type of trigger
a. after
b. before
c. during
d. instead of
31 )when a user is connected to database which of the following privileges is required for the
user to use a package
a. bind
b. bindadd
c. execute
d. use
32) which of the following operation will perform an offline table space recovery
a. restore database sample (mytbsp) offline from/tbspbkp
b. restore database sample table space (mytbsp) from / tbspbkp
c. restore database table space (mytbsp) online from /tbspbkp
d. there is no option to restore a table space in db2
33) Which of the following is a tool to configure automatic database backup
a. Configure automatic maintenance wizard
b. design advisor
c. explain tool
d. export utility
34) Which of the following is not feature packs that can add extra functionality to a DB2
sever?
a) Advanced Access Control
b) Storage Optimization
c) Performance Optimization
d) Pure XML
35) Which of the following tools will give you the best performance to import large amounts
of data into a DB2 table?
a) Import
b) Load
c) Fast Import
d) Buck Insert
36) Considering the SQL statements below, which option best describes what ABS is
UPDATE tb1 SET col1 =ABS (col2)
a)
b)
c)
d)
Stored Procedure
Built in function
Trigger
User Defined
37) Assuming that you are currently connected to a DB2 DB , what of the following
commands will terminate your connection?
a)
b)
c)
d)
38) Which of the following programming languages can be used to develop applications that
require access to a DB2 database?
a)
b)
c)
d)
java
PHP
C#
All of the above
39) If secondary log files are to be allocated until the unit of work commits or storage is
exhausted, which type of logging is used?
a)
b)
c)
d)
Circular logging
Archival logging
C) infinite logging
It cannot be done in DB2
40) Which of the following tools can be used to develop stored procedures?
a) DB2CLP
b) DB2 command Editor
c) IBM Data studio
d) All of the above
41) W of the following is the about static SQL?
a) It Takes advantages of the table statistics at runtime
b) The structured of the SQL statement must be completely specified at the pre
compilation phase
c) It is compiled and executed by an application at runtime.
d) Static SQL does not exist
42) Which one of the following SQL statement will inline XML documents smaller than 1000
bytes, stored within the EMPINFO Column?
A) Create Table Employees (empid char (8), empinfo XML inline length (1024))
b) Alter Table Employees Alter Column empinfo SET INLINE length 1000
c) Create Table employees (empid char (8), empinfo xml set in lining (1000)
d) Create Table Employees (empid char (8), empinfo XML Default inline 1000)
43) Which of the following options can be used to check the minimum point is
time (PIT) for a table space restore?
a) List Table spaces show ALL
b) Restore Database sample table space (mytbsp) from 1 tbspbkp)
SELECT
INSERT
ALTER
UPDATE
48) Which of the following properties is related to the fact that a committed transaction
guarantees that all of the operations are completed and in a roll backed transactions the effect
of all operations are reverted?
a) Consistency
b) Atomicity
c) Isolation
d) Durability
49) Which of the following is not part of the X query Flower Expression?
a) For Clause
b) LET Clause
c) Order By Clause
d) With Clause
50) Given the options below, which of the following statements can add records to a table?
A) ADD REC
B) ADD RECORD
C) INSERT
D) ADD
51) Which of the following statements is FALSE about Transactions?
a) Operations inside a transition are executed in parallel
b) Only 1 commit statement can be executed inside the same truncation
c) Transactions guarantee atomicity of a group of operations
d) A ROLLBACK or COMMIT statement finalizes a Transaction.
52)Which of the following is true about columns?
a) each columns consists of one or more records,
b) Columns are where the individual pieces of information are stored for each
record.
c) Columns must be designated a specific data types.
d) Columns are also known as records.
53) Which of the following is true about relational Databases?
A) A column can store values of different data types.,
B) A table consists of columns and rows.
Rows in the same table can have a diff set of columns
Rows are also known as fields of the table.
54)Best describes what an incremental cumulative backup is?
e) Backup all of the data that has changed since the last successful full or
delta backup.
f) Backup of a single table space.
g) Backup of the entire database.
h) Backup all of the data that has changed since the last full backup.
55)what is SQL/XML?
i) SQL/XML is a communication protocol for DB2 databases.
j) is a part of the XQuery standard and provides various publishing
functions to transform XML data into relational form and vice versa.
k) SQL.XML is a language that provides various publishing functions to
transform XML data into rational form and vice verso,
l) Is an extension to SQL standard and provides various publishing functions to
transform XML data into relational form and vice versa.
56)Which of the following is NOT true about columns?
m) Each col consists of one or more fields.
n) Each col contains a specific type of information
o) Col must be designated a specific data type
p) Col are also known as fields.
57)true about dynamic SQL?
q) It is precompiled and binded in dynamic databases.
r) The structured of an SQL statement must be completely specific at precompile
time.
s) It is compiled and executed by an application at runtime
t) Dynamic SQL does not exist.
58)In embedded SQL code, which of the following is true about delimiters?>
a. Used by the OS to delimit system variable declaration
b. Used by the DB to indicate the end of Column
c. Used by the compiler to indicate the end of the program.
d. Used by the precompile to identify sql statements to be translated.
59)option will perform an offline table space recover?
e. restore database sample table space(mytbsp) offline from /tbspbkp
f. restore database sample tables pace (mytbsp) from /tbspbkp
60)Consider the following scenario. Yo0u have 3 tables with the same name (TABLE_1)
under 3 different schemas (SYSIBM, DEFAULT and DB2INST1). 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?
61)which of the following statements is not true regarding table spaces on DB2?
g. a table space is a logical object in bet logical table and physical containers.
h. All tables, indexes and other data are stored in table space.
i. A table space is a logical object required to store data, indexes and tables in
temp memory.
j. A table space is always associated to a buffer pool.
62)Application B wants to read a subset of rows from table EMPLOYEE multiple times
inside the same transaction.
Which isolation level should be used in order to guarantee that every time the same
set of rows is returned?
a. Currently committed.
b. Read stability
c. Repeatable Read
d. Uncommitted Read
63) What are the entities used to model data in the relational Model?
a. A collection instances of entities.
b. Relations, attributes and tuples.
c. A collection instances of record types.
d. Tables, rows and columns.
64) if TAB1 is created using the following statement
CREATE table tab1 (col1 integer not null, col2 char(3) constraint cst1 check (col1 in
(1,2,3,4)))
Which of the following statements will successfully insert a record into table TAB1?
a) insert into tab1 values(0,a)
b) insert into tab1 values(null, abc)
c)
(4,a)
d) (4,abcdefhijklmnopq)
65) given the following
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 express Edition\
b) Db2 enterprise server edition
c) Db2 everyplace
d)Db2 workgroup server edition
66) When attempting to establish a connection to a database residing on your local machine,
which command can help u determine why the following message was displayed.\
Sql1013N the database alias name or database name SAMPLE could not be found.
SQLSTATE=42705
a) list database directory
b) list admin node directory
c) list node directory
d) list dcs directory
67) tables
which of the following will give u the best performance to large amounts of data into a db2
table
a) Import
b) Load
c) Fast import
d) bulk insert
68) which of the following is not a supported type of trigger?\
a) After
b) Before
c) During
d) Instead of
114) what is the default isolation level in Db2 9.7 for Linux, Unix and windows for new
databases?
lxi. Cursor stability
lxii. Cursor stability with current committed semantics
lxiii. Uncommitted read
lxiv. None of the above
115)which of the following statements revoke access to sample database from user TOM?
lxv. Revoke connect on sample from user tom
lxvi. Revoke access from user tom on database
lxvii. Revoke access from user tom on sample.
lxviii. Revoke connect on database from user tom.
116)which of the following statements is false regarding buffer pools?
lxix. Buffer pools work as cache, storing data that is read from table spaces.
lxx. Pages in a buffer pool can be 4k,8k,16j,32k in size
lxxi. A database can only have one Buffer pool.
lxxii. The size of a buffer pool can be automatically resized STMM.
117) considering the SQL statement below, which option best describes what ABS is
Update tb1 set col1 = ABS(col2)
lxxiii. Stored Procedure
lxxiv. Built-in function
lxxv. Trigger
lxxvi. User defined type
118)assuming that you are currently connected to a db2 database which of the following
commands will terminate your connection?
lxxvii. Db2 connect reset
lxxviii. Db2 connect end
lxxix. Connect kill
lxxx. Connect
119)Which of the following is true about columns?
a. each columns consists of one or more records,
b. Columns are where the individual pieces of information are stored for each
record.
c. Columns must be designated a specific data types.
d. Columns are also known as records.
120)Which of the following is true about relational Databases?
a) A column can store values of different data types.,
b) A table consists of columns and rows.
c) Rows in the same table can have a diff set of columns
d) Rows are also known as fields of the table.
121)Best describes what an incremental cumulative backup is?
e. Backup all of the data that has changed since the last successful full or
delta backup.
f. Backup of a single table space.
g. Backup of the entire database.
h. Backup all of the data that has changed since the last full backup.
122)what is SQL/XML?
i. SQL/XML is a communication protocol for DB2 databases.