nerdexam
CompTIA

LX0-104 · Question #433

An administrator notices that searches are being processed sequentially and taking a long time to complete. What should be done to speed up the searches?

The correct answer is A. Add the correct indexes in slapd.conf, stop the server and run slapindex.. To speed up slow, sequential LDAP searches, the most effective approach is to implement proper indexing and rebuild the directory database.

Essential System Services

Question

An administrator notices that searches are being processed sequentially and taking a long time to complete. What should be done to speed up the searches?

Options

  • AAdd the correct indexes in slapd.conf, stop the server and run slapindex.
  • BRefine the search filter.
  • CUse the -binarytreesearch option with ldapsearch.
  • DUse the -fuzzy option with ldapsearch.

How the community answered

(21 responses)
  • A
    76% (16)
  • B
    10% (2)
  • C
    10% (2)
  • D
    5% (1)

Why each option

To speed up slow, sequential LDAP searches, the most effective approach is to implement proper indexing and rebuild the directory database.

AAdd the correct indexes in slapd.conf, stop the server and run slapindex.Correct

Adding correct indexes in `slapd.conf` improves search performance by creating optimized data structures that allow the LDAP server to quickly locate entries without scanning the entire directory. After defining new indexes, `slapindex` must be run with the server stopped to rebuild the database files and apply the new indexing scheme.

BRefine the search filter.

Refining the search filter might reduce the result set but does not fundamentally speed up the search processing if the underlying database lacks proper indexing.

CUse the -binarytreesearch option with ldapsearch.

The `-binarytreesearch` option is not a standard or commonly used `ldapsearch` option for improving server-side search performance; it's likely a misdirection or non-existent option in this context.

DUse the -fuzzy option with ldapsearch.

The `-fuzzy` option is not a standard `ldapsearch` option for improving search performance; it implies a less precise search, which is unrelated to sequential processing speed.

Concept tested: LDAP server indexing for performance

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

Topics

#LDAP performance#Indexing#slapindex

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice