Oracle 1z0-054 Exam Practice Questions (P. 3)
- Full Access (192 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
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.)
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.)
- AStatement level OPTIMIZER_MODE hints take precedence over the session-level setting.
- BThe OPTIMIZER_MODE parameter set at instance level takes precedence over the session-level value.
- CThe optimizer uses a cost-based approach, regardless of the presence of statistics; it optimizes with a goal of best response time.
- DThe 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
Correct Answer:
AD
AD
send
light_mode
delete
Question #12
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.)
- Asetting the OPTIMIZER_MODE parameter to ALL_ROWS at the instance level
- Bsetting the OPTIMIZER_MODE parameter to FIRST_ROWS_n at the instance level
- Casking the developer to add a hint /*ALL_ROWS*/ in the long-running batch processing queries
- Dasking the developer to add a hint /*FIRST_ROWS_n*/ in the long-running batch processing queries
Correct Answer:
BC
BC
send
light_mode
delete
Question #13
Which three factors influence the optimizer's behavior while choosing an optimization approach and goal for a SQL statement? (Choose three.)
- Aparsing of a SQL statement
- Boperating system (OS) statistics
- Cobject statistics in the data dictionary
- Dthe OPTIMIZER_MODE initialization parameter
- Eoptimizer SQL hints for changing the query optimizer goal
Correct Answer:
CDE
CDE
send
light_mode
delete
Question #14
Examine the initialization parameter values for the instance given below:
NAME TYPE VALUE -
------------------------------------ ----------- ------------------ optimizer_capture_sql_plan_baselines boolean FALSE optimizer_dynamic_sampling integer 2 optimizer_features_enable string 11.1.0.6 optimizer_index_caching integer 0 optimizer_index_cost_adj integer 100 optimizer_mode string ALL_ROWS db_file_multiblock_read_count integer 64
The index created on the column used in the WHERE clause of the query. You notice that the query is not using the index. Instead of an index scan, a full table scan is used.
View the Exhibit and examine the autotrace output for a query.

What could be the reason for it? (Choose all that apply.)
NAME TYPE VALUE -
------------------------------------ ----------- ------------------ optimizer_capture_sql_plan_baselines boolean FALSE optimizer_dynamic_sampling integer 2 optimizer_features_enable string 11.1.0.6 optimizer_index_caching integer 0 optimizer_index_cost_adj integer 100 optimizer_mode string ALL_ROWS db_file_multiblock_read_count integer 64
The index created on the column used in the WHERE clause of the query. You notice that the query is not using the index. Instead of an index scan, a full table scan is used.
View the Exhibit and examine the autotrace output for a query.

What could be the reason for it? (Choose all that apply.)
- AThe OPTIMIZER_INDEX_COST_ADJ initialization parameter has a low value.
- BThe DB_FILE_MULTIBLOCK_READ_COUNT initialization parameter has a low value.
- CThe statistics for the table and all the indexes associated with the table are not current.
- DThe table has less than DB_FILE_MULTIBLOCK_READ_COUNT blocks under the high-water mark.
Correct Answer:
CD
CD
send
light_mode
delete
Question #15
Examine the initialization parameter values for the instance given below:
NAME TYPE VALUE -
------------------------------------ ----------- ------------------ optimizer_capture_sql_plan_baselines boolean FALSE optimizer_dynamic_sampling integer 2 optimizer_features_enable string 11.1.0.6 optimizer_index_caching integer 0 optimizer_index_cost_adj integer 100 optimizer_mode string ALL_ROWS db_file_multiblock_read_count integer 64
You notice that the one of the queries is using a full table scan (view Exhibit1) instead of index unique scan (view Exhibit2). The index is present on the column that is accessed in the WHERE clause of the query. The cost for a full table scan is more than that for an index unique scan.


Why would the optimizer choose full table scan over index unique scan? (Choose all that apply.)
NAME TYPE VALUE -
------------------------------------ ----------- ------------------ optimizer_capture_sql_plan_baselines boolean FALSE optimizer_dynamic_sampling integer 2 optimizer_features_enable string 11.1.0.6 optimizer_index_caching integer 0 optimizer_index_cost_adj integer 100 optimizer_mode string ALL_ROWS db_file_multiblock_read_count integer 64
You notice that the one of the queries is using a full table scan (view Exhibit1) instead of index unique scan (view Exhibit2). The index is present on the column that is accessed in the WHERE clause of the query. The cost for a full table scan is more than that for an index unique scan.


Why would the optimizer choose full table scan over index unique scan? (Choose all that apply.)
- AThe OPTIMIZER_INDEX_COST_ADJ initialization parameter is set to a low value.
- BThe OPTIMIZER_INDEX_COST_ADJ initialization parameter is set to a high value.
- CThe DB_FILE_MULTIBLOCK_READ_COUNT initialization parameter is set to a low value.
- DThe statistics for the table and all the indexes associated with the table are not current.
Correct Answer:
BD
BD
send
light_mode
delete
All Pages