Courseiva

CCNA Security And Upgrades Questions

53 questions · Security And Upgrades topic · All types, answers revealed

1
Multi-Selectmedium

You are reviewing security best practices for 23ai. Which THREE of the following represent recommended actions to harden a production instance?

Select 3 answers
A.Apply the latest quarterly Release Update (RU)
B.Use Oracle Key Vault for TDE master key management
C.Enforce strong password profiles
D.Run database in NoArchiveLog mode for security
E.Disable all default schemas immediately
AnswersA, B, C

Applying the latest quarterly Release Update patches known vulnerabilities in the Oracle binaries, closing exploits that attackers actively target. Staying current on security patches is a foundational hardening action for production instances, satisfying the stem's requirement for recommended security actions.

Why this answer

Option A is correct because applying the latest quarterly Release Update (RU) ensures the instance receives Oracle's most recent security patches and bug fixes, which is a foundational hardening step for any production 23ai database. Option B is correct because using Oracle Key Vault for TDE master key management centralizes and isolates encryption keys from the database server, providing stronger key custody and separation of duties than storing keys in a local wallet. Option C is correct because enforcing strong password profiles (via Oracle profiles with parameters like FAILED_LOGIN_ATTEMPTS, PASSWORD_LIFE_TIME, and PASSWORD_VERIFY_FUNCTION) reduces the risk of brute-force and credential-guessing attacks against database accounts.

Option D is not recommended because running in NoArchiveLog mode disables archiving and thus eliminates point-in-time recovery, increasing data-loss risk rather than hardening the instance. Option E is not recommended because disabling all default schemas immediately can break core database functionality and built-in features; default accounts should instead be locked or expired selectively after verifying they are unused.

Exam trap

The trap is treating operational choices (NoArchiveLog mode, dropping default schemas) as security hardening — candidates who equate 'less functionality' with 'more secure' pick D or E, missing that these break recoverability and core database operation.

2
MCQhard

You have a 19c database. Which tool must you run to ensure the database is ready for an upgrade to 23ai?

A.utlrp.sql
B.dbv
C.catupgrd.sql
D.preupgrade.jar
AnswerD

preupgrade.jar performs the mandatory pre-upgrade checks for 19c to 23ai, analysing the database and generating a fixup script plus a preupgrade log. It satisfies the stem's requirement to verify upgrade readiness, unlike DBUA, which performs the actual upgrade rather than the readiness assessment.

Why this answer

The Pre-Upgrade Information Tool (preupgrade.jar) is mandatory for evaluating the source database.

3
MCQmedium

You are preparing to upgrade a 19c non-CDB database to Oracle Database 23ai using the AutoUpgrade utility. Before running the upgrade, you must create the AutoUpgrade configuration file with the correct parameters. Which file format does AutoUpgrade require for its configuration file?

A.A JSON file with a predefined structure and mandatory keys.
B.A plain text file using key=value pairs and section headers, conventionally named config.cfg.
C.An XML file conforming to a specific AutoUpgrade schema.
D.A YAML file with indentation-based nesting.
AnswerB

AutoUpgrade uses a simple text-based configuration file, typically named config.cfg, where parameters are specified as key=value pairs and grouped under section headers such as [GENERAL] and [JOBS]. This format is human-readable, easy to edit, and is the documented requirement for all AutoUpgrade operations, including upgrades to Oracle Database 23ai.

Why this answer

AutoUpgrade reads a plain text configuration file, commonly named config.cfg, where parameters are defined as key=value pairs under section headers like [GENERAL] and [JOBS]. This format is required for specifying source and target database homes, SID lists, and other upgrade options. XML, JSON, and YAML are not supported and will prevent the utility from running correctly.

Exam trap

The trap here is assuming that a modern utility like AutoUpgrade would use a structured format such as JSON or YAML, when it actually relies on a simple key=value text file.

4
MCQmedium

Which utility is used to perform a 'fixup' during the AutoUpgrade process?

A.srvctl
B.utlu122s.sql
C.catupgrd.sql
D.preupgrade_fixups.sql
AnswerD

Running `preupgrade_fixups.sql` executes the fixup stage of AutoUpgrade, automatically resolving issues the preupgrade checks flagged, such as invalid parameters or missing privileges. It satisfies the stem's requirement for the utility performing the fixup, distinct from the check script that only reports problems.

Why this answer

The AutoUpgrade utility performs pre-upgrade and post-upgrade fixups by running SQL scripts; the preupgrade_fixups.sql script is generated by the 'java -jar autoupgrade.jar -mode analyze' step and is executed during the 'fixup' phase to address issues that would block the upgrade. It is the specific artifact used to apply corrective actions before the actual upgrade proceeds.

Exam trap

OCP often tests whether candidates confuse the AutoUpgrade fixup script (preupgrade_fixups.sql) with legacy manual upgrade scripts like catupgrd.sql or utlu122s.sql, which belong to older upgrade methodologies.

How to eliminate wrong answers

Option A is wrong because srvctl is an Oracle Clusterware/Grid Infrastructure command-line utility for managing resources like databases, listeners, and services, not for running AutoUpgrade fixups. Option B is wrong because utlu122s.sql is a legacy manual upgrade script (from older 12.2 upgrade paths) that queries and updates registry scripts, not the AutoUpgrade fixup mechanism. Option C is wrong because catupgrd.sql is the core catalog upgrade script invoked by DBUA or manual upgrades to upgrade the data dictionary, not the AutoUpgrade fixup utility.

5
MCQhard

What is the consequence of not running the 'catupgrd.sql' script after a major version upgrade?

A.Only performance is affected
B.The database will run in read-only mode
C.Data dictionary remains in old version format
D.The database will not start
AnswerC

The dictionary must be upgraded to match the engine version.

Why this answer

The data dictionary will be inconsistent, and many objects will be invalid, leading to database failure.

6
MCQmedium

In Oracle 23ai, you want to use Database Vault to prevent highly privileged users (like SYS) from accessing sensitive application data. Which component must be enabled and configured to achieve this separation of duty?

A.Virtual Private Database (VPD)
B.Data Redaction
C.Database Vault Realms
D.Label Security
AnswerC

Realms create protected zones around schemas and objects, so even SYS must pass realm authorisation before touching that data. Enabling and configuring realms therefore enforces the separation of duty the scenario demands, blocking highly privileged accounts from sensitive application tables.

Why this answer

Database Vault Realms are the specific Database Vault component designed to create a protective boundary around application schemas and data, blocking even highly privileged users like SYS or SYSDBA from accessing them unless explicitly authorized. A realm defines the objects to protect and the authorized users/roles that may access them, thereby enforcing separation of duty between DBAs and application data owners. This is the core mechanism in Oracle 23ai Database Vault for preventing privileged user access to sensitive application data.

Exam trap

The trap here is confusing Database Vault Realms with other Oracle security features like VPD, Data Redaction, or Label Security, all of which protect data from regular users but do not block privileged users such as SYS — only Database Vault Realms are designed to restrict privileged access.

How to eliminate wrong answers

Option A is wrong because Virtual Private Database (VPD) enforces row-level and column-level security through policies for regular users, but it does not block SYS or users with the DV_OWNER/DV_ADMIN privileges — SYS can bypass VPD policies. Option B is wrong because Data Redaction masks column data at query time for non-privileged users but does not prevent privileged users like SYS from viewing the underlying data or disabling redaction. Option D is wrong because Label Security (OLS) enforces data classification and labeling for users, but it also does not block SYS/SYSDBA from accessing data — it is not a separation-of-duty control against privileged users.

7
MCQeasy

What is the primary function of the Database Resident Connection Pooling (DRCP) in a 23ai environment?

A.Connection scaling
B.Security authentication
C.Data encryption
D.Audit trail management
AnswerA

It manages server process overhead efficiently.

Why this answer

DRCP reduces the memory footprint of a database by pooling server processes.

8
Multi-Selecthard

Which TWO components must be secured to maintain database integrity?

Select 2 answers
A.User manual
B.Data files
C.Backup files
D.System logs
E.Client browser
AnswersB, C

Data files store the actual table and index pages, so unauthorised modification directly corrupts persisted rows and breaks integrity. Securing them with restrictive filesystem permissions prevents tampering outside the database engine, satisfying the requirement to protect stored data rather than merely access paths or credentials.

Why this answer

Data files (B) must be secured because they contain the actual database records; unauthorized modification, deletion, or corruption of these files directly destroys the accuracy and consistency of the data, which is the essence of database integrity. Backup files (C) must also be secured because they are the recovery source if data files are damaged or compromised; if backups are tampered with or corrupted, restoring the database would reintroduce bad data, so protecting them preserves integrity across recovery operations. The user manual (A) is documentation only and does not store or affect database records.

System logs (D) are useful for auditing and troubleshooting but are not the database content itself, so securing them alone does not maintain data integrity. The client browser (E) is an endpoint interface, not a database component, and securing it does not protect the stored data.

Exam trap

The trap is including system logs or user manuals as critical components; candidates must focus on the actual data storage and recovery artifacts that directly impact integrity.

9
MCQeasy

What is the purpose of the 'Database Vault' option?

A.To improve query performance
B.To encrypt backups
C.To prevent DBA access to sensitive data
D.To manage user passwords
AnswerC

Database Vault enforces separation of duties by placing sensitive schemas and data behind realms and command rules, so DBAs holding powerful privileges cannot query protected objects without explicit authorisation, directly blocking DBA access to sensitive data.

Why this answer

Database Vault restricts access to application data by privileged users like SYS.

10
MCQmedium

You are upgrading a 19c database to Oracle Database 23ai. The database uses a password-protected software keystore for TDE. During the upgrade, you need to ensure that the keystore remains accessible. Which command should you use to open the keystore automatically after the upgrade, without manual intervention?

A.ADMINISTER KEY MANAGEMENT CREATE KEYSTORE '/path/to/keystore' IDENTIFIED BY "password";
B.ADMINISTER KEY MANAGEMENT CREATE AUTO_LOGIN KEYSTORE FROM KEYSTORE '/path/to/keystore' IDENTIFIED BY "password";
C.ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "password";
D.ADMINISTER KEY MANAGEMENT SET ENCRYPTION KEY IDENTIFIED BY "password" WITH BACKUP;
AnswerB

This command creates an auto-login keystore, which allows the database to open the keystore automatically without requiring a password. This is ideal for ensuring TDE-encrypted data remains accessible after a restart, such as following an upgrade. The auto-login keystore is a separate file that stores the master key encrypted with a system-generated password.

Why this answer

Creating an auto-login keystore allows the database to open the keystore automatically upon startup, eliminating manual password entry. This is essential after an upgrade to ensure TDE-encrypted data is available without intervention. The other commands either open the keystore manually, rekey the master encryption key, or create a new keystore, none of which provide the required automation.

Exam trap

The trap here is thinking that opening the keystore manually is sufficient; the requirement is for automatic access after upgrade, which only an auto-login keystore provides.

11
MCQmedium

You are the lead DBA for a 23ai production database. Company policy requires that all administrative actions performed by DBAs be recorded in the Unified Audit Trail. You have already created an audit policy named DBA_ACTIONS that captures the relevant actions, but you need to ensure that it is enforced. Which action must you perform?

A.Set the AUDIT_TRAIL initialization parameter to DB, EXTENDED.
B.Restart the database instance to activate the policy.
C.Enable the audit policy using the AUDIT POLICY DBA_ACTIONS statement.
D.Grant the AUDIT_ADMIN role to the DBAs.
AnswerC

In Oracle 23ai, creating an audit policy with CREATE AUDIT POLICY only defines it. To enforce it, you must enable it with the AUDIT POLICY statement. This action activates the policy and starts writing audit records to the Unified Audit Trail for the specified actions, thereby meeting the requirement.

Why this answer

The correct action is to enable the audit policy with the AUDIT POLICY statement. Creating a policy in Unified Auditing only defines it; it remains inactive until explicitly enabled. This step ensures that the specified administrative actions are captured in the Unified Audit Trail, satisfying the policy requirement.

Exam trap

The trap here is assuming that creating an audit policy automatically enables it, but in Oracle 23ai, policies must be explicitly enabled to take effect.

12
Multi-Selecthard

Which THREE of the following are valid methods to patch an Oracle 23ai database?

Select 3 answers
A.OPatchAuto
B.Fleet Patching and Provisioning (FPP)
C.OPatch
D.Data Pump Patching
E.SQL*Plus Patch
AnswersA, B, C

OPatchAuto orchestrates patch application across Oracle homes and Grid Infrastructure, including RAC and standalone deployments. It satisfies the stem by being a supported patching method for Oracle 23ai, automating the underlying OPatch and datapatch steps in a single invocation.

Why this answer

OPatchAuto (A) is a valid patching method because it orchestrates the application of patches across an Oracle Grid Infrastructure/RAC environment, automatically stopping and restarting the relevant components and running OPatch and the appropriate utilities for each home. Fleet Patching and Provisioning (B), formerly Rapid Home Provisioning, is valid because it centrally manages and applies patches to Oracle homes and databases across a fleet, including rolling patching of RAC and Data Guard configurations. OPatch (C) is valid because it is Oracle's core patch utility used to apply interim patches and patch sets to an Oracle home, invoked as the underlying engine for many patching operations.

Data Pump Patching (D) is not a real patching method—Data Pump (expdp/impdp) is a data movement utility, not a patch mechanism. SQL*Plus Patch (E) is also not valid, since SQL*Plus is merely a client/command-line interface for running SQL and PL/SQL and does not apply patches to an Oracle home.

Exam trap

The trap is including Data Pump or SQL*Plus as patching tools because they are familiar Oracle utilities; candidates must remember that only OPatch, OPatchAuto, and FPP are valid patching methods.

13
MCQmedium

You are implementing Transparent Data Encryption (TDE) in a 23ai database. You have configured the wallet and set the encryption key. You need to ensure that the data in the USERS tablespace is encrypted. Which statement correctly describes the process to encrypt the USERS tablespace?

A.You must use the DBMS_TDE package to encrypt the USERS tablespace, specifying the tablespace name and encryption algorithm.
B.You must create a new encrypted tablespace and move all data from USERS to the new tablespace, then drop USERS.
C.You must set the parameter ENCRYPT_NEW_TABLESPACES to TRUE, which will automatically encrypt all existing tablespaces upon restart.
D.You can encrypt an existing tablespace online using the ALTER TABLESPACE USERS ENCRYPTION ONLINE USING 'AES256' ENCRYPT; command.
AnswerD

Oracle Database 23ai supports online tablespace encryption. You can encrypt an existing tablespace without taking it offline by using the ALTER TABLESPACE ... ENCRYPTION ONLINE clause. This command encrypts all data files in the tablespace and updates the data dictionary. It requires the tablespace to be in a read-write state and the wallet to be open. This is the most efficient method to encrypt an existing tablespace with minimal downtime.

Why this answer

In Oracle Database 23ai, you can encrypt an existing tablespace without moving data by using the ALTER TABLESPACE ... ENCRYPTION ONLINE command. This command encrypts all data files in the tablespace while the tablespace remains online and accessible.

The process requires the TDE wallet to be open and the tablespace to be in read-write mode. This method is efficient and minimizes downtime. The other options describe either unnecessary manual steps, nonexistent packages, or parameters that only affect new tablespaces.

Exam trap

The trap here is assuming that encrypting an existing tablespace requires creating a new encrypted tablespace and moving data, when online encryption is supported.

14
MCQeasy

You are upgrading from 19c to 23ai and need to identify incompatible parameters before the upgrade. Which tool should you use?

A.Pre-Upgrade Information Tool
B.Cloud Pre-Migration Advisor Tool
C.Oracle Fleet Patching and Provisioning
D.DBUA
AnswerA

The Pre-Upgrade Information Tool directly satisfies the requirement to identify incompatible parameters before upgrading. It analyses the source database and reports deprecated and obsolete initialisation parameters, along with other pre-upgrade fix-ups, producing a detailed report that must be reviewed and resolved prior to running the upgrade itself.

Why this answer

The Pre-Upgrade Information Tool (preupgrade.jar) is the standard method for identifying parameter incompatibilities.

15
MCQeasy

What is the purpose of the 'Wallet' in Oracle security?

A.To backup the database
B.To manage database users
C.To improve query performance
D.To store encryption keys and credentials
AnswerD

The Wallet stores encryption keys, credentials and certificates, and it is the mechanism that protects them. It supplies the master keys used for Transparent Data Encryption and other Oracle security features, keeping sensitive material separate from the data it protects.

Why this answer

In Oracle security, a wallet is a password-protected container that stores encryption keys, credentials, and certificates. It is used by TDE to store the master encryption key and by clients to store credentials for secure connections. The wallet protects these secrets with a password or auto-login mechanism.

Exam trap

OCP often tests whether candidates confuse the wallet's purpose with backup or user management; the trap is selecting a function that belongs to RMAN or IAM rather than key and credential storage.

How to eliminate wrong answers

Option A is wrong because backups are performed by RMAN or OCI backup services, not by a wallet; the wallet stores keys, not data files. Option B is wrong because database user management is handled by CREATE USER, GRANT, and IAM policies, not by a wallet. Option C is wrong because query performance is improved by indexing, partitioning, and optimizer statistics, not by a wallet.

16
MCQhard

What happens to a traditional audit record when you migrate to Unified Auditing in 23ai?

A.Automatically converted
B.Stay in separate tables
C.Deleted automatically
D.Merged into the Unified Trail
AnswerB

Traditional audit records remain in their existing SYS.AUD$ tables after enabling Unified Auditing; they are not merged into the unified audit trail. New unified records go to AUDSYS, so legacy data stays in separate tables.

Why this answer

Traditional audit records are not automatically migrated; you should clear them or archive them before switching to Unified Auditing.

17
Multi-Selecthard

Which THREE things can prevent an AutoUpgrade process from starting?

Select 3 answers
A.Existing lock files
B.Expired passwords
C.Insufficient space
D.Incorrect permissions
E.Too many users
AnswersA, C, D

Indicates another process is running.

Why this answer

Insufficient space, incorrect permissions, or already running processes are common blockers.

18
MCQmedium

Which component is required to implement Transparent Data Encryption (TDE) in 23ai?

A.Oracle Audit Vault
B.Oracle Wallet
C.Oracle Key Vault
D.Oracle Data Guard
AnswerB

Oracle Wallet stores and manages the TDE master encryption key, which is mandatory for column and tablespace encryption in 23ai. Without this keystore, the database cannot encrypt or decrypt data, so it directly satisfies the stem's requirement for implementing Transparent Data Encryption.

Why this answer

A keystore (wallet) is required to hold the master encryption key for TDE.

19
MCQhard

Which view should you query to verify the encryption status of tablespaces in 23ai?

A.V$ENCRYPTED_TABLESPACES
B.DBA_ENCRYPTED_COLUMNS
C.DBA_ENCRYPTION_KEYS
D.DBA_TABLESPACES
E.V$WALLET
AnswerA

V$ENCRYPTED_TABLESPACES lists every tablespace with its encryption status, so querying it directly satisfies the requirement to verify which tablespaces are encrypted in 23ai. It reports the ENCRYPTED column plus the encryption algorithm, giving authoritative confirmation without inspecting datafiles or wallet configuration.

Why this answer

V$ENCRYPTED_TABLESPACES shows the encryption status of all tablespaces in the database.

20
Multi-Selectmedium

You are implementing Transparent Data Encryption (TDE) in Oracle Database 23ai. You have already configured the keystore and created the master encryption key. Now you need to encrypt several existing tablespaces and columns. Which two actions must you perform to ensure that the data is encrypted and accessible? (Choose two.)

Select 2 answers
A.Use the ALTER DATABASE OPEN command with the ENCRYPTION option to enable encryption for the entire database.
B.Use the ALTER TABLE ... MODIFY (column ENCRYPT) command to encrypt existing columns.
C.Use the ALTER SYSTEM SET ENCRYPTION KEY command to generate a new master key.
D.Use the ALTER TABLESPACE ... ENCRYPTION ONLINE ENCRYPT command to encrypt existing tablespaces.
E.Use the DBMS_TDE package to encrypt all schemas in the database.
AnswersB, D

The ALTER TABLE ... MODIFY (column ENCRYPT) command encrypts an existing column that was not previously encrypted. It is used for column-level encryption when you want to encrypt specific columns containing sensitive data. This command causes the column data to be encrypted using the TDE master key. It is a required step if you have existing columns that need encryption, as TDE does not automatically encrypt existing data without explicit commands.

Why this answer

To encrypt existing data with TDE, you must explicitly encrypt tablespaces and columns. The ALTER TABLESPACE ... ENCRYPTION ONLINE ENCRYPT command encrypts existing tablespaces, while ALTER TABLE ...

MODIFY (column ENCRYPT) encrypts existing columns. These actions ensure that the data is encrypted using the TDE master key. Other commands like setting the encryption key or opening the database do not perform the encryption of existing objects; they are part of key management or database startup.

Exam trap

The trap here is confusing key management commands, such as setting the encryption key, with the actual encryption of existing data, which requires explicit ALTER TABLESPACE or ALTER TABLE commands.

21
MCQhard

You are upgrading an Oracle Database 19c non-CDB to Oracle Database 23ai. The database uses a custom application that relies on the DBMS_LOB package and has a large amount of PL/SQL code. You have chosen the AutoUpgrade utility to perform the upgrade. During the upgrade, you encounter an error related to the DBMS_LOB package. Which action should you take to resolve the issue?

A.Recompile all invalid PL/SQL objects manually using utlrp.sql after the upgrade.
B.Restart the upgrade from the beginning after restoring the database from a backup.
C.Manually grant EXECUTE privilege on DBMS_LOB to the application schema and retry the upgrade.
D.Check the AutoUpgrade log files for detailed error messages and apply the recommended fix, such as running the preupgrade script or applying a patch.
AnswerD

The AutoUpgrade utility generates detailed log files that include specific error messages and recommendations. For a DBMS_LOB related error, the logs may indicate a missing prerequisite patch or a need to run the preupgrade fixup script. Following the recommended actions, such as applying a patch or re-running the preupgrade tool, is the correct approach to resolve the issue before proceeding with the upgrade.

Why this answer

The AutoUpgrade utility provides comprehensive logging that pinpoints the cause of failures. When an error related to a built-in package like DBMS_LOB occurs, it often indicates a missing patch or an environment issue that the preupgrade script can identify. The correct action is to review the logs and follow the tool's recommendations, which may include applying a patch or running the fixup script.

This ensures the upgrade proceeds smoothly without unnecessary rollbacks.

Exam trap

The trap here is assuming that recompiling invalid objects or granting privileges will fix a package-related upgrade error, when the real issue is often a missing prerequisite patch or configuration that the AutoUpgrade logs will reveal.

22
MCQmedium

What is the primary purpose of 'Data Masking' in the Oracle Data Masking and Subsetting Pack?

A.To improve performance
B.To protect sensitive data in non-production databases
C.To encrypt data in transit
D.To audit privileged users
AnswerB

Data Masking replaces sensitive values with realistic but fictitious data, preserving referential integrity and application behaviour while removing genuine personal or confidential information. This directly satisfies the non-production constraint: development, test and training environments need realistic datasets without exposing live production data, so masking enables safe sharing outside production.

Why this answer

Oracle Data Masking and Subsetting Pack is designed to replace sensitive production data with realistic but fictitious values before it is used in non-production environments such as development, test, and QA. This protects sensitive data (PII, PCI, PHI) from exposure while preserving data format and referential integrity for application testing. It is not a performance, encryption-in-transit, or auditing tool.

Exam trap

The trap is assuming Data Masking encrypts or audits data; candidates confuse it with Transparent Data Encryption (TDE) or Audit Vault, but its sole purpose is protecting sensitive data in non-production clones.

How to eliminate wrong answers

Option A is wrong because Data Masking does not improve query or database performance; its purpose is data protection, not optimization. Option C is wrong because encrypting data in transit is handled by network encryption (TLS/SSL, Oracle Net encryption), not by the Data Masking Pack. Option D is wrong because auditing privileged users is the domain of Oracle Audit Vault and Database Firewall or unified auditing, not data masking.

23
Multi-Selecthard

Which TWO files are modified to configure a secured listener?

Select 2 answers
A.listener.ora
B.spfile.ora
C.init.ora
D.tnsnames.ora
E.sqlnet.ora
AnswersA, E

Configures the listener endpoint.

Why this answer

Option A, listener.ora, is correct because it defines the listener's protocol addresses and static service registrations, and it is where you add the TCPS (TCP with SSL/TLS) protocol address and the SECURE_PROTOCOL_* / SSL_CLIENT_AUTHENTICATION parameters needed to enable a secured listener. Option E, sqlnet.ora, is correct because it holds the client/server-side Oracle Net security settings such as WALLET_LOCATION, SSL_VERSION, SSL_CIPHER_SUITES, and SSL_CLIENT_AUTHENTICATION, which the listener reads to negotiate encrypted connections. Option B, spfile.ora, is not correct because it stores instance initialization parameters, not listener or Oracle Net security configuration.

Option C, init.ora, is not correct because it is a legacy instance parameter file and does not configure listener security. Option D, tnsnames.ora, is not correct because it only maps net service names to connect descriptors for clients, not the listener's secured configuration.

Exam trap

The trap is assuming that securing a listener is a single-file change — candidates often pick only listener.ora and forget that sqlnet.ora carries the encryption/authentication parameters that actually enforce security.

24
Multi-Selecthard

You are upgrading a 19c container database (CDB) to Oracle Database 23ai using AutoUpgrade. As part of the upgrade, you need to ensure that the database is in the correct state and that all prerequisites are met. Which two actions should you perform before starting the upgrade? (Choose two.)

Select 2 answers
A.Drop all non-schema users to reduce the number of objects that need to be upgraded.
B.Enable the COMPATIBLE parameter to 23.0.0 in the source database.
C.Ensure the source database is in ARCHIVELOG mode and that there is sufficient disk space for the upgrade.
D.Convert the source database to a pluggable database (PDB) before running AutoUpgrade.
E.Run the preupgrade script (preupgrade.jar) to generate a preupgrade log and fix any issues.
AnswersC, E

ARCHIVELOG mode is required for the upgrade process because it allows for recovery in case of failure. Additionally, sufficient disk space is needed for the new Oracle home, data dictionary changes, and archive logs generated during the upgrade. Verifying these prerequisites prevents interruptions and ensures the upgrade can complete successfully.

Why this answer

Before upgrading a 19c CDB to 23ai with AutoUpgrade, you must run the preupgrade script to identify and fix issues, and ensure the database is in ARCHIVELOG mode with adequate disk space. These steps are critical for a successful upgrade. Setting COMPATIBLE to 23.0.0 in the source, dropping users, or converting to a PDB are either impossible or unnecessary and could cause failures.

Exam trap

The trap here is thinking that COMPATIBLE can be set to the target version before the upgrade, or that dropping users or converting to a PDB is a prerequisite, when these actions are either harmful or irrelevant.

25
MCQeasy

Which command is used to start the AutoUpgrade process?

A.sqlplus / as sysdba
B.opatch
C.dbua
D.java -jar autoupgrade.jar
AnswerD

AutoUpgrade ships as a standalone Java archive, so invoking it with java -jar autoupgrade.jar launches the upgrade process and presents its command console. No database connection or SQL client is involved, distinguishing it from in-database utilities.

Why this answer

AutoUpgrade is Oracle's command-line utility for automating database upgrades, and it is invoked as a Java executable: 'java -jar autoupgrade.jar'. The tool then reads a config file specifying source and target homes, databases, and modes (analyze, fixups, deploy, upgrade).

Exam trap

OCP often tests the distinction between upgrade tools — candidates confuse DBUA (legacy GUI) with AutoUpgrade (modern Java-based CLI) and pick 'dbua' as the startup command.

How to eliminate wrong answers

Option A is wrong because 'sqlplus / as sysdba' merely opens a SQL*Plus session as SYSDBA — it does not launch AutoUpgrade. Option B is wrong because 'opatch' is the Oracle patch utility for applying interim patches and one-off patches, not for database version upgrades. Option C is wrong because 'dbua' is the older Database Upgrade Assistant GUI/CLI, which predates AutoUpgrade and is not the command that starts the AutoUpgrade process.

26
Multi-Selectmedium

When configuring Oracle Network Encryption, which TWO of the following parameters in the sqlnet.ora file are used to specify encryption settings?

Select 2 answers
A.SQLNET.ENCRYPTION_TYPES_SERVER
B.TNS_ENCRYPTION_ENABLED
C.SQLNET.ENCRYPTION_SERVER
D.SQLNET.AUTHENTICATION_SERVICES
E.NETWORK_SECURE_MODE
AnswersA, C

SQLNET.ENCRYPTION_TYPES_SERVER lists the cipher suites the database server will accept for encrypted connections, satisfying the requirement to specify encryption settings in sqlnet.ora. It works alongside SQLNET.ENCRYPTION_SERVER, which enables or declines encryption, making it one of the two parameters that define server-side encryption configuration.

Why this answer

SQLNET.ENCRYPTION_SERVER (option C) is correct because it is the sqlnet.ora parameter that controls whether encryption is required, requested, accepted, or rejected for inbound connections on the server side, with valid values such as ACCEPTED, REJECTED, REQUESTED, and REQUIRED. SQLNET.ENCRYPTION_TYPES_SERVER (option A) is correct because it specifies the list of encryption algorithms the server will use, in order of preference, such as AES256, AES192, AES128, and 3DES168. Together these two parameters define the server-side encryption behavior for Oracle Network Encryption.

