Courseiva

CCNA Core Administration And Cdb Pdb Architecture Questions

35 questions · Core Administration And Cdb Pdb Architecture topic · All types, answers revealed

1
MCQmedium

You are administering a CDB with several PDBs. You need to ensure that a specific PDB named HRPDB is automatically started and opened in READ WRITE mode whenever the CDB instance starts. Which action should you take?

A.Modify the PDB's initialization parameter file to include OPEN_MODE=READ WRITE.
B.Set the PDB's state to OPEN in the CDB's spfile using ALTER SYSTEM SET PDB_OPEN_MODE='READ WRITE'.
C.Create a database trigger that fires on startup and opens the PDB.
D.Set the PDB's open mode in the CDB's startup configuration by executing ALTER PLUGGABLE DATABASE HRPDB SAVE STATE.
AnswerD

The ALTER PLUGGABLE DATABASE ... SAVE STATE command saves the current open mode of the PDB so that it is automatically restored when the CDB instance restarts. This is the correct method to ensure a PDB opens automatically in a specific mode. The command stores the state in the CDB's data dictionary and applies it during instance startup.

Why this answer

The ALTER PLUGGABLE DATABASE ... SAVE STATE command records the current open mode of a PDB in the CDB's data dictionary. When the CDB instance restarts, the PDB is automatically opened in the saved mode.

This is the standard and recommended way to ensure a PDB opens automatically in READ WRITE mode.

Exam trap

The trap here is thinking that a hidden initialization parameter or a startup trigger is needed, when Oracle provides the SAVE STATE clause for exactly this purpose.

2
MCQmedium

You are the lead DBA for a CDB called PRODCDB that contains 40 PDBs. An application team reports that connections to the PDB named SALESPDB intermittently fail with ORA-01033: ORACLE initialization or shutdown in progress, even though the CDB instance has been up for days. You query V$PDBS and notice SALESPDB shows a con_id of 5 and an open_mode of MOUNTED. Which action most directly restores application connectivity to SALESPDB?

A.Run ALTER SYSTEM REGISTER on the SALESPDB service to re-register it with the listener.
B.Restart the CDB instance with STARTUP FORCE to re-open all containers automatically.
C.Execute ALTER PLUGGABLE DATABASE SALESPDB OPEN; from the root container.
D.Set the PDB's saved state to OPEN by running ALTER PLUGGABLE DATABASE SALESPDB SAVE STATE.
AnswerC

When a PDB is in MOUNTED state its data files are associated but the PDB is not open for user traffic, so applications receive initialization errors. Issuing ALTER PLUGGABLE DATABASE SALESPDB OPEN from the root transitions the PDB to READ WRITE and immediately allows sessions to connect. This is the precise, minimal command for the reported symptom.

Why this answer

A PDB showing MOUNTED in V$PDBS is known to the CDB but not open for user connections, which produces initialization errors for the application. Opening the specific PDB from the root container changes its open mode to READ WRITE without disturbing the other 39 PDBs. Restarting the instance, re-registering services, or saving state do not transition the container out of MOUNTED.

Exam trap

The trap here is assuming that a running CDB instance implies every PDB is open, when each PDB has an independent open mode that must be changed explicitly.

3
Multi-Selecthard

Which THREE characteristics are unique to PDBs?

Select 3 answers
A.Dedicated local users
B.Shared redo logs
C.Independent datafiles
D.Shared background processes
E.Individual services
AnswersA, C, E

Dedicated local users exist only within a single pluggable database, not in the root container, satisfying the requirement for characteristics unique to PDBs. Unlike common users, who are created in the root and shared across all containers, local users are scoped strictly to their own PDB and cannot authenticate elsewhere in the multitenant architecture.

Why this answer

In a multitenant architecture, each pluggable database (PDB) can have its own dedicated local users (Option A), meaning user accounts created inside a PDB are scoped to that PDB and are not visible in other PDBs or the root, which is a defining characteristic of PDBs. Each PDB also owns its own independent datafiles (Option C), stored in its own tablespace set, so its physical storage is isolated from other PDBs even though they share the same instance. Additionally, each PDB is exposed through its own individual services (Option E), allowing clients to connect directly to a specific PDB by service name rather than to the container database as a whole.

