nerdexam
Oracle

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.

Managing Performance

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)
  • A
    86% (31)
  • C
    11% (4)
  • D
    3% (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.

ACardinality estimatesCorrect

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.

BThe OPTIMIZER_MODE initialization parameterCorrect

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.

CFixed baselines

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.

DType of connection used to connect to database instance

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.

EObject statistics in the data dictionaryCorrect

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

#optimizer#execution plan#cardinality estimates#object statistics

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice