exam questions

Exam 1z0-062 All Questions

View all questions & answers for the 1z0-062 exam

Exam 1z0-062 topic 1 question 101 discussion

Actual exam question from Oracle's 1z0-062
Question #: 101
Topic #: 1
[All 1z0-062 Questions]

Examine the parameters for your database instance:

Which three statements are true about the process of automatic optimization by using cardinality feedback? (Choose three.)

  • A. The optimizer automatically changes a plan during subsequent execution of a SQL statement if there is a huge difference in optimizer estimates and execution statistics.
  • B. The optimizer can re optimize a query only once using cardinality feedback.
  • C. The optimizer enables monitoring for cardinality feedback after the first execution of a query.
  • D. The optimizer does not monitor cardinality feedback if dynamic sampling and multicolumn statistics are enabled.
  • E. After the optimizer identifies a query as a re-optimization candidate, statistics collected by the collectors are submitted to the optimizer.
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️
C: During the first execution of a SQL statement, an execution plan is generated as usual.
D: if multi-column statistics are not present for the relevant combination of columns, the optimizer can fall back on cardinality feedback.
(not B)* Cardinality feedback. This feature, enabled by default in 11.2, is intended to improve plans for repeated executions. optimizer_dynamic_sampling optimizer_features_enable
* dynamic sampling or multi-column statistics allow the optimizer to more accurately estimate selectivity of conjunctive predicates.
Note:
* OPTIMIZER_DYNAMIC_SAMPLING controls the level of dynamic sampling performed by the optimizer.

Range of values. 0 to 10 -
* Cardinality feedback was introduced in Oracle Database 11gR2. The purpose of this feature is to automatically improve plans for queries that are executed repeatedly, for which the optimizer does not estimate cardinalities in the plan properly. The optimizer may misestimate cardinalities for a variety of reasons, such as missing or inaccurate statistics, or complex predicates. Whatever the reason for the misestimate, cardinality feedback may be able to help.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
luizyto
2 years, 1 month ago
Selected Answer: ACD
In some cases, there are other techniques available to improve estimation; for instance, dynamic sampling or multi-column statistics allow the optimizer to more accurately estimate selectivity of conjunctive predicates. In cases where these techniques apply, statistics feedback is not enabled.
upvoted 1 times
...
luizyto
2 years, 1 month ago
Selected Answer: ACE
In some cases, there are other techniques available to improve estimation; for instance, dynamic sampling or multi-column statistics allow the optimizer to more accurately estimate selectivity of conjunctive predicates. In cases where these techniques apply, statistics feedback is not enabled.
upvoted 1 times
...
Ray520
2 years, 10 months ago
D is correct: cardinality feedback is called Statistics feedback in 12c. "In some cases, there are other techniques available to improve estimation; for instance, dynamic sampling or multi-column statistics allow the optimizer to more accurately estimate selectivity of conjunctive predicates. In cases where these techniques apply, statistics feedback is not enabled. However, if multi-column statistics are not present for the relevant combination of columns, the optimizer can fall back on statistics feedback." Reference: https://blogs.oracle.com/optimizer/post/statistics-feedback-formerly-cardinality-feedback
upvoted 3 times
...
JMAN1
3 years ago
Selected Answer: ACE
So given answer D is wrong. E is correct. A C E. Any comment please.
upvoted 1 times
...
JMAN1
3 years ago
I Think A C E. CF(cardinality feedback) is helping Dynamic sampling. In order to disable CF. You need to set _optimizer_use_feedback" to false at a session or statement level. So given answer D is wrong. E is correct.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago