300-300 · Question #44
Which of the following parameters can be used in the file DB_CONFIG? (Select TWO correct answers.)
The correct answer is A. set_cachesize E. set_lg_max. set_cachesize (A) and set_lg_max (E) are both legitimate Berkeley DB environment configuration parameters recognized in the DB_CONFIG file. set_cachesize controls the size of the shared memory buffer pool (cache), and set_lg_max sets the maximum size of a single transaction log…
Question
Options
- Aset_cachesize
- Bset_cachepath
- Cset_db_type
- Dset_db_path
- Eset_lg_max
How the community answered
(22 responses)- A91% (20)
- B5% (1)
- D5% (1)
Explanation
set_cachesize (A) and set_lg_max (E) are both legitimate Berkeley DB environment configuration parameters recognized in the DB_CONFIG file. set_cachesize controls the size of the shared memory buffer pool (cache), and set_lg_max sets the maximum size of a single transaction log file - both are environment-level settings that belong in DB_CONFIG.
Why the distractors are wrong:
- B (
set_cachepath) - Not a valid parameter; there is no such directive. Cache configuration is handled viaset_cachesize, not a path setting. - C (
set_db_type) - Database type is set programmatically viaDB->set_type()in code, not throughDB_CONFIG. - D (
set_db_path) - Not a valid directive; the data directory is configured withset_data_dir, notset_db_path.
Memory tip: Focus on the prefixes - set_cachesize (cache/memory) and set_lg_* (log management) are environment-level concerns that belong in DB_CONFIG. Any parameter with a db_ prefix in these choices is a trap - database-specific settings are handled in application code, not the environment config file.
Topics
Community Discussion
No community discussion yet for this question.