Sunteți pe pagina 1din 23

1.

Basic về query language


QUESTION NO: 1
Evaluate the SQL statement:
TRUNCATE TABLE DEPT;
Which three are true about the SQL statement? (Choose three.)
A. It releases the storage space used by the table.
B. It does not release the storage space used by the table.
C. You can roll back the deletion of rows after the statement executes.
D. You can NOT roll back the deletion of rows after the statement executes.
E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will
display an error.
F. You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate
the DEPT table

Answer: A,D,F
QUESTION NO: 2
You need to design a student registration database that contains several tables storing academic
information.
The STUDENTS table stores information about a student. The STUDENT_GRADES table stores
information about the student's grades. Both of the tables have a column named STUDENT_ID.
The STUDENT_ID column in the STUDENTS table is a primary key.
You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table
that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the
foreign key?
A. CREATE TABLE student_grades (student_id NUMBER(12),semester_end DATE, gpa
NUMBER(4,3), CONSTRAINT student_id_fk REFERENCES (student_id) FOREIGN KEY
students(student_id));
B. CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa
NUMBER(4,3), student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id));
C. CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa
NUMBER(4,3), CONSTRAINT FOREIGN KEY (student_id) REFERENCES students(student_id));
D. CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa
NUMBER(4,3), CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES
students(student_id));

Answer: D
QUESTION NO: 3
Evaluate these two SQL statements:
SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY salary DESC;
SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC;
What is true about them?
A. The two statements produce identical results.
B. The second statement returns a syntax error.
C. There is no need to specify DESC because the results are sorted in descending order by
default.
D. The two statements can be made to produce identical results by adding a column alias for the
salary column in the second SQL statement.
Answer: A
QUESTION NO: 4
Where can sub queries be used? (Choose all that apply)
A. field names in the SELECT statement
B. the FROM clause in the SELECT statement
C. the HAVING clause in the SELECT statement
D. the GROUP BY clause in the SELECT statement
E. the WHERE clause in only the SELECT statement
F. the WHERE clause in SELECT as well as all DML statements

Answer: A,B,C,F
QUESTION NO: 5
Which view should a user query to display the columns associated with the constraints on a table
owned by the user?
A. USER_CONSTRAINTS
B. USER_OBJECTS
C. ALL_CONSTRAINTS
D. USER_CONS_COLUMNS
E. USER_COLUMNS

Answer: D
QUESTION NO: 6
Evaluate the following SQL statements:
DELETE FROM sales;
There are no other uncommitted transactions on the SALES table.
Which statement is true about the DELETE statement?
A. It removes all the rows as well as the structure of the table
B. It removes all the rows in the table and deleted rows cannot be rolled back
C. It removes all the rows in the table and deleted rows can be rolled back
D. It would not remove the rows if the table has a primary key

Answer: C
QUESTION NO: 7
Which two statements are true regarding constraints? (Choose two.)
A. A constraint can be disabled even if the constraint column contains data
B. A constraint is enforced only for the INSERT operation on a table
C. A foreign key cannot contain NULL values
D. All constraints can be defined at the column level as well as the table level
E. A columns with the UNIQUE constraint can contain NULL values

Answer: A,E
QUESTION NO: 8
Examine the statement:
Create synonym emp for hr.employees;
What happens when you issue the statement?
A. An error is generated.
B. You will have two identical tables in the HR schema with different names.
C. You create a table called employees in the HR schema based on you EMP table.
D. You create an alternative name for the employees table in the HR schema in your own schema.

Answer: D
QUESTION NO: 9
Which two statements are true regarding single row functions? (Choose two.)
A. They can be nested only to two levels
B. They always return a single result row for every row of a queried table
C. Arguments can only be column values or constant
D. They can return a data type value different from the one that is referenced
E. They accept only a single argument

Answer: B,D
QUESTION NO: 10
Which statement is true regarding the UNION operator?
A. The number of columns selected in all SELECT statements need to be the same
B. Names of all columns must be identical across all SELECT statements
C. By default, the output is not sorted
D. NULL values are not ignored during duplicate checking

Answer: A
QUESTION NO: 11
Which are /SQL*Plus commands? (Choose all that apply.)
A. INSERT
B. UPDATE
C. SELECT
D. DESCRIBE
E. DELETE
F. RENAME

Answer: D
QUESTION NO: 12
You need to calculate the number of days from 1st Jan 2007 till date:
Dates are stored in the default format of dd-mm-rr.
Which two SQL statements would give the required output? (Choose two.)
A. SELECT SYSDATE - TO_DATE('01/JANUARY/2007') FROM DUAL;
B. SELECT TO_DATE(SYSDATE,'DD/MONTH/YYYY')-'01/JANUARY/2007' FROM DUAL;
C. SELECT SYSDATE - TO_DATE('01-JANUARY-2007') FROM DUAL
D. SELECT SYSDATE - '01-JAN-2007' FROM DUAL
E. SELECT TO_CHAR(SYSDATE,'DD-MON-YYYY')-'01-JAN-2007' FROM DUAL;

Answer: A,C
QUESTION NO: 13
You issue the following command to drop the PRODUCTS table:
SQL>DROP TABLE products;
What is the implication of this command? (Choose all that apply.)
A. All data in the table are deleted but the table structure will remain
B. All data along with the table structure is deleted
C. All views and synonyms will remain but they are invalidated
D. The pending transaction in the session is committed
E. All indexes on the table will remain but they are invalidated

Answer: B,C,D
QUESTION NO: 14
When does a transaction complete? (Choose all that apply.)
A. When a PL/SQL anonymous block is executed
B. When a DELETE statement is executed
C. When a data definition language statement is executed
D. When a TRUNCATE statement is executed after the pending transaction
E. When a ROLLBACK command is executed

Answer: C,D,E
QUESTION NO: 15
The user Alice wants to grant all users query privileges on her DEPT table. Which SQL statement
accomplishes this?
A. GRANT select ON dept TO ALL_USERS;
B. GRANT select ON dept TO ALL;
C. GRANT QUERY ON dept TO ALL_USERS
D. GRANT select ON dept TO PUBLIC;

Answer: D
QUESTION NO: 16
Which one is a system privilege?
A. SELECT
B. DELETE
C. EXECUTE
D. ALTER TABLE
E. CREATE TABLE

Answer: E
QUESTION NO: 17
Which three statements/commands would cause a transaction to end? (Choose three.)
A. COMMIT
B. SELECT
C. CREATE
D. ROLLBACK
E. SAVEPOINT

Answer: A,C,D
QUESTION NO: 18
Which two statements are true about constraints? (Choose two.)
Oracle 1z0-051 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 86
A. The UNIQUE constraint does not permit a null value for the column.
B. A UNIQUE index gets created for columns with PRIMARY KEY and UNIQUE constraints.
C. The PRIMARY KEY and FOREIGN KEY constraints create a UNIQUE index.
D. The NOT NULL constraint ensures that null values are not permitted for the column.

Answer: B,D
QUESTION NO: 19
Which statement is true regarding sub queries?
A. The LIKE operator cannot be used with single- row subqueries.
B. The NOT IN operator is equivalent to IS NULL with single- row subqueries.
C. =ANY and =ALL operators have the same functionality in multiple- row subqueries.
D. The NOT operator can be used with IN, ANY, and ALL operators in multiple- row subqueries.

Answer: D
QUESTION NO: 20
Evaluate the following SQL statement:
SQL> SELECT cust_id, cust_last_name "Last Name"
FROM customers
WHERE country_id = 10
UNION
SELECT cust_id CUST_NO, cust_last_name
FROM customers
WHERE country_id = 30;
Which ORDER BY clause are valid for the above query? (Choose all that apply.)
A. ORDER BY 2,1
B. ORDER BY CUST_NO
C. ORDER BY 2,cust_id
D. ORDER BY "CUST_NO"
E. ORDER BY "Last Name"

Answer: A,C,E
QUESTION NO: 21
You need to perform these tasks:
Create and assign a MANAGER role to Blake and Clark
Grant CREATE TABLE and CREATE VIEW privileges to Blake and Clark
Which set of SQL statements achieves the desired results?
A. CREATE ROLE manager;
GRANT create table, create view
TO manager;
GRANT manager TO BLAKE,CLARK;
B. CREATE ROLE manager;
GRANT create table, create voew
TO manager;
GRANT manager ROLE TO BLAKE,CLARK;
C. GRANT manager ROLE TO BLAKE,CLARK;
GRANT create table, create voew
TO BLAKE CLARK;

Answer: A
QUESTION NO: 22
You need to extract details of those products in the SALES table where the PROD_ID column
contains the string '_D123'. Which WHERE clause could be used in the
SELECT statement to get the required output?
A. WHERE prod_id LIKE '%_D123%' ESCAPE '_'
B. WHERE prod_id LIKE '%\_D123%' ESCAPE '\'
C. WHERE prod_id LIKE '%_D123%' ESCAPE '%_'
D. WHERE prod_id LIKE '%\_D123%' ESCAPE '\_'

Answer: B
QUESTION NO: 23
Which two statements are true regarding the ORDER BY clause? (Choose two.)
A. It is executed first in the query execution.
B. It must be the last clause in the SELECT statement.
C. It cannot be used in a SELECT statement containing a HAVING clause.
Oracle 1z0-051 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 135
D. You cannot specify a column name followed by an expression in this clause.
E. You can specify a combination of numeric positions and column names in this clause.

