nerdexam
Linux_Foundation

LFCS · 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 the slapd.conf file, cachesize 1000000 defines the maximum number of entries to be stored in the OpenLDAP server's entry cache.

Submitted by lucia.co· Apr 18, 2026Service Configuration

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

(50 responses)
  • A
    88% (44)
  • C
    6% (3)
  • D
    2% (1)
  • E
    4% (2)

Why each option

In the `slapd.conf` file, `cachesize 1000000` defines the maximum number of entries to be stored in the OpenLDAP server's entry cache.

AThe number of entries to be cached.Correct

For OpenLDAP database backends, the `cachesize` directive specifically configures the maximum count of directory entries that the server will hold in its memory cache. Setting it to `1000000` means the server can cache up to one million entries for faster retrieval, thereby improving query performance.

BThe size of the cache in Bytes.

The `cachesize` directive specifies the number of entries, not the size in bytes; memory usage is dynamic based on entry content.

CThe size of the cache in bits.

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

DThe minimum cache size in Bytes.

The `cachesize` directive sets a maximum limit, not a minimum, for the number of entries.

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 caching configuration

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

Topics

#LDAP#slapd.conf#Caching#Service Configuration

Community Discussion

No community discussion yet for this question.

Full LFCS Practice