Courseiva

OCP · topic practice

Performance Tuning And Diagnostics practice questions

This domain covers Oracle 23ai performance tuning and diagnostics: AWR, ADDM, ASH, SQL Tuning Advisor, SQL Plan Management, and real-time SQL monitoring. Questions test whether you can identify the correct tool or report for a symptom, interpret optimizer and execution-plan behavior, and choose the right remediation for regressions and stale plans.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Performance Tuning And Diagnostics

What the exam tests

What to know about Performance Tuning And Diagnostics

Be able to match a performance symptom to the correct Oracle tool: AWR/ADDM for workload analysis, ASH for active sessions, SQL Tuning Advisor for statement tuning, and SQL Plan Management to lock or evolve execution plans. The key is choosing the right mechanism to stop plan regressions.

Selecting SQL Plan Management (SQL plan baselines) to prevent or repair execution plan regressions after upgrades

Using AWR reports and ADDM findings to locate top SQL by elapsed time and DB time

Applying SQL Tuning Advisor and SQL Access Advisor to tune statements and indexes

Reading ASH and Real-Time SQL Monitoring to diagnose active sessions and long-running SQL

Watch out for

Common Performance Tuning And Diagnostics exam traps

  • ▸Confusing SQL plan baselines with SQL profiles: baselines lock a known plan, while profiles supply optimizer statistics adjustments.
  • ▸Assuming AWR reports show only current activity; they capture snapshots and may not reflect the live problem window.
  • ▸Believing a plan baseline guarantees the plan is optimal rather than merely accepted and reproducible.

Practice set

Performance Tuning And Diagnostics questions

20 questions · select your answer, then reveal the explanation

You notice that Automatic SQL Plan Management is not evolving your plans as expected. What is the most likely cause?

An application query is failing to use a newly created index. You suspect the optimizer statistics are inaccurate. Which package should you use to gather statistics for this specific table?

Which component of the Oracle Database uses the Automatic Diagnostic Repository (ADR) to store critical errors and performance incidents?

You want to capture a specific set of SQL statements and their execution plans to baseline them. Which package allows you to capture plans from the cursor cache?

An application is experiencing high library cache lock contention. Which view is best suited to investigate this specific wait event?

You need to determine why a particular session is experiencing high 'db file sequential read' waits. Which view provides the most detailed information about the specific blocks being read?

You are using SQL Plan Management. What happens when a new execution plan is discovered for a SQL statement that already has a baseline?

An ADDM report suggests increasing the library cache size. What is the most appropriate action?

You have a query that is using a nested loops join, but it should be using a hash join. The optimizer statistics are correct. How can you force a hash join without changing the SQL text?

Which advisor should you run to determine if your SGA and PGA memory settings are optimal?

Which THREE pieces of information can be found in a SQL Tuning Advisor report?

A critical application query is experiencing performance issues due to stale optimizer statistics. You want to use the Optimizer Statistics Advisor to identify the root cause. Which action must you perform to trigger the advisor?

Which THREE of the following are valid components or features of the Automatic SQL Tuning process in Oracle 23ai?

You are the DBA for an Oracle Database 23ai production system. A critical reporting query has started performing poorly. You suspect the issue is related to the optimizer's choice of execution plan. You want to see the actual execution plan that was used for the most recent execution of this specific SQL statement, including the runtime statistics for each operation. Which of the following would you use to achieve this?

A critical reporting query against a partitioned SALES table suddenly begins performing a full table scan instead of partition pruning. You run DBMS_STATS.GATHER_TABLE_STATS with the default settings, but the optimizer still fails to prune. Upon investigation, you discover that the query's WHERE clause uses a bind variable on the partition key. Which optimizer feature should you enable to allow partition pruning with this bind variable?

You are managing an Oracle Database 23ai instance that experiences intermittent performance spikes. You have enabled the Automatic Workload Repository (AWR) and notice that a particular SQL statement has a high number of 'buffer busy waits'. You want to determine the specific segment and block type that is causing the contention. Which of the following would you query to find this information?

A developer reports that a query using a function-based index is not being used by the optimizer, despite the index being valid and the function matching the WHERE clause. The function is deterministic but has a high cost. You suspect the optimizer is not considering the index because of missing statistics. Which action should you take to provide the optimizer with statistics for the function-based index?

You are the lead DBA for an Oracle Database 23ai production system. A critical query that joins a large partitioned sales table with a small lookup table is sometimes fast, but occasionally takes minutes to complete. AWR reports show the query's plan uses a NESTED LOOPS join with an INDEX RANGE SCAN on the lookup table, but the number of rows returned from the sales table varies significantly depending on the bind variable values. Which diagnostic approach will best help you understand why the optimizer sometimes produces a suboptimal plan for this query?

You are an Oracle Database 23ai administrator. A critical OLTP application has been experiencing intermittent slowdowns. You suspect that the shared pool is undersized, leading to excessive parsing and contention. Which two actions should you take to diagnose and confirm shared pool contention? (Choose two.)

You are an Oracle Database 23ai administrator. Users report that a batch job that runs a complex query with multiple joins is taking longer than usual. You examine the execution plan and notice that the optimizer has chosen a HASH JOIN for a join between two large tables, but the join condition is highly selective. You suspect that the optimizer's cardinality estimates are incorrect. Which action should you take to confirm your suspicion?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Performance Tuning And Diagnostics sessions

Start a Performance Tuning And Diagnostics only practice session

Every question in these sessions is drawn from the Performance Tuning And Diagnostics domain — nothing else.

Related practice questions

Related OCP topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the OCP exam test about Performance Tuning And Diagnostics?
Be able to match a performance symptom to the correct Oracle tool: AWR/ADDM for workload analysis, ASH for active sessions, SQL Tuning Advisor for statement tuning, and SQL Plan Management to lock or evolve execution plans. The key is choosing the right mechanism to stop plan regressions.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Performance Tuning And Diagnostics questions in a focused session?
Yes — the session launcher on this page draws every question from the Performance Tuning And Diagnostics domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other OCP topics?
Use the topic links above to move to related areas, or go back to the OCP question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the OCP exam covers. They are not copied from any real exam or dump site.