Courseiva

CCNA Performance Tuning And Diagnostics Questions

62 questions · Performance Tuning And Diagnostics · All types, answers revealed

1
MCQmedium

When reviewing an AWR report, you notice a high value for 'db time'. What does this indicate?

A.The time spent on disk I/O only
B.The time spent on instance background processes
C.The time the database was open
D.The total time spent by sessions in the database
AnswerD

DB Time is the sum of CPU and wait time for all user sessions.

Why this answer

DB Time represents the total time spent by foreground processes in the database, indicating overall load.

2
Multi-Selecthard

Which THREE factors influence the optimizer's choice of an execution plan?

Select 3 answers
A.Optimizer statistics
B.Indexes on the queried columns
C.The current time of day
D.Initialization parameters
E.User password strength
AnswersA, B, D

Statistics are the foundation of cost estimation.

Why this answer

The optimizer considers statistics, system parameters, and schema objects.

3
Multi-Selectmedium

Which TWO views can be used to monitor current session performance?

Select 2 answers
A.V$CONTROLFILE
B.V$SESSION_WAIT
C.DBA_TABLES
D.DBA_USERS
E.V$SESSION
AnswersB, E

Gives session wait event data.

Why this answer

V$SESSION and V$SESSION_WAIT are standard tools for real-time monitoring.

4
MCQmedium

When running the SQL Tuning Advisor, what does the 'Accept' action do?

A.It permanently changes the SQL code
B.It implements the recommended SQL Profile
C.It deletes the SQL from the cache
D.It updates the global statistics
AnswerB

Accepting applies the profile to influence the optimizer.

Why this answer

Accepting a recommendation (like a profile) implements it in the database for future executions.

5
MCQeasy

Which background process is responsible for capturing AWR snapshots?

A.PMON
B.MMNL
C.DBWn
D.LGWR
AnswerB

MMNL performs background tasks, including AWR snapshotting.

Why this answer

The MMNL (Manageability Monitor) process is responsible for AWR snapshots.

6
MCQeasy

Which of these is the most effective way to address performance issues caused by suboptimal plans?

A.Dropping and recreating the database
B.Increasing the number of CPUs
C.SQL Plan Management
D.Disabling indexes
AnswerC

SPM enforces stable, optimal execution plans.

Why this answer

SQL Plan Management is specifically designed to manage and enforce optimal plans.

7
MCQeasy

Which parameter controls the frequency of AWR snapshot collection?

A.PROCESSES
B.DB_CACHE_SIZE
C.STATISTICS_LEVEL
D.OPTIMIZER_MODE
AnswerC

Setting this to TYPICAL or ALL enables AWR snapshots.

Why this answer

STATISTICS_LEVEL controls the automatic collection of AWR snapshots.

8
Multi-Selecthard

When using the SQL Tuning Advisor to analyze a SQL statement, which THREE types of recommendations can it provide to improve performance?

Select 3 answers
A.Creating a SQL profile
B.Restructuring the SQL query syntax
C.Renaming database tables
D.Creating a new index
E.Updating optimizer statistics
AnswersA, D, E

SQL profiles provide extra information to the optimizer to produce better plans.

Why this answer

The SQL Tuning Advisor can suggest creating new indexes, refreshing optimizer statistics, and creating SQL profiles to alter the execution plan.

9
Multi-Selectmedium

Which TWO components are essential for the operation of the Automatic Database Diagnostic Monitor (ADDM)?

Select 2 answers
A.SQL Plan Baselines
B.Data Pump files
C.AWR snapshots
D.ADDM Analysis Task
E.Listener control
AnswersC, D

ADDM requires this historical data.

Why this answer

ADDM needs AWR snapshots and the ADDM analysis task.

10
Multi-Selecthard

Which THREE items are required for the Automatic SQL Plan Management to effectively stabilize plans?

Select 3 answers
A.SQL Plan Baselines
B.An external monitoring server
C.SQL Plan History
D.A manual index rebuild
E.Automatic Evolve Task
AnswersA, C, E

The core component for plan storage.

Why this answer

SPM requires SQL baselines, a plan history, and an evolution process.

11
Multi-Selecthard

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

Select 3 answers
A.Instance parameter history
B.Index recommendations
C.Database backup schedules
D.SQL Profile recommendations
E.Statistics change recommendations
AnswersB, D, E

Advisor analyzes access paths.

Why this answer

The report includes findings, recommendations, and execution statistics.

12
MCQhard

You have a high volume of parse time in your database. What could be the cause?

A.High memory usage
B.Using literals instead of bind variables
C.Too many indexes
D.Missing statistics
AnswerB

This causes excessive hard parses for each new literal value.

Why this answer

Hard parsing occurs when SQL is not shared, often due to literals instead of bind variables.

13
MCQmedium

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

A.It is stored as an unaccepted plan
B.It is ignored by the optimizer
C.It is automatically accepted
D.It replaces the existing baseline
AnswerA

New plans are kept as unaccepted until verified.

Why this answer

The new plan is marked as 'accepted' only if it is proven to be better than the existing plan; otherwise, it is stored as 'unaccepted'.

14
MCQmedium

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?

A.DBMS_SCHEDULER
B.DBMS_SQLTUNE
C.DBMS_STATS
D.DBMS_SPM
AnswerD

This package manages SQL Plan Baselines.

Why this answer

DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE is the standard way to load plans into the baseline.

15
MCQeasy

What is the purpose of the 'ASH' report?

A.To backup the database
B.To analyze short-term performance
C.To analyze long-term trends
D.To manage user accounts
AnswerB

ASH is designed for recent, high-frequency snapshots.

Why this answer

ASH reports analyze transient problems by looking at recent active session history.

16
MCQhard

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

A.SQL Plan Baselines are full
B.Statistics are gathered manually
C.The database is in NOARCHIVELOG mode
D.The SPM Evolve Task is disabled
AnswerD

If the task is disabled, the system will not automatically evolve plans.

Why this answer

The SYS_AUTO_SPM_EVOLVE_TASK must be enabled and have a sufficient maintenance window to run.

17
MCQhard

You have a query that is being incorrectly optimized because the statistics are not representative of the actual data distribution. What is the best method to handle this without changing the global statistics?

A.Run the SQL Tuning Advisor
B.Modify the init.ora parameter
C.Use DBMS_STATS.SET_TABLE_PREFS
D.Create a SQL Plan Baseline
AnswerC

Preferences allow granular control over how stats are gathered for a specific object.

Why this answer

Table-specific statistics collection with specific parameters or using preference settings can help.

18
MCQhard

Which feature allows you to capture SQL statements from the cursor cache and load them into a SQL Tuning Set?

A.DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE
B.DBMS_STATS.GATHER_SYSTEM_STATS
C.DBMS_WORKLOAD_REPOSITORY.EXTRACT_SQL
D.DBMS_SQLTUNE.CAPTURE_CURSOR_CACHE_SQLSET
AnswerD

This procedure extracts SQL from the library cache.

Why this answer

DBMS_SQLTUNE.CAPTURE_CURSOR_CACHE_SQLSET is the procedure used to pull queries from memory.

19
MCQmedium

What does the 'Elapsed Time' in a SQL statement represent?

A.The time spent on CPU only
B.The total duration of the SQL execution
C.The time since the SQL was parsed
D.The time spent waiting for I/O
AnswerB

Elapsed time includes both CPU and wait time.

Why this answer

It is the total wall-clock time spent executing the statement from start to finish.

20
MCQmedium

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

A.SQL Access Advisor
B.SQL Tuning Advisor
C.Memory Advisor
D.ADDM
AnswerC

Memory Advisor provides tuning suggestions for SGA/PGA.

Why this answer

Memory Advisor identifies if memory pools are undersized or oversized.

21
MCQmedium

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

A.Manually set SHARED_POOL_SIZE
B.Drop and recreate the library cache
C.Rebuild the database
D.Increase SGA_TARGET
AnswerD

Increasing SGA_TARGET allows the automatic shared memory manager to allocate more to the shared pool.

Why this answer

Oracle 23ai manages SGA memory automatically; adjusting the SGA_TARGET or SGA_MAX_SIZE is the primary way to influence this.

22
MCQmedium

A production database experiences a sudden performance degradation. You want to analyze the last 10 minutes of activity to pinpoint blocked sessions. Which approach is best?

A.Generate an AWR report for the last hour
B.Query V$ACTIVE_SESSION_HISTORY
C.Check the Alert Log for ORA errors
D.Run the SQL Access Advisor
AnswerB

V$ACTIVE_SESSION_HISTORY captures session activity in memory for recent performance analysis.

Why this answer

ASH data is stored in memory and is the primary source for recent, short-term performance diagnostics.

23
Multi-Selectmedium

Which THREE of the following are components of the Oracle performance tuning lifecycle?

Select 3 answers
A.Implementing a solution
B.Deleting all users
C.Identifying the bottleneck
D.Reinstalling the database
E.Analyzing the cause
AnswersA, C, E

Third step is implementation.

Why this answer

Tuning is an iterative process involving identification, analysis, and implementation.

24
MCQhard

You need to capture a specific set of SQL statements that are causing high CPU usage for later tuning. Which tool allows you to group these statements and transport them across different database environments?

A.SQL Tuning Sets
B.SQL Plan Baselines
C.ADDM Findings
D.AWR Snapshots
AnswerA

SQL Tuning Sets provide the functionality to capture and export groups of SQL statements for tuning.

Why this answer

SQL Tuning Sets are specifically designed to capture, store, and transport SQL statements along with their execution context and statistics.

25
MCQeasy

What does the 'SQL ID' in an Oracle database represent?

A.A table name
B.A user ID
C.An execution plan version
D.A unique identifier for a SQL statement
AnswerD

SQL IDs allow tracking of specific statements.

Why this answer

The SQL ID is a unique hash of the SQL text, used to identify statements in the library cache.

26
MCQhard

You notice that a specific query is performing very slowly due to excessive 'direct path read' waits. What is the most likely cause?

A.The query is performing a full table scan
B.The library cache is too small
C.The PGA is too large
D.The redo logs are too small
AnswerA

Full table scans bypass the buffer cache, causing direct path reads.

Why this answer

Direct path reads often occur during full table scans when the data is not in the buffer cache.

27
MCQhard

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?

A.V$SESSION_WAIT
B.V$BH
C.V$SQL
D.V$FILESTAT
E.V$SQL_PLAN
AnswerA

P1/P2/P3 reveal file and block numbers for I/O waits.

Why this answer

V$SESSION_WAIT includes P1, P2, and P3 columns which often identify the file and block being accessed during the wait.

28
MCQmedium

Which procedure in the DBMS_SPM package is used to evolve a SQL plan baseline?

A.DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE
B.DBMS_SPM.DROP_SQL_PLAN_BASELINE
C.DBMS_SPM.ALTER_SQL_PLAN_BASELINE
D.DBMS_SPM.LOAD_PLANS_FROM_SQLSET
AnswerA

This verifies and promotes unaccepted plans to accepted.

Why this answer

DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE is the standard procedure to evolve baselines.

29
MCQhard

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?

A.Change the STATISTICS_LEVEL
B.Use SQL Plan Management
C.Create an index
D.Use a SQL Profile
AnswerD

A SQL Profile can provide hints to the optimizer to steer it toward a hash join.

Why this answer

SQL Plan Baselines or SQL Profiles can influence the optimizer without changing application code.

30
MCQmedium

You are performing a SQL tuning exercise. How do you create a SQL Tuning Set (STS) to be used as input for the SQL Tuning Advisor?

A.DBMS_SQLTUNE.CREATE_SQLSET
B.DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT
C.DBMS_SPM.CREATE_BASELINE
D.DBMS_STATS.CREATE_STAT_TABLE
AnswerA

This creates the container to hold SQL statements.

Why this answer

DBMS_SQLTUNE.CREATE_SQLSET is the required procedure to initialize an STS container.

31
MCQeasy

You need to identify the top SQL statements consuming the most CPU resources in an Oracle 23ai database over the last hour. Which tool provides the most direct analysis of this performance issue?

A.SQL Tuning Advisor
B.Automatic Workload Repository (AWR) report
C.Active Session History (ASH) report
D.SQL Plan Management
AnswerB

AWR provides historical performance data aggregated over time intervals.

Why this answer

AWR reports provide aggregated data over a specific time range, making them ideal for identifying resource consumers.

32
MCQhard

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?

A.Run the AWR report and look for 'Stats' in the top wait events.
B.Call DBMS_STATS.REPORT_STATS_ADVISOR_TASK to generate a report on statistics-related issues.
C.Enable the SQL Tuning Advisor for the specific SQL_ID.
D.Execute DBMS_STATS.GATHER_SCHEMA_STATS with the 'AUTO' option.
AnswerB

