Docsity

Oracle Cloud Infrastructure 2025 Foundations Associate Practice Exam, Study notes of Technology

Toggle sidebar
bg1
Oracle Database Administration I Practice Exam Page 1
Oracle Database Administration I Practice Exam
Q1.
Which Oracle memory component stores parsed SQL statements and execution plans?
A. Database Buffer Cache B. Shared Pool C. Large Pool D. PGA
Correct Answer:B
Explanation:The Shared Pool contains the Library Cache (parsed SQL and execution plans) and Data Dictionary
Cache. It improves performance by avoiding repeated parsing of SQL statements.
Q2.
Which background process is responsible for writing modified blocks from memory to disk?
A. LGWR B. CKPT C. DBWn D. SMON
Correct Answer:C
Explanation:DBWn (Database Writer) writes dirty buffers from the buffer cache to data files. This process ensures
data consistency and frees memory for new blocks.
Q3.
Which file is REQUIRED to open an Oracle database?
A. Redo log file B. Control file C. Archive log file D. Trace file
Correct Answer:B
Explanation:Control files store metadata such as database name, data file locations, and checkpoint information.
Without them, the database cannot mount or open.
Q4.
Which Oracle process records all changes made to the database?
A. DBWn B. CKPT C. LGWR D. ARCn
Correct Answer:C
Explanation:LGWR (Log Writer) writes redo entries to redo log files, ensuring recoverability of all committed changes.
Q5.
Which tablespace is used to store temporary data such as sort operations?
A. SYSTEM B. SYSAUX C. UNDO D. TEMP
Correct Answer:D
Explanation:The TEMP tablespace stores temporary segments created during sorts, joins, and index creation.
Q6.
What is the PRIMARY purpose of the UNDO tablespace?
A. Store redo data B. Enable flashback and read consistency C. Store temporary objects D. Store metadata
Correct Answer:B
Explanation:UNDO stores before-images of data to allow rollback, read consistency, and flashback operations.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27

Partial preview of the text

Download Oracle Cloud Infrastructure 2025 Foundations Associate Practice Exam and more Study notes Technology in PDF only on Docsity!

Oracle Database Administration I Practice Exam

Q1.

Which Oracle memory component stores parsed SQL statements and execution plans?

A. Database Buffer Cache B. Shared Pool C. Large Pool D. PGA

Correct Answer: B

Explanation: The Shared Pool contains the Library Cache (parsed SQL and execution plans) and Data Dictionary Cache. It improves performance by avoiding repeated parsing of SQL statements.

Q2.

Which background process is responsible for writing modified blocks from memory to disk?

A. LGWR B. CKPT C. DBWn D. SMON

Correct Answer: C

Explanation: DBWn (Database Writer) writes dirty buffers from the buffer cache to data files. This process ensures data consistency and frees memory for new blocks.

Q3.

Which file is REQUIRED to open an Oracle database?

A. Redo log file B. Control file C. Archive log file D. Trace file

Correct Answer: B

Explanation: Control files store metadata such as database name, data file locations, and checkpoint information. Without them, the database cannot mount or open.

Q4.

Which Oracle process records all changes made to the database?

A. DBWn B. CKPT C. LGWR D. ARCn

Correct Answer: C

Explanation: LGWR (Log Writer) writes redo entries to redo log files, ensuring recoverability of all committed changes.

Q5.

Which tablespace is used to store temporary data such as sort operations?

A. SYSTEM B. SYSAUX C. UNDO D. TEMP

Correct Answer: D

Explanation: The TEMP tablespace stores temporary segments created during sorts, joins, and index creation.

Q6.

What is the PRIMARY purpose of the UNDO tablespace?

A. Store redo data B. Enable flashback and read consistency C. Store temporary objects D. Store metadata

Correct Answer: B

Explanation: UNDO stores before-images of data to allow rollback, read consistency, and flashback operations.

Q7.

Which Oracle file contains the database initialization parameters?

A. Control file B. Password file C. Data file D. SPFILE

Correct Answer: D

Explanation: The SPFILE is a binary file that stores initialization parameters used at startup.

Q8.

Which startup phase allows control file access but NOT data files?

A. NOMOUNT B. MOUNT C. OPEN D. RESTRICTED

Correct Answer: B

Explanation: In MOUNT mode, Oracle reads control files but does not open data files.

Q9.

Which privilege allows a user to create tables in their schema?

A. CREATE ANY TABLE B. CREATE TABLE C. ALTER TABLE D. DBA

Correct Answer: B

Explanation: CREATE TABLE allows table creation only within the user’s own schema.

Q10.

Which data dictionary view provides information about all database users?

A. USER_USERS B. ALL_USERS C. DBA_USERS D. V$USER

Correct Answer: C

Explanation: DBA_USERS shows details of all users and requires DBA privileges.

Q11.

Which background process performs instance recovery after a crash?

A. PMON B. SMON C. ARCn D. LGWR

Correct Answer: B

Explanation: SMON (System Monitor) performs crash recovery and cleans temporary segments.

Q12.

Which process cleans up failed user sessions?

A. DBWn B. SMON C. PMON D. CKPT

Correct Answer: C

Explanation: PMON (Process Monitor) releases locks and resources held by failed sessions.

Q13.

Which statement about redo logs is TRUE?

A. Redo logs store undo data B. Redo logs store committed data only C. Redo logs record all database changes D. Redo logs store SQL statements

Correct Answer: C

A. Redo logs B. Undo data C. Control files D. Checkpoints

Correct Answer: B

Explanation: Undo allows queries to see a consistent snapshot of data.

Q21.

Which process updates data file headers and control files during checkpoints?

A. LGWR B. DBWn C. CKPT D. SMON

Correct Answer: C

Explanation: CKPT signals DBWn and updates headers during checkpoints.

Q22.

Which tablespace stores auxiliary metadata?

A. SYSTEM B. SYSAUX C. TEMP D. USERS

Correct Answer: B

Explanation: SYSAUX reduces SYSTEM tablespace load by storing auxiliary components.

Q23.

Which user is created automatically during database creation?

A. HR B. SCOTT C. SYS D. APPUSER

Correct Answer: C

Explanation: SYS owns the data dictionary and has highest privileges.

Q24.

Which statement about PGA is TRUE?

A. Shared memory B. Stores redo data C. Session-specific memory D. Stores data dictionary

Correct Answer: C

Explanation: PGA is private memory allocated per session.

Q25.

Which command creates a new tablespace?

A. CREATE DATAFILE B. CREATE TABLESPACE C. CREATE DATABASE D. ALTER DATABASE

Correct Answer: B

Q26.

Which view shows redo log group status?

A. DBA_LOGS B. V$LOG C. V$ARCHIVED_LOG D. DBA_REDO

Correct Answer: B

Q27.

Which mode allows only users with RESTRICTED SESSION privilege?

A. MOUNT B. OPEN C. RESTRICTED D. NOMOUNT

Correct Answer: C

Q28.

Which file is NOT multiplexed by default?

A. Control file B. Data file C. Redo log file D. Password file

Correct Answer: B

Q29.

Which SQL command removes a user and all objects?

A. DROP USER B. DROP USER CASCADE C. DELETE USER D. REMOVE USER

Correct Answer: B

Q30.

Which wait event indicates commit latency?

A. db file scattered read B. buffer busy waits C. log file sync D. latch free

Correct Answer: C

Q31.

Which component manages SQL parsing?

A. Library Cache B. Buffer Cache C. PGA D. Redo Buffer

Correct Answer: A

Q32.

Which background process archives redo logs?

A. LGWR B. ARCn C. SMON D. PMON

Correct Answer: B

Q33.

Which operation requires TEMP tablespace?

