title: Are Google Cloud Functions protected from DDoS attacks?
body: <p>As far as I understand, my Google Cloud Functions are globally accessible. If I want to control access to them, I need to implement authorization as a part of the function itself. Say, I could use Bearer token based approach. This would protect the resources behind this function from unauthorized access.</p>
  
  <p>However, since the function is available globally, it can still be DDoS-ed by a bad guy. If the attack is not as strong as Google's defence, my function/service may still be responsive. This is good. However, <strong>I don't want to pay for those function calls made by the party I didn't authorize to access the function.</strong> (Since the billing is per number of function invocations). <strong>That's why it's important for me to know whether Google Cloud Functions detect DDoS attacks and enable counter-measures before I'm being responsible for charges.</strong></p>