nerdexam
CompTIA

LX0-104 · Question #192

What does cachesize 1000000 represent in the slapd.conf file?

The correct answer is A. The number of entries to be cached.. In slapd.conf, the cachesize directive, when followed by a number like 1000000, specifies the maximum number of entries that the database cache should hold.

Essential System Services

Question

What does cachesize 1000000 represent in the slapd.conf file?

Options

  • AThe number of entries to be cached.
  • BThe size of the cache in Bytes.
  • CThe size of the cache in bits.
  • DThe minimum cache size in Bytes.
  • EThe maximum cache size in Bytes.

How the community answered

(33 responses)
  • A
    91% (30)
  • C
    3% (1)
  • D
    6% (2)

Why each option

In `slapd.conf`, the `cachesize` directive, when followed by a number like `1000000`, specifies the maximum number of entries that the database cache should hold.

AThe number of entries to be cached.Correct

The `cachesize` directive in OpenLDAP's `slapd.conf` (specifically for back-bdb/hdb backends) is used to specify the maximum number of entries that the IDL (ID List) cache can hold. A value like `1000000` means the cache can store up to one million entry IDs.

BThe size of the cache in Bytes.

The `cachesize` directive specifies the number of entries, not the size of the cache in Bytes; the database's memory map size (`dbcachesize` or `set_cachesize` in `DB_CONFIG`) controls the byte size.

CThe size of the cache in bits.

The `cachesize` directive specifies the number of entries, not the size of the cache in bits.

DThe minimum cache size in Bytes.

The `cachesize` directive specifies the maximum number of entries, not a minimum, and it is not measured in Bytes.

EThe maximum cache size in Bytes.

The `cachesize` directive specifies the maximum number of entries, not the maximum size in Bytes.

Concept tested: OpenLDAP database cache configuration

Source: https://www.openldap.org/doc/admin24/bdb.html

Topics

#OpenLDAP#slapd.conf#Caching#Performance tuning

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice