exam questions

Exam 1z0-084 All Questions

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

Exam 1z0-084 topic 1 question 12 discussion

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

You manage a 19c database with default optimizer settings.
This statement is used extensively as subquery in the application queries:
SELECT city_id FROM sh2.sales WHERE city_id=:B1
You notice the performance of these queries is often poor and, therefore, execute:
SELECT city_id,COUNT(*) FROM sh2.sales GROUP BY city_id;
Examine the results:

There is no index on the CITY_ID column.
Which two options improve the performance? (Choose two.)

  • A. Generate frequency histograms on the CITY_ID column.
  • B. Create an index on the CITY_ID column.
  • C. Use a SQL Profile to enforce the appropriate plan.
  • D. Force the subquery to use dynamic sampling.
  • E. Activate the adaptive plans.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
cujar2003
3 months ago
Selected Answer: AB
HISTOGRAMS and Create Index
upvoted 2 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