nerdexam
Linux_Foundation

LFCS · Question #171

When importing the contents of one directory into another, the administrator is adding entries with the slapadd command. Which of the following statements are true? (Choose THREE correct answers.)

The correct answer is A. slapindex must be run after slapadd, because the slapadd operation will not write to index files. B. The slapd process must be stopped before running slapadd. D. The changes in the LDIF file will not be replicated with slurpd. When importing entries with slapadd, the slapd daemon must be stopped to prevent database corruption, and slapindex must be run afterward to update indexes, as slapadd bypasses normal indexing and replication processes.

Submitted by hans_de· Apr 18, 2026Operation of Running Systems

Question

When importing the contents of one directory into another, the administrator is adding entries with the slapadd command. Which of the following statements are true? (Choose THREE correct answers.)

Options

  • Aslapindex must be run after slapadd, because the slapadd operation will not write to index files.
  • BThe slapd process must be stopped before running slapadd.
  • CAll slave servers must be listed in the LDIF file for the entries to be replicated.
  • DThe changes in the LDIF file will not be replicated with slurpd.
  • Eslapstart must be run after creating the entries.

How the community answered

(43 responses)
  • A
    84% (36)
  • C
    12% (5)
  • E
    5% (2)

Why each option

When importing entries with `slapadd`, the `slapd` daemon must be stopped to prevent database corruption, and `slapindex` must be run afterward to update indexes, as `slapadd` bypasses normal indexing and replication processes.

Aslapindex must be run after slapadd, because the slapadd operation will not write to index files.Correct

slapadd performs direct writes to the database files, bypassing the normal indexing routines of slapd, hence slapindex must be run afterward to ensure the database indexes are consistent with the newly added data.

BThe slapd process must be stopped before running slapadd.Correct

To prevent database corruption and ensure exclusive access during direct database manipulation, the slapd daemon, which normally manages the LDAP database, must be stopped before running the slapadd utility.

CAll slave servers must be listed in the LDIF file for the entries to be replicated.

Slave servers are configured for replication via OpenLDAP's replication mechanisms, not by being listed within the LDIF file itself.

DThe changes in the LDIF file will not be replicated with slurpd.Correct

The slurpd daemon monitors and replicates changes processed through the running slapd daemon; since slapadd directly modifies the database files offline, these changes are not seen or replicated by slurpd.

Eslapstart must be run after creating the entries.

slapstart is not a standard command for managing OpenLDAP entries; `slapd` is the daemon that is started, not `slapstart`.

Concept tested: OpenLDAP slapadd utility operation

Source: http://www.openldap.org/doc/admin/slapadd.html

Topics

#OpenLDAP#slapadd#Indexing#Replication

Community Discussion

No community discussion yet for this question.

Full LFCS Practice