Pachnoda marginata is a beetle from the subfamily Cetoniinae with a large number of subspecies that lives in west and central Africa. They are sometimes used as food for terrarium animals. The adult beetles are 20-30 mm, the larvae are very small when they hatch, but can grow as long as 60 mm. (Wikipedia)
Adult females are attracted to moist, rotting wood to oviposit, although oviposition has been observed in fairly dry wood and in living trees. Females leave colonized wood to seek out new oviposition sites in early summer and use their pygidial spines (ovipositor) to create such sites.
The delta flower scarab is also commonly known as the “D beetle.” The triangle on the beetle’s pronotum has been suggested as mimicry of the markings on paper wasps in the genus Polistes. The species is diurnal, that is, it is active during daylight. Most of its activities revolve around flowers - they eat pollen and mate almost exclusively on flower blossoms.