Courseiva

Oracle Database 23ai Administrator Professional (OCP, 1Z0-183) (OCP) (OCP) — Questions 151–225

261 questions total · 4 pages · All types, answers revealed

Page 2

Page 3 of 4

Page 4
151
Multi-Selecteasy

Which THREE items are generally included in an Oracle Patch?

Select 3 answers
A.Application source code
B.Security updates
C.Bug fixes
D.Performance improvements
E.New hardware drivers
AnswersB, C, D

Security updates are a standard component of Oracle patches, addressing vulnerabilities in the Oracle binaries and database software. This satisfies the stem's requirement for items generally included in a patch, as Oracle bundles critical patch updates (CPUs) specifically to remediate known CVEs across supported product versions.

Why this answer

An Oracle Patch is a collection of fixes applied to the Oracle software, and it generally includes security updates (B), which address known vulnerabilities such as those documented in Oracle Critical Patch Updates; bug fixes (C), which resolve defects in the Oracle binaries and code; and performance improvements (D), which optimize the database or middleware behavior. These three are standard components because Oracle bundles them into patch sets, PSUs, and CPUs to keep the software secure, stable, and efficient. Application source code (A) is not part of an Oracle Patch, since patches modify Oracle's own software, not customer applications.

New hardware drivers (E) are also not included, as Oracle Patches target Oracle software components rather than operating system or hardware driver updates.

Exam trap

OCP often tests the contents of Oracle patches, and candidates may mistakenly include application code or hardware drivers, which are not part of Oracle's patch deliverables.

152
MCQhard

A user accidentally dropped a critical table. You decide to use Flashback Table. What is the mandatory prerequisite before this command can execute?

A.The table must have a Primary Key.
B.The database must be in ARCHIVELOG mode.
C.The Recycle Bin must be disabled.
D.Row movement must be enabled on the table.
AnswerD

Enabling row movement lets Oracle reassign a row's physical location during undo-based restoration, which Flashback Table requires to return dropped rows to their original blocks. Without it, the command fails with ORA-08189, so row movement is the mandatory prerequisite the stem demands before execution.

Why this answer

To use Flashback Table, row movement must be enabled on the table because the operation may change the physical rowids of rows as it restores the table to a previous point in time. This is a mandatory prerequisite. Without row movement enabled, the flashback operation will fail.

Exam trap

OCP often tests prerequisites for Flashback operations; candidates may confuse requirements for Flashback Table with those for Flashback Database or Flashback Drop, leading to wrong answers like ARCHIVELOG mode or Recycle Bin.

How to eliminate wrong answers

Option A is wrong because a primary key is not required for Flashback Table; it is required for Flashback Drop or other operations, but not for Flashback Table. Option B is wrong because ARCHIVELOG mode is not required for Flashback Table; it is required for Flashback Database. Option C is wrong because the Recycle Bin must be enabled (not disabled) for Flashback Drop, but Flashback Table does not depend on the Recycle Bin.

153
Multi-Selectmedium

Which THREE tasks are performed after an upgrade is finished?

Select 3 answers
A.Create new users
B.Deinstall old version
C.Recompile invalid objects
D.Run timezone upgrade script
E.Gather dictionary statistics
AnswersC, D, E

Recompiling invalid objects rebuilds PL/SQL units and views whose dependencies changed during the upgrade, since schema modifications invalidate stored code. This restores executable status and correct dependency chains, a required post-upgrade task before the database can serve application workloads reliably.

Why this answer

Post-upgrade, you must run the timezone script, recompile invalid objects, and gather dictionary statistics.

154
Multi-Selectmedium

Which THREE things should be checked before upgrading to 23ai?

Select 3 answers
A.Current patch levels
B.Sufficient temporary tablespace
C.Database backup
D.Table indexes
E.Application user passwords
AnswersA, B, C

Verifying current patch levels confirms the source database meets 23ai's minimum release and patch prerequisites, since unsupported or unpatched versions can block or fail the upgrade. This satisfies the pre-upgrade check for a supported, adequately patched starting point.

Why this answer

Option A (Current patch levels) is correct because Oracle requires the source database to be at a supported patch level (for example, 19c with the latest Release Update) before running the 23ai upgrade, and the upgrade utility will abort if the required patches are missing. Option B (Sufficient temporary tablespace) is correct because the upgrade process performs large sort and hash operations that need adequate TEMP space; insufficient temporary tablespace causes ORA-01652 errors and can fail the upgrade. Option C (Database backup) is correct because a full, tested backup (for example, an RMAN backup plus a guaranteed restore point) is mandatory so the database can be restored if the upgrade fails or must be rolled back.

Option D (Table indexes) is not a pre-upgrade requirement, since indexes are automatically maintained and rebuilt as needed by the upgrade scripts. Option E (Application user passwords) is not checked before upgrading, as passwords are preserved in the data dictionary and are unaffected by the 23ai upgrade itself.

Exam trap

OCP often tests upgrade prerequisites by mixing in plausible-but-irrelevant items (indexes, passwords) to see if candidates know the documented three-step pre-upgrade checklist rather than guessing at operational niceties.

155
MCQmedium

What is the best way to ensure an encrypted connection between the application server and the database?

A.Using Audit Vault
B.Using Database Vault
C.Using TDE
D.Using Native Network Encryption
AnswerD

Native Network Encryption encrypts data in transit between client and database using configured algorithms and integrity checksums, without requiring certificates or Oracle wallet setup. It satisfies the requirement for an encrypted application-server-to-database connection at the protocol layer.

Why this answer

The best way to ensure an encrypted connection between the application server and the database is to use Native Network Encryption. This feature encrypts data as it travels over the network between the client and the database server, using algorithms like AES. It is configured on the database server and client via parameters such as SQLNET.ENCRYPTION_CLIENT and SQLNET.ENCRYPTION_TYPES_CLIENT, and it does not require any changes to the application.

It provides a straightforward way to secure data in transit.

Exam trap

OCP often tests the distinction between encryption at rest (TDE) and encryption in transit (Native Network Encryption), and candidates may incorrectly choose TDE for network encryption.

How to eliminate wrong answers

Option A is wrong because Audit Vault is a security monitoring and auditing solution that collects audit data from databases; it does not encrypt network traffic. Option B is wrong because Database Vault is a access control product that restricts privileged user access to application data; it does not provide network encryption. Option C is wrong because TDE (Transparent Data Encryption) encrypts data at rest (in the database files and backups), not data in transit over the network.

Native Network Encryption is specifically designed for encrypting client-server communication.

156
MCQeasy

Which Oracle feature allows for verifying the integrity of Blockchain rows?

A.DBMS_BLOCKCHAIN_TABLE
B.Audit Vault
C.Data Guard
D.Flashback Query
AnswerA

The DBMS_BLOCKCHAIN_TABLE package provides procedures to verify row integrity, including checking hash values and signatures against the blockchain ledger. It is the supported PL/SQL interface for validating that blockchain rows have not been tampered with.

Why this answer

DBMS_BLOCKCHAIN_TABLE is the Oracle-supplied PL/SQL package that provides APIs to verify the integrity of rows in a blockchain table — including verifying row signatures, checking the hash chain, and validating the ledger. It is the only supported mechanism for cryptographic verification of blockchain table contents.

Exam trap

The trap is confusing blockchain-table integrity verification with general auditing or recovery features — candidates pick Audit Vault or Flashback because they sound 'integrity-related,' but only DBMS_BLOCKCHAIN_TABLE performs cryptographic row verification.

How to eliminate wrong answers

Option B is wrong because Audit Vault is a centralized audit repository and reporting tool; it does not verify blockchain row hashes or signatures. Option C is wrong because Data Guard is a disaster-recovery/standby replication technology, unrelated to blockchain row integrity. Option D is wrong because Flashback Query retrieves historical row versions via undo, but it does not perform cryptographic verification of blockchain rows.

157
MCQmedium

You are migrating to 23ai and need to use the 'DBMS_COMPARISON' package to verify data integrity between the old and new instances. What is the prerequisite for this operation?

A.The databases must use the same tablespace names
B.The databases must be on the same physical host
C.A database link must exist between the databases
D.The source database must be in Read-Only mode
AnswerC

DBMS_COMPARISON requires a database link to the remote instance, since it reads both schemas concurrently to compare rows and report differences. Without that link, the package cannot reach the comparison database, so creating one satisfies the prerequisite for verifying integrity across the old and new 23ai instances.

Why this answer

DBMS_COMPARISON requires a database link between the source and target databases.

158
Multi-Selectmedium

You are diagnosing a performance issue where a specific SQL statement is consuming excessive CPU. You have identified the SQL_ID and want to gather detailed execution statistics for this statement to understand its behavior. Which two methods can you use to obtain execution statistics for this SQL statement? (Choose two.)

Select 2 answers
A.Use DBMS_XPLAN.DISPLAY_CURSOR with the 'ALLSTATS LAST' format.
B.Query V$SQL_PLAN_STATISTICS_ALL for the SQL_ID.
C.Use DBMS_SQL_MONITOR.REPORT_SQL_MONITOR for the SQL_ID.
D.Query DBA_HIST_SQLSTAT for the SQL_ID.
E.Query V$SQLSTATS for the SQL_ID.
AnswersA, C

DBMS_XPLAN.DISPLAY_CURSOR with the 'ALLSTATS LAST' format displays the execution plan along with runtime statistics for the last execution of the cursor. It shows actual rows, consistent gets, and other metrics per operation. This is a standard method to obtain detailed execution statistics for a SQL statement, provided the cursor is still in the library cache and statistics were collected (e.g., via GATHER_PLAN_STATISTICS hint or STATISTICS_LEVEL=ALL).