Answer: B,E
QUESTION NO: 24
What is true about the WITH GRANT OPTION clause?
A. It allows a grantee DBA privileges.
B. It is required syntax for object privileges.
C. It allows privileges on specified columns of tables.
D. It is used to grant an object privilege on a foreign key column.
E. It allows the grantee to grant object privileges to other users and roles.

Answer: E
QUESTION NO: 25
The DBA issues this SQL command:
CREATE USER Scott IDENTIFIED by tiger;
What privileges does the user Scott have at this point?
A. No privileges.
B. Only the SELECT privilege.
C. Only the CONNECT privilege.
D. All the privileges of a default user.

Answer: A
QUESTION NO: 26
Which two statements complete a transaction? (Choose two)
A. DELETE employees;
B. DESCRIBE employees;
C. ROLLBACK TO SAVEPOINT C;
D. GRANT SELECT ON employees TO SCOTT;
E. ALTER TABLE employeesSET UNUSED COLUMN sal;
F. Select MAX(sal)FROM employeesWHERE department_id = 20;
Answer: D,E
QUESTION NO: 27
Evaluate the SQL statement
DROP TABLE DEPT:
Which four statements are true of the SQL statement? (Choose four)
A. You cannot roll back this statement.
B. All pending transactions are committed.
C. All views based on the DEPT table are deleted.
D. All indexes based on the DEPT table are dropped.
E. All data in the table is deleted, and the table structure is also deleted.
F. All data in the table is deleted, but the structure of the table is retained.
G. All synonyms based on the DEPT table are deleted.

Answer: A,B,D,E
QUESTION NO: 28
The user Sue issues this SQL statement:
GRANT SELECT ON sue.EMP TO alice WITH GRANT OPTION;
The user Alice issues this SQL statement:
GRANT SELECT ON sue.EMP TO reena WITH GRANT OPTION;
The user Reena issues this SQL statement:
GRANT SELECT ON sue.EMP TO timber;
The user Sue issues this SQL statement:
REVOKE select on sue.EMP FROM alice;
For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?
A. Alice only
B. Alice and Reena
C. Alice, Reena, and Timber
D. Sue, Alice, Reena, and Timber

Answer: C
QUESTION NO: 29
Which two statements are true regarding tables? (Choose two.)
A. A table name can be of any length.
B. A table can have any number of columns.
C. A column that has a DEFAULT value cannot store null values.
D. A table and a view can have the same name in the same schema.
E. A table and a synonym can have the same name in the same schema.
F. The same table name can be used in different schemas in the same database.

Answer: E,F
QUESTION NO: 30
Which two statements are true regarding the DELETE and TRUNCATE commands? (Choose
two.)
A. DELETE can be used to remove only rows from only one table at a time.
B. DELETE can be used to remove only rows from multiple tables at a time.
C. DELETE can be used only on a table that is a parent of a referential integrity constraint.
D. DELETE can be used to remove data from specific columns as well as complete rows.
E. DELETE and TRUNCATE can be used on a table that is a parent of a referential integrity
constraint having ON DELETE rule.
Answer: A,E

2. Oracle
Question 31 (OracleDB)
While setting up the database for your production environment, you want to create a user with
following requirements.
1. The objects created by the user must be stored in a tablespace, TBS1, if the TABLESPACE option
is not defined during the object creation.
2. The user should be able to use 10MB of space in the tablespace TBS1.
3. The user must change the password immediately after logging in for the first time.
Which three options of the CREATE USER command would you use to achieve this objective?
(Choose three.)
A. profile
B. account lock
C. account unlock
D. password expire
E. quota 10MB on TBS1
F. password never expire
G. default tablespace TBS1
H. quota unlimited on TBS1
I. temporary tablespace TEMP
J. temporary tablespace SYSTEM

Answer: D,E,G
Question 32 (OracleDB)
You work as a database administrator. You have been asked to use a centralized administrative
tool to administer your database servers and application servers. In order to achieve the
objective, which component would you configure on each database server?
A. Database Control
B. Management Server
C. Management Repository
D. Application Server Control
E. Oracle Management Agent

Answer: E
Question 33 (OracleDB)
The data file belonging to the SYSTEM tablespace is corrupted and no backup of the file is
available. How do you recover the data file?
A. The data file cannot be recovered.
B. The date file can be restored from the SYSTEM auto backup.
C. Take the tablespace offline, drop, and re-create it.
D. Recovery Manager (RMAN) is used to recover the data file.
E. The ALTER DATABSE CREATE DATAFILE…command is used to recover the data file.
Answer: A
Question 34 (OracleDB)
You work as a database administrator. You received the following error while working on your
database: ORA-01555: snapshot too old
In which situation would you receive such an error?
A. You performed rollback after commit.
B. If a log switch occurs in your database.
C. The archiver fails to generate an archived log file.
D. Instance recovery fails to find one of the redo log files.
E. A long-running query is unable to get read-consistent image.
F. If you perform manual undo management operations in auto mode.