This is the correct procedural call to generate insights into statistics management.

Why this answer

The Optimizer Statistics Advisor can be invoked using the DBMS_STATS.REPORT_STATS_ADVISOR_TASK function to analyze and report on statistics health.

33
MCQhard

You are seeing 'enq: TX - row lock contention' in your performance reports. What does this mean?

A.The library cache is full
B.Sessions are competing for the same row locks
C.The tablespace is full
D.The database is waiting for I/O
AnswerB

TX locks represent transaction row-level locking.

Why this answer

TX lock contention indicates that multiple sessions are trying to update the same rows.

34
MCQmedium

You are analyzing an AWR report and notice a high value for 'db file scattered read'. What is the most likely cause of this wait event?

A.Insufficient PGA memory for sorting operations.
B.Excessive log file sync waits.
C.Heavy use of nested loop joins.
D.Full table scans or index fast full scans.
AnswerD

These operations read multiple blocks into scattered memory buffers.

Why this answer

'db file scattered read' is typically associated with full table scans or index fast full scans where multiple blocks are read into non-contiguous memory locations.

35
Multi-Selectmedium

Which TWO of these are common sources of performance degradation?

Select 2 answers
A.Renaming a table
B.High resource contention
C.Changing the database name
D.Inefficient SQL statements
E.Adding a new user
AnswersB, D

Locks and latches impact performance.

Why this answer

Suboptimal SQL and system-wide resource contention are the most common issues.

36
MCQhard

Which of the following is true regarding SQL Plan Baselines?

A.They automatically gather statistics
B.They store the actual table data
C.They require the Oracle Enterprise Manager
D.They provide stability for SQL execution plans
AnswerD

The goal of SPM is to ensure plan stability.

Why this answer

They allow the database to maintain a stable execution plan even if the environment (stats, indexes) changes.

37
MCQeasy

In which view can you find information about the current SQL Plan Baselines?

A.DBA_SQL_PLAN_BASELINES
B.V$SESSION
C.V$SQL
D.DBA_INDEXES
AnswerA

This view lists all defined SQL plan baselines.

Why this answer

DBA_SQL_PLAN_BASELINES is the primary view for information about SQL plan baselines.

38
MCQmedium

You observe a significant performance regression after a database upgrade. You suspect that the optimizer has chosen a suboptimal execution plan. Which component of SQL Plan Management should you use to ensure the database only uses known, verified execution plans?

A.SQL Plan Baselines
B.Optimizer Statistics Advisor
C.SQL Tuning Sets
D.Automatic SQL Tuning Advisor
AnswerA

SQL Plan Baselines explicitly control plan evolution to prevent undesirable changes.

Why this answer

SQL Plan Baselines are used to ensure that only verified execution plans are used for a specific SQL statement, protecting against performance regressions.

39
MCQhard

You have a query that is performing poorly due to a stale execution plan. You want to lock the current optimal plan to prevent the optimizer from changing it during subsequent runs. What should you do?

A.Run DBMS_STATS.LOCK_TABLE_STATS
B.Use DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE
C.Set OPTIMIZER_FEATURES_ENABLE to a previous version
D.Use SQL Tuning Advisor to accept a new profile
AnswerB

This function creates a baseline from the cursor cache, locking the plan.

Why this answer

SQL Plan Baselines allow you to store and fix execution plans for specific SQL statements.

40
Multi-Selecteasy

Which TWO types of reports are most useful for diagnosing long-term database performance trends?

Select 2 answers
A.V$SESSION_WAIT view
B.AWR Report
C.ASH Report
D.SQL Trace (tkprof)
E.ADDM Report
AnswersB, E

AWR reports provide aggregated data over user-defined periods, perfect for trend analysis.

Why this answer

AWR reports and ADDM reports are standard tools for analyzing performance trends over extended periods (hours, days, or weeks).

41
MCQeasy

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

A.Automatic Diagnostic Repository (ADR)
B.Automatic Database Diagnostic Monitor (ADDM)
C.AWR
D.SQL Plan Management
AnswerA

ADR is the repository that stores diagnostic data.

Why this answer

ADR is the centralized location for all diagnostic data, including alert logs and incident dumps.

42
MCQeasy

Which report provides a summary of SQL statements that have the highest 'Elapsed Time'?

A.Alert Log
B.AWR Report
C.Listener Log
D.ADDM Report
AnswerB

AWR reports contain 'Top SQL' sections categorized by various metrics.

Why this answer

The AWR report has a section specifically for Top SQL by Elapsed Time.

43
MCQeasy

An administrator has been tasked with reducing the overhead of AWR snapshot collection. What is the most effective way to modify the snapshot interval?

A.Edit the SPFILE to change the statistics_level to 'BASIC'.
B.Use the DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS procedure.
C.Update the SGA_TARGET parameter.
D.Manually delete old records from the DBA_HIST_SNAPSHOT view.
AnswerB

This is the correct administrative interface for AWR configuration.

Why this answer

The DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS procedure is the official method to adjust snapshot frequency and retention policies.

44
MCQmedium

How can you view the recommendations made by the Automatic Database Diagnostic Monitor (ADDM)?

A.Checking the alert log
B.Querying V$SGA
C.Querying DBA_ADVISOR_FINDINGS
D.Running the catproc script
AnswerC

This view contains the output findings for all advisors, including ADDM.

Why this answer

ADDM recommendations can be viewed in AWR or via the DBA_ADVISOR_FINDINGS view.

45
MCQeasy

An administrator needs to identify the top wait events causing performance degradation in the database over the last hour. Which tool provides the most granular, session-level view of these wait events?

A.Active Session History (ASH)
B.SQL Tuning Advisor
C.Automatic Database Diagnostic Monitor (ADDM)
D.Automatic Workload Repository (AWR)
AnswerA

ASH captures active session state every second, providing the necessary granularity for real-time analysis.

Why this answer

ASH provides real-time, session-level performance data, making it the ideal tool for analyzing short-term, granular performance spikes.

46
Multi-Selecthard

Which THREE actions can you take to improve execution plan stability?

Select 3 answers
A.Frequently drop and recreate indexes
B.Increase the SGA size every day
C.Use SQL Profiles
D.Freeze execution plans
E.Create SQL Plan Baselines
AnswersC, D, E

Provides hints for stable plans.

Why this answer

Stability is achieved through baselines, profiles, and optimizer plan stability features.

47
MCQhard

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

A.V$PARAMETER
B.V$SQL
C.V$LOCK
D.V$SESSION_WAIT
AnswerD

This view provides real-time information on what a session is waiting for.

Why this answer

V$SESSION_WAIT shows details about wait events for active sessions.

48
MCQmedium

When using SQL Tuning Advisor, what is a 'SQL Tuning Set' (STS)?

A.A backup set of the database
B.A list of database users
C.A container for SQL statements and their metadata
D.A set of database indexes
AnswerC

STS groups SQL, plans, and bind variables for tuning analysis.

Why this answer

An STS is a collection of SQL statements with their associated execution context.

49
MCQeasy

Which view displays the current settings for the AWR retention period?

A.DBA_SNAPSHOTS
B.V$DATABASE
C.DBA_HIST_WR_CONTROL
D.V$INSTANCE
AnswerC

This view stores the AWR configuration parameters.

Why this answer

DBA_HIST_WR_CONTROL contains the snapshot settings including retention and interval.

50
MCQmedium

You are tuning a complex SQL statement. You want to see the execution plan that the optimizer is currently choosing. Which dynamic performance view is most useful?

A.V$SQL_PLAN
B.V$SESSION
C.V$SQLAREA
D.V$SYSSTAT
AnswerA

This view provides the execution plan for cached SQL.

Why this answer

V$SQL_PLAN shows the execution plan for statements currently in the library cache.

51
MCQhard

To improve performance, you suspect an index is missing. Which advisor should you invoke to get recommendations for new indexes?

A.SQL Tuning Advisor
B.Memory Advisor
C.ADDM
D.SQL Access Advisor
AnswerD

This advisor analyzes access paths and recommends indexes/materialized views.

Why this answer

The SQL Access Advisor provides recommendations on schema design, including indexes and materialized views.

52
MCQhard

The Automatic SQL Plan Management (ASPM) feature is enabled. A new execution plan is identified for a high-load query that performs better during testing. How does the database verify this plan before evolving the baseline?

A.It flags the plan for manual DBA approval via the DBMS_SPM package.
B.It automatically promotes the plan based on the optimizer cost estimation.
C.It executes the SQL statement using the new plan and compares its performance metrics against the current baseline.
D.It relies on the Advisor to run a full analysis of the explain plan tree.
AnswerC

