Q1
True / FalseIn Oracle, cardinality refers to the uniqueness of data values in a column.
Cardinality refers to the number of unique values in a column. High cardinality means a column has many unique values, while low cardinality means it has few unique values.
Q2
True / FalseHigh cardinality indicates that a column has a large number of duplicate values.
High cardinality means a column has many unique values, not many duplicates. Low cardinality would indicate many duplicates.
Q3
True / FalseIn Oracle, cardinality is an important factor in query optimization.
Cardinality is used by the Oracle optimizer to determine the most efficient way to execute a query.
Q4
True / FalseOracle uses statistics to estimate the cardinality of columns in a table.
Oracle gathers and uses statistics about the data distribution and cardinality of columns to make informed decisions about query optimization.
Q5
True / FalseThe DBMS_STATS package in Oracle is used to collect statistics, including cardinality, for the optimizer.
The DBMS_STATS package is used to gather statistics on tables, indexes, and columns, which includes information about cardinality.
Q6
True / FalseIn Oracle, low cardinality columns are often good candidates for bitmap indexes.
Bitmap indexes are typically more efficient for columns with low cardinality, where there are few unique values.
Q7
True / FalseIn Oracle, the estimated cardinality can be viewed in the execution plan of a query.
The execution plan shows the estimated cardinality for each step, helping to understand how Oracle plans to execute the query.
Q8
True / FalseIn Oracle, histograms can be used to improve cardinality estimates for columns with skewed data distributions.
Histograms provide detailed information about the distribution of values in a column, helping Oracle to make better cardinality estimates.
Q9
True / FalseIn Oracle, a full table scan always has higher cardinality than an indexed access path.
Cardinality refers to the number of unique values in a result set, not the method of accessing data. A full table scan may have the same cardinality as an indexed access path depending on the query.
Q10
True / FalseThe Oracle Certified Professional (OCP) exam includes knowledge on understanding and interpreting cardinality, its impact on query optimization, and how to gather accurate statistics using Oracle tools.
The OCP certification covers advanced topics, including understanding and interpreting cardinality, its impact on query performance, and the use of tools like DBMS_STATS to gather accurate statistics.
Q22
Multiple ChoiceSelect the correct SQL statements to enforce cardinality in a many-to-many relationship using a junction table in Oracle.
A many-to-many relationship in Oracle is typically implemented using a junction table that contains foreign keys referencing the primary keys of the two related tables. This ensures proper cardinality.
Q27
Multiple ChoiceDetermine the SQL statements that correctly handle cardinality when performing a complex query involving multiple joins in Oracle.
When performing complex queries with multiple joins, it's crucial to ensure that the cardinality is respected, so the resulting data reflects the correct relationships between the tables.