Answer: E
Question 35 (OracleDB)
You work as a database administrator. The UNDO_RETENTION parameter in your database is set
to 1000 and undo retention is not guaranteed.
Which statement regarding retention of undo data is correct?
A. Undo data becomes obsolete after 1,000 seconds.
B. Undo data gets refreshed after 1,000 seconds.
C. Undo data will be stored permanently after 1,000 seconds.
D. Committed undo data would be retained for 1,000 seconds if free undo space is available.
E. Undo data will be retained in the UNDO tablespace for 1,000 seconds, then it gets moved to
the TEMPORARY tablespace to provide read consistency.

Answer: D
Question 36 (OracleDB)
You work as a database administrator. You find that users with DBA role are using more CPU
resources than what is allocated in their profiles.
Which action would you take to ensure that resources limits are imposed on these users?
A. Assign the DEFAULT profile to the users
B. Set the RESOURCE_LIMIT parameter to TRUE in the parameter file
C. Create a new profile with CPU restrictions and assign it to the users
D. Specify the users as members of the DEFAULT_CONSUMER_GROUP
E. Revoke the DBA role and grant CONNECT and RESOURCE role to the users

Answer: B
Question 37 (OracleDB)
You work as a database administrator. You suspect that in one of your applications the customer
table is being accessed by some unauthorized users.
Which option would you use to monitor the queries being executed on the customer table?
A. Monitor the alert.log file
B. Enable server-side SQL tracing for user sessions
C. Enable fine-grained auditing for the customer table
D. Enable Fine-Grained Access Control (FGAC) for the customer table
E. Write a database trigger on the customer table on the SELECT event

Answer: D
Question 39 (OracleDB)
You work as a database administrator. Users in the PROD database complain about the slow
response of transactions. While investigating the reason you find that the transactions are waiting
for the undo segments to be available, and undo retention has been set to zero.
What would you do to overcome this problem?
A. Increase the undo return
B. Create more undo segments
C. Create another undo tablespace
D. Increase the size of the undo tablespace

Answer: D
Question 40 (OracleDB)
You are working on a test database where instance recovery takes a considerable amount of time.
How can reduce the recovery time? Choose two.
A. By multiplexing the control files
B. By multiplexing the redo log files
C. By decreasing the size of redo log files
D. By configuring mean time to recover (MTTR) to a lower value
E. By setting the UNDO_RETENTION parameter to a higher value

Answer: C, D
Question 41 (OracleDB)
You work as a database administrator. You find that reports are running for a long time in your
data warehousing applications. You suspect a lack of indexes is the reason for the performance
degradation.
Which advisory component would you refer to, in order to determine the appropriate indexes?
A. Memory Advisors
B. Segment Advisors
C. SQL Tuning and Access Advisors
D. Automated Workload Repository (AWR)
E. Automatic Database Diagnostic Monitor (ADDM)

Answer: C
Question 42 (OracleDB)
You work as a database administrator. Redo log files are not multiplexed in your database. Redo
log blocks are corrupted in group 2, and archiving has stopped. All the redo logs are filled and
database activity is halted. Database writer has written everything to disk.
Which command would you execute to proceed further?
A. RECOVER LOFIEL BLOCK GROUP 2;
B. ALTER DATABASE DROP LOGFILE GROUP 2;
C. ALTER DATABASE CLEAR LOGFILE GROUP 2;
D. ALTER DATABASE RECOVER LOGFILE GROUP 2;
E. ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2;

Answer: E
Question 43 (OracleDB)
You work as a database administrator. Users in the PROD database complain about the slow
response when accessing the database. In the Active Session Waiting: Configuration page you find
that the majority of the wait time is for the redo log buffer. Further investigation using the Run
Queue graph and operating system tools reveals that the redo log files are on the same disks, and
that the disk I/O for the redo log files is the reason for the performance degradation.
Which two actions would you take to gain performance? Choose two
A. Increase the size of redo log files
B. Increase the size of redo log buffer
C. Increase the number of redo log files
D. Place the redo log files on a separate disk
E. Decrease the number of redo log groups to two
F. Increase the number Log Writer (LGWR) process

Answer: B, D
Question 44 (OracleDB)
You work as a database administrator for Certkiller .com. One of the user sessions was terminated
abnormally in the middle of a transaction.
What does Oracle database do to recover it?
A. Uses undo data for roll forward
B. Uses Flashback Log for recovery
C. Uses online redo logs to roll back
D. Uses undo data to roll back the transaction
E. Uses Recovery Manager (RMAN) to roll back
F. Uses the System Monitor (SMON) background process to perform instance recovery

Answer: D
Question 45 (OracleDB)
You work as a database administrator. According to your backup strategy, you performed an
incremental level 0 backup of your database.
Which statement regarding this backup is true?
A. The backup is similar to image copy.
B. The backup contains all used data blocks.
C. The backup contains only unused data blocks.
D. The backup contains all data blocks changed since the last incremental level 1 backup.

Answer: B
Question 46 (OracleDB)
You work as a database administrator. You are using Recovery Manager (RMAN) for backup and
recovery of your database. You executed the delete command in RMAN to delete a backup of a
tablespace.
Which statement is true in this scenario?
A. The backup status will be marked expired in RMAN recovery catalog.
B. The backup status will be marked deleted in RMAN recovery catalog after you execute the
crosscheck command.
C. The backup will be deleted physically from the OS (Operating system)and the backup
information is removed from the recovery catalog
D. The backup status will be marked deleted and you must delete the backup file manually from
the OS (Operating system).
E. The backup status will be marked deleted and you must delete the backup file manually from
the OS (Operating system), if you are not using Oracle Managed Files (OMF).
Answer: C
Question 47 (OracleDB)
You work as a database administrator. Client connection requests are failing because the listener
is not responding. You want to forward client connect requests to another listener if one listener
is not responding.
How do you achieve this?
A. Enable instance failover
B. Configure shared server
C. Enable database failover
D. Enable connect-time failover
E. Enable Transparent Application Failover (TAF)

Answer: D
Question 48 (OracleDB)
In your database, you discovered that a tempfile in a locally managed temporary tablespace has
been deleted at the operating system level.
How would you recover the tablespace?
A. flash back the database
B. perform point-in-time recovery
C. perform a full database recovery
D. drop and re-create the tablespace
E. use Recovery Manager (RMAN) to recover the database

Answer: D
Question 49 (OracleDB)
In your database, you discovered that a tempfile in a locally managed temporary tablespace has
been deleted at the operating system level. How would you recover the tablespace?
A. flash back the database
B. perform point-in-time recovery
C. perform a full database recovery
D. drop and re-create the tablespace
E. use Recovery Manager (RMAN) to recover the database

Answer: D
Question 51 (OracleDB)
In your database, you discovered that a temp file in a locally managed temporary tablespace has
been deleted at the operating system level. How would you recover the tablespace?
A. flash back the database
B. perform point-in-time recovery
C. perform a full database recovery
D. drop and re-create the tablespace
E. use Recovery Manager (RMAN) to recover the database

Answer: D
Question 52 (OracleDB)
In your database, you discovered that a tempfile in a locally managed temporary tablespace has
been deleted at the operating system level.
How would you recover the tablespace?
A. flash back the database
B. perform point-in-time recovery
C. perform a full database recovery
D. drop and re-create the tablespace
E. use Recovery Manager (RMAN) to recover the database

Answer: D
Question 53 (OracleDB)
In your database, you discovered that a tempfile in a locally managed temporary tablespace has
been deleted at the operating system level. How would you recover the tablespace?
A. flash back the database
B. perform point-in-time recovery
C. perform a full database recovery
D. drop and re-create the tablespace
E. use Recovery Manager (RMAN) to recover the database

Answer: D
Question 54 (OracleDB)
In your database, UNDO_RETENTION has been set to 600 sec and UNDO tablespace is configured
for RETENTION GUARANTEE.
Which statement regarding RETENTION GUARANTEE is true?
A. Undo data is retained until the next full database backup.
B. No committed undo data will be overwritten for 10 minutes.
C. Committed undo data will be kept forever if not overwritten within 600 seconds.
D. Guarantees that requested undo information are available until the instance is shutdown.

Answer: B
Question 55 (OracleDB)
Which two database operations can be performed at the MOUNT stage of database startup?
(Choose two.)
A. renaming of control files
B. multiplexing of control files
C. dropping the database user
D. configuring the database in ARCHIVELOG mode
E. renaming of data files

Answer: D,E
Question 56 (OracleDB)
Which three statements are true about the stages of database startup? (Choose three.)
A. Data files and redo log files can be renamed at the MOUNT stage.
B. Control files are required to bring the database to the NOMOUNT stage.
C. Data files and online redo log files are checked for consistency while opening the database.
D. Data files and redo log files are made available to users at the OPEN stage.
E. Control files are read at the OPEN stage for the location of data files.

Answer: A,C,D
Question 57 (OracleDB)
You want to protect your database from single point of failure by multiplexing the control file.
Your database is started using SPFILE. You have to perform the following tasks:
1. Shut down the database instance.
2. Copy the control file to new location.
3. Configure the CONTROL_FILES parameter.
4. Restart the instance.
Select the correct order in which these tasks need to be performed.
A. 3,1,2,4
B. 2,3,1,4
C. 3,2,1,4
D. 1,2,3,4

Answer: A
Question 58 (OracleDB)
The ST_INFO master table has millions of rows that are updated very rarely. It has a STATE_CODE
column that contains the value for 25 states. The table is frequently queried on the STATE_CODE
column.
Which type of index would you suggest to improve the query performance?
A. B-tree
B. function based
C. reverse key
D. bitmap

Answer: D
Question 59 (OracleDB)
Which two statements about bigfile tablespaces are true? (Choose two.)
A. The bigfile tablespace can be converted to a smallfile tablespace.
B. The segment space management is automatic.
C. The bigfile tablespace have only one data file.
D. The database can have only one bigfile tablespace.
E. The extent management is dictionary managed.

Answer: B,C
Question 60 (OracleDB)
Which three statements are correct about temporary tables? (Choose three.)
A. Data manipulation language (DML) locks are never acquired on the data of temporary tables.
B. Indexes and views can be created on temporary tables.
C. The data inserted into a temporary table in a session is available to other sessions.
D. Temporary tables are always created in a user's temporary tablespace.
E. Both the data and the structure of temporary tables can be exported.

Answer: A,B,D

3. MSSQL
Question 61 (MSSQL)
When SQL server is installed, which of the following databases are created by default?
Options
A. Master
B. Model
C. Both a and b
D. Root

ANSWER : C
Question 62 (MSSQL)
Which of the following below are valid database states?
A. OFFLINE
B. SUSPECT
C. EMERGENCY
D. All of the above

ANSWER : D
Question 63 (MSSQL)
What is a MULTI_USER in sql server?
Options
E. Users that have the appropriate permissions to connect to the database are allowed
F. One user at a time is allowed to connect to the database
G. Only some members are allowed to access the database
H. Only the system admin and some members are allowed to access the database

ANSWER : A
Question 64 (MSSQL)
Which type of user is the default in sql server?
Options
A. SINGLE_USER
B. MULTI_USER
C. RESTRICTED_USER
D. ROOT_USER

ANSWER : B
Question 65 (MSSQL)
What is the syntax for creating new login on the SQL server?
Options
A. USE LOGIN login_id WITH PASSWORD password
B. CREATE LOGIN login_id WITH USE password
C. CREATE LOGIN login_id USE password
D. CREATE LOGIN login_id WITH PASSWORD password

CORRECT ANSWER : D
Question 66 (MSSQL)
CREATE DATABASE has how many mandatory parameters?
Options
A. 1
B. 2
C. 3
D. None

CORRECT ANSWER : A
Question 67 (MSSQL)
In which database state, the database is in single-user mode and may be repaired or restored.
Options
A. OFFLINE
B. SUSPECT
C. EMERGENCY
D. All of the above

CORRECT ANSWER : C
Question 68 (MSSQL)
Which operation, when performed on a database can throw an error
“The database could not be exclusively locked to perform the operation”
Options
A. DELETE database
B. DROP database
C. Rename database
D. DISABLE database

ANSWER : C
Question 69 (MSSQL)
What could you use captured trace files for?
A. Performance tuning
B. Workload testing
C. Upgrade testing
D. A,B
E. A,B,C

Answer: E
Question 70 (MSSQL)
If you discover after installation that you have used an incorrect or inappropriate service account
for SQL Server, which tool do you use to correct the account?
A. SQL Server Configuration Manager
B. SQL Server Management Studio
C. A,B

Answer: A
Question 71 (MSSQL)
Can transaction log backups be performed if a database is configured for simple recovery model?
A. Yes
B. No

Answer: B
Question 72 (MSSQL)
Can transaction log backups be performed if a database is configured for bulk-logged recovery
model?
A. Yes
B. No

Answer: A
Question 73 (MSSQL)
Does a full backup truncate the transaction log?
A. Yes
B. No

Answer: B
Question 74 (MSSQL)
Which backup types can be performed in simple recovery model?
A. Only Full database
B. Full database and differential backups
C. Full database, differential backups and transaction log backup

Answer: B
Question 75 (MSSQL)
Which is true about differential backup in MSSQL?
A. A differential backup performed after a copy backup will still contain all data changes
since the last full backup
B. A differential backup performed after a copy backup will still contain all data changes
since the last differential backup.

Answer: A
Question 76 (MSSQL)
Which tools might be useful for real time monitoring?
A. Performance Monitor
B. Activity Monitor
C. SSMS Reports
D. Dynamic Management Objects
E. A,B
F. A,B,C,D

Answer: F
Question 77 (MSSQL)
Which option would have less impact on a traced system?
A. SQL Trace with output to a file
B. SQL Profiler with output to a table

Answer: A
Question 78 (MSSQL)
If the last restore on a database was performed WITH NORECOVERY and no further transaction
logs are available, how can the database be brought online?
A. RESTORE LOG databasename WITH RECOVERY;
B. ALTER DATABASE databasename MULTI USER;

ANSWER : A

Question 79 (MSSQL)
What are the commands used in DCL?
1. GRANT
2. DENY
3. REVOKE
4. ALTER
A. 1,2,4
B. 1,3,4
C. 1,2,3
D. 1,2,3,4

ANSWER : C

4. Tuning
Question 80
Which of the following statements is/are true about Data Warehouse?
Options
A. Can be update by end user
B. Contains numerous naming conventions and formats
C. Organized around important subject areas
D. Contain only current data

CORRECT ANSWER : C
Question 81
What is a data mart?
Options
A. It is the collection of data in data warehouse
B. It is the access layer of the data warehouse environment that is used to get data out to
the users
C. It is the process of extracting patterns from large data sets
D. It is the process of extracting data

ANSWER : B
Question 82
DBAs are spending an enormous amount of time trying to identify and fix SQL statements they
are suspect have regressed as a result of system changes not documented by the Operations
Team. What would you implement to resolve this problem?
Options
A. Complete Oracle Enterprise Manager suite
B. SQL Performance Analyzer which helps predict and prevent SQL execution
performance problems caused by environment changes
C. SQL Plan Manager which uses system histograms to extrapolate future SQL execution
performance
D. Oracle Database Backup & Recovery
E. Oracle SQL Developer, which helps develop and test the SQL prior to putting it into
production

Answer: B
Question 83
Which three are controllable by a resource plan, when you are using the Oracle Database 12c
Multitenant option? (Choose three.)
A. CPU
B. concurrent sessions
C. SGA
D. network I/O
E. ability to use parallel server processes
F. use of SGA memory and ability to allocate PGA

Answer: A,B,E
Question 84
What are two reasons for which the Diagnostics and Tuning packs are essential to ongoing
maintenance of an Oracle Database? (Choose two.)
A. With Diagnostics and Tuning Packs installed, an Oracle database recovers easily from a
crash orcorruption.
B. Oracle Databases are constantly changing; more users, data added and deleted, varying
SQL atapplication level.
C. Diagnostics and Tuning Packs are needed to keep Oracle Database table and index
statistics current.
D. Inefficient “Bad” application SQL can be detected by Diagnostics Pack and then
optimized utilizing TuningPack SQL Profiles, even if it can't be changed at the application
end.
E. Diagnostics and Tuning packs are a prerequisite for a customer to license Oracle
Database EnterpriseEdition.
Answer: C,E
Question 85
Which two could Oracle Database Replay is used to validate performance?
A. applying workload to an application after an operating system patch
B. applying a workload from one database release to another database release
C. moving a workload from a single database instance and applying it to an Oracle Real
Application Cluster(RAC)
D. to check and compare if a specific set of SQL statements have regressed between two
different Database releases
E. to find the least-used SQL statement

Answer: A,C
Question 86
When implementing an Oracle Database Performance and Tuning solution, which are three
product technologies recommended for use as your base configuration?
A. SQL Tuning Pack for Oracle Database
B. Oracle Tuning Pack for Oracle Database
C. Oracle Performance Pack for Oracle Database
D. Oracle Diagnostics Pack for Oracle Database
E. Oracle Real Application Testing
F. Oracle SQL Developer
G. STATSPACK

Answer: B,D,E
Question 87
For which one would you use an index fast full scan to improve performance?
A. a query having all the columns of an index in the where clause
B. a query that does not need to access table rows
C. a query that needs to access table rows along with an index
D. a column in an index that is compressed

Answer: A
Question 88
Which two would automatically create an entry in V$SQL_MONITOR?
A. a parallelized SQL statement
B. any SQL statement run
C. any DML statement
D. a statement that consumes at least 1 second of CPU or I/O time.
E. a statement that consumes at least 5 second of CPU or I/O time.
F. any DDL statement

Answer: C,F
Question 89
When planning Oracle Database Architecture, which option can be used to reduce the number of
Oracle processes waiting in the Operating System run queue and to ensure that database CPU
load is healthy?
A. Exadata
B. Oracle Job Scheduler
C. DATABASE_MAXCPUS=YES
D. Oracle Database Resource Manager
E. DB_RAC_MAXCPU=YES
F. Oracle Grid Control

Answer: D
Question 90
Which are three use cases in which SQL Performance Analyzer can be used?
A. find and flashback explain plan anomalies
B. simulate Exadata on existing hardware
C. forecast impact of a system change on a SQL workload
D. compare performance of SQL statements before and after a change
E. debug SQL code syntax before and after a change
F. JSQL Heap Memory overflow testing
Answer: B,C,E
Question 91
In an Active Session History report, which response is correct?
A. 60 minutes of ASH data can be held in memory, so only 1 hour can be reported.
B. 60 minutes of ASH data can be held in memory, but more than 1 hour can be reported.
C. ASH data is available 24 hours because AWR snapshots refresh every night.
D. As ASH data is flushed every 60 seconds, you need to set up a snapshot with DBA_JOBS
for what you want to keep.