Option B (TNS_ENCRYPTION_ENABLED) is not a valid sqlnet.ora parameter, option D (SQLNET.AUTHENTICATION_SERVICES) governs authentication methods such as NONE, ALL, or KERBEROS rather than encryption, and option E (NETWORK_SECURE_MODE) is not a recognized Oracle Net parameter.

Exam trap

OCP often tests the exact sqlnet.ora parameter names, catching candidates who pick plausible-sounding but non-existent parameters like TNS_ENCRYPTION_ENABLED or confuse authentication parameters with encryption parameters.

27
MCQeasy

What is the primary benefit of using Unified Auditing in 23ai?

A.Simplified audit management and unified audit trail
B.Improved query performance for application tables
C.Increased storage capacity
D.Automatic data masking
AnswerA

Unified Auditing merges traditional and fine-grained auditing into a single configuration and writes all records to one unified audit trail, eliminating separate audit configurations and their scattered trails. This delivers simplified audit management, the primary benefit sought.

Why this answer

Unified Auditing provides a single, unified audit trail for all audit records from various sources.

28
MCQeasy

When upgrading a database, what is a 'Flashback Database' used for?

A.Quick recovery after a failed upgrade
B.User authentication
C.Data migration
D.Performance tuning
AnswerA

Flashback Database restores the entire database to an earlier point in time using flashback logs, letting you rewind past a failed upgrade quickly rather than restoring from backup. This directly satisfies the stem's requirement for fast recovery after an unsuccessful upgrade.

Why this answer

Flashback Database allows you to quickly rewind an Oracle database to a prior point in time without restoring from backup. During an upgrade, if the upgrade fails or introduces regressions, you can flash back to the guaranteed restore point created before the upgrade, returning the database to its pre-upgrade state in minutes. This is far faster than a full restore and recovery.

Exam trap

The trap is confusing Flashback Database with Flashback Query or Flashback Drop; candidates may pick it for data recovery of a single table, but it reverts the entire database to a point in time.

How to eliminate wrong answers

Option B is wrong because user authentication is handled by password files, LDAP, or Kerberos, not Flashback Database. Option C is wrong because data migration involves moving data between systems (Data Pump, GoldenGate), not reverting a database state. Option D is wrong because performance tuning uses AWR, ADDM, and SQL Tuning Advisor; Flashback does not tune performance.

29
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.

30
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.

31
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.

32
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.

33
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.

34
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.

35
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.

36
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.

37
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.

38
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.

39
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.

40
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.

41
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.

42
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.

43
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.

44
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.

45
MCQmedium

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

A.TCP
B.IPC
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.

46
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.

47
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.

48
MCQmedium

Your organization is migrating a critical 19c database to Oracle Database 23ai. The business requires that the cutover downtime be minimized, ideally under 10 minutes. You have a large database (20 TB) and a high transaction rate. Which migration method should you use to achieve the least downtime?

A.Use Oracle GoldenGate to replicate data to the 23ai database and perform a switchover.
B.Use the plug-in method with AutoUpgrade and a full backup/restore.
C.Use Data Pump full export/import with parallelism.
D.Use transportable tablespaces to move the data files to the 23ai database.
AnswerA

Oracle GoldenGate provides logical replication with minimal downtime. You can set up the target 23ai database, apply initial load, and start change data capture to keep it synchronized while the source remains online. At cutover, you stop application traffic, allow the target to catch up, and switch over. This reduces downtime to minutes, even for large databases with high transaction rates.

Why this answer

Oracle GoldenGate enables logical replication with near-zero downtime by keeping the target synchronized while the source remains online. At cutover, only a brief application pause is needed for the target to catch up and switch over. Data Pump, the plug-in method, and transportable tablespaces all require substantial downtime for a 20 TB database with high transactions, making them unsuitable for the 10-minute goal.

Exam trap

The trap here is assuming that physical migration methods like the plug-in or transportable tablespaces can achieve near-zero downtime, when they actually require significant downtime for large databases.

49
MCQmedium

Which user is responsible for the management of the Unified Audit trail?

A.SYSDBA
B.DBA
C.AUDIT_ADMIN
D.SECURITY_ADMIN
AnswerC

AUDIT_ADMIN holds the Oracle Database role that governs the Unified Audit trail, granting privileges to create, alter and drop audit policies, and to query and purge the trail itself. This directly satisfies the stem's requirement for the user accountable for managing that trail.

Why this answer

The AUDIT_ADMIN role is required for managing unified audit policies and data.

50
MCQhard

You need to perform a Rolling Upgrade using Data Guard. What is the minimum required configuration?

A.Physical Standby Database
B.Active Data Guard
C.Oracle GoldenGate
D.Snapshot Standby
AnswerA

A physical standby applies redo directly, so during a rolling upgrade the primary runs the new Oracle version while the standby stays on the old one, then roles swap. Logical standby or snapshot standby cannot sustain this cross-version redo apply, making physical standby the minimum configuration.

Why this answer

A physical standby database is required to perform a rolling upgrade using transient logical standby or switchover methods.

51
MCQhard

You are applying an Oracle Release Update (RU) in a Data Guard environment. Following the 'Rolling Upgrade' methodology, which instance should be patched first to ensure continuous availability?

A.The Standby database instance
B.The observer node only
C.The Primary database instance
D.Both instances simultaneously
AnswerA

Patching the standby first lets it apply the RU while the primary keeps serving users; a switchover then promotes the patched standby, and the old primary is patched afterwards. This sequence satisfies the rolling upgrade constraint of continuous availability, since no single instance is offline during the whole operation.

Why this answer

In an Oracle Data Guard rolling upgrade, the standby database is patched first because it can be upgraded while the primary continues serving production traffic. After the standby is patched and restarted, a switchover is performed so the patched standby becomes the new primary, and then the old primary (now standby) is patched. This sequence maintains continuous availability because at least one database instance is always online and serving requests.

Exam trap

The trap is confusing the observer node with a database instance, or assuming the primary must be patched first — candidates who don't understand the switchover sequence often pick the primary, which would cause downtime.

How to eliminate wrong answers

Option B is wrong because the observer node is only used in Fast-Start Failover configurations to monitor the broker and initiate failover; it is not a database instance and cannot be patched as part of the database rolling upgrade. Option C is wrong because patching the primary first would require taking the production database down, defeating the purpose of a rolling upgrade and causing downtime. Option D is wrong because patching both instances simultaneously eliminates any available database, causing a full outage and violating the continuous availability requirement.

52
MCQhard

In 23ai, if you want to audit 'CREATE TABLE' statements, which policy type should you use?

A.Unified Audit Policy
B.Fine-Grained Auditing (FGA)
C.Logon Trigger
D.Traditional Audit
AnswerA

Unified auditing captures CREATE TABLE as an auditable system action through a unified audit policy, which defines privileges, actions and objects in one policy applied database-wide. Traditional audit options and fine-grained auditing do not cover this statement type in 23ai.

Why this answer

Unified Audit Policies are the modern auditing framework introduced in 12c and fully integrated in 23ai, allowing you to audit specific actions like CREATE TABLE by specifying the privilege or action in a CREATE AUDIT POLICY statement. They replace the legacy traditional audit and provide a single, consistent mechanism for capturing both standard and fine-grained audit events. Because CREATE TABLE is a standard SQL statement, a unified policy with the CREATE TABLE action (or CREATE ANY TABLE privilege) is the correct and simplest way to audit it.

Exam trap

OCP often tests the distinction between Unified Audit Policies and Fine-Grained Auditing, tricking candidates into choosing FGA for DDL auditing when FGA is only for DML on specific columns/rows.

How to eliminate wrong answers

Option B is wrong because Fine-Grained Auditing (FGA) is designed to audit access to specific columns or rows based on a condition (e.g., SELECT on a sensitive column), not to audit DDL statements like CREATE TABLE. Option C is wrong because a Logon Trigger fires only at session logon and is used for session-level actions such as setting module names or blocking access, not for auditing DDL. Option D is wrong because Traditional Audit (AUDIT statement) is deprecated in favor of Unified Audit and does not provide the centralized, policy-based approach required in 23ai.

53
Multi-Selecteasy

Which TWO are common audit types in Oracle?

Select 2 answers
A.Tablespace Auditing
B.Instance Auditing
C.Unified Auditing
D.Standard Auditing
E.Flashback Auditing
AnswersC, D

Unified Auditing consolidates all audit records into the AUDSYS schema and is enabled by relinking the Oracle binary, replacing the older split audit trails. It satisfies the stem as a genuine, currently supported Oracle audit type.

Why this answer

Unified Auditing (C) is correct because it is Oracle's modern audit framework, introduced in Oracle 12c, that consolidates all audit records into a single unified audit trail stored in the AUDSYS schema and managed via CREATE AUDIT POLICY and AUDIT statements. Standard Auditing (D) is correct because it is the traditional Oracle auditing mechanism (also called traditional auditing), configured with parameters such as AUDIT_TRAIL and the AUDIT statement, and it remains a recognized audit type alongside Unified Auditing. Tablespace Auditing (A) is not a valid Oracle audit type; tablespaces are storage structures, not an auditing category.

Instance Auditing (B) is not a standard Oracle audit type; auditing is configured at the database level, not as a separate 'instance' audit mode. Flashback Auditing (E) does not exist in Oracle; Flashback refers to technologies such as Flashback Query, Flashback Drop, and Flashback Database, which are unrelated to auditing.

Exam trap

OCP often tests audit framework names, and candidates pick plausible-sounding but non-existent types like 'Instance Auditing' or 'Tablespace Auditing' instead of the real Standard and Unified Auditing.

Ready to test yourself?

Try a timed practice session using only Security And Upgrades questions.