By contrast, shared redo logs (Option B) and shared background processes (Option D) are not unique to PDBs; in a multitenant container database, all PDBs share the same redo logs and the same set of background processes of the single instance, so these are characteristics of the CDB rather than distinguishing features of individual PDBs.

4
MCQeasy

What is the purpose of the 'Seed' PDB (PDB$SEED)?

A.To store undo data
B.To act as a template for new PDBs
C.To hold CDB diagnostic logs
D.To store temporary data
AnswerB

PDB$SEED is a read-only template containing the system and sysaux datafiles that Oracle copies when you issue CREATE PLUGGABLE DATABASE. It supplies the starting file structure for every new PDB, matching the stem's template purpose.

Why this answer

PDB$SEED is the template for creating new PDBs.

5
MCQhard

Your company runs a CDB named HQCDB with several PDBs. A junior DBA executed ALTER PLUGGABLE DATABASE HRPDB CLOSE IMMEDIATE; a few minutes later, users of HRPDB report that connections fail with ORA-01033. You query V$PDBS and observe that HRPDB shows OPEN_MODE of MOUNTED and RESTRICTED of NO. You need HRPDB fully available for read/write traffic with no restrictions. Which command should you run from the CDB root?

A.ALTER PLUGGABLE DATABASE HRPDB OPEN READ WRITE;
B.ALTER PLUGGABLE DATABASE HRPDB OPEN FORCE;
C.ALTER PLUGGABLE DATABASE HRPDB OPEN READ WRITE RESTRICTED;
D.ALTER PLUGGABLE DATABASE HRPDB OPEN READ ONLY;
AnswerA

This command transitions HRPDB from MOUNTED to READ WRITE with no restrictions, which is exactly the state needed. It is issued from the CDB root, requires no instance restart, and immediately makes the PDB's services accept ordinary user connections. This is the correct and minimal action to recover from the junior DBA's CLOSE IMMEDIATE.

Why this answer

When a PDB is closed with CLOSE IMMEDIATE, it moves to MOUNTED state and its services stop accepting normal connections, causing ORA-01033. The correct recovery is to open it read/write without the RESTRICTED clause so that all authorized users can connect. The restricted variant would still block ordinary users, the FORCE clause does not exist for this statement, and read-only mode would fail for transactional workloads that require DML.

Exam trap

The trap here is conflating RESTRICTED mode with normal read/write availability; RESTRICTED mode is a maintenance posture, not a way to restore full user access.

6
MCQhard

Which command is used to move a PDB from one CDB to another without using Data Pump?

A.CREATE PDB AS CLONE
B.DBMS_PDB.COPY
C.ALTER PLUGGABLE DATABASE UNPLUG
D.MOVE PLUGGABLE DATABASE
AnswerC

UNPLUG writes the PDB's metadata into its own XML manifest and closes it, letting you move the data files and plug them into a different CDB via CREATE PLUGGABLE DATABASE. This satisfies the no-Data-Pump constraint by relocating files directly.

Why this answer

The unplug/plug method using an XML metadata file is the standard for PDB transport.

7
MCQmedium

Which file stores the metadata for a PDB being unplugged?

A.XML file
B.TXT file
C.JSON file
D.SQL file
AnswerA

An XML file holds the PDB metadata generated during unplugging, capturing the datafiles, tablespaces and options needed to plug the PDB into another CDB. This satisfies the requirement to preserve structural metadata independently of the datafiles themselves.

Why this answer

The unplug process generates an XML file to describe the PDB.

8
MCQmedium

What happens when you execute 'ALTER PLUGGABLE DATABASE ALL OPEN'?

A.Opens only PDB$SEED
B.Opens all PDBs in read-write mode
C.Opens all PDBs in read-only mode
D.Starts the CDB instance
AnswerB

Issuing this command opens every pluggable database whose current open mode is mounted, transitioning each to read-write, provided the CDB itself is open. It satisfies the requirement to bring all PDBs online simultaneously without naming them individually, respecting each PDB's saved state and any instance-restriction settings.

Why this answer

All PDBs in the CDB are opened in READ WRITE mode.

9
MCQhard

You need to migrate a non-CDB to a PDB in an existing CDB. Which package should you use to check for compatibility issues before starting the migration?

A.DBMS_PDB_MIGRATE
B.DBMS_METADATA.CHECK
C.DBMS_CDB_UPGRADE
D.DBMS_PDB.CHECK_PLUG_COMPATIBILITY
AnswerD

DBMS_PDB.CHECK_PLUG_COMPATIBILITY validates a non-CDB's data dictionary against the target CDB before migration, reporting violations that would block plugging. It satisfies the stem's requirement to detect compatibility issues prior to starting, unlike DBMS_PDB.DESCRIBE, which only generates the XML manifest without performing any compatibility checks.

Why this answer

DBMS_PDB.CHECK_PLUG_COMPATIBILITY is the standard procedure for pre-migration validation.

10
Multi-Selectmedium

You are a DBA for a CDB called CDB1. You need to monitor the performance of individual PDBs to identify which PDB is consuming the most resources. Which two views should you query to get PDB-level performance metrics and resource usage? (Choose two.)

Select 2 answers
A.V$PDB_METRIC
B.V$PDB_METRIC_SUMMARY
C.V$PDB_METRIC_HISTORY
D.V$RSRCPDBMETRIC_HISTORY
E.V$RSRCPDBMETRIC
AnswersD, E

V$RSRCPDBMETRIC_HISTORY provides historical resource usage metrics for PDBs, similar to V$RSRCPDBMETRIC but with a time dimension. It allows you to analyze trends and past performance. This view is crucial for historical analysis of PDB resource consumption. It is a valid view in Oracle Database 23ai and complements the real-time view for comprehensive monitoring.

Why this answer

The correct views for monitoring PDB-level resource usage are V$RSRCPDBMETRIC for real-time metrics and V$RSRCPDBMETRIC_HISTORY for historical data. These views provide CPU, I/O, and other resource statistics per PDB. The other options are non-existent views and would not return any data.

Exam trap

The trap here is confusing the naming convention; views like V$PDB_METRIC sound plausible but do not exist, while the correct views use the RSRC prefix.

11
Multi-Selectmedium

Which TWO tasks are required to successfully unplug a PDB?

Select 2 answers
A.Convert to non-CDB
B.Drop the PDB
C.Shut down the CDB
D.Generate an XML metadata file
E.Close the PDB
AnswersD, E

Generating an XML metadata file captures the PDB's structure and data definitions before unplugging, satisfying the requirement to preserve the pluggable database's metadata for later re-plugging into another container. Without this export, the unplugged PDB's datafiles would lack the manifest needed to register them elsewhere.

Why this answer

To unplug a PDB, you must first close the PDB with ALTER PLUGGABLE DATABASE ... CLOSE, because a PDB must be in MOUNTED (or closed) state before its data files can be described and detached — this is why option E is correct. You must then generate an XML metadata file (typically via ALTER PLUGGABLE DATABASE ...

UNPLUG INTO '<file>.xml'), which captures the PDB's datafile paths and metadata needed to plug it into another CDB — this is why option D is correct. Option A (convert to non-CDB) is a separate, unrelated operation and is not part of unplugging. Option B (drop the PDB) deletes the PDB and its datafiles, which is the opposite of preserving it for transport.

Option C (shut down the CDB) is unnecessary and would disrupt all other PDBs; the CDB instance remains open during an unplug.

12
Multi-Selectmedium

You are the DBA for a CDB named CORPCDB that has several PDBs. You need to shut down the entire CDB instance cleanly, including all PDBs, as part of a planned maintenance window. Which two statements about the shutdown process are correct? (Choose two.)

Select 2 answers
A.You must connect to each PDB individually and issue SHUTDOWN ABORT before shutting down the CDB root.
B.A PDB can be shut down individually with ALTER PLUGGABLE DATABASE pdb_name CLOSE IMMEDIATE while the CDB instance remains running.
C.SHUTDOWN TRANSACTIONAL from the root container waits for all PDB transactions to complete but leaves PDBs open for new connections until the end.
D.Issuing SHUTDOWN IMMEDIATE from the root container closes all open PDBs and then shuts down the CDB instance.
E.After SHUTDOWN IMMEDIATE from the root, any PDB that was in MOUNTED state remains mounted and does not need to be closed separately.
AnswersB, D

ALTER PLUGGABLE DATABASE ... CLOSE IMMEDIATE closes a single PDB without affecting the CDB instance or other PDBs. It rolls back that PDB's active transactions and disconnects its users. This is the correct way to isolate maintenance to one container while keeping the rest of the CDB available.

Why this answer

Shutting down the CDB from the root with SHUTDOWN IMMEDIATE closes every PDB and stops the instance, so no per-PDB action is needed. When only one container must be taken offline, ALTER PLUGGABLE DATABASE ... CLOSE IMMEDIATE closes that PDB while the CDB and other PDBs continue running.

The remaining statements misdescribe transactional shutdown, abort requirements, or the fate of mounted PDBs.

Exam trap

The trap here is believing that PDBs must be shut down one by one before the CDB, when a root shutdown already closes all containers.

13
MCQmedium

You are the lead DBA for a CDB called PRODCDB that contains 30 PDBs. A developer reports that the application connecting to the PDB named SALESPDB receives ORA-01033 (Oracle initialization or shutdown in progress) when the database is otherwise available. You connect to the CDB root and query V$PDBS and see that SALESPDB shows OPEN_MODE of MOUNTED while all other PDBs show READ WRITE. Which command should you execute to make SALESPDB available to the application with the least administrative effort?

A.ALTER PLUGGABLE DATABASE SALESPDB OPEN READ ONLY;
B.SHUTDOWN IMMEDIATE; STARTUP;
C.ALTER PLUGGABLE DATABASE SALESPDB OPEN;
D.ALTER SYSTEM STARTUP PLUGGABLE DATABASE SALESPDB;
AnswerC

This command transitions SALESPDB from MOUNTED to READ WRITE in one step and is issued from the CDB root. Because the PDB datafiles are already open at the CDB instance level when the PDB is MOUNTED, opening it requires no additional instance startup and is the standard, lowest-effort recovery action for this exact symptom.

Why this answer

A PDB left in MOUNTED state has its datafiles associated with the instance but its dictionary and services are not available to user sessions, producing ORA-01033. Opening the PDB from the CDB root with ALTER PLUGGABLE DATABASE ... OPEN transitions it to READ WRITE and restores service without affecting other PDBs.

The read-only variant would not satisfy a transactional application, no ALTER SYSTEM STARTUP syntax exists, and a full instance restart is unnecessary and disruptive.

Exam trap

The trap here is assuming that opening a PDB requires a full instance restart or a special ALTER SYSTEM clause, when in fact a simple ALTER PLUGGABLE DATABASE ... OPEN from the root is sufficient.

14
MCQhard

You need to ensure that the PDB name is unique in your network. Which parameter should you check?

A.INSTANCE_NAME
B.DB_UNIQUE_NAME
C.DB_NAME
D.PDB_NAME
AnswerB

Must be unique for each database in a Data Guard configuration.

Why this answer

DB_UNIQUE_NAME must be unique across the CDB infrastructure.

15
MCQeasy

What is the default behavior when shutting down a CDB instance?

A.Closes all PDBs, then the CDB
B.Leaves PDBs open
C.Only closes the CDB root
D.Forces immediate abort
AnswerA

A multitenant container database shutdown cascades to its pluggable databases: the CDB closes every PDB first, then shuts itself down. This ordered teardown satisfies the default behaviour, whereas PDBs cannot remain open once the root container and instance terminate.

Why this answer

The SHUTDOWN command closes all PDBs before the CDB.

16
MCQhard

Your CDB named FINCDB has several PDBs. A developer reports that they cannot create a local user in the PDB named REPORTSPDB because the PDB is in RESTRICTED mode. You connect to the root as SYSDBA and want to allow normal user connections to REPORTSPDB while keeping other PDBs unchanged. Which command should you execute?

A.ALTER PLUGGABLE DATABASE REPORTSPDB CLOSE IMMEDIATE; ALTER PLUGGABLE DATABASE REPORTSPDB OPEN;
B.ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ WRITE RESTRICTED;
C.ALTER SYSTEM ENABLE RESTRICTED SESSION;
D.ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ WRITE;
AnswerD

Reissuing the OPEN command without the RESTRICTED clause transitions REPORTSPDB to READ WRITE mode with normal connection semantics, allowing the developer to connect and create a local user. Because the statement names only REPORTSPDB, other PDBs in FINCDB retain their current open modes, satisfying the requirement to limit the change to one PDB.

Why this answer

RESTRICTED mode on a PDB permits only users holding the RESTRICTED SESSION privilege to connect. To restore normal access, the PDB must be reopened in READ WRITE mode without the RESTRICTED clause. Executing ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ WRITE from the root applies the change only to REPORTSPDB, so the developer can connect and create a local user while other PDBs in the CDB remain unaffected.

Exam trap

The trap here is confusing PDB-level RESTRICTED mode with the instance-level restricted session feature, leading to ALTER SYSTEM ENABLE RESTRICTED SESSION, which restricts the whole CDB instead of un-restricting one PDB.

17
MCQeasy

Which command is used to display the current container you are connected to?

A.SHOW CDB_NAME
B.SHOW CURRENT_PDB
C.SELECT CONTAINER FROM DUAL
D.SHOW CON_NAME
AnswerD

SHOW CON_NAME returns the name of the container to which the current session is connected, directly answering the requirement to display the active container. It works in both CDB root and PDB contexts without needing to query data dictionary views.

Why this answer

SHOW CON_NAME shows the current container name in SQL*Plus.

18
Multi-Selecthard

Which TWO actions are required when performing a 'Unplug and Plug' operation of a PDB between two different CDBs to ensure data integrity?

Select 2 answers
A.The PDB must be opened in upgrade mode before unplugging
B.An XML metadata file must be created during the unplug process
C.The PDB must be closed before the unplug operation
D.The source CDB must be dropped after the operation
E.The CDB must be in restricted mode
AnswersB, C

Creating the XML metadata file during unplugging captures the PDB's data dictionary, tablespace definitions and service details, which the destination CDB requires to register and integrate the plugged-in PDB correctly. Without this manifest, the target CDB cannot reconcile the PDB's structure, so the operation fails to preserve data integrity across the two containers.

Why this answer

Option B is correct because the unplug operation generates an XML metadata file (the PDB description file) that captures the PDB's datafiles, tablespaces, and metadata, which is essential for plugging the PDB into the target CDB and preserving data integrity. Option C is correct because the PDB must be closed (or placed in MOUNT state) before unplugging; you cannot unplug an open PDB, and closing it ensures a consistent state and proper generation of the XML manifest. Option A is wrong because upgrade mode is only used for running upgrade scripts, not for unplugging.

Option D is wrong because the source CDB does not need to be dropped; only the PDB is unplugged. Option E is wrong because restricted mode is unrelated to unplug/plug operations.

19
Multi-Selecthard

You are managing a CDB named CDB1 with several PDBs. You need to create a new PDB named DEVPDB by cloning an existing PDB named PRODPDB. You want to minimize the impact on PRODPDB and ensure the clone is consistent. Which two statements are true regarding the CREATE PLUGGABLE DATABASE ... FROM PRODPDB command? (Choose two.)

Select 2 answers
A.The clone DEVPDB will automatically inherit the open mode of the source PDB PRODPDB.
B.The clone operation requires the source PDB to be in MOUNTED state.
C.The source PDB PRODPDB must be in READ ONLY mode during the cloning operation.
D.You can specify a different file name conversion for the clone to place its datafiles in a new location.
E.The source PDB PRODPDB must be unplugged before it can be cloned.
AnswersC, D

When cloning a PDB locally using CREATE PLUGGABLE DATABASE ... FROM, the source PDB must be in READ ONLY mode to ensure a consistent copy. This prevents changes to the source during the cloning process, guaranteeing the clone is a point-in-time snapshot. If the source is open READ WRITE, the command will fail.

Why this answer

Cloning a PDB locally with CREATE PLUGGABLE DATABASE ... FROM requires the source PDB to be in READ ONLY mode to ensure consistency. The FILE_NAME_CONVERT clause allows relocation of the clone's datafiles.

These two statements are true. The clone does not inherit open mode, does not require unplugging, and the source must not be merely mounted.

Exam trap

The trap here is assuming that the source PDB can be open READ WRITE during a local clone, or that unplugging is necessary, when in fact READ ONLY mode and file conversion are the key requirements.

20
MCQmedium

You need to migrate a non-CDB database to a PDB in a 23ai CDB. Which utility is the recommended tool to assess compatibility before migration?

A.DBMS_PDB.CHECK_PLUG_COMPATIBILITY
B.RMAN CONVERT
C.DBUA
D.SQL Developer
E.Data Pump
AnswerA

DBMS_PDB.CHECK_PLUG_COMPATIBILITY validates a non-CDB's data dictionary against 23ai CDB requirements before plugging, reporting violations that would block migration. It satisfies the stem's pre-migration compatibility assessment constraint, unlike DBMS_PDB.DESCRIBE (metadata only) or transportable tablespace checks, which do not evaluate full plug-in readiness.

Why this answer

DBMS_PDB.CHECK_PLUG_COMPATIBILITY is the standard PL/SQL procedure to identify potential issues before plugging a non-CDB into a CDB.

21
MCQmedium

You are the lead DBA for a CDB named PRODCDB that contains a PDB named SALESPDB. A regulatory audit requires that SALESPDB be opened in READ ONLY mode for the next 48 hours, while all other PDBs in the CDB must remain fully available for normal application traffic. You connect to the root container as SYSDBA and execute: ALTER PLUGGABLE DATABASE SALESPDB OPEN READ ONLY; The command completes successfully. Which statement describes the resulting state of SALESPDB?

A.SALESPDB is open in READ ONLY mode, but only for the current instance; any other instance in the CDB will still have SALESPDB open in READ WRITE mode.
B.SALESPDB remains in MOUNTED state because a PDB cannot be opened in READ ONLY mode until the CDB root is first restarted in READ ONLY mode.
C.SALESPDB is opened in READ ONLY mode, and because the CDB root is still READ WRITE, users connecting to SALESPDB can still perform DML in the root container only.
D.SALESPDB is open in READ ONLY mode, which allows queries against its data but blocks any DML or DDL changes until it is reopened in READ WRITE mode.
AnswerD

Issuing ALTER PLUGGABLE DATABASE SALESPDB OPEN READ ONLY transitions the PDB into a read-only state where users can query data but cannot perform DML or DDL against the PDB. This matches the audit requirement while leaving other PDBs untouched, because the command names only SALESPDB and the root container does not change its own open mode.

Why this answer

Opening a specific PDB in READ ONLY mode is done with ALTER PLUGGABLE DATABASE <pdb> OPEN READ ONLY executed from the root. The named PDB becomes queryable but not modifiable, while other PDBs and the root retain their current open modes. Because the statement scopes to SALESPDB only, normal application traffic to other PDBs continues uninterrupted, satisfying the audit requirement without a CDB-wide outage.

Exam trap

The trap here is assuming that changing a PDB's open mode requires restarting the CDB root or affects every container, when the ALTER PLUGGABLE DATABASE statement scopes the mode change to the named PDB only.

22
MCQhard

Your CDB is configured with a PDB named REPORTSPDB that must be opened automatically in READ ONLY mode every time the CDB instance starts, because it hosts static reporting data. Which two-step approach ensures this behavior across instance restarts? (Choose the best answer.)

A.Set the PDB's OPEN_MODE column in PDB_SAVED_STATE by running an UPDATE statement.
B.Modify the CDB's SPFILE parameter PDB_OPEN_MODE to READ ONLY for REPORTSPDB.
C.Open REPORTSPDB in READ ONLY mode, then run ALTER PLUGGABLE DATABASE REPORTSPDB SAVE STATE.
D.Create a database startup trigger in the root that executes ALTER PLUGGABLE DATABASE REPORTSPDB OPEN READ ONLY.
AnswerC

SAVE STATE records the PDB's current open mode so that on subsequent CDB startups the PDB is automatically reopened in that same mode. Opening it READ ONLY first and then saving state captures exactly the desired behavior. This is the supported mechanism for persisting a non-default open mode across restarts.

Why this answer

To have a PDB reopen in a specific mode after instance restart, open it in that mode and then save its state. ALTER PLUGGABLE DATABASE ... SAVE STATE records the open mode and makes the CDB restore it automatically at startup.

Startup triggers and nonexistent parameters or direct view updates are not the supported approach.

Exam trap

The trap here is inventing a parameter or updatable view for PDB open mode, when the supported mechanism is the SAVE STATE clause of ALTER PLUGGABLE DATABASE.

23
MCQeasy

What is the standard tool to manage CDB/PDB configuration in 23ai?

A.SQL Developer
B.Net Manager
C.SQL*Plus
D.OEM
AnswerC

SQL*Plus remains the standard command-line tool for administering CDB and PDB configuration in Oracle 23ai, satisfying the requirement for a native, always-available interface. It connects directly to the root or a pluggable database, letting you run ALTER SYSTEM and ALTER DATABASE statements to modify container-level parameters without extra tooling.

Why this answer

SQL*Plus or SQLcl are the standard interfaces for managing CDBs.

24
MCQeasy

Which view provides information about the open status of all PDBs in a CDB?

A.V$INSTANCE
B.V$CONTAINERS
C.V$PDBS
D.V$DATABASE
E.DBA_PDBS
AnswerC

V$PDBS lists every pluggable database within a container database, including its open mode and restricted status, directly satisfying the requirement to report open status across all PDBs. Querying it from the CDB root returns one row per PDB, unlike V$DATABASE, which describes only the current container.

Why this answer

V$PDBS provides the current status of each PDB in the container database.

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

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

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

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

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

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

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

32
MCQhard

You are administering a CDB with multiple PDBs. You need to ensure that a specific PDB named FINPDB automatically starts up when the CDB instance is started. Which action should you take?

A.Execute ALTER PLUGGABLE DATABASE FINPDB SAVE STATE;
B.Modify the PDB's initialization parameter file to include a startup command.
C.Create a database trigger that executes ALTER PLUGGABLE DATABASE FINPDB OPEN on startup.
D.Set the PDB's state to OPEN in the CDB's startup triggers.
AnswerA

The SAVE STATE clause records the current open mode of the PDB in the CDB's metadata. When the CDB instance restarts, the PDB will be opened to that saved state automatically. This is the standard and supported method to ensure a PDB starts automatically. It is simple, reliable, and does not require custom scripting.

Why this answer

To make a PDB automatically open on CDB startup, you use ALTER PLUGGABLE DATABASE ... SAVE STATE. This command persists the PDB's open mode in the CDB's metadata.

When the CDB restarts, the PDB is opened to the saved state. Other methods like triggers or parameter files are not standard and can be unreliable.

Exam trap

The trap here is thinking that a trigger or parameter file is needed, when the SAVE STATE clause is the built-in, supported solution.

33
MCQmedium

You are configuring a PDB. What happens to the PDB if you drop the CDB?

A.PDBs remain as standalone
B.PDBs become unusable orphans
C.All PDBs are dropped
D.PDBs are migrated to another CDB
AnswerC

Dropping the CDB removes the root container that every PDB depends on, so all PDBs are dropped along with it. This satisfies the stem's constraint: a PDB cannot exist independently of its CDB, since the CDB supplies the shared instance, data dictionary and system metadata the PDB requires.

Why this answer

All PDBs are automatically removed when the CDB is dropped.

34
MCQmedium

Which command allows you to change the state of a PDB to READ ONLY?

A.OPEN PDB READ ONLY
B.ALTER PDB READ ONLY
C.ALTER PLUGGABLE DATABASE OPEN READ ONLY
D.ALTER DATABASE PDB OPEN READ ONLY
AnswerC

ALTER PLUGGABLE DATABASE OPEN READ ONLY transitions the PDB from MOUNTED to a queryable state while blocking DML, satisfying the READ ONLY requirement. The OPEN clause is mandatory because a PDB must be opened before any read-only access is possible.

Why this answer

ALTER PLUGGABLE DATABASE [PDB_NAME] OPEN READ ONLY is the correct syntax.

35
MCQmedium

What is the primary benefit of using a 'Proxy PDB'?

A.Speeding up local backups
B.Bypassing security
C.Accessing remote PDB data
D.Increasing local storage
AnswerC

A Proxy PDB presents a remote PDB through a local database link, so applications connect locally while the actual data resides elsewhere. This satisfies the requirement of accessing remote PDB data without duplicating it, since queries are forwarded to the source PDB.

Why this answer

A Proxy PDB allows access to a PDB in a remote CDB.

Ready to test yourself?

Try a timed practice session using only Core Administration And Cdb Pdb Architecture questions.