The ability to select a better option from multiple acceptable ones is important for animals to optimize their resources. The mechanisms that underlie such decision-making processes are not well understood. We found that selection of egg-laying site in Drosophila melanogaster is a suitable system to probe the neural circuit that governs simple decision-making processes. First, Drosophila females pursue active probing of the environment before depositing each egg, apparently to evaluate site quality for every egg. Second, Drosophila females can either accept or reject a sucrose-containing medium, depending on the context. Last, communication of the "acceptability" of the sucrose-containing medium as an egg-laying option to the reproductive system depends on the function of a group of insulin-like peptide 7 (ILP7)-producing neurons. These findings suggest that selection of egg-laying site involves a simple decision-making process and provide an entry point toward a systematic dissection of this process.