The database performs a trial execution to confirm performance improvement before evolving the plan baseline.

Why this answer

The database performs a verification task where it executes the new plan and compares it against the baseline performance to decide if it should be accepted.

53
Multi-Selectmedium

Which TWO methods can be used to tune SQL statements?

Select 2 answers
A.Increasing the number of backups
B.Dropping the database
C.Manual addition of optimizer hints
D.Changing user roles
E.SQL Tuning Advisor
AnswersC, E

Manual intervention using hints.

Why this answer

Manual tuning with hints and automated tuning via advisors are common practices.

54
Multi-Selectmedium

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

Select 3 answers
A.SQL Plan Management (SPM)
B.Automatic SQL Tuning Advisor
C.SQL Tuning Sets
D.Automatic Maintenance Tasks
E.Automatic Database Diagnostic Monitor (ADDM)
AnswersA, B, C

SPM is integrated with tuning to ensure performance stability.

Why this answer

The Automatic SQL Tuning process involves the SQL Tuning Advisor, SQL Tuning Sets, and SQL Plan Baselines as part of its automated diagnostic and correction cycle.

55
MCQhard

You are tuning a query that is performing poorly due to high 'buffer busy waits'. What is the likely cause?

A.PGA memory exhausted
B.Library cache contention
C.Excessive disk I/O
D.Multiple sessions accessing the same blocks
AnswerD

This contention happens in the buffer cache.

Why this answer

Buffer busy waits occur when multiple sessions try to modify the same block at the same time.

56
MCQmedium

What is the primary benefit of using a SQL Profile?

A.They improve the accuracy of the optimizer
B.They fix the execution plan forever
C.They speed up physical I/O
D.They automatically gather new statistics
AnswerA

Profiles provide auxiliary information to the optimizer.

Why this answer

SQL Profiles improve the optimizer's choices by providing better selectivity and cardinality estimates.

57
Multi-Selecthard

Which THREE types of information are captured in an AWR snapshot?

Select 3 answers
A.Tablespace creation scripts
B.Library cache statistics
C.Database user passwords
D.System-wide wait events
E.SQL execution statistics
AnswersB, D, E

Important for parsing/memory health.

Why this answer

AWR captures workload, system statistics, and session activity.

58
MCQeasy

What is the primary function of ADDM in Oracle Database 23ai?

A.To capture SQL execution plans
B.To migrate data between instances
C.To identify performance bottlenecks and provide recommendations
D.To automatically tune individual SQL statements
AnswerC

This is the core purpose of ADDM.

Why this answer

ADDM analyzes AWR snapshots to identify performance bottlenecks and provide recommendations.

59
MCQeasy

What is the result of setting STATISTICS_LEVEL to 'BASIC'?

A.It increases CPU overhead
B.It enables SQL Tuning Advisor
C.It disables AWR and ADDM
D.It enables all features
AnswerC

BASIC level turns off most automated diagnostic tools.

Why this answer

Setting it to BASIC disables many diagnostic features, including AWR and ADDM.

60
MCQmedium

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?

A.DBMS_SQLTUNE
B.DBMS_UTILITY
C.DBMS_STATS.GATHER_TABLE_STATS
D.DBMS_ADVISOR
AnswerC

This is the correct procedure for gathering table statistics.

Why this answer

DBMS_STATS is the standard package for managing optimizer statistics.

61
MCQmedium

You are analyzing a query with the SQL Tuning Advisor. The advisor recommends an 'SQL Profile'. What does the profile actually do?

A.It updates the table statistics
B.It creates a new index
C.It adds optimizer hints and cardinality adjustments
D.It rewrites the SQL query
AnswerC

Profiles guide the optimizer to better choices.

Why this answer

A SQL Profile provides additional optimizer hints and statistics corrections.

62
MCQmedium

You are investigating high CPU utilization in the database. Which view provides the top SQL statements currently in memory based on CPU usage?

A.V$SQLAREA
B.V$SESSION
C.V$SYSSTAT
D.V$LIBRARYCACHE
AnswerA

This view has CPU_TIME and EXECUTIONS columns to identify heavy SQL.

Why this answer

V$SQLAREA contains aggregated statistics for SQL statements in the library cache, including CPU_TIME.

Ready to test yourself?

Try a timed practice session using only Performance Tuning And Diagnostics questions.