최신 IBM certifications I 000-543 무료샘플문제:
1. Click the Exhibit button.
CONNECT TO test;
CREATE TABLE colors (id INT NOT NULL PRIMARY KEY,
descVARCHAR(12));
CREATE TABLE objects(desc VARCHAR(12),
c_idINT REFERENCES colors (id)
ON UPDATE NO ACTION);
INSERT INTO colors VALUES (1, 'Red'), (2, 'Yellow'), (3, 'Blue');
INSERT INTO objects VALUES ('Fire Engine', 1), ('Rain Coat', 2);
CONNECT RESET;
A DB2 Command Line Processor script file containing the commands and statements shown in
the exhibit was executed successfully.
The statement shown below is executed:
UPDATE colors SET id = id - 1;
How many rows will be modified in the COLORS table?
A) 1
B) 0
C) 3
D) 2
2. An application must perform maintenance on a table named EMPLOYEE. Which SQL statement can be used to restrict all activity on the EMPLOYEE table during maintenance by the application?
A) ALTER TABLE employee LOCK SIZE TABLE
B) ALTER TABLE employee LOCK SIZE ROWS
C) LOCK TABLE employee IN EXCLUSIVE MODE
D) LOCK TABLE employee IN SHARE MODE
3. A JDBC application uses the "com.ibm.db2.jcc.DB2Driver" driver.
Which two JDBC code snippets illustrate establishing valid connections to a DB2 database named
MYDB? (Choose two.)
A) // Assume aDataSource object named mydb was created by the system administrator
DB2SimpleDataSource dbds=new DB2SimpleDataSource();
DataSourceds = (DataSource)dbds.lookup("jdbc/mydb");
conn= ds.getConnection();
B) // Assume aDataSource object named mydb was created by the system administrator
Context ctx=new InitialContext();
DataSourceds = (DataSource)ctx.lookup("jdbc/mydb");
conn= ds.getConnection();
C) Stringurl = "jdbc:db2://myhost/mydb"
Connection conn = DriverManager.getConnection (url);
D) Stringurl = "jdbc:db2://myhost:5021/mydb:user=myuser;password=mypwd;";
Connection conn = DriverManager.getConnection (url);
4. .Click the Exhibit button.
<personinfo>
<name>John Wayne</name>
<address type="private">
<city>New York</city>
<country>US</country>
<phone>850-734-6672</phone>
</address>
<phone type="mobile">796-858-1272 </phone>
<phone type="security">646-252-1053</phone>
</personinfo>
<personinfo>
<name>Barbara Wayne</name>
<address type="private">
<city>New York</city>
<country>US</country>
<phone>850-734-6672</phone>
</address>
<phone type="mobile">796-858-1231 </phone>
<phone type="security">646-252-1153</phone>
</personinfo>
The table PERSON is declared as shown below:
CREATE TABLE person (id BIGINT, info XML)
The documents shown in the exhibit are successfully inserted into the table.
How many phone numbers will be affected by the statement shown below?
UPDATE xmlapp.person
SET info = xmlquery( 'copy $new := $INFO
modify for $j in $new/personinfo//phone return
do replace value of $j with "444-444-4444"
return $new' )
WHERE XMLEXISTS('$INFO/personinfo[name="John Wayne"]')
A) 4
B) 0
C) 3
D) 6
5. A database contains a table and a view declared as shown below:
CREATE TABLE s1.t1 ( c1 INTEGER, c2 CHAR(20) );
CREATE VIEW s1.v1 AS SELECT * FROM s1.t1;
A system administrator successfully executes the following code:
GRANT CONNECT, IMPLICIT_SCHEMA ON DATABASE TO user1;
GRANT INSERT ON TABLE s1.t1 TO user1;
GRANT CONTROL ON s1.v1 TO user1;
Which SQL statement does user USER1 have privileges to execute?
A) UPDATE s1.t1 SET c1 = 2 WHERE c1 IS NULL
B) CREATE PUBLIC ALIAS a1 FOR s1.v1
C) SELECT * FROM s1.t1 WHERE c2 < 100
D) CREATE VIEW user1.v2 AS SELECT * FROM s1.v1
질문과 대답:
질문 # 1 정답: C | 질문 # 2 정답: C | 질문 # 3 정답: B,D | 질문 # 4 정답: C | 질문 # 5 정답: D |