my car did that and it was aftermarket pads that fitted where a little loose in the caliper they where a tiny bit smaller then stock and would rattle around in there some of that red glue for the pads help stop it
since i have changed pads and now the noise is gone
only ever did it on acceleration and when i used brake