1Z0-062 · Question #205
Which three factors influences the optimizer's choice of an execution plan?
The correct answer is A. Cardinality estimates B. The OPTIMIZER_MODE initialization parameter E. Object statistics in the data dictionary. The Oracle Cost-Based Optimizer selects execution plans based on object statistics, cardinality estimates, and the OPTIMIZER_MODE parameter, not connection type or plan enforcement mechanisms.
Question
Which three factors influences the optimizer's choice of an execution plan?
Options
- ACardinality estimates
- BThe OPTIMIZER_MODE initialization parameter
- CFixed baselines
- DType of connection used to connect to database instance
- EObject statistics in the data dictionary
How the community answered
(36 responses)- A86% (31)
- C11% (4)
- D3% (1)
Why each option
The Oracle Cost-Based Optimizer selects execution plans based on object statistics, cardinality estimates, and the OPTIMIZER_MODE parameter, not connection type or plan enforcement mechanisms.
Cardinality estimates - the expected number of rows returned at each step - are a core input to the CBO cost formula, directly determining which join methods and access paths are selected.
The OPTIMIZER_MODE parameter (ALL_ROWS, FIRST_ROWS_n) sets the optimization goal and directly influences whether the optimizer favors throughput or response time when comparing candidate plan costs.
Fixed SQL plan baselines mandate the use of a specific plan rather than influencing the optimizer's cost-based selection; they bypass the optimizer's choice rather than serving as a factor in it.
The type of database connection (dedicated server, shared server, etc.) is a session configuration detail and has no effect on the optimizer's cost calculations or plan selection.
Object statistics stored in the data dictionary (row counts, column cardinality, histograms, index clustering factor) are the primary data the CBO uses to estimate the cost of each candidate execution plan.
Concept tested: Oracle Cost-Based Optimizer execution plan selection factors
Source: https://docs.oracle.com/database/121/TGSQL/tgsql_optcncpt.htm
Topics
Community Discussion
No community discussion yet for this question.