Why this answer

DBMS_SQL_MONITOR.REPORT_SQL_MONITOR and DBMS_XPLAN.DISPLAY_CURSOR with 'ALLSTATS LAST' are both valid methods to obtain detailed execution statistics for a specific SQL statement. SQL Monitor provides a comprehensive report including wait events and row source statistics, while DISPLAY_CURSOR with ALLSTATS LAST shows the execution plan with actual runtime statistics per operation.

Exam trap

The trap here is assuming that any view containing SQL statistics provides the same level of detail, when in fact only specific tools like SQL Monitor and DISPLAY_CURSOR with ALLSTATS LAST offer per-execution, row source level statistics.

159
MCQeasy

If you are in ARCHIVELOG mode, what is the primary benefit of having a multiplexed control file?

A.Faster backup performance.
B.Redundancy against disk failure.
C.Ability to perform point-in-time recovery.
D.Automatic database tuning.
AnswerB

Multiplexing writes identical copies of the control file to separate locations, so one disk's failure leaves a usable copy for instance recovery. This satisfies the availability requirement implied by running in ARCHIVELOG mode, where control file loss otherwise halts recovery.

Why this answer

In ARCHIVELOG mode, a multiplexed control file provides redundancy against disk failure by maintaining multiple copies of the control file on different disks. If one copy becomes corrupted or a disk fails, the database can use another copy to continue operations, ensuring high availability and preventing downtime.

Exam trap

OCP often tests the confusion between the benefits of ARCHIVELOG mode (point-in-time recovery) and multiplexing control files (redundancy), leading candidates to choose point-in-time recovery as the primary benefit of multiplexing.

How to eliminate wrong answers

Option A is wrong because multiplexing control files does not directly speed up backups; it may add slight overhead due to writing to multiple locations. Option C is wrong because point-in-time recovery is enabled by ARCHIVELOG mode itself, not by multiplexing control files; multiplexing only provides redundancy. Option D is wrong because automatic database tuning is unrelated to control file multiplexing; it is handled by other features like Automatic Workload Repository (AWR) and Automatic Database Diagnostic Monitor (ADDM).

160
MCQmedium

You are the lead DBA for an Oracle Database 23ai production system. Users report that a critical order-entry application becomes unresponsive for several seconds every few minutes. While monitoring, you notice a significant number of 'log file sync' wait events in V$SYSTEM_EVENT. Which action is most likely to reduce this contention?

A.Increase the number of redo log groups.
B.Configure the redo log files on faster storage with lower latency.
C.Increase the size of the redo log buffer.
D.Enable asynchronous I/O for the redo log files.
AnswerB

The 'log file sync' wait event occurs when a user session commits a transaction and must wait for the log writer (LGWR) to write the redo entries to the online redo log files. If the storage subsystem hosting the redo logs has high latency, commits will be slow. Placing redo logs on faster, lower-latency storage directly reduces the time spent waiting for the write to complete, thus reducing 'log file sync' waits.

Why this answer

The 'log file sync' wait event is directly related to the time a user session waits for the log writer to write redo to disk during a commit. The primary factor affecting this wait is the performance of the storage where the online redo logs reside. Moving the redo logs to faster storage with lower latency reduces the write time, thereby reducing the wait.

Other options, such as increasing buffer size or adding log groups, do not address the commit path latency.

Exam trap

The trap here is assuming that increasing the redo log buffer size will reduce commit waits, when in fact the buffer is not the bottleneck for log file sync events.

161
MCQhard

Which component is responsible for managing background processes across all containers in a CDB?

A.Shared Service Layer
B.Global Process Manager
C.CDB Instance
D.PDB Instance
AnswerC

The CDB instance manages all background processes, including root-level tasks and PDB-level operations, across every container in the multitenant architecture. It satisfies the constraint of spanning all containers, unlike a PDB instance which only governs its own pluggable database's processes.

Why this answer

The instance (CDB root) manages background processes for all containers.

162
MCQhard

You are analyzing a performance degradation in a data warehouse. The AWR report shows a high number of 'cell single block physical read' waits on Exadata. You suspect that the storage index is not being used effectively for a particular query. Which action should you take to improve the effectiveness of the storage index for this query?

A.Ensure that the query predicates are not using functions on the columns.
B.Enable the 'cell_offload_processing' parameter.
C.Recreate the table with a larger block size.
D.Increase the size of the Exadata Smart Flash Cache.
AnswerA

Storage indexes on Exadata work by storing min/max values for columns in storage cells. If a predicate applies a function to a column, the storage index cannot be used because the function's result is not stored. By ensuring predicates are on bare columns, the storage index can filter out irrelevant storage regions, reducing physical I/O. This is a key best practice for maximizing storage index effectiveness.

Why this answer

The storage index relies on predicates that reference columns directly, without functions or expressions, to filter out storage regions. If a predicate uses a function on a column, the storage index cannot be applied, leading to unnecessary physical reads. Ensuring predicates are on bare columns allows the storage index to function optimally and reduce I/O.

Exam trap

The trap here is attributing storage index inefficiency to caching or block size, when the real issue is often the use of functions on columns in predicates.

163
MCQeasy

Which command is used to delete backups that are no longer needed based on the current retention policy?

A.DROP BACKUP
B.DELETE OBSOLETE
C.PURGE BACKUPS
D.DELETE BACKUP
AnswerB

DELETE OBSOLETE removes backups and archived redo logs that fall outside the configured retention policy, satisfying the requirement to purge unneeded backups. It evaluates the current retention configuration rather than deleting everything, unlike DELETE BACKUP or DELETE EXPIRED.

Why this answer

DELETE OBSOLETE is the command to purge backups exceeding the retention policy.

164
MCQhard

You are analyzing a performance issue in your Oracle 23ai database. You suspect that a specific SQL statement is performing poorly due to a suboptimal execution plan. You want to capture the actual execution plan and runtime statistics for this statement while it is executing. Which tool should you use to achieve this with minimal overhead?

A.Enable SQL trace for the session and use TKPROF.
B.EXPLAIN PLAN FOR statement;
C.Use the DBMS_XPLAN.DISPLAY_CURSOR function with the 'ALLSTATS LAST' format.
D.Query the V$SQL_PLAN_STATISTICS_ALL view for the SQL ID.
AnswerC

The DBMS_XPLAN.DISPLAY_CURSOR function can display the actual execution plan of a SQL statement that is currently in the library cache, along with runtime statistics. By specifying the 'ALLSTATS LAST' format, you can see the actual rows processed, consistent gets, physical reads, and other execution statistics for the last execution of the cursor. This method has minimal overhead because it retrieves information from the cursor's runtime statistics that are already collected by the database, without needing to re-execute the statement or enable additional tracing.

Why this answer

To capture the actual execution plan and runtime statistics for a specific SQL statement with minimal overhead, the DBMS_XPLAN.DISPLAY_CURSOR function with the 'ALLSTATS LAST' format is the most efficient method. It retrieves the plan and statistics from the library cache for the last execution of the cursor, leveraging data that the database already collects. This avoids the overhead of enabling SQL trace or re-executing the statement with EXPLAIN PLAN, and it provides the actual rows and other runtime metrics needed for tuning.

Exam trap

The trap here is confusing the generation of a predicted plan with the retrieval of an actual execution plan and its runtime statistics; EXPLAIN PLAN only shows the optimizer's intended plan without executing the statement.

165
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

The AWR report captures snapshots of database activity, including SQL statistics ranked by CPU consumption, over a specified interval such as the last hour. This directly identifies the top CPU-consuming SQL statements, unlike real-time tools that lack historical aggregation.

Why this answer

The AWR report is the most direct tool for identifying top SQL by CPU consumption over a specific time period such as the last hour. AWR automatically captures snapshots of performance statistics, including SQL ordered by CPU time, and the report presents this data in a ready-to-read format. ASH provides session-level sampling for shorter, more granular analysis, but AWR is the standard tool for hourly or longer-range top-SQL identification.

Exam trap

The trap is confusing AWR with ASH — candidates often pick ASH because it sounds more granular, but AWR is the correct tool for hourly top-SQL-by-CPU analysis.

How to eliminate wrong answers

Option A is wrong because SQL Tuning Advisor analyzes individual SQL statements for tuning recommendations; it does not rank top SQL by CPU over a time window. Option C is wrong because ASH is a sampling-based tool best suited for short-term, fine-grained diagnosis (e.g., last few minutes) and does not directly produce a top-SQL-by-CPU ranking over an hour. Option D is wrong because SQL Plan Management is used to stabilize execution plans, not to identify resource-consuming SQL.

166
Multi-Selectmedium

Which THREE actions are part of the AutoUpgrade process?

Select 3 answers
A.Post-upgrade cleanup
B.Upgrading the database
C.Applying security patches
D.Rebuilding the OS
E.Pre-check analysis
AnswersA, B, E

AutoUpgrade includes post-upgrade cleanup, removing obsolete artefacts and invalid objects left behind after the database conversion. This satisfies the stem's requirement for a genuine AutoUpgrade action, as the tool performs remediation steps after the upgrade completes rather than only pre-checks or the upgrade itself.

Why this answer

AutoUpgrade is Oracle's utility for upgrading Oracle databases, and its workflow consists of distinct phases. Option E, pre-check analysis, is correct because AutoUpgrade runs a preupgrade analysis (via the 'analyze' mode, which invokes the preupgrade checks) to detect issues such as invalid objects, deprecated parameters, and missing prerequisites before any changes are made. Option B, upgrading the database, is correct because the core phase of AutoUpgrade is the 'deploy' mode, which performs the actual database upgrade (including running the upgrade scripts and converting the data dictionary) to the target release.

Option A, post-upgrade cleanup, is correct because AutoUpgrade includes a post-upgrade phase (the 'deploy' mode also handles post-upgrade actions, and there is a separate 'finalize' step) that removes obsolete components, recompiles invalid objects, and completes time zone and other cleanup tasks. Option C, applying security patches, is not part of AutoUpgrade, since patching is handled by tools such as OPatch or the patch utilities, not by the upgrade process itself. Option D, rebuilding the OS, is not part of AutoUpgrade, as it operates entirely at the database level and does not touch the operating system.

Exam trap

OCP often tests the boundary between AutoUpgrade and general patching — candidates incorrectly include 'applying security patches' as an AutoUpgrade step, when AutoUpgrade is specifically about database version upgrades.

167
MCQhard

You are investigating a performance issue where a batch job that inserts millions of rows into a table with a unique index is running slowly. You notice a high number of 'enq: TX - index contention' waits. Which action is most likely to reduce this contention without compromising data integrity?

A.Increase the PCTFREE value for the index.
B.Use a reverse key index.
C.Rebuild the index with a larger block size.
D.Decrease the INITRANS value for the index.
AnswerB

A reverse key index reverses the bytes of each indexed column value, which spreads inserts across many leaf blocks instead of concentrating them on the rightmost leaf block. This reduces contention on the index during high-concurrency inserts. For a batch job inserting many rows, a reverse key index can significantly decrease 'enq: TX - index contention' waits while still enforcing uniqueness. However, it may affect range scans, so it is best for unique or primary key indexes on monotonically increasing values.

Why this answer

A reverse key index is the correct solution because it distributes index entries across many blocks, eliminating the hot spot on the rightmost leaf block that occurs with sequentially increasing keys. This reduces contention during high-volume inserts while preserving uniqueness. Other options either do not address the root cause or could worsen the situation.

Exam trap

The trap here is focusing on physical storage parameters like block size or PCTFREE, which do not resolve the concurrency issue of multiple sessions inserting into the same index leaf block.

168
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

The TX enqueue wait signifies transactional locking, where one session holds a row lock and others queue for that same row until the holder commits or rolls back. The wait therefore directly indicates concurrent sessions competing for identical rows, matching the reported contention.

Why this answer

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

169
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

The 'db file scattered read' wait arises from multiblock reads, which Oracle issues during full table scans and index fast full scans. Single-block index range scans produce 'db file sequential read' instead, making this the precise cause matching the stem's high value.

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.

170
MCQhard

You are the DBA for an Oracle 23ai database. You have configured a recovery catalog and registered the database. You need to perform a point-in-time recovery of the database to a time before a user error occurred. You have a full backup from last night and all archived redo logs. Which RMAN command sequence should you use to perform the recovery?

A.STARTUP MOUNT; RESTORE DATABASE; RECOVER DATABASE UNTIL TIME '2025-03-18 10:00:00'; ALTER DATABASE OPEN RESETLOGS;
B.STARTUP MOUNT; RESTORE DATABASE; RECOVER DATABASE; ALTER DATABASE OPEN;
C.STARTUP MOUNT; RESTORE DATABASE; RECOVER DATABASE UNTIL CANCEL; ALTER DATABASE OPEN RESETLOGS;
D.STARTUP MOUNT; RECOVER DATABASE UNTIL TIME '2025-03-18 10:00:00'; ALTER DATABASE OPEN RESETLOGS;
AnswerA

This sequence starts the instance in mount mode, restores the database from backup, performs incomplete recovery to the specified time using archived logs, and then opens the database with RESETLOGS. This is the standard procedure for point-in-time recovery. The RESETLOGS is required after incomplete recovery to reset the online redo logs and start a new incarnation.

Why this answer

Point-in-time recovery requires restoring the database from a backup taken before the target time, then applying archived redo logs up to that time using RECOVER DATABASE UNTIL TIME, and finally opening with RESETLOGS. The other options either perform complete recovery, omit the restore, or use an incorrect recovery clause.

Exam trap

The trap here is forgetting to restore the database before recovery, or using complete recovery instead of incomplete recovery with RESETLOGS.

171
MCQmedium

Your company is adopting Oracle Database 23ai and wants to store vector embeddings for an AI application. You need to create a table to store 128-dimensional vectors and perform similarity searches. Which data type should you use for the vector column?

A.VECTOR
B.NUMBER
C.BLOB
D.CLOB
AnswerA

The VECTOR data type is introduced in Oracle Database 23ai specifically for storing vector embeddings. It supports fixed dimensions, such as 128, and allows efficient similarity searches using vector distance functions. It is the native type for AI workloads and integrates with Oracle's vector search capabilities.

Why this answer

Oracle Database 23ai introduces the VECTOR data type for storing vector embeddings. It supports fixed dimensions and enables native similarity searches using distance functions. Other types like BLOB, CLOB, or NUMBER cannot provide the same functionality and would require custom, inefficient implementations.

Exam trap

The trap here is assuming that any binary large object can store vectors, but only the VECTOR type provides native vector search capabilities.

172
MCQhard

You are managing an Oracle Database 23ai environment with Transparent Data Encryption (TDE) enabled. A security audit requires that you rotate the master encryption key for the database. You have already taken a backup of the keystore. Which command should you use to rotate the master key?

A.ALTER DATABASE ROTATE ENCRYPTION KEY;
B.EXEC DBMS_CRYPTO.ROTATE_KEY;
C.ADMINISTER KEY MANAGEMENT SET KEY USING TAG 'rotation' WITH BACKUP;
D.ALTER SYSTEM SET ENCRYPTION KEY ROTATE;
AnswerC

The ADMINISTER KEY MANAGEMENT SET KEY command is used to rotate the master encryption key. Including the USING TAG clause allows you to associate a tag with the new key for identification. The WITH BACKUP clause ensures that the keystore is backed up before the key is changed, which is a best practice. This command is executed in the CDB root or the PDB where the keystore is configured.

Why this answer

Rotating the master encryption key in 23ai requires the ADMINISTER KEY MANAGEMENT SET KEY statement. The WITH BACKUP clause ensures a backup of the keystore is taken, and the USING TAG clause optionally tags the new key. Other options are invalid because they either use incorrect syntax or refer to non-existent procedures.

Exam trap

The trap here is assuming that key rotation can be done via ALTER SYSTEM or a PL/SQL package, when the correct method is the ADMINISTER KEY MANAGEMENT SQL statement.

173
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

High resource contention directly degrades performance because CPU, memory, disk, and network capacity are finite; when multiple processes compete for the same constrained resource, queuing delays increase and throughput falls. This satisfies the stem's requirement for a common degradation source, as contention predictably slows response times across workloads.

Why this answer

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

174
MCQeasy

What is the primary function of the 'JSON relational duality' feature?

A.To compress JSON data
B.To map relational data to JSON
C.To encrypt JSON data
D.To index JSON data
AnswerB

JSON relational duality lets the database expose the same underlying relational tables simultaneously as JSON documents, without duplicating or transforming the stored data. This directly satisfies the stem's requirement for the primary function: mapping relational data to JSON, so applications query either representation interchangeably.

Why this answer

It provides a unified way to work with JSON and relational data simultaneously.

175
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

SQL Plan Baselines lock in a known-good execution plan for a SQL statement, preventing the optimiser from regressing to a worse plan after statistics or parameter changes. This directly delivers plan stability, the property the option asserts.

Why this answer

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

176
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

DBA_SQL_PLAN_BASELINES lists every SQL plan baseline in the database, showing the SQL handle, plan name, enabled and accepted status, and origin. Querying it reveals which plans are currently captured and active, which is exactly the baseline information required.

Why this answer

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

177
MCQmedium

You need to perform a full database restore and recovery. The control file is lost. What is the correct sequence of operations?

A.RESTORE DATABASE; RECOVER DATABASE; ALTER DATABASE OPEN RESETLOGS;
B.RESTORE SPFILE; STARTUP MOUNT; RECOVER DATABASE; ALTER DATABASE OPEN;
C.FLASHBACK DATABASE TO RESTORE POINT; ALTER DATABASE OPEN;
D.STARTUP NOMOUNT; RESTORE CONTROLFILE FROM AUTOBACKUP; ALTER DATABASE MOUNT; RESTORE DATABASE; RECOVER DATABASE; ALTER DATABASE OPEN RESETLOGS;
AnswerD

With the control file lost, the instance starts NOMOUNT, restores the control file from autobackup, mounts, restores datafiles, recovers, then opens with RESETLOGS. This sequence satisfies the requirement to restore and recover after control-file loss.

Why this answer

After losing the control file, you must restore it from an autobackup before you can restore the datafiles and perform recovery.

178
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 capture accepted, verified plans and make the optimizer use only those, preventing it from adopting a newly generated suboptimal plan after the upgrade. This directly enforces the requirement that only known, verified execution plans are used.

Why this answer

SQL Plan Baselines are used to capture and freeze known good execution plans for SQL statements. When the optimizer considers a new plan, it compares it to the baseline; if the new plan is not verified as better, the baseline plan is used. This ensures that only verified plans are used, preventing performance regressions after an upgrade.

Exam trap

OCP often tests the distinction between SQL Plan Baselines and SQL Tuning Sets; candidates may think Tuning Sets enforce plans, but they are just containers for SQL statements used for tuning, not for plan control.

How to eliminate wrong answers

Option B is wrong because the Optimizer Statistics Advisor analyzes statistics gathering and recommends improvements, but it does not control execution plans. Option C is wrong because SQL Tuning Sets are collections of SQL statements with their execution statistics and context, used for tuning, but they do not enforce plan usage. Option D is wrong because the Automatic SQL Tuning Advisor analyzes SQL and may recommend SQL profiles or plan baselines, but it does not itself ensure only verified plans are used; that is the role of SQL Plan Management and baselines.

179
MCQhard

How do you ensure that a user cannot connect to the database via SQL*Plus but can connect via an application service?

A.Create a Logon Trigger
B.Modify TNSNAMES.ORA
C.Use Profile limits
D.Revoke CONNECT role
AnswerA

A Logon Trigger fires during session establishment and can inspect attributes such as the client program, allowing SQL*Plus sessions to be rejected while application-service connections proceed. This enforces the restriction at connection time without changing database accounts or privileges.

Why this answer

You can use a login trigger to check the program name (e.g., 'sqlplus.exe') and reject connections.

180
MCQhard

What happens if a Lock-Free Reservation numeric value reaches its maximum allowed limit?

A.It wraps around to 0
B.It allows further updates anyway
C.It raises an error
D.It switches to locking mode
AnswerC

When a Lock-Free Reservation column reaches its defined maximum, the operation fails and raises an error rather than silently wrapping or truncating. This preserves data integrity, so the application must handle the exception and adjust the reservation or column limit.

Why this answer

Lock-Free Reservation columns in Oracle use a bounded numeric range, and when the accumulated value hits the maximum allowed limit, Oracle raises an error rather than silently wrapping or continuing. This is by design to preserve data integrity — the reservation mechanism cannot represent values beyond its defined ceiling. The error forces the application or DBA to intervene (e.g., reset, archive, or widen the column) before further reservations can be made.

Exam trap

OCP often tests whether candidates assume numeric overflow silently wraps or auto-switches modes, when Oracle's Lock-Free Reservation actually raises an error at the maximum.

How to eliminate wrong answers

Option A is wrong because wrap-around to 0 would silently corrupt reservation accounting and is not how Oracle handles overflow in Lock-Free Reservation columns. Option B is wrong because allowing further updates past the maximum would violate the bounded semantics of the reservation column and defeat its integrity guarantees. Option D is wrong because Lock-Free Reservation does not fall back to a locking mode on overflow — it simply errors out; the lock-free design is not dynamically swapped for row-level locking.

181
MCQmedium

Which file needs to be updated when you move the wallet location in 23ai?

A.init.ora
B.tnsnames.ora
C.sqlnet.ora
D.listener.ora
AnswerC

The wallet location is defined by the ENCRYPTION_WALLET_LOCATION parameter in sqlnet.ora, which the database reads at startup to locate the ewallet.p12 file. Moving the wallet requires editing this file so Oracle can find the keystore for transparent data encryption.

Why this answer

The sqlnet.ora file contains the WALLET_LOCATION parameter that must be updated.

182
Multi-Selecthard

Which THREE factors influence the duration of a database upgrade?

Select 3 answers
A.Number of database objects
B.System resources (CPU/IO)
C.The color of the server
D.Number of users
E.Database size
AnswersA, B, E

Each database object must be processed during upgrade scripts, so a larger object count lengthens the upgrade window. The number of objects is a direct driver of upgrade duration, alongside data volume and dependent object complexity, making it a genuine influencing factor.

Why this answer

The duration of a database upgrade is directly driven by the volume of work the upgrade engine must process, so the number of database objects (A) matters because each object (tables, indexes, constraints, procedures) must be parsed, converted, and recompiled, and more objects mean more metadata operations. System resources (B), specifically CPU and I/O throughput, determine how fast those operations execute, since an upgrade is largely CPU-bound for compilation and I/O-bound for data and log writes, so faster resources shorten the elapsed time. Database size (E) is also a primary factor because larger data volumes require more time for data conversion, index rebuilds, and log generation during the upgrade.

The color of the server (C) is irrelevant since physical appearance has no bearing on performance, and the number of users (D) is not a direct factor in upgrade duration because the upgrade is typically performed with the database in a restricted or single-user mode, so concurrent user count does not affect how long the upgrade itself takes.

Exam trap

OCP often tests the factors influencing upgrade duration, and candidates may incorrectly include 'number of users' because they confuse concurrent usage with upgrade workload; the exam expects recognition that user count is not a direct factor.

183
MCQhard

You are managing an Oracle Database 23ai instance. A critical application query is performing poorly. You have identified the SQL ID and want to capture a detailed execution plan with runtime statistics for a specific execution. The query is currently running and has been for several minutes. Which action should you take to get the most detailed diagnostic information?

A.Use DBMS_XPLAN.DISPLAY_AWR with the SQL ID to get the plan from AWR.
B.Generate an active SQL Monitor report using DBMS_SQL_MONITOR.REPORT_SQL_MONITOR for the SQL ID.
C.Query V$SQL_PLAN for the SQL ID to retrieve the execution plan.
D.Enable SQL tracing for the session using DBMS_SESSION.SET_SQL_TRACE and then examine the trace file.
AnswerB

SQL Monitor provides real-time monitoring of long-running SQL statements, including detailed execution statistics such as actual rows, memory, time, and wait events per operation. It is designed for exactly this scenario: a currently running query that needs in-depth diagnosis. You can generate a report using DBMS_SQL_MONITOR.REPORT_SQL_MONITOR, which gives the most comprehensive information for an active execution.

Why this answer

SQL Monitor is specifically designed to monitor long-running or parallel SQL statements in real time. It captures detailed execution statistics, including actual rows, memory usage, time, and wait events for each operation. The report generated by DBMS_SQL_MONITOR.REPORT_SQL_MONITOR provides a comprehensive view of the query's performance while it is running, making it the ideal tool for this scenario.

Exam trap

The trap here is assuming that any dynamic performance view or AWR report will provide runtime statistics for a currently running query, when in fact only SQL Monitor captures such detailed real-time data.

184
Multi-Selectmedium

Which TWO methods are used to verify the success of an upgrade?

Select 2 answers
A.Reinstalling the OS
B.Reviewing log files
C.Querying V$VERSION
D.Running a test report
E.Checking user login
AnswersB, C

Upgrade scripts and the Data Pump or catupgrd logs record each component's execution, including errors and invalid objects. Reviewing them satisfies the stem's verification requirement by exposing failures that a version banner alone would conceal, confirming every component reached the expected state.

Why this answer

Checking the log files and querying the dictionary version are standard verification methods.

185
MCQmedium

You are configuring RMAN to use a media manager for tape backups. Which component must be installed and configured on the database server to enable RMAN to communicate with the media manager?

A.Media Management Library (MML) provided by the media manager vendor
B.Oracle Secure Backup (OSB) client
C.Oracle Recovery Manager (RMAN) catalog database
D.Oracle Data Guard broker
AnswerA

RMAN uses the Media Management Library (MML) API to interface with third-party media managers. The media manager vendor supplies a shared library (e.g., libobk.so on Linux) that must be installed and linked with Oracle. This library allows RMAN to send backup and restore requests to the media manager, which then handles tape operations.

Why this answer

To use RMAN with a media manager for tape backups, the media manager vendor must provide a Media Management Library (MML) that implements the Oracle SBT (System Backup to Tape) API. This library is installed on the database server and referenced by Oracle. Without it, RMAN cannot send commands to the tape subsystem.

Other components like OSB, Data Guard broker, or a recovery catalog are not required for this specific integration.

Exam trap

The trap here is assuming that Oracle Secure Backup is required for any tape backup, when in fact third-party media managers use their own MML libraries.

186
MCQmedium

What is the default behavior when a session is set to use True Cache?

A.Manual route selection
B.Transparent read routing
C.Requires a DB restart
D.Error if cache is empty
AnswerB

When a session uses True Cache, read queries are routed to the cache automatically while writes continue to the primary database, with no application changes required. This transparent read routing satisfies the default behaviour, since the session need not specify which statements go to the cache.

Why this answer

The session automatically routes queries to the cache if valid.

187
MCQmedium

Which view can you use to check the status of TDE wallet encryption?

A.V$TDE_STATUS
B.V$ENCRYPTION_WALLET
C.DBA_ENCRYPTION_STATUS
D.DBA_WALLET
AnswerB

V$ENCRYPTION_WALLET exposes the current state of the Transparent Data Encryption wallet, including whether it is OPEN, CLOSED or UNDEFINED, plus the wallet location. Querying this dynamic performance view is the supported method for checking TDE wallet encryption status.

Why this answer

V$ENCRYPTION_WALLET displays the status of the wallet used for TDE.

188
Multi-Selecthard

You are diagnosing a performance issue in an Oracle Database 23ai instance. You suspect that the issue is related to the optimizer's cardinality estimates. You want to gather additional information to confirm your suspicion. Which two of the following would provide you with the optimizer's estimated cardinality and the actual cardinality for each step of an execution plan? (Choose two.)

Select 2 answers
A.Querying V$SQLAREA and looking at the OPTIMIZER_COST column.
B.Querying V$SQL_PLAN for the SQL_ID and examining the CARDINALITY column.
C.Using the /*+ GATHER_PLAN_STATISTICS */ hint and then querying V$SQL_PLAN_STATISTICS_ALL.
D.Using DBMS_XPLAN.DISPLAY_CURSOR with the 'ALLSTATS LAST' format.
E.Using the EXPLAIN PLAN FOR command and then querying PLAN_TABLE for the CARDINALITY column.
AnswersC, D

The GATHER_PLAN_STATISTICS hint instructs the optimizer to collect execution statistics for all operations in the plan. These statistics, including estimated and actual rows, are then available in V$SQL_PLAN_STATISTICS_ALL. This is a standard method to compare estimates with actuals for a specific execution.

Why this answer

To compare estimated and actual cardinality, you need a method that captures runtime execution statistics. The GATHER_PLAN_STATISTICS hint causes the optimizer to collect actual row counts during execution, which are then visible in V$SQL_PLAN_STATISTICS_ALL. Similarly, DBMS_XPLAN.DISPLAY_CURSOR with 'ALLSTATS LAST' shows the plan with both estimated (E-Rows) and actual (A-Rows) cardinalities for the last execution.

Both approaches are valid and commonly used for this purpose.

Exam trap

The trap here is thinking that static plan views like V$SQL_PLAN or PLAN_TABLE contain actual runtime cardinality, when they only store estimates.

189
MCQmedium

A PDB named FINPDB in your CDB is currently open in READ WRITE mode and is actively serving users. You need to perform a planned maintenance operation that requires all user sessions to be disconnected and the PDB to be unavailable for new connections, but you want the operation to complete as quickly as possible without waiting for sessions to end naturally. Which command should you use?

A.ALTER PLUGGABLE DATABASE FINPDB CLOSE ABORT;
B.ALTER PLUGGABLE DATABASE FINPDB SAVE STATE;
C.ALTER PLUGGABLE DATABASE FINPDB CLOSE;
D.ALTER PLUGGABLE DATABASE FINPDB CLOSE IMMEDIATE;
AnswerD

CLOSE IMMEDIATE rolls back uncommitted transactions, disconnects all sessions, and closes the PDB promptly without waiting for users to log off. It is the correct choice when a maintenance window requires fast, forced disconnection of all sessions and the PDB must become unavailable immediately.

Why this answer

CLOSE IMMEDIATE is designed for planned maintenance where sessions must be terminated quickly and the PDB must become unavailable. It rolls back active transactions, disconnects users, and performs a checkpoint so the PDB can be reopened cleanly. A plain CLOSE waits indefinitely for sessions, CLOSE ABORT skips the checkpoint and risks recovery, and SAVE STATE only preserves open mode across instance restarts.

Exam trap

The trap here is confusing SAVE STATE with a close operation, when SAVE STATE only controls automatic reopening after a CDB restart and never disconnects users.

190
MCQmedium

Your Oracle 23ai database is in ARCHIVELOG mode. A user accidentally dropped a table in the SALES schema. You want to recover the table using Flashback Drop. However, the recycle bin for the tablespace was purged. What is the most efficient way to recover the table using RMAN?

A.Use Data Pump to import the table from a recent export dump.
B.Perform a table-level point-in-time recovery using RECOVER TABLE.
C.Use Flashback Table to recover the table to before the drop.
D.Restore the entire database to a point in time before the drop, then export the table.
AnswerB

RECOVER TABLE in RMAN allows you to recover a table to a point in time before the drop, even if the recycle bin was purged. It creates an auxiliary instance, restores the necessary data files and archived logs, and extracts the table. This is the most efficient RMAN method for table recovery when Flashback Drop is unavailable.

Why this answer

RECOVER TABLE is the RMAN feature specifically designed to recover a table from a backup to a point in time, even if Flashback Drop is not possible. It uses an auxiliary instance to restore and recover only the necessary data files, then extracts the table. This minimizes impact on the production database and is the most efficient method.

Exam trap

The trap here is assuming that Flashback Drop or Flashback Table can still work after the recycle bin is purged, or that a full database restore is necessary.

191
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

DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE captures the existing optimal plan from the shared pool and loads it into a SQL plan baseline, which pins that plan so the optimizer cannot substitute a different one on later executions. This directly satisfies the requirement to lock the current plan against change.

Why this answer

DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE loads existing plans from the cursor cache into SQL Plan Baselines, allowing you to lock the current optimal plan. This prevents the optimizer from changing it because the baseline will be used.

Exam trap

OCP often tests the difference between locking statistics and locking plans; candidates must know that DBMS_STATS.LOCK_TABLE_STATS does not lock execution plans, and that SPM is the correct tool for plan stability.

How to eliminate wrong answers

Option A is wrong because DBMS_STATS.LOCK_TABLE_STATS locks statistics, not execution plans; it prevents statistics changes but not plan changes. Option C is wrong because setting OPTIMIZER_FEATURES_ENABLE to a previous version affects optimizer behavior globally, not locking a specific plan. Option D is wrong because SQL Tuning Advisor may recommend a new profile, which could change the plan, not lock the current one.

192
Multi-Selecthard

Which THREE components are shared between a CDB and its PDBs?

Select 3 answers
A.Undo tablespace
B.Datafiles
C.Background processes
D.Redo log files
E.SGA
AnswersC, D, E

Background processes such as DBWn, LGWR, CKPT and SMON belong to the CDB instance and serve every PDB; PDBs have no separate processes. This shared instance-level architecture is what distinguishes a CDB from non-CDB deployments.

Why this answer

In a multitenant architecture, the CDB and all its PDBs share a single set of background processes (C), such as DBWn, LGWR, CKPT, SMON, and PMON, because there is only one Oracle instance serving the entire container database. They also share the redo log files (D), since all changes across the CDB and its PDBs are recorded in the same online redo logs to support a single instance-level recovery stream. The SGA (E) is likewise shared, as one instance means one memory area containing the buffer cache, shared pool, and other components used by all PDBs.

Undo tablespace (A) is not shared in the same way, because each PDB can have its own local undo tablespace (or use the CDB's shared undo depending on configuration), so it is not inherently a shared component. Datafiles (B) are not shared either, since each PDB has its own dedicated datafiles, while the CDB has its own separate datafiles for the root and PDB$SEED.

193
Multi-Selecthard

Which THREE operations are automatically performed by RMAN when executing the 'RECOVER TABLE' command?

Select 3 answers
A.Exporting the recovered table to the target database using Data Pump
B.Restoration of the tablespace containing the table to an auxiliary location
C.Automatic deletion of all backups older than the restore point
D.Creation of an auxiliary instance
E.Automatic conversion of the database to NOARCHIVELOG mode
AnswersA, B, D

RECOVER TABLE uses Data Pump to export the recovered table from the auxiliary instance and import it into the target database, restoring the table's data and metadata. This satisfies the requirement that the table be returned to its original schema automatically.

Why this answer

RECOVER TABLE is an RMAN command that performs a table-level point-in-time recovery by leveraging an auxiliary instance and a temporary auxiliary destination. Option B is correct because RMAN restores the tablespace(s) containing the target table to an auxiliary location (the auxiliary destination) rather than to the production datafiles. Option D is correct because RMAN automatically creates an auxiliary instance (spawned from the target database) to perform the recovery work.

Option A is correct because, after the table is recovered in the auxiliary instance, RMAN uses Data Pump to export the table and then imports it into the target database. Option C is incorrect because RECOVER TABLE does not delete backups older than the restore point; backup retention is governed by the configured retention policy, not by this command. Option E is incorrect because RMAN never automatically converts the database to NOARCHIVELOG mode; ARCHIVELOG mode is required for this operation and is not changed by RECOVER TABLE.

Exam trap

OCP often tests the misconception that RECOVER TABLE is a simple logical operation; candidates forget that it internally spins up an auxiliary instance and uses Data Pump, leading them to miss the automatic creation and export steps.

194
Multi-Selecthard

You are upgrading a 19c multitenant container database (CDB) to Oracle Database 23ai using AutoUpgrade. The source CDB contains three pluggable databases (PDBs). After running the upgrade, you need to verify that the upgrade was successful and that no manual intervention is required. Which two actions should you perform? (Choose two.)

Select 2 answers
A.Manually run the catuppst.sql script in each PDB.
B.Execute the DBMS_PDB.CHECK_PLUG_COMPATIBILITY function.
C.Check the AutoUpgrade log files for any errors or warnings.
D.Run the utlrp.sql script to recompile invalid objects.
E.Query the PDB_PLUG_IN_VIOLATIONS view for each PDB.
AnswersC, E

AutoUpgrade generates detailed log files in the specified directory, including the status of each PDB and the CDB. Reviewing these logs is essential to identify any errors or warnings that occurred during the upgrade. The logs provide information about post-upgrade fixups and any manual steps required. This is a standard verification step after running AutoUpgrade.

Why this answer

After an AutoUpgrade, you should check the log files for errors and query PDB_PLUG_IN_VIOLATIONS to detect any issues requiring manual intervention. These actions confirm the upgrade succeeded and highlight any remaining problems. Recompiling objects, checking plug compatibility, or running catuppst.sql are either redundant or incorrect for post-upgrade verification.

Exam trap

The trap here is thinking that manual recompilation or pre-plug-in checks are needed after AutoUpgrade, when the real verification steps are reviewing logs and querying violation views.

195
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 capture persistent, historical snapshots of database workload statistics, enabling comparison across days or weeks. This directly satisfies the long-term trend requirement, since the stem asks for diagnosing performance over time rather than instantaneous activity. Unlike real-time views, AWR retains data in the workload repository for retrospective analysis.

Why this answer

The AWR Report (B) is correct because Automatic Workload Repository snapshots persist performance data over long retention periods, enabling comparison of load, wait events, and top SQL across days or weeks to reveal long-term trends. The ADDM Report (E) is correct because Automatic Database Diagnostic Monitor analyzes AWR snapshots and produces findings and recommendations that track recurring performance issues over time, making it well suited for trend diagnosis. V$SESSION_WAIT (A) is a dynamic view showing only current or very recent wait activity, so it lacks historical depth.

ASH Report (C) samples active sessions at fine granularity but typically covers short windows, not long-term trends. SQL Trace with tkprof (D) captures a single session's statement-level execution details for point-in-time tuning, not multi-period trend analysis.

196
MCQmedium

You are performing a cross-platform data migration from a Linux-based Oracle 23ai source database to a Solaris target. You intend to use RMAN CONVERT DATABASE. Which prerequisite must be met to ensure the migration succeeds?

A.The source database must use Automatic Storage Management (ASM).
B.The target database must be in ARCHIVELOG mode before starting the conversion.
C.The source and target platforms must have the same endian format.
D.The source database must be in restricted mode.
AnswerC

RMAN CONVERT DATABASE is only supported when the source and target platforms have identical endianness.

Why this answer

When converting a database using RMAN, the source and target platforms must have the same endian format, or the conversion must be done via transportable tablespaces if the endianness differs. RMAN CONVERT DATABASE requires the platforms to share endianness.

197
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

The AWR report satisfies the requirement for identifying SQL statements ranked by elapsed time, since its SQL ordered by Elapsed Time section aggregates statements across the snapshot interval. Unlike STATSPACK, which offers similar data but with less detail, AWR captures this automatically from the Automatic Workload Repository, directly answering the stem's summary request.

Why this answer

The AWR (Automatic Workload Repository) Report includes a section titled 'SQL ordered by Elapsed Time' that lists SQL statements ranked by total elapsed time, making it the correct choice. This report aggregates performance statistics over a snapshot interval, capturing the cumulative impact of each SQL statement. The Alert Log and Listener Log do not provide SQL-level performance summaries, and ADDM focuses on diagnostic findings rather than raw SQL timing.

Exam trap

OCP often tests the distinction between AWR and ADDM reports, where candidates mistakenly choose ADDM because it sounds more 'diagnostic', but ADDM does not provide a direct SQL elapsed time ranking.

How to eliminate wrong answers

Option A is wrong because the Alert Log records critical errors, startup/shutdown events, and other administrative messages, not SQL performance metrics. Option C is wrong because the Listener Log tracks connection requests and listener service activity, not SQL execution times. Option D is wrong because the ADDM Report analyzes AWR data to identify performance issues and recommends actions, but it does not directly list SQL statements ordered by elapsed time.

198
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

DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS directly alters the interval parameter controlling Automatic Workload Repository snapshot frequency, satisfying the requirement to reduce collection overhead. Unlike manual snapshots or statistics-gathering changes, it adjusts the scheduled interval itself, so fewer snapshots are captured without disabling AWR entirely.

Why this answer

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

199
Multi-Selecthard

Which THREE types of information are contained in the PDB XML metadata file?

Select 3 answers
A.User passwords
B.Datafile locations
C.PDB GUID
D.Full table data
E.Character set
AnswersB, C, E

The PDB XML metadata file records datafile locations so the PDB can be cloned or plugged in elsewhere with correct file paths. This satisfies the requirement by capturing the physical storage layout needed for relocation.

Why this answer

The PDB XML metadata file (the XML file generated alongside a PDB, e.g., by the PDB metadata API or DBMS_PDB.DESCRIBE) records structural and configuration details of the pluggable database, not its business data. Option B is correct because the file lists the datafile locations (the paths of the PDB's datafiles, such as the SYSTEM, SYSAUX, and user tablespaces) so the PDB can be plugged in or cloned on another CDB. Option C is correct because the PDB GUID (the globally unique identifier assigned to the PDB) is stored in the metadata so the CDB can uniquely identify and track the plugged-in database.

Option E is correct because the database character set (and national character set) of the PDB is captured in the XML, which is essential for compatibility checks when plugging the PDB into a new CDB. Option A is not part of the XML metadata — user credentials are stored in the data dictionary (e.g., SYS.USER$), not in the PDB description file. Option D is also incorrect because the XML contains only metadata about the PDB's structure and configuration, never the actual table rows, which reside in the datafiles.

200
MCQhard

In 23ai, when using the 'JSON relational duality' feature, how are changes to the JSON document propagated to the underlying tables?

A.Only allowed via stored procedures
B.Automatically propagated by the database
C.Manual re-synchronization
D.Requires a trigger
AnswerB

JSON relational duality exposes JSON documents as relational views over underlying tables, so DML against the JSON view is automatically propagated to those tables by the database, requiring no manual synchronisation triggers or application-side writes.

Why this answer

JSON Relational Duality in Oracle 23ai provides automatic bidirectional synchronization between JSON documents and their underlying relational tables. When a JSON document is updated through a duality view, the database automatically propagates the changes to the base tables using the defined mappings. No manual re-synchronization, triggers, or stored procedures are required.

Exam trap

The trap is assuming that JSON Relational Duality requires manual synchronization or triggers, when the entire point of the feature is automatic, transactional propagation.

How to eliminate wrong answers

Option A is wrong because changes are not restricted to stored procedures; standard DML on duality views is supported. Option C is wrong because manual re-synchronization is unnecessary — the database maintains consistency automatically. Option D is wrong because triggers are not needed; the duality view's internal mapping handles propagation natively.

201
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

Querying DBA_ADVISOR_FINDINGS returns ADDM's stored findings directly, since ADDM writes its results into the advisor framework tables rather than exposing a dedicated view. This satisfies the requirement to view recommendations without generating a new report, though the view holds raw finding rows rather than formatted advice.

Why this answer

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

202
MCQmedium

You want to enforce password complexity in 23ai using a profile. Which clause is used to reference a custom verification function?

A.PASSWORD_VERIFY_FUNCTION
B.FAILED_LOGIN_ATTEMPTS
C.PASSWORD_LOCK_TIME
D.PASSWORD_LIFE_TIME
AnswerA

PASSWORD_VERIFY_FUNCTION names a PL/SQL function that Oracle invokes during password changes, letting you enforce bespoke complexity rules beyond the built-in limits. Referencing your custom function in the profile clause satisfies the requirement to apply organisation-specific verification logic to every user assigned that profile.

Why this answer

The PASSWORD_VERIFY_FUNCTION clause in the CREATE PROFILE statement allows for custom verification logic.

203
MCQmedium

What is the primary role of the 'Patching' phase in an upgrade?

A.To clear the redo logs
B.To reorganize the tables
C.To increase memory
D.To apply necessary updates to the dictionary
AnswerD

Patching applies the required updates to the dictionary during an upgrade, ensuring the target environment's data definitions match the new release. This satisfies the phase's purpose of bringing dictionary content up to the supported version.

Why this answer

Ensuring the binaries and the data dictionary match the desired target version.

204
MCQeasy

Can you use standard SQL DML on a Blockchain table?

A.Only via Java/JDBC
B.Yes, standard SQL is supported
C.Only via stored procedures
D.No, it requires a special API
AnswerB

Yes. Blockchain tables accept standard SQL DML for inserting and querying rows, so ordinary INSERT and SELECT statements work unchanged. The restriction is that UPDATE and DELETE are blocked, preserving the tamper-evident, append-only hash chain.

Why this answer

Yes, you can insert rows into a Blockchain table using standard INSERT statements.

205
MCQmedium

Your Oracle 23ai database is running in ARCHIVELOG mode. You have configured RMAN backups to a tape library using a media manager. You need to restore and recover a data file that was corrupted due to a hardware failure. The data file is currently offline. Which RMAN command should you use to restore and recover the data file?

A.RECOVER DATAFILE 5; RESTORE DATAFILE 5;
B.SWITCH DATAFILE 5; RECOVER DATAFILE 5;
C.RESTORE DATAFILE 5; ALTER DATABASE DATAFILE 5 ONLINE;
D.RESTORE DATAFILE 5; RECOVER DATAFILE 5;
AnswerD

This command restores the data file from the RMAN backup and then applies archived redo logs to bring it up to date. It is the correct procedure for recovering a data file from a backup. The data file must be offline before restoration, and after recovery it can be brought online. This command works with tape backups as long as the media manager is configured.

Why this answer

To recover a corrupted data file, you must first restore it from a backup and then apply archived redo logs using RECOVER. The correct sequence is RESTORE DATAFILE followed by RECOVER DATAFILE. The other options either omit recovery, have the wrong order, or use an inappropriate command.

Exam trap

The trap here is forgetting that after restoring a data file, recovery is required to apply archived logs and make the file consistent.

206
MCQeasy

What is the default location for RMAN backups if no FRA is configured?

A.The system tablespace.
B.The database home directory.
C.The redo log path.
D.The current working directory of the RMAN session.
AnswerD

Without a Fast Recovery Area, RMAN writes backups to the current working directory of the RMAN session by default, since no other destination is configured. This satisfies the stem's constraint of no FRA being set, making the session's working directory the effective default location.

Why this answer

If no Fast Recovery Area (FRA) is configured, RMAN backups default to the current working directory of the RMAN session. This means the backup pieces are created in the directory from which the RMAN client was invoked, unless an explicit format or location is specified.

Exam trap

The trap is assuming that backups default to the FRA or ORACLE_HOME; candidates must remember that without FRA, RMAN uses the current working directory, which is often overlooked.

How to eliminate wrong answers

Option A is wrong because the system tablespace is a logical storage structure within the database, not a filesystem location for backup pieces; RMAN cannot write backups into a tablespace. Option B is wrong because the database home directory (ORACLE_HOME) is where Oracle binaries reside, not the default backup destination; writing backups there could fill the software installation area. Option C is wrong because the redo log path is where online redo logs are stored, not a backup destination; RMAN does not default to this location.

207
MCQhard

A telecommunications company is migrating a critical billing application to Oracle Database 23ai. The application performs complex analytical queries on a large partitioned table. The DBA wants to ensure that SQL execution plans remain stable after the migration and that any plan changes are automatically validated to prevent performance regressions. Which 23ai feature should be configured?

A.Real-Time SQL Plan Management
B.Automatic Indexing
C.SQL Tuning Advisor
D.SQL Access Advisor
AnswerA

Real-Time SQL Plan Management in 23ai automatically detects and prevents plan regressions by validating new plans in real time. It ensures that only plans with equal or better performance are used, providing stability for critical queries. This directly addresses the need for stable execution plans after migration.

Why this answer

Real-Time SQL Plan Management automatically manages execution plans, ensuring that new plans are only used if they perform better. This provides plan stability and prevents regressions, which is crucial for critical applications after a migration. Other advisors offer tuning advice but do not enforce plan stability.

Exam trap

The trap here is confusing SQL tuning advisors with plan management; advisors give recommendations, while Real-Time SQL Plan Management automatically enforces plan stability.

208
MCQeasy

What is the recommended tool to apply a bundle patch to a 23ai environment?

A.Enterprise Manager
B.OPatch
C.RMAN
D.AutoUpgrade
AnswerB

OPatch is Oracle's patching utility for applying bundle patches and interim patches to Oracle Database homes, including 23ai. It satisfies the requirement by handling patch conflict detection, inventory updates and rollback, which the newer datapatch and autoupgrade tools do not replace for this task.

Why this answer

OPatch is the standard utility for applying patches to Oracle software.

209
MCQmedium

When configuring a secure listener in 23ai, which protocol is recommended for encrypted communication?

A.TCP
B.IPC
C.HTTP
D.TCPS
AnswerD

TCPS encrypts traffic using TLS, satisfying 23ai's requirement for a secure listener. Unlike plain TCP, which transmits data unencrypted, TCPS authenticates endpoints and protects credentials and SQL payloads in transit. Oracle recommends TCPS specifically for encrypted listener communication, making it the appropriate protocol here.

Why this answer

TCPS (TCP with SSL/TLS) is the recommended protocol for a secure listener in Oracle 23ai because it encrypts all communication between clients and the database using SSL/TLS certificates. Configuring the listener with TCPS ensures that authentication and data transfer are protected against eavesdropping and man-in-the-middle attacks. While TCP is the default for non-secure connections, TCPS is specifically designed for encrypted communication and is required for features like Oracle Data Guard and many compliance standards.

Exam trap

OCP often tests secure listener configuration, and candidates may confuse TCPS with TCP or think that IPC provides encryption; the trap is choosing TCP because it is the default, ignoring the requirement for encryption.

How to eliminate wrong answers

Option A is wrong because plain TCP provides no encryption; it is the standard protocol for non-secure listener communication. Option B is wrong because IPC (Inter-Process Communication) is used for local connections on the same host and does not traverse the network, so it is not relevant for secure remote communication. Option C is wrong because HTTP is used for web-based services like Oracle REST Data Services or EM Express, not for database listener communication; it is not a database protocol for SQL*Net.

210
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

Active Session History samples active sessions every second into a circular buffer, recording session identifier, wait event, and blocking details. This one-second granularity over the past hour gives the session-level wait breakdown that aggregated views such as AWR cannot provide.

Why this answer

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

211
MCQeasy

What is the primary characteristic of a Blockchain table in 23ai?

A.It is for temporary data
B.It is immutable
C.It allows row deletion
D.It can be updated
AnswerB

A Blockchain table in Oracle 23ai is immutable: rows can be inserted but not updated or deleted, and each row is cryptographically chained to the previous one. This tamper-evident, append-only design is its defining characteristic.

Why this answer

It is an insert-only, immutable table.

212
MCQhard

You are administering a CDB with multiple PDBs. A developer reports that a query against a table in PDB1 returns an error indicating that the table does not exist, even though the table exists in the PDB. You connect to the CDB root and verify that the PDB is open. What is the most likely cause?

A.The PDB is open in read-only mode, preventing access to the table.
B.The developer is connected to the CDB root instead of the PDB.
C.The table is in a different schema and the developer lacks synonyms.
D.The table is not visible because the PDB's service name is not registered with the listener.
AnswerB

In a multitenant architecture, each PDB has its own data dictionary and schema objects. If the developer connects to the CDB root, they will not see tables that reside in a PDB. The error suggests they are not in the correct container. They must connect directly to the PDB using its service name.

Why this answer

In a multitenant database, data is isolated per PDB. Connecting to the CDB root does not give access to PDB objects. The developer must connect using the PDB's service name to see its tables.

The error is a classic symptom of being in the wrong container.

Exam trap

The trap here is overlooking the container context and assuming the issue is with privileges or object names, when actually the user is simply in the wrong container.

213
MCQhard

When using 'Snapshot Carousel', how many snapshots can a single PDB retain?

A.Fixed at 8
B.Defined by MAX_PDB_SNAPSHOTS
C.Controlled by the OS
D.Unlimited
AnswerB

Snapshot Carousel retention is capped by the MAX_PDB_SNAPSHOTS parameter, which defaults to 8 and can be raised to 1024. This satisfies the stem's constraint by defining the exact per-PDB snapshot limit, rather than leaving retention unbounded or fixed at a single value.

Why this answer

The number is managed by the MAX_PDB_SNAPSHOTS parameter.

214
MCQhard

What is the recommended approach for updating data in a table using Lock-Free Reservations?

A.Disable row locking
B.Use standard UPDATE
C.Call a special procedure
D.Use a trigger
AnswerB

Lock-free reservations rely on the database's standard UPDATE statement, which the runtime intercepts and converts into a reservation check against the reserved stock, so no special syntax is needed. Plain UPDATE therefore satisfies the recommended approach.

Why this answer

Lock-Free Reservations in Oracle 23ai are designed to work transparently with standard DML. The database automatically detects when a column has a reservation column defined and uses the reservation mechanism to avoid row-level lock contention, so developers simply issue a normal UPDATE statement. No special API, procedure, or trigger is required — the optimization is applied by the database engine itself.

Exam trap

OCP often tests whether candidates overcomplicate Lock-Free Reservations by assuming a special procedure or trigger is needed, when in fact the feature is transparent to standard UPDATE statements.

How to eliminate wrong answers

Option A is wrong because disabling row locking is neither necessary nor possible as a general mechanism — Lock-Free Reservations replace the need for row locks on reserved columns but do not require turning off locking globally. Option C is wrong because there is no special PL/SQL procedure to invoke; the reservation is handled internally by the SQL engine during a standard UPDATE. Option D is wrong because triggers are for enforcing business logic on DML events, not for enabling Lock-Free Reservations, which operate at the storage/transaction layer.

215
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

SQL Profiles supply auxiliary statistics and hints that let the optimiser choose a more consistent plan for a specific statement without altering the SQL text, improving execution plan stability by countering poor cardinality estimates that cause plan changes.

Why this answer

SQL Profiles (C) improve plan stability by supplying optimizer hints and statistics adjustments that steer the optimizer toward a proven plan without changing application SQL. Freezing execution plans (D) locks a specific plan for a SQL statement so the optimizer cannot switch to a different, potentially worse plan. SQL Plan Baselines (E) capture and enforce known-good plans, allowing the optimizer to use only plans in the baseline and preventing regressions.

Dropping and recreating indexes (A) is disruptive and can cause plan changes and instability, not stability. Increasing the SGA size daily (B) is arbitrary and does not directly stabilize execution plans.

216
MCQmedium

You are administering an Oracle Database 23ai environment with Unified Auditing enabled. A new security policy requires that all failed logon attempts be audited. Which action should you take to meet this requirement?

A.Create a unified audit policy that audits failed logons and enable it.
B.Set the AUDIT_TRAIL parameter to DB, EXTENDED.
C.Configure the database to use the OS audit trail and set audit_syslog_level.
D.Enable the AUDIT_SYS_OPERATIONS parameter.
AnswerA

Unified Auditing uses policies to capture specific activities. To audit failed logons, you create a unified audit policy with the appropriate privilege or action, such as CREATE SESSION, and include the WHENEVER NOT SUCCESSFUL clause. Then you enable the policy. This approach is flexible and aligns with the unified auditing framework in 23ai.

Why this answer

To audit failed logon attempts in a Unified Auditing environment, you create and enable a unified audit policy that captures CREATE SESSION with the WHENEVER NOT SUCCESSFUL clause. Legacy parameters like AUDIT_TRAIL and AUDIT_SYS_OPERATIONS do not apply to Unified Auditing and would not fulfill the requirement.

Exam trap

The trap here is relying on legacy auditing parameters like AUDIT_TRAIL, which are not used in Unified Auditing and will not capture failed logons as required.

217
MCQmedium

When a PDB is in 'RESTRICTED' mode, which sessions are allowed?

A.All users
B.No users
C.Only SYSDBA
D.Only users with RESTRICTED SESSION
AnswerD

RESTRICTED mode blocks all connections except those holding the RESTRICTED SESSION privilege, which administrators grant to specific users for maintenance. This satisfies the stem's constraint precisely: only privileged sessions may connect while the pluggable database remains open to those accounts alone.

Why this answer

Only users with RESTRICTED SESSION privilege are allowed.

218
MCQhard

A database administrator is enabling True Cache for a primary database. The application will connect to the True Cache instance for read-only queries. Which statement about the default behavior of a session connected to True Cache is correct?

A.The session can perform DML, but the changes are applied only to the cache and not the primary.
B.The session is read-only and any DML statement returns an error.
C.The session can perform both read and write operations, with writes automatically forwarded to the primary.
D.The session can perform DML, but the changes are queued and applied to the primary when the cache refreshes.
AnswerB

By default, a session connected to a True Cache instance is read-only. Any attempt to execute DML (INSERT, UPDATE, DELETE) or DDL results in an error, such as ORA-16000. This is because True Cache is designed to serve read-only queries and does not support write operations. The session cannot modify data; writes must be directed to the primary database.

Why this answer

A session connected to a True Cache instance is read-only by default. Any DML or DDL statement returns an error, such as ORA-16000. This design ensures that the cache remains consistent with the primary database and does not handle writes.

Applications must route write operations to the primary database. The read-only nature of True Cache sessions is a fundamental characteristic that administrators must understand when deploying True Cache for read scaling.

Exam trap

The trap here is assuming that True Cache sessions might allow writes with some forwarding or queuing mechanism, when in fact they are strictly read-only and reject DML.

219
MCQmedium

A developer is creating a table with a lock-free reservation column to handle high-concurrency updates. The column is defined as NUMBER(5,0). After many transactions, the value reaches its maximum. What happens when a transaction attempts to reserve beyond the maximum?

A.The reservation succeeds but the value wraps around to the minimum.
B.The reservation is automatically converted to a standard update and succeeds.
C.The transaction receives an ORA-01438 value larger than specified precision allowed for this column error.
D.The transaction receives an ORA-00001 unique constraint violated error.
AnswerC

ORA-01438 is raised when a value exceeds the precision defined for a NUMBER column. In lock-free reservations, if the reservation would cause the column value to exceed its maximum, Oracle raises ORA-01438. This ensures that the column's integrity is maintained. The transaction fails, and the reservation is not applied, preventing data corruption.

Why this answer

When a lock-free reservation would cause a numeric column to exceed its defined precision, Oracle raises ORA-01438. This error indicates that the value is larger than the specified precision allows. The transaction fails, and the reservation is not applied, preserving data integrity.

This behavior is consistent with standard numeric column constraints and ensures that the column's limits are respected even under high concurrency.

Exam trap

The trap here is thinking that lock-free reservations might wrap around or trigger a unique constraint error, when the actual error is ORA-01438 for exceeding column precision.

220
MCQmedium

You need to back up only the archived redo log files that have not yet been backed up, and then delete the input files after the backup completes. Which RMAN command accomplishes this?

A.BACKUP ARCHIVELOG ALL DELETE INPUT;
B.BACKUP ARCHIVELOG NOT BACKED UP DELETE INPUT;
C.BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
D.BACKUP ARCHIVELOG FROM TIME 'SYSDATE-1' DELETE INPUT;
AnswerB

BACKUP ARCHIVELOG NOT BACKED UP restricts the backup to archived redo log files that have never been backed up. DELETE INPUT then removes each input file from disk after it has been successfully backed up. This matches the scenario exactly, ensuring only new logs are backed up and the originals are removed to free space.

Why this answer

The requirement is to back up only archived redo log files that have not yet been backed up. RMAN provides the NOT BACKED UP clause specifically for this purpose. Combining it with DELETE INPUT removes the input files after a successful backup.

The other options either back up all archived logs or use a time-based filter, which does not guarantee that only unbacked-up logs are processed.

Exam trap

The trap here is assuming that DELETE INPUT alone filters which archived logs are backed up, when it only controls deletion of the input files after the backup.

221
MCQmedium

In True Cache, how is consistency maintained with the primary database?

A.Asynchronous replication
B.Manual refreshes
C.Polling
D.Synchronous writes
AnswerA

True Cache applies redo from the primary asynchronously, so cached data lags slightly behind but reads scale without blocking the primary. This satisfies the stem's consistency requirement: the cache converges to the primary's state rather than requiring synchronous coordination.

Why this answer

True Cache maintains consistency with the primary database through asynchronous replication of redo/change data. The True Cache instance applies changes from the primary's redo stream in near real-time, so it is not transactionally synchronous but is kept current with low lag. This design lets True Cache serve read-only queries without blocking on the primary.

Exam trap

The trap is assuming True Cache behaves like a synchronous read replica — candidates pick 'synchronous writes' because they conflate cache coherence with transactional consistency, but True Cache is explicitly asynchronous.

How to eliminate wrong answers

Option B is wrong because manual refreshes would defeat the purpose of a transparent read-scaling cache and cannot keep up with OLTP change rates. Option C is wrong because polling implies periodic queries against the primary, which is inefficient and not how True Cache propagates changes — it consumes redo. Option D is wrong because synchronous writes would require the primary to wait for the cache on every commit, destroying write performance and contradicting True Cache's read-only, asynchronous design.

222
MCQeasy

What is the primary purpose of the Flashback Database feature?

A.To restore individual corrupted datafiles
B.To recover dropped tables
C.To revert the entire database to a point in time
D.To undo a specific transaction
AnswerC

Flashback Database uses flashback logs to return the entire database to an earlier point in time, reversing block-level changes without a full restore. This whole-database rewind is its primary purpose, distinct from object-level or row-level flashback features.

Why this answer

Flashback Database allows you to return the entire database to a previous point in time without restoring from a backup.

223
MCQmedium

For Memoptimized Write, where is the data initially stored before being written to the database?

A.SGA memory buffer
B.Flash cache
C.Undo tablespace
D.Redo log
AnswerA

Memoptimized Write buffers incoming rows in a dedicated SGA memory area, accumulating them before the database flushes them to disk in bulk. This staging in the SGA satisfies the scenario's requirement, since writes are not persisted directly to storage on arrival.

Why this answer

Memoptimized Write is an Oracle Database feature that accelerates high-frequency, low-latency inserts by buffering incoming row data in a dedicated area of the SGA called the Memoptimized Rowstore. Once the buffer fills or a threshold is reached, the data is asynchronously written to the database in bulk, reducing commit overhead and improving throughput. The SGA buffer acts as a staging area, so the data is not immediately persisted to disk or redo logs until the write is flushed.

Exam trap

OCP often tests the misconception that Memoptimized Write data is initially stored in redo logs or flash cache, confusing the buffering mechanism with persistence or caching layers.

How to eliminate wrong answers

Option B is wrong because the flash cache is a persistent block storage tier used to cache frequently accessed data blocks, not a staging area for Memoptimized Write inserts. Option C is wrong because the undo tablespace stores before-image data for transaction rollback and read consistency, not the initial buffer for new inserts. Option D is wrong because the redo log records change vectors for recovery, but it is not where data is initially stored; redo entries are generated after the data is buffered in the SGA.

224
MCQeasy

You are preparing to upgrade a 19c database to 23ai using the AutoUpgrade utility. You have created the configuration file and run the upgrade in analyze mode. The analysis completes successfully. What is the next step you should perform according to best practices?

A.Run the upgrade in analyze mode again with a different configuration to compare results.
B.Run the upgrade in deploy mode to perform the actual upgrade.
C.Run the upgrade in fixup mode to have AutoUpgrade automatically resolve any issues identified during analysis.
D.Review the analysis report generated by AutoUpgrade to identify any issues that need to be addressed before upgrading.
AnswerD

After running AutoUpgrade in analyze mode, it generates a detailed report listing potential issues, warnings, and recommendations. Best practice is to review this report thoroughly to understand what needs to be fixed. You can then decide to fix issues manually, use fixup mode for automatic fixes, or adjust the configuration. Only after resolving issues should you proceed to deploy mode. Reviewing the report is the critical next step.

Why this answer

The AutoUpgrade utility's analyze mode produces a comprehensive report of the database's readiness for upgrade. This report includes checks for deprecated parameters, invalid objects, time zone versions, and other prerequisites. The correct next step is to review this report carefully to identify any issues that could hinder the upgrade.

Based on the findings, you can then take corrective actions, such as running fixup mode for automatic fixes or manually resolving problems. Only after ensuring the database is ready should you proceed to deploy mode to perform the actual upgrade.

Exam trap

The trap here is assuming that a successful analysis means you can immediately proceed to deploy, skipping the crucial step of reviewing the report for hidden issues.

225
MCQmedium

When using Blockchain Tables, what is the default behavior for rows that have reached their 'no drop' period?

A.Rows are moved to archive storage
B.Rows are automatically purged
C.Rows remain immutable until deleted manually
D.Rows become updateable
AnswerC

Rows past the 'no drop' period stay immutable; the retention lock only prevents deletion, it never authorises it. Oracle Blockchain Tables expose no automatic purge, so rows persist until an explicit DELETE runs. This satisfies the stem's default-behaviour constraint: expiry of the no-drop window merely permits deletion, it does not trigger it.

Why this answer

In Oracle Blockchain Tables, rows are immutable and cannot be updated or deleted until the 'no drop' period expires. After the no-drop period, the default behavior is that rows remain immutable until explicitly deleted by a user—they are not automatically purged. This preserves the tamper-evident nature of the blockchain table while allowing administrative cleanup.

Exam trap

The trap here is assuming that 'no drop' period expiration triggers automatic cleanup or archival, when in fact Oracle requires manual deletion and the rows remain immutable until then—candidates often confuse retention with automatic lifecycle management.

How to eliminate wrong answers

Option A is wrong because Oracle Blockchain Tables do not automatically move rows to archive storage; there is no built-in archival tiering for expired rows. Option B is wrong because rows are not automatically purged after the no-drop period—automatic purging would undermine the auditability and retention guarantees of the blockchain table. Option D is wrong because rows in a blockchain table are never updateable; immutability is the core design principle, and even after the no-drop period, rows can only be deleted, not modified.

Page 2

Page 3 of 4

Page 4

All pages