Q1
True / FalseIn ORACLE, an index can improve the performance of SELECT queries.
Indexes can significantly improve the performance of SELECT queries by allowing the database to quickly locate rows.
Q2
True / FalseIn ORACLE, an index is automatically created on the Primary Key of a table.
When a Primary Key is defined on a table, ORACLE automatically creates a unique index on the Primary Key column(s).
Q3
True / FalseIn ORACLE, creating an index on a column automatically enforces uniqueness.
Creating a standard index does not enforce uniqueness. To enforce uniqueness, a unique index must be created.
Q4
True / FalseIn ORACLE, composite indexes can be created on multiple columns.
Composite indexes can be created on two or more columns to improve the performance of queries that filter on multiple columns.
Q5
True / FalseIn ORACLE, bitmap indexes are efficient for columns with low cardinality.
Bitmap indexes are particularly efficient for columns with low cardinality, such as gender or status fields, where the number of distinct values is small.
Q6
True / FalseIn ORACLE, indexes are automatically used in every query that references the indexed columns.
The ORACLE optimizer decides whether to use an index based on various factors, including the structure of the query and the distribution of data.
Q7
True / FalseIn ORACLE, an index can become fragmented and require rebuilding to maintain performance.
Indexes can become fragmented over time, especially with frequent insertions, deletions, and updates, and may require rebuilding to maintain optimal performance.
Q8
True / FalseIn ORACLE, the use of indexes always results in faster query performance.
While indexes generally improve query performance, there are cases where they can slow down DML operations (INSERT, UPDATE, DELETE) due to the overhead of maintaining the index.
Q9
True / FalseIn ORACLE, function-based indexes can be created to index expressions or functions.
Function-based indexes can be created on expressions or functions, allowing queries that use these expressions to benefit from indexing.
Q10
True / FalseIn ORACLE, a reverse key index reverses the bytes of each column indexed to improve performance in certain scenarios.
A reverse key index reverses the bytes of each column indexed to help evenly distribute insertions across all leaf blocks, which can improve performance for certain types of workloads, such as those with sequential key values.
Q20
Multiple ChoiceWhich SQL code snippet demonstrates certification-level creation of a composite index in Oracle?
SQL Code
CREATE INDEX idx_emp_composite
ON employees (last_name, first_name, department_id);
Options A, B, and C correctly demonstrate creating a composite index on the `last_name`, `first_name`, and `department_id` columns. Option D is incorrect because it only creates an index on a single column.