nerdexam
Oracle

1Z0-062 · Question #331

An application repeatedly accesses small lookup tables, causing a lot of physical I/O operations. What do you recommend to minimize this?

The correct answer is C. Configure the KEEP buffer cache and alter the tables to use the KEEP cache. To minimize physical I/O for small, frequently accessed lookup tables, configure a KEEP buffer cache and assign these tables to it. This ensures the tables' data blocks remain in memory, avoiding disk reads for subsequent accesses.

Managing Performance

Question

An application repeatedly accesses small lookup tables, causing a lot of physical I/O operations. What do you recommend to minimize this?

Options

  • AConfigure the nonstandard buffer cache with a buffer size greater than the size of the default
  • BIncrease the size of the shared pool
  • CConfigure the KEEP buffer cache and alter the tables to use the KEEP cache.
  • DConfigure the RECYCLE buffer cache and alter the tables to use the RECYCLE cache.

How the community answered

(24 responses)
  • A
    17% (4)
  • B
    8% (2)
  • C
    71% (17)
  • D
    4% (1)

Why each option

To minimize physical I/O for small, frequently accessed lookup tables, configure a KEEP buffer cache and assign these tables to it. This ensures the tables' data blocks remain in memory, avoiding disk reads for subsequent accesses.

AConfigure the nonstandard buffer cache with a buffer size greater than the size of the default

Configuring a nonstandard buffer cache without specifying that the tables should use it does not guarantee these specific tables will remain in memory and not be aged out by other data.

BIncrease the size of the shared pool

Increasing the size of the shared pool primarily benefits caching of SQL statements, PL/SQL code, and data dictionary information, not directly the data blocks of tables.

CConfigure the KEEP buffer cache and alter the tables to use the KEEP cache.Correct

The KEEP buffer cache is specifically designed to retain frequently accessed objects, such as small lookup tables, in the buffer cache indefinitely, preventing them from being aged out by the LRU algorithm. By allocating a separate KEEP cache and marking these tables for its use, physical I/O operations for these hot objects are significantly reduced or eliminated.

DConfigure the RECYCLE buffer cache and alter the tables to use the RECYCLE cache.

The RECYCLE buffer cache is intended for objects that are accessed infrequently or for very large objects whose blocks should be aged out quickly to avoid consuming too much buffer cache space, which is the opposite goal for hot lookup tables.

Concept tested: Oracle buffer cache management for hot objects

Source: https://docs.oracle.com/en/database/oracle/oracle-database/23/admin/configuring-the-database.html#GUID-E56FC03A-8519-459E-99C1-F648CC74C511

Topics

#Buffer Cache#KEEP Buffer Cache#Performance Tuning#Physical I/O

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice