I added DCDC-enable to ble_app_beacon and measured the current consumption.
As shown in the figure, spike current is generated during advertisement transmission.
what is the reason?

Hi,
These spikes are caused due to the range switching of the measurement resistor which happens in the PPK2 when sudden increase in current happens.
This peak is not depicting the actual current consumption. So when a sudden current hike occurs, the resistors switch to a higher ampere range and thus you get these spikes. The average current remains the same and the portion after the spikes show the actual current and you don't have to worry about these spikes.
Regards,
Priyanka