A. SELECT * FROM table B. Index rebuild C. INSERT D. UPDATE

Correct Answer: B

Q34.

Which Oracle feature enables logical recovery?

A. RMAN B. Flashback C. Redo D. Control files

Correct Answer: B

Q35.

Which parameter controls maximum sessions?

A. PROCESSES B. SESSIONS C. USERS D. CONNECTIONS

Correct Answer: A

Which memory structure stores redo temporarily?

A. Redo Buffer B. Buffer Cache C. Shared Pool D. PGA

Correct Answer: A

Q45.

Which process performs coalescing of free space?

A. PMON B. SMON C. DBWn D. ARCn

Correct Answer: B

Q46.

Which Oracle tool manages backups?

A. Data Pump B. RMAN C. SQL Loader D. AWR

Correct Answer: B

Q47.

Which view shows data file locations?

A. DBA_FILES B. V$DATAFILE C. DBA_DATA_FILES D. USER_FILES

Correct Answer: C

Q48.

Which mode allows database creation?

A. OPEN B. MOUNT C. NOMOUNT D. RESTRICTED

Correct Answer: C

Q49.

Which Oracle feature enables automatic memory tuning?

A. AMM B. PGA C. SGA D. ASM

Correct Answer: A

Q50.

Which role provides full database administration privileges?

A. CONNECT B. RESOURCE C. DBA D. SYSOPER

Correct Answer: C

Q51.

Which Oracle component ensures that committed data is not lost during instance failure?

A. DBWn B. LGWR C. CKPT D. SMON

Correct Answer: B

Explanation: LGWR writes redo entries to disk at commit time. This guarantees durability (the “D” in ACID), even if DBWn has not yet written data blocks to disk.

Q52.

Which tablespace type is recommended for UNDO?

A. Temporary B. Smallfile C. Bigfile D. Read-only

Correct Answer: C

Explanation: Bigfile tablespaces are recommended for UNDO in modern Oracle databases to simplify management and reduce file count.

Q53.

Which view shows free space within tablespaces?

A. DBA_TABLESPACES B. DBA_DATA_FILES C. DBA_FREE_SPACE D. USER_FREE_SPACE

Correct Answer: C

Explanation: DBA_FREE_SPACE displays unallocated extents available in tablespaces.

Q54.

Which process is responsible for rolling back uncommitted transactions during crash recovery?

A. PMON B. SMON C. DBWn D. LGWR

Correct Answer: B

Explanation: SMON performs instance recovery, including rolling forward committed changes and rolling back uncommitted transactions using undo.

Q55.

Which parameter controls the size of the Shared Pool?

A. SHARED_POOL_SIZE B. MEMORY_TARGET C. SGA_TARGET D. PGA_AGGREGATE_TARGET

Correct Answer: A

Explanation: SHARED_POOL_SIZE explicitly controls memory allocated to the shared pool when not using automatic memory management.

Q56.

Which Oracle process assigns server processes to user sessions in a shared server environment?

A. PMON B. SMON C. DISPATCHER D. LISTENER

Correct Answer: C

Explanation: Dispatchers route client requests to shared server processes in shared server architecture.

Q57.

Which file contains encrypted user passwords?

A. Control file B. Data dictionary C. Password file D. Redo log file

Correct Answer: C

Explanation: The password file stores credentials for SYSDBA and SYSOPER authentication.

Q58.

Which SQL command changes a data file’s status to offline?

A. ALTER TABLESPACE OFFLINE B. ALTER DATABASE DATAFILE OFFLINE C. ALTER SYSTEM OFFLINE D. DROP DATAFILE

Q65.

Which component stores SQL execution statistics?

A. Buffer Cache B. Shared Pool C. PGA D. Redo Buffer

Correct Answer: B

Explanation: The shared pool (library cache) maintains SQL execution metadata and statistics.

Q66.

Which privilege allows creating views in another user’s schema?

A. CREATE VIEW B. CREATE ANY VIEW C. ALTER VIEW D. DBA

Correct Answer: B

Explanation: CREATE ANY VIEW permits creation of views in any schema.

Q67.

Which Oracle feature enables automatic cleanup of old undo data?

A. Automatic Undo Management B. Flashback Database C. Redo Archiving D. Auto Memory Management

Correct Answer: A

Explanation: Automatic Undo Management controls undo retention and space reuse automatically.

Q68.

Which view shows database role (PRIMARY/STANDBY)?

A. V$INSTANCE B. V$DATABASE C. DBA_ROLE D. USER_DATABASE

Correct Answer: B

Explanation: V$DATABASE displays database role, open mode, and protection mode.

Q69.

Which type of backup captures only metadata?

A. Physical backup B. Incremental backup C. Logical backup D. Full backup

Correct Answer: C

Explanation: Logical backups (Data Pump exports) capture schema metadata and logical data.

Q70.

Which Oracle process manages dynamic memory resizing?

A. MMAN B. DBWn C. SMON D. LGWR

Correct Answer: A

Explanation: MMAN manages memory resizing when using automatic memory management.

Q71.

Which file records the database incarnation?

A. Data file B. Control file C. Redo log file D. Password file

Correct Answer: B

Explanation: Control files track database incarnation history needed for recovery.

Q72.

Which tablespace stores rollback segments in manual undo mode?

A. TEMP B. SYSTEM C. UNDO D. RBS

Correct Answer: D

Explanation: Rollback segments are stored in the RBS tablespace when manual undo management is used (legacy).

Q73.

Which SQL command removes unused space from a segment?

A. DROP TABLE B. TRUNCATE TABLE C. DELETE FROM table D. ALTER TABLE MOVE

Correct Answer: B

Explanation: TRUNCATE removes all rows and deallocates space efficiently.

Q74.

Which Oracle feature protects against user errors like accidental deletes?

A. RMAN B. Flashback Query C. Redo Logs D. Control Files

Correct Answer: B

Explanation: Flashback Query allows viewing past versions of data using undo.

Q75.

Which memory area stores sort and hash operations?

A. Shared Pool B. Buffer Cache C. PGA D. Redo Buffer

Correct Answer: C

Explanation: PGA holds session-level memory for sorts, joins, and hashes.

Q76.

Which role allows basic object creation privileges?

A. DBA B. CONNECT C. RESOURCE D. SYSOPER

Correct Answer: C

Explanation: RESOURCE provides object creation privileges such as tables and procedures.

Q77.

Which operation requires exclusive access to a table?

A. SELECT B. UPDATE C. DELETE D. TRUNCATE

Correct Answer: D

Explanation: TRUNCATE is a DDL operation requiring an exclusive lock.

Q78.

Which view shows memory component sizes?

A. V$MEMORY_TARGET_ADVICE B. V$SGA C. DBA_MEMORY D. USER_MEMORY

Correct Answer: B

Correct Answer: B

Explanation: ARCHIVELOG mode is required for full point-in-time recovery.

Q86.

Which view shows tablespace status?

A. DBA_TABLESPACES B. DBA_TS_STATUS C. V$TABLESPACE D. USER_TABLESPACES

Correct Answer: A

Q87.

Which Oracle feature enables automatic SQL optimization?

A. AWR B. Automatic SQL Tuning C. ASH D. SQL Monitor

Correct Answer: B

Q88.

Which SQL statement permanently removes table data without rollback?

A. DELETE B. DROP C. TRUNCATE D. FLASHBACK

Correct Answer: C

Q89.

Which background process monitors instance health?

A. PMON B. SMON C. CKPT D. MMAN

Correct Answer: A

Q90.

Which component ensures data dictionary consistency?

A. Redo logs B. Control files C. SYSTEM tablespace D. TEMP tablespace

Correct Answer: C

Q91.

Which view shows undo statistics?