Answer: A
Question 92
You need to load SQL statements from a time period of optimal performance to compare against
a time period that performance was reported as poor. Which functionality would you use to
accomplish that task?
A. Optimizer Statistics Comparator
B. Dynamic Baseline Advisor
C. Automatic Workload Repository Baselines
D. SQL Tuning Sets
E. Database Replay

Answer: D
Question 93
What are three reasons an implementation of an Oracle Database Performance and Tuning
solution is superior to that of scripts or third-party tools?

A. It is a part of the database, which means no added installations, configurations, extra


user accounts, privilege granting, etc.
B. It eliminates the need to reverify compatibility, upgrade third-party tools, or rewrite
scripts after a patch or database upgrade.
C. It has the largest library of custom scripts and procedures and includes an assembly
builder to maintain them and add more.
D. Results come from the Oracle Database Optimizer and not rules or heuristics trying to
predict what the optimizer may do.
E. It is the most inexpensive tool in the market.

Answer: B,D,E
Question 94
After running SQL Performance Analyzer (SPA), you observe a few regressed SQL statements in
the SPA output. Identify the two actions that you would suggest for these regressed SQL
statements.
(Choose two.)
A. Running SQL Access Advisor
B. Adding them to SQL Plan Baseline
C. Submitting them to SQL Tuning Advisor
D. Running Automatic Database Diagnostic Monitor (ADDM)

ANSWER: BC
Question 95
You observed that some of the queries are performing poorly on the SALES_RECORDS table in
your database. On further investigation, you find that at the end of each day the contents of the
SALES_RECORDS table are transferred to the SALES table and deleted from the SALES_RECORDS
table. The deleted operations cause the table to be sparsely populated. You decided to use the
ALTER TABLE...SHRINK SPACE COMPACT command to shrink the table.
Why would you choose this method? (Choose three.)
A. because it can be used during peak hours
B. because it avoids unnecessary cursor invalidation
C. because it adjusts the high-water mark (HWM) immediately
D. because you have long-running queries that might span the shrink operation
E. because it does not allow any data manipulation language (DML) operations, thereby
making the shrink operation faster

ANSWER: A,B,D
Question 96
A batch workload that historically completed in the maintenance window between 10:00 PM and
midnight is currently showing poor performance and completing at 2 AM. To help in the diagnosis
of the performance degradation, the senior DBA in your organization asks you to execute the
awrddrpt.sql script to produce a Compare Periods report.
Which two statements are true about the report produced by this script? (Choose two.)
A. It is refreshed automatically based on the moving window baseline.
B. It compares details between any two selected time periods of the same duration.
C. It normalizes the statistics by the amount of time spent on the database for each time
period.
D. It compares details between two consecutive time periods of the same or different
durations and is refreshed every 60 minutes.

ANSWER: B,C
Question 97
Identify two correct statements about the Active Session History (ASH) data. (Choose two.)
A. A part of SGA memory is used to store ASH data as rolling buffer.
B. The ASH data can be analyzed between any two small time intervals.
C. All ASH data in memory are flushed to disk by MMON in every 3 seconds.
D. All ASH data in memory are flushed to disk by MMNL process whenever the buffer is
full.

ANSWER: A,B
Question 98
A user in a session executed the following SQL statement to set the optimizer mode:
ALTER SESSION SET OPTIMIZER_MODE = ALL_ROWS
What impact would it have on the goal of the optimizer for that session? (Choose all that apply.)
A. Statement level OPTIMIZER_MODE hints take precedence over the session-level
setting.
B. The OPTIMIZER_MODE parameter set at instance level takes precedence over the
session-level value.
C. The optimizer uses a cost-based approach, regardless of the presence of statistics; it
optimizes with a goal of best response time.
D. The optimizer uses a cost-based approach for all SQL statements in the session,
regardless of the presence of statistics; it optimizes with a goal of best throughput.

ANSWER: A,D
Question 99
You are working on an online transaction processing (OLTP) system. By day most of the
application users perform queries accessing the most recently added or modified rows. The
applications have most of the queries based on multiple tables. But at night, some batch
processing is also done.
Which two actions would you recommend to choose a goal for the optimizer based on the
needs of your application? (Choose two.)
A. setting the OPTIMIZER_MODE parameter to ALL_ROWS at the instance level
B. setting the OPTIMIZER_MODE parameter to FIRST_ROWS_n at the instance level
C. asking the developer to add a hint /*ALL_ROWS*/ in the long-running batch
processing queries
D. asking the developer to add a hint /*FIRST_ROWS_n*/ in the long-running batch
processing queries

ANSWER: B,C
Question 100
Which three factors influence the optimizer's behaviour while choosing an optimization approach
and goal for a SQL statement? (Choose three.)
A. parsing of a SQL statement
B. operating system (OS) statistics
C. object statistics in the data dictionary
D. the OPTIMIZER_MODE initialization parameter
E. optimizer SQL hints for changing the query optimizer goal

ANSWER: C,D,E

S-ar putea să vă placă și