Elastic Agent has a memory queue only and you can configure the queue size in the output settings, once the queue is full, new events will be dropped until the Agent is able to send logs agains.
I'm not sure about Elastic Defend as I do not use it, but ccording to this answer on another question it has a disk buffer, it is not specified the size of it and I could not find anything on the documentation.