Ejemplo_1_2

Descrição

Quiz sobre Ejemplo_1_2, criado por rosamarozzi em 19-06-2015.
rosamarozzi
Quiz por rosamarozzi, atualizado more than 1 year ago Mais Menos
Mª Carmen Ruiz Garcia
Criado por Mª Carmen Ruiz Garcia quase 9 anos atrás
ismael mesa domi
Copiado por ismael mesa domi quase 9 anos atrás
renanvkas
Copiado por renanvkas quase 9 anos atrás
mmorenonf
Copiado por mmorenonf quase 9 anos atrás
alejandrogarciah
Copiado por alejandrogarciah quase 9 anos atrás
rosamarozzi
Copiado por rosamarozzi quase 9 anos atrás
12
0

Resumo de Recurso

Questão 1

Questão
If the following command is executed: CREATE DATABASE test What is the page size (in kilobytes) of the database?
Responda
  • 4
  • 8
  • 16
  • 32

Questão 2

Questão
Given the following DDL statement: CREATE TABLE sales (item CHAR(20)); If a DBA wishes to increase the size of the ITEM column, which SQL statement needs to be used?
Responda
  • ALTER TABLE sales ADD COLUMN item CHAR(40);
  • ALTER TABLE sales ALTER COLUMN item CHAR(40);
  • ALTER TABLE sales MODIFY COLUMN item CHAR(40);
  • ALTER TABLE sales ALTER COLUMN item SET DATA TYPE CHAR(40);

Questão 3

Questão
Which DB2 object can be used to improve the execution performance of qualified SELECT statements?
Responda
  • Trigger
  • SQL Procedure
  • Sequence Object
  • Materialized Query Table

Questão 4

Questão
When is it appropriate to use a sequence?
Responda
  • When you want to control the order in which triggers are fired.
  • When you want to control the order in which stored procedures can be invoked.
  • When you want to automatically generate a numeric value that is not tied to any specific column or table.
  • When you want to automatically generate a numeric value for each row that is added to a specific table.

Questão 5

Questão
5.Which clause should be included in a ALTER TABLE statement to update a table definition with a new column?
Responda
  • ADD COLUMN
  • ALTER COLUMN
  • APPEND COLUMN
  • RENAME COLUMN

Questão 6

Questão
Which object is a stored procedure defined into?
Responda
  • Table
  • Schema
  • Package
  • Database

Questão 7

Questão
Which action needs to be performed in order to complete the definition of an application-period temporal table?
Responda
  • A transaction-start-id column must be defined for the table.
  • A history table must be defined and associated with the base table.
  • A BUSINESS_TIME period must be specified in a CREATE or ALTER of the table.
  • A unique index must be created that prevents overlapping of the BUSINESS_TIME period of the table.

Questão 8

Questão
What functionality allows users to perform a UNION operation between a DB2 table and an Oracle view?
Responda
  • Oracle connect
  • Trusted context
  • Oracle federation
  • Distributed request

Questão 9

Questão
You have a business need to query DB2 10 and DB2 9 databases and you want to write an application that can run on most platforms unchanged. Which interface would you use to achieve your goal?
Responda
  • CLI
  • XML
  • JDBC
  • RUBY

Questão 10

Questão
Which DB2 object is used to provide a logical grouping of other database objects?
Responda
  • Alias
  • Index
  • Schema
  • Collection

Questão 11

Questão
What are two valid objects that can be created in DB2? (Choose two.)
Responda
  • Tree
  • Node
  • Trigger
  • Contexts
  • Sequence

Questão 12

Questão
Which type of temporal table can be used to store only time-sensitive data?
Responda
  • Bitemporal
  • Time-period
  • System-period
  • Application-period

Questão 13

Questão
When an index is created for a table, where is the metadata for that index stored?
Responda
  • In the table definition
  • In the system catalog.
  • In the schema that the index resides in.
  • In the metadata of the table the index was created for.

Questão 14

Questão
Which product is used to customize execution environments for the purpose of controlling system resources so that one department or service class does not overwhelm the system?
Responda
  • pureScale
  • Workload manager
  • Data partitioning feature
  • Self-tuning memory manager

Questão 15

Questão
What type of mechanism is a simple token value that is used to refer to a much bigger large object (LOB)?
Responda
  • locator
  • pointer
  • address
  • reference

Questão 16

Questão
What type of large object (LOB) is used to store LOB data together with the formatted rows on data pages, instead of in a separate LOB storage object?
Responda
  • inline
  • binary
  • internal
  • partitioned

Questão 17

Questão
What is the purpose of the Query Tuner?
Responda
  • To automatically capture and stop rogue queries.
  • To provide recommendations and analysis for tuning a single query.
  • To provide recommendations and analysis for tuning up to 100 queries.
  • To recommend indexes and to guide DBAs through the process of creating new indexes.

Questão 18

Questão
Which tool allows users to connect to a DB2 database using a wizard?
Responda
  • Control Center
  • IBM Data Studio
  • Universal Connection Expert
  • DB2 Connection Pool Manager

Questão 19

Questão
Which two activities indicate the need for a data warehouse? (Choose two.)
Responda
  • Confirm product inventory.
  • Monitor product availability.
  • Summarize sales by region.
  • Identify patterns for products sold in the last five years.
  • Associate one or more products with a purchase order.

Questão 20

Questão
What is the primary function of an Online Transaction Processing (OLTP) workload?
Responda
  • To combine data from multiple sources.
  • To discover hidden relationships in data.
  • To analyze large amounts of data to find patterns.
  • To make changes to a small number of records within a single transaction.

Questão 21

Questão
Which isolation level offers the greatest protection of data but provides the least amount of concurrency?
Responda
  • Read Stability (RS)
  • Cursor Stability (CS)
  • Repeatable Read (RR)
  • Uncommitted Read (UR)

Questão 22

Questão
What factor influences lock escalation?
Responda
  • Table size
  • Buffer space
  • Number of locks
  • Available real storage

Questão 23

Questão
Which type of lock allows the lock owner and all concurrent applications to read, but not update, the locked data?
Responda
  • Share (S)
  • Update (U)
  • Exclusive (X)
  • Intent Exclusive (IX)

Questão 24

Questão
Application APP_A is performing updates to table TAB1 using the cursor stability (CS) isolation level. If application APP_B wants to retrieve all rows from table TAB1 without waiting for application APP_A to finish making updates, what isolation level must application APP_B use?
Responda
  • Read Stability (RS)
  • Repeatable Read (RR)
  • Uncommitted Read (UR)
  • Cursor Stability (CS)

Questão 25

Questão
Which statement will prevent concurrent application processes from performing anything other than read-only operations against a table named TAB1?
Responda
  • LOCK TABLE tab1 IN READ MODE
  • LOCK TABLE tab1 IN SHARE MODE
  • LOCK TABLE tab1 IN EXCLUSIVE MODE
  • LOCK TABLE tab1 IN READ-ONLY MODE

Questão 26

Questão
When is an INTENT EXCLUSIVE (IX) lock required?
Responda
  • When a transaction intends to read or change data.
  • When a transaction intends to change but not read data.
  • When a transaction intends to read but not change data.
  • When a transaction intends to change the system catalog.

Questão 27

Questão
What is the act of exchanging one lock an application holds on a resource for a more restrictive lock on the same resource known as?
Responda
  • Lock escalation
  • Lock substitution
  • Lock switch/exchange
  • Lock conversion/promotion

Questão 28

Questão
What isolation level prevents dirty reads, nonrepeatable reads, and phantoms?
Responda
  • Read stability (RS)
  • Cursor stability (CS)
  • Repeatable read (RR)
  • Uncommitted read (UR)

Questão 29

Questão
Which operation normally does NOT require an exclusive lock?
Responda
  • BIND
  • DROP
  • GRANT
  • SELECT

Questão 30

Questão
When a COMMIT statement is executed, what happens?
Responda
  • All locks held on the database are automatically released.
  • Data stored in global temporary tables is automatically deleted.
  • Open cursors defined WITH HOLD are closed, but their data is retained.
  • The current transaction is terminated and a new transaction boundary is started.

Questão 31

Questão
Which command is used to back out a subset of database changes that have been made within a unit of work?
Responda
  • COMMIT
  • ROLLBACK
  • COMMIT TO SAVEPOINT
  • ROLLBACK TO SAVEPOINT

Questão 32

Questão
An SQL function designed to convert temperatures from Fahrenheit to Celsius was created as follows: CREATE FUNCTION conv_temp (IN temp_f FLOAT RETURNS INTEGER NO EXTERNALACTION SPECIFIC convert_ftoc RETURN INT ((temp_f -32)/1.8) How can this function be used to convert average temperature (AVG_TEMP) data stored in a table called CLIMATE_INFO?
Responda
  • CALL conv_temp(climate_info.avg_temp);
  • CALL convert_ftoc(climate_info.avg_temp);
  • SELECT conv_temp(avg_temp) FROM climate_info;
  • SELECT convert_ftoc(avg_temp) FROM climate_info;

Questão 33

Questão
If a table named MY_TAB contains 100 rows and the following statement is executed: DELETE FROM (SELECT * FROM my_tab ORDER BY col1 DESC FETCH FIRST 5 ROWS ONLY) AS tmp; What will happen?
Responda
  • The last 5 rows in the table will be deleted.
  • The first 5 rows in the table will be deleted.
  • The statement will fail because a subquery cannot be used with a DELETE statement.
  • The statement will fail because a table name was not specified with the DELETE statement.

Questão 34

Questão
Given an EMPLOYEES table and a SALES table, a user wants to produce a list of all employees and their associated revenue, even if no revenue exists. Which SQL statement will produce the desired list?
Responda
  • SELECT employees.name, sales.revenue FROM employees INNER JOIN sales ON employees.id = sales.emp_id
  • SELECT employees.name, sales.revenue FROM employees INNER JOIN sales ON sales.emp_id = employees.id
  • SELECT employees.name, sales.revenue FROM sales LEFT OUTER JOIN employees ON employees.id = sales.emp_id
  • SELECT employees.name, sales.revenue FROM sales RIGHT OUTER JOIN employees ON employees.id = sales.emp_id

Questão 35

Questão
Which two operations are allowed in the body of an SQL scalar user-defined function? (Choose two.)
Responda
  • CALL statements.
  • External file access.
  • Use of a scratch pad.
  • COMMIT statements.
  • SQL control statements.

Questão 36

Questão
Which command will delete all rows from a table without generating log records?
Responda
  • TRIM
  • DROP
  • DELETE
  • TRUNCATE

Questão 37

Questão
Which function can be used to obtain values from XML documents that are to be inserted into one or more tables?
Responda
  • XMLTABLE
  • XMLPARSE
  • XMLEXISTS
  • XMLATTRIBUTES

Questão 38

Questão
User USER1 wants to retrieve records from a table named EMPLOYEE that satisfy at least one of the following criteria: -The employee's hire date (HIREDATE) is before 1999 and the employee's salary (SALARY) is less than $40,000.00 a year. -The employee has attended university Which SQL statement will accomplish this?
Responda
  • SELECT * FROM employee WHERE (hiredate < '1999-01-01' AND salary < 40000) OR (education ='University')
  • SELECT * FROM employee WHERE (hiredate < '1999-01-01') OR (salary < 40000) OR (education ='University')
  • SELECT * FROM employee WHERE (hiredate < '1999-01-01' OR (salary < 40000 AND (education ='University')
  • SELECT * FROM employee WHERE (hiredate < '1999-01-01' AND salary < 40000 AND (education ='University')

Questão 39

Questão
Which SQL statement will retrieve the employee number (EMPNO), hire date (HIREDATE), and salary (SALARY) for each employee from a table named EMPLOYEE who was hired before 1998 and earns a salary of less than $35,000.00 per year?
Responda
  • SELECT empno, hiredate, salary FROM employee FOR hiredate < '1998-01-01' AND salary < 35000
  • SELECT empno, hiredate, salary FROM employee WHERE hiredate < '1998-01-01' AND salary < 35000
  • SELECT empno, hiredate, salary FROM employee WHERE hiredate < '1998-01-01' OR salary < 35000
  • SELECT empno, hiredate, salary FROM employee FOR hiredate < '1998-01-01' OR salary < 35000

Questão 40

Questão
If the following result set is desired: Which SQL statement must be executed?
Responda
  • SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 FETCH FIRST 5 ROWS ONLY
  • SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 DESC FETCH FIRST 5 ROWS ONLY
  • SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 FETCH FIRST 5 ROWS
  • SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 DESC FETCH FIRST 5 ROWS

Questão 41

Questão
Which statement about INSERT operations is true?
Responda
  • The INSERT statement is used to insert rows into a table, view, or table function.
  • Inserted values must satisfy the conditions of any check constraints defined on the table.
  • If an INSERT statement omits any column from the inserted row that is defined as NULL or NOT NULL WITH DEFAULT, the statement will fail.
  • If the underlying table of a view being referenced by an INSERT statement has one or more unique indexes, each row inserted does not have to conform to the constraints imposed by those indexes.

Questão 42

Questão
Which statement about application-period temporal tables is true?
Responda
  • Consists of explicitly-supplied timestamps and a separate associated history table.
  • Is based on explicitly-supplied timestamps that define the time periods during which data is valid.
  • Is useful when one wants to keep both user-based period information and system-based historical information.
  • Consists of a pair of columns with database-manager maintained values that indicate the period when a row is current.

Questão 43

Questão
Which SQL statement should be used to select the minimum and maximum salaries (SALARY), by job code (JOB), from a table EMPLOYEE?
Responda
  • SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY job;
  • SELECT job, MIN(salary), MAX(salary) FROM employee ORDER BY job;
  • SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY job, MIN(salary), MAX(salary);
  • SELECT JOB, MIN(salary), MAX(salary) FROM employee ORDER BY job, MIN(salary), MAX(salary);

Questão 44

Questão
In a trusted context environment, if a switch request is made with an authorization ID that is not allowed on a trusted connection, what state is the connection placed in?
Responda
  • Locked
  • Waiting
  • Pending
  • Unconnected

Questão 45

Questão
If a user has been granted SYSCTRL authority, which activities can they perform?
Responda
  • Load operations
  • Backup/copy table spaces
  • Create and drop databases
  • Monitor database performance

Questão 46

Questão
What is the purpose of a role?
Responda
  • To define exactly what a specific user can do within a particular database once they have been authenticated.
  • To group a collection of privileges together so that they can be simultaneously granted to and revoked from multiple users.
  • To establish a credible relationship between DB2 and an external entity, such as a database administrator or a middleware server.
  • To group a collection of users together so that they can be simultaneously granted and revoked specific authorities and privileges.

Questão 47

Questão
Which SQL statement will give user USER1 the ability to assign a comment to a sequence named MYSEQ?
Responda
  • GRANT ALTER ON SEQUENCE myseq TO user1
  • GRANT USAGE ON SEQUENCE myseq TO user1
  • GRANT SELECT ON SEQUENCE myseq TO user1
  • GRANT COMMENT ON SEQUENCE myseq TO user1

Questão 48

Questão
A column mask that is to be used for row and column access control (RCAC) was created with the DISABLE option specified. What must be done if this mask is to be used to restrict access to data stored in a table named EMPLOYEE?
Responda
  • The column mask must be enabled; the EMPLOYEE table must be altered to activate column access control.
  • The column mask must be enabled (column access control for the EMPLOYEE table will be activated automatically).
  • The EMPLOYEE table must be altered to activate column access control (the column mask will be enabled automatically).
  • The EMPLOYEE table must be altered to activate column access control; row permission must be granted to everyone who needs to use thecolumn mask.

Questão 49

Questão
User USER1 holds both DBADM and SECADM authority and you want to separate database administration activities from security administration tasks. What authority must you have in order to revoke SECADM authority from user USER1 and assign it to someone else?
Responda
  • DBADM
  • DBCTRL
  • SECADM
  • DBMAINT

Questão 50

Questão
A table named EMPLOYEE was created as follows: Which action will prevent unauthorized users from accessing SSN data?
Responda
  • Assign the SSN column to a restricted role that only authorized users can access.
  • Only grant ACCESSCTRL authority for the SSN column to users who need to access SSN data.
  • Alter the table definition so that SSN data is stored in a separate schema that only authorized users can access.
  • Create a view for the EMPLOYEE table that does not contain the SSN column and require unauthorized users to use the view.

Questão 51

Questão
Which SQL statement will allow user USER1 to create a view on a table named EMPLOYEE?
Responda
  • GRANT CREATETAB ON DATABASE TO user1
  • GRANT SELECT ON TABLE employee TO user1
  • GRANT CREATEVIEW ON DATABASE TO user1
  • GRANT REFERENCES ON TABLE employee TO user1

Questão 52

Questão
A new user named USER1 needs to retrieve information from a database named MYDB. What authority must be granted to user USER1?
Responda
  • DBCTRL authority
  • SQLADM authority
  • DATAACCESS authority
  • ACCESSCTRL authority

Questão 53

Questão
Which privilege is required to invoke a user defined function?
Responda
  • CALL
  • USAGE
  • EXECUTE
  • REFERENCES

Questão 54

Questão
Which statement is true about an index that is used to support a UNIQUE constraint?
Responda
  • It must not contain more than one column.
  • It cannot be used in a referential constraint.
  • It must be defined with the UNIQUE attribute.
  • It must be defined as UNIQUE WHERE NOT NULL.

Questão 55

Questão
Which statement regarding triggers is true?
Responda
  • Only one INSERT, UPDATE, or DELETE trigger can be defined per table.
  • Triggers cannot be modified, they must be dropped and recreated with new definitions.
  • Adding a trigger to a table that already has rows in it will cause triggered actions to be fired.
  • Triggers can only be fired one time per statement irrespective of the number of rows affected.

Questão 56

Questão
A table named STATES was created as follows: CREATE TABLE states (state_cd CHAR(2) NOT NULL, state_desc CHAR(20)); CREATE UNIQUE INDEX indx1 ON states (state_cd); if the following ALTER statement is executed: ALTER TABLE states ADD PRIMARY KEY (state_cd); What will happen?
Responda
  • An error will be returned and the operation will fail.
  • A warning will be returned and the unique index INDX1 will become the index for the primary key.
  • The primary key will be successfully added and the unique index INDX1 will be dropped and recreated as the primary key index.
  • The primary key will be successfully added, the unique index INDX1 will be dropped, and a new index will be created for the primary key.

Questão 57

Questão
When an application using a temporary table terminates or disconnects from the database unexpectedly, what happens to the temporary table and any data stored in it?
Responda
  • The data in the table is deleted and the table persists.
  • The data in the table is deleted and the table is implicitly dropped.
  • The temporary table is converted to a base table and the data is deleted.
  • The temporary table is converted to a base table and the data is persistent.

Questão 58

Questão
When a user-defined function (UDF) is created and no schema is specified, what schema is used to store the UDF?
Responda
  • The SYSIBM schema.
  • The SYSFUN schema.
  • A schema with the name of the UDF.
  • A schema with the userid of the UDF definer.

Questão 59

Questão
Which statement about triggers is true?
Responda
  • A trigger is designed to return specific types of values and contains executable code.
  • A trigger is designed to return specific types of values but contains no executable code.
  • A trigger performs actions to capture details about an activity like a join operation against multiple tables.
  • A trigger performs actions in response to an event like an INSERT, UPDATE or DELETE operation on a table.

Questão 60

Questão
Which two statements are true about foreign key constraints? (Choose two.)
Responda
  • The foreign key constraint columns must be supported by an index.
  • The foreign key constraint columns must be defined as NOT NULL.
  • The number and data types of foreign key constraint columns must match the parent key.
  • The columns of one foreign key constraint cannot be used in another foreign key constraint.
  • To define a foreign key constraint there must be an associated primary key or unique key in the same or different table.

Questão 61

Questão
What is the primary purpose of a view?
Responda
  • To enable uniqueness.
  • To ensure data clustering.
  • To combine data from multiple tables.
  • To optimize queries ran against multiple tables.

Questão 62

Questão
By default, a column defined as a TIMESTAMP includes which attributes?
Responda
  • No fractional digits or time zone.
  • 6 fractional digits and no time zone.
  • 12 fractional digits plus a time zone.
  • 12 fractional digits and no time zone.

Questão 63

Questão
Which is NOT a valid reason for creating an index?
Responda
  • To allow queries to run more efficiently.
  • To enforce constraints such as uniqueness on index keys.
  • To order the columns of a table in ascending or descending sequence according to values in a row.
  • To order the rows of a table in ascending or descending sequence according to the values in a column.

Questão 64

Questão
To order the rows of a table in ascending or descending sequence according to the values in a column.
Responda
  • Unique constraint
  • Primary key constraint
  • Informational constraint
  • Column default constraint

Questão 65

Questão
Which statement is true regarding constraints?
Responda
  • A table can only have one unique key constraint.
  • A table can have multiple primary key constraints.
  • Informational constraints tell DB2 what rules the data conforms to, but the rules are not enforced.
  • Foreign key constraints are enforced on the values within the rows of a table, or between the rows of two tables, by a unique index on a foreignkey.

Questão 66

Questão
By default, where is the data stored for a column defined with an XML data type?
Responda
  • In an XML index.
  • In line with the rest of the data for the table.
  • In an XML storage object that is separate from the table.
  • In line with the rest of the data for the table, for XML columns less than 32KB.

Questão 67

Questão
Which statement about BEFORE triggers is FALSE?
Responda
  • A BEFORE trigger can be used to perform validation of input data.
  • A BEFORE trigger can be used to automatically generate values for newly inserted rows.
  • A BEFORE trigger is fired for each row in the set of affected rows before the trigger event executes.
  • A BEFORE trigger is fired for each row in the set of affected rows instead of executing the trigger event.

Questão 68

Questão
What is used in conjunction with a foreign key to define a relationship between two tables?
Responda
  • Primary key
  • Partitioning key
  • Check constraint
  • Unique constraint

Questão 69

Questão
Which case will require a sequence to be dropped and recreated instead of being modified by the ALTER SEQUENCE statement?
Responda
  • Change the data type of the sequence.
  • Reset the sequence to its starting value.
  • Establish new minimum or maximum values.
  • Change the increment between future values.

Questão 70

Questão
Given the following statement: GRANT DELETE ON TABLE sales TO User1 WITH GRANT OPTION; Which statement is correct?
Responda
  • USER1 can only remove the SALES table.
  • USER1 can only remove records from the SALES table.
  • USER1 can remove the SALES table and grant the privilege to remove the SALES table to other users.
  • USER1 can remove records from the SALES table and grant the privilege to remove records from the SALES table to other users.

Questão 71

Questão
Which method for restricting data access relies on a SQL search condition that describes what set of rows a user has access to?
Responda
  • Authentication
  • Authorities and privileges
  • Label-based access control
  • Row and column access control

Questão 72

Questão
Which SQL statement will take the ability to create tables in a table space named MYTBSP away from user USER1?
Responda
  • REVOKE USE OF TABLESPACE mytbsp FROM user1
  • REVOKE ALTER ON TABLESPACE mytbsp FROM user1
  • REVOKE UPDATE OF TABLESPACE mytbsp FROM user1
  • REVOKE CREATETAB ON TABLESPACE mytbsp FROM user1

Questão 73

Questão
In a trusted context environment, if a switch request is made with an authorization ID that is not allowed on a trusted connection, what state is the connection placed in?
Responda
  • Locked
  • Waiting
  • Pending
  • Unconnected

Questão 74

Questão
When is a mask used to limit access to data in a table?
Responda
  • When mandatory access control (MAC) is used to protect the table.
  • When discretionary access control (DAC) is used to protect the table.
  • When label-based access control (LBAC) is used to protect the table.
  • When row and column access control (RCAC) is used to protect the table.

Questão 75

Questão
What privilege is required to create a view on a table that you are not the owner of?
Responda
  • INSERT
  • SELECT
  • CREATE
  • TRIGGER

Questão 76

Questão
After creating several new indexes and executing RUNSTATS, user USER1 wants to re-create a package that is stored in the database so it will take advantage of the new indexes. Which authority/privilege must user USER1 be granted in order to re-create the package?
Responda
  • BIND
  • REBIND
  • BINDADD
  • BIND_REBIND

Questão 77

Questão
Which SQL statement will give a user named USER1 the ability to run an embedded SQL application named BENEFITS that calls a package named CORPDATA.PKGA?
Responda
  • GRANT EXECUTE ON APPLICATION benefits TO user1
  • GRANT EXECUTE ON PACKAGE corpdata.pkga TO user1
  • GRANT EXECUTE ON APPLICATION PACKAGE corpdata.pkga TO user1
  • GRANT EXECUTE ON APPLICATION benefits USING PACKAGE corpdata.pkga TO user1

Questão 78

Questão
Which of the following privileges allow a user to update the comment on a sequence?
Responda
  • ALTER
  • USAGE
  • UPDATE
  • COMMENT

Questão 79

Questão
Which statement is valid about the Row and Column Access Control (RCAC) feature?
Responda
  • A row mask's access control rule is defined by an SQL CASE expression; a column permission's access control rule is defined by an SQLsearch condition.
  • A row permission's access control rule is defined by an SQL CASE expression; a column mask's access control rule is defined by an SQLsearch condition.
  • A row mask's access control rule is defined by an SQL search condition; a column permission's access control rule is defined by an SQL CASEexpression.
  • A row permission's access control rule is defined by an SQL search condition; a column mask's access control rule is defined by an SQL CASEexpression.

Questão 80

Questão
Which type of table should you use if you want to define specific time periods when data is valid?
Responda
  • Materialized query table
  • System-period temporal table
  • Declared global temporary table
  • Application-period temporal table

Questão 81

Questão
Which SQL statement will create a DB2 object that can be used to store numerical data as Canadian currency?
Responda
  • CREATE DISTINCT ALIAS canadian_dollar AS DECIMAL (9,3) WITH COMPARISONS
  • CREATE DISTINCT TYPE canadian_dollar AS DECIMAL (9,3) WITH COMPARISONS
  • CREATE DISTINCT PROCEDURE canadian_dollar AS DECIMAL (9,3) WITH COMPARISONS
  • CREATE DISTINCT FUNCTION canadian_dollar AS DECIMAL (9,3) WITH COMPARISONS

Questão 82

Questão
Which object can be enabled for compression?
Responda
  • View
  • Buffer pool
  • Storage group
  • Temporary table

Questão 83

Questão
What is the minimum product required for DB2 connectivity across all platforms?
Responda
  • DB2 Personal Edition
  • DB2 Development Edition
  • DB2 Connect Personal Edition
  • DB2 Development Unlimited Edition

Questão 84

Questão
Given the SQL statement: CREATE ALIAS total_sales FOR sales Which statement is valid?
Responda
  • SALES can be the name of a schema.
  • SALES can be the name of a package.
  • SALES can be the name of an existing alias.
  • SALES can be the name of a declared global temporary table.

Questão 85

Questão
Which DB2 object limits the user's ability to retrieve data from a table by defining a SQL statement in the object?
Responda
  • View
  • Index
  • Trigger
  • Check constraint

Questão 86

Questão
A table named EMPLOYEES was created as follows, What will be the results?
Responda
  • 0
  • 1
  • 2
  • 3

Questão 87

Questão
Which two DB2 objects can a view be derived from? (Choose two.)
Responda
  • View
  • Index
  • Table
  • Trigger
  • Procedure

Questão 88

Questão
Which protocol provides applications the ability to connect to and update multiple DB2 databases within the same transaction?
Responda
  • Type-1 connect
  • Type-2 connect
  • Type-3 connect
  • Type-4 connect

Questão 89

Questão
Which statement about bitemporal tables is valid?
Responda
  • Bitemporal tables are system tables and can only be queried by the schema owner.
  • Creating a bitemporal table is similar to creating a regular table except users must specify a system time period column.
  • When data in a bitemporal table is updated, a row is added to it's associated history table.
  • Querying a bitemporal table will produce results for a complete timeline; a view must be created to obtain results for a specific time period.

Questão 90

Questão
Which object can a buffer pool be assigned to?
Responda
  • Schema
  • Table space
  • Storage group
  • Stored procedure

Questão 91

Questão
Which DB2 object is associated with PREVIOUS VALUE and NEXT VALUE expressions?
Responda
  • View
  • Table
  • Sequence
  • Identity Column

Questão 92

Questão
What needs to be defined in order to track changes made to a system-period temporal table over time?
Responda
  • Once the row-begin, row-end, and transaction-start-id columns are created, all changes are tracked.
  • A history table must be created with identical columns to the base table and a unique index must be defined on the transaction-start-id column.
  • A history table must be created as a clone table of the base table after the row-begin, row-end, and transaction-start-id columns have beendefined.
  • A history table must be created with identical columns to the base table and then the base table altered with the ADD VERSIONING clause torelate it to the history table.

Questão 93

Questão
Which object is used to cache table and index data as it is read from disk?
Responda
  • Database
  • Buffer pool
  • Table space
  • Package cache

Questão 94

Questão
Which statement about large object (LOB) locators is true?
Responda
  • A LOB locator is a data type that is used to store LOB data in binary files.
  • A LOB locator is a data type that is used to store LOB data in a database.
  • A LOB locator represents a value for a LOB resource that is stored in a database.
  • A LOB locator represents a value for a LOB resource that is stored in a binary file.

Questão 95

Questão
Which DB2 product is a database cluster solution for non-mainframe platforms and is best suited for Online Transaction Processing (OLTP) workloads?
Responda
  • DB2 Connect
  • DB2 pureScale
  • Workload Manager
  • High Availability Disaster Recovery

Questão 96

Questão
What type of large object (LOB) is used to store LOB data together with the formatted rows on data pages, instead of in a separate LOB storage object?
Responda
  • inline
  • binary
  • internal
  • partitioned

Questão 97

Questão
Which product replaced the Control Center used in versions prior to DB2 v10?
Responda
  • IBM Data Studio
  • IBM Administrator
  • IBM Data Manager
  • IBM Command Center

Questão 98

Questão
Which DB2 product is NOT suitable for very large data warehouse applications?
Responda
  • DB2 for i
  • DB2 for AIX
  • DB2 for z/OS
  • DB2 for Linux

Questão 99

Questão
Which platform supports DB2 pureScale environments?
Responda
  • AIX
  • iOS
  • z/OS
  • Windows

Questão 100

Questão
Which tool allows users to connect to a DB2 database using a wizard?
Responda
  • Control Center
  • IBM Data Studio
  • Universal Connection Expert
  • DB2 Connection Pool Manager

Questão 101

Questão
A table named SALES contains a record for every sales transaction a company processes. A user wishes to see the number of transactions that are made by each salesman. Which SQL statement will produce the desired results?
Responda
  • SELECT name, COUNT(*) AS transactions FROM sales
  • SELECT name, COUNT(DISTINCT name) AS transactions FROM sales
  • SELECT name, COUNT(*) AS transactions FROM sales GROUP BY name
  • SELECT DISTINCT name, COUNT(*) AS transactions FROM sales GROUP BY transactions

Questão 102

Questão
Which statement about roll back operations is correct?
Responda
  • When a ROLLBACK statement is executed, all locks held by the terminating transaction are released.
  • When a ROLLBACK TO SAVEPOINT statement is executed, all locks acquired up to the savepoint are released.
  • When a ROLLBACK TO SAVEPOINT statement is executed, all locks acquired after the savepoint are released.
  • When a ROLLBACK statement is executed, all locks acquired for open cursors that were declared WITH HOLD, are held.

Questão 103

Questão
When a COMMIT statement is executed, what happens?
Responda
  • All locks held on the database are automatically released.
  • Data stored in global temporary tables is automatically deleted.
  • Open cursors defined WITH HOLD are closed, but their data is retained.
  • The current transaction is terminated and a new transaction boundary is started.

Questão 104

Questão
Which SQL statement would be used to retrieve only salaries that are greater than $100,000.00 from a table named EMPLOYEE?
Responda
  • SELECT * FROM employee WHERE salary < 100000
  • SELECT salary FROM employee WHERE salary > 100000
  • SELECT salary FROM employee WHERE salary > 100,000.00
  • SELECT * FROM employee WHERE salary GREATER THAN 100000

Questão 105

Questão
Which SQL statement should be used to retrieve the minimum and maximum salaries (SALARY) for each job code (JOB), sorted by job code, from a table named EMPLOYEE?
Responda
  • SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY job ORDER BY job;
  • SELECT job, MIN(salary), MAX(salary) FROM employee ORDER BY job;
  • SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY SALARY ORDER BY job;
  • SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY MIN(salary), MAX(salary) ORDER BY job;

Questão 106

Questão
If a table named MY_TAB contains 100 rows and the following statement is executed:
Responda
  • 0
  • 1
  • 10
  • 99

Questão 107

Questão
An SQL function named DEPT_INFO was created as follows: What is the correct way to use this function in a query?
Responda
  • SELECT dept_info(dept_id, dept_name)
  • SELECT dept_id, dept_name FROM dept_info()
  • SELECT TABLE dept_id, dept_name FROM dept_info()
  • SELECT dept_id, dept_name FROM TABLE(dept_info()) AS results

Questão 108

Questão
Which type of stored procedure is not associated with an external application program?
Responda
  • A Java stored procedure.
  • A REXX stored procedure.
  • A native SQL stored procedure.
  • An external SQL stored procedure.

Questão 109

Questão
Which SQL statement will retrieve the department number (WORKDEPT) and average departmental salary (SALARY) for all departments in a table named EMPLOYEE and arrange the result set in ascending order by average departmental salary?
Responda
  • SELECT workdept, AVG(salary) FROM employee ORDER BY workdept GROUP BY 2
  • SELECT workdept, AVG(salary) FROM employee ORDER BY workdept ARRANGE BY 2
  • SELECT workdept, AVERAGE(salary) FROM employee GROUP BY workdept ORDER BY 2
  • SELECT workdept, AVG(salary) FROM employee GROUP BY workdept ORDER BY 2

Questão 110

Questão
Which statement about system-period temporal tables is true?
Responda
  • They store user-based period information.
  • They do not have a separate history table.
  • They can be queried without a time period specification.
  • They manage data based on time criteria specified by users or applications.

Questão 111

Questão
A table named DEPARTMENT contains the following data: What will happen?
Responda
  • The statement will fail because a subquery cannot be used in an UPDATE statement.
  • The statement will fail because the result set produced by the subquery will contain more than one row.
  • The statement will succeed; the last record retrieved by the subquery will be used to provide a WORKDEPT value for the update operation.
  • The statement will succeed; the first record retrieved by the subquery will be used to provide a WORKDEPT value for the update operation

Questão 112

Questão
Which statement about UPDATE processing is FALSE?
Responda
  • The UPDATE statement logs the before and after value of every column it modifies.
  • A searched UPDATE is used to update one or more rows and a positioned UPDATE is used to update exactly one row.
  • When the UPDATE statement modifies parent key columns, the value of corresponding foreign key columns are also modified.
  • The UPDATE statement modifies the values of specified columns in the rows of a table, view, or underlying table(s) of a specified fullselect.

Questão 113

Questão
Given the following statements: What will be the result?
Responda
  • Joe Smith
  • <name>Joe Smith</name>
  • <name>Joe Smith></name><name>DB2</name>
  • <employeeinfo><name>Joe Smith</name></employeeinfo>

Questão 114

Questão
A table named STATES has the following columns: STATE_CD, REGION_CD, and STATE_NAME. Which SQL statement will return the number of states in each region, ordered by number of states?
Responda
  • SELECT state_cd, COUNT(*) FROM states ORDER BY COUNT(*);
  • SELECT state_cd, COUNT(*) FROM states GROUP BY state_cd ORDER BY state_cd;
  • SELECT region_cd, COUNT(*) FROM states GROUP BY state_cd ORDER BY COUNT(*);
  • SELECT region_cd, COUNT(*) FROM states GROUP BY region_cd ORDER BY COUNT(*);

Questão 115

Questão
When a user-defined function (UDF) is created and no schema is specified, what schema is used to store the UDF?
Responda
  • The SYSIBM schema.
  • The SYSFUN schema.
  • A schema with the name of the UDF.
  • A schema with the userid of the UDF definer.

Semelhante

Mapa conceitual - Parnasianismo no Brasil
Letícia Freato
FUNÇÕES DA CRIMINOLOGIA.
fcmc2
English - prepositions (at, in, on)
jdbenthien
PRINCÍPIOS DO DIREITO PROCESSUAL PENAL
GraSousa
Phrasal Verbs
GoConqr suporte .
II Guerra Mundial
GoConqr suporte .
Química Orgânica (Part. I)
lorena dorea
SIMULADÃO EA-HSG TRADIÇÕES, USOS, COSTUMES E LINGUAGEM DO MAR
isac rodrigues
SIMULADÃO EA-HSG OGSA – ORDENANÇA GERAL DOS SERVIÇOS DA ARMADA
isac rodrigues
Marketing digital nas redes sociais.
alexsandro_hitty
PODERES ADMINIS- TRATIVOS
Mateus de Souza