There are two types of Cloud Functions: HTTP and background functions. They differ in the way they are triggered. Let's have a look at each of them.
Types of Cloud Functions
HTTP functions
HTTP functions are invoked by HTTP(S) requests. The POST, PUT, GET, DELETE, and OPTIONS HTTP methods are accepted. Arguments can be provided to the function using the request body:
The invocation can be defined as synchronous as it can return a response that's been constructed within the function.
Interesting fact: Don't expect a question on this on the exam. However, it might be interesting to know that Cloud Functions handle HTTP requests using common frameworks. For Node.js, this is Express 4.16.3, for Python, this is...