A. DBA_UNDO B. V$UNDOSTAT C. USER_UNDO D. DBA_ROLLBACK_SEGS

Correct Answer: B

Q92.

Which type of constraint enforces uniqueness?

A. CHECK B. FOREIGN KEY C. UNIQUE D. NOT NULL

Correct Answer: C

Q93.

Which Oracle feature enables automatic statistics collection?

A. AWR B. Auto Task C. ASH D. SQL Monitor

Correct Answer: B

Q94.

Which process coordinates recovery across instances?

A. SMON B. PMON C. LMON D. DBWn

Correct Answer: C

Explanation: LMON (Lock Monitor) is used in RAC environments.

Q95.

Which command rebuilds an index online?

A. ALTER INDEX REBUILD B. ALTER INDEX REBUILD ONLINE C. CREATE INDEX ONLINE D. UPDATE INDEX

Correct Answer: B

Q96.

Which Oracle feature provides workload snapshots?

A. AWR B. ASH C. SQL Monitor D. ADDM

Correct Answer: A

Q97.

Which view displays database startup time?

A. V$INSTANCE B. V$DATABASE C. DBA_STARTUP D. USER_INSTANCE

Correct Answer: A

Q98.

Which operation uses undo the MOST?

A. INSERT B. UPDATE C. DELETE D. SELECT

Correct Answer: C

Q99.

Which Oracle feature enforces password complexity?

A. Profiles B. Roles C. Tablespaces D. Audit policies

Correct Answer: A

Q100.

Which database feature allows querying historical data?

A. AWR B. Flashback Query C. Redo Logs D. RMAN

Correct Answer: B

Q101.

Which Oracle file is backed up automatically when using RMAN?

A. Data files only B. Control file only C. Control file and SPFILE D. Redo log files

Correct Answer: C

A. PMON B. SMON C. LISTENER D. DISPATCHER

Correct Answer: C

Explanation: The Listener accepts client connection requests and hands them to the database.

Q109.

Which wait event indicates slow data file writes?

A. db file scattered read B. db file sequential read C. db file parallel write D. log file sync

Correct Answer: C

Explanation: db file parallel write indicates slow data file I/O, usually DBWn activity.

Q110.

Which tablespace can NEVER be taken offline?

A. USERS B. TEMP C. UNDO D. SYSTEM

Correct Answer: D

Explanation: SYSTEM tablespace must always be online for database operation.

Q111.

Which Oracle feature enables automatic workload analysis?

A. ASH B. AWR C. ADDM D. SQL Monitor

Correct Answer: C

Explanation: ADDM analyzes AWR snapshots and provides tuning recommendations.

Q112.

Which type of segment stores table data?

A. Index segment B. Temporary segment C. Data segment D. Undo segment

Correct Answer: C

Explanation: Data segments store rows of tables.

Q113.

Which parameter enables automatic PGA tuning?

A. PGA_SIZE B. PGA_AGGREGATE_TARGET C. MEMORY_TARGET D. SGA_TARGET

Correct Answer: B

Explanation: PGA_AGGREGATE_TARGET enables automatic management of PGA memory.

Q114.

Which view shows tablespace usage percentage?

A. DBA_TABLESPACES B. DBA_DATA_FILES C. DBA_FREE_SPACE D. DBA_TABLESPACE_USAGE_METRICS

Correct Answer: D

Explanation: This view provides percentage used/free for tablespaces.

Q115.

Which Oracle feature prevents accidental data overwrites during recovery?

A. Control file autobackup B. RMAN validation C. Block Change Tracking D. Flashback Database

Correct Answer: A

Explanation: Control file autobackup ensures recovery metadata is always available.

Q116.

Which SQL statement changes default tablespace for a user?

A. ALTER USER B. CREATE USER C. ALTER TABLESPACE D. GRANT

Correct Answer: A

Q117.

Which type of lock is obtained by SELECT FOR UPDATE?

A. Shared lock B. Exclusive lock C. Row-level lock D. Table-level lock

Correct Answer: C

Explanation: SELECT FOR UPDATE locks rows, preventing concurrent updates.

Q118.

Which Oracle feature minimizes recovery time?

A. Checkpoints B. Redo logs C. Flashback logs D. Archive logs

Correct Answer: A

Explanation: Frequent checkpoints reduce the amount of redo applied during recovery.

Q119.

Which parameter controls database block size?

A. DB_BLOCK_SIZE B. BLOCK_SIZE C. DATA_BLOCK_SIZE D. DB_CACHE_SIZE

Correct Answer: A

Q120.

Which operation requires ARCHIVELOG mode?

A. Cold backup B. Online backup C. Logical export D. Database creation

Correct Answer: B

Q121.

Which Oracle feature enables object-level recovery?

A. RMAN B. Flashback Table C. Media Recovery D. Data Guard

Correct Answer: B

Q122.

Which view shows redo log file members?

A. V$LOG B. V$LOGFILE C. DBA_LOGS D. DBA_LOGFILES

Correct Answer: B

Which feature allows database rollback to a previous point in time?

A. Flashback Database B. Flashback Table C. Flashback Query D. Undo

Correct Answer: A

Q132.

Which process writes undo blocks to disk?

A. LGWR B. DBWn C. SMON D. CKPT

Correct Answer: B

Q133.

Which view shows SGA component resize history?

A. V$SGA B. V$MEMORY_DYNAMIC_COMPONENTS C. V$MEMORY_TARGET_ADVICE D. V$PGA_TARGET_ADVICE

Correct Answer: B

Q134.

Which database feature allows online table redefinition?

A. DBMS_REDEFINITION B. Flashback C. RMAN D. Data Pump

Correct Answer: A

Q135.

Which command enables automatic memory management?

A. SET MEMORY_TARGET B. ALTER SYSTEM SET MEMORY_TARGET C. SET SGA_TARGET D. ENABLE AMM

Correct Answer: B

Q136.

Which type of segment is created during index creation?

A. Undo B. Temporary C. Index D. Data

Correct Answer: C

Q137.

Which Oracle feature enables user activity auditing?

A. AWR B. Unified Auditing C. Flashback D. ADDM

Correct Answer: B

Q138.

Which parameter controls cursor sharing?

A. OPEN_CURSORS B. CURSOR_SHARING C. SHARED_POOL_SIZE D. SQL_REUSE

Correct Answer: B

Q139.

Which Oracle tool performs logical exports?

A. RMAN B. SQL*Loader C. Data Pump D. ASM

Correct Answer: C

Q140.

Which view shows archive log history?

A. V$LOG B. V$ARCHIVED_LOG C. DBA_LOGFILES D. DBA_REDO

Correct Answer: B

Q141.

Which operation invalidates dependent objects?

A. SELECT B. UPDATE C. DROP TABLE D. COMMIT

Correct Answer: C

Q142.

Which tablespace stores AWR data?

A. SYSTEM B. SYSAUX C. USERS D. TEMP

Correct Answer: B

Q143.

Which Oracle feature enforces password expiration?

A. Profiles B. Roles C. Privileges D. Auditing

Correct Answer: A

Q144.

Which parameter defines default undo tablespace?

A. UNDO_RETENTION B. UNDO_TABLESPACE C. UNDO_MANAGEMENT D. ROLLBACK_SEGMENTS

Correct Answer: B

Q145.

Which database feature tracks modified blocks for faster backups?

A. Flashback B. Block Change Tracking C. Archive logs D. Incremental merge

Correct Answer: B

Q146.

Which wait event indicates buffer contention?

A. db file sequential read B. buffer busy waits C. log file sync D. enqueue

Correct Answer: B

Q147.

Which view shows open cursors per session?

A. V$SESSION B. V$OPEN_CURSOR C. V$SQL D. DBA_CURSORS

Correct Answer: B