Google Cloud Functions Flashcards

1
Q

Cloud Functions

A

Serverless, Event-driven, stateless, and autoscaling that is quick and pay as you go for small applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use for IoT Backends

A

Process and autoscale data from IoT without any human intervention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Use for Mobile Backends

A

Can process data delivered by mobile applications and can interact with all GCP services to make use of big data, ML capabilites, and so on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Use for Third-Party API Integrations

A

Use functions to integrate with any third party system that provides API allowing you to extend your application with additional features delivered by other providers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Real Time Stream Processing

A

When messages arrive in the Pub/Sub, Cloud Functions can be triggered to analyze or enrich the messages to prepare them for further data processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Real Time Files Processing

A

Immediately process files uploaded to your Cloud Storage Bukets using GCP AI APIs or creating thumbnails

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Autoscaling in Cloud Functions

A

Scale from zero to desired scale, and is managed without user intervention. Limits can be set to control execution cost, to prevent design flaws causing spikes in use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Stateless Cloud Functions

A

Functions do not store state or data. This allows them to work independantly and scale as needed. Each invocation has its own execution enviornment and does not share global variable memory or file systems. To share state across function invocations, should use Cloud Datastore or Cloud Storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Event Drive Response in Cloud Functions

A

Cloud Functions are triggered in response to an event of HTTP request, therefore they are invoked only wen needed and have no cost when inactive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Chatbots and Virtual Assistants

A

Connect your text or voice platforms to Cloud Functions to integrate them with other GCP services such as DialogFlow to provide a natural conversation experience. Integration with third party aps can also be used to provide services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Video and Image Analysis

A

Use Cloud Functions to interact with the various GCP AI building blocks such as video and image AI. When a user uploads an image or video, CF can immedately trigger the related API and return the anaylsis and can perform actions depending on the results of the analysis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Lightweight APIs and Webhooks

A

Cloud Functions can be triggered using HTTP, exposing your application to the external world without building your API from scratch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What runtimes are supported in Cloud Functions?

A

Node.js 6/8/10, Python 3.7, Go 1.11. Modules and libraries associated with that runtime will be automatically loaded into that enviornment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

HTTP Functions

A

Cloud Functions can be triggered by HTTP(S) requests such as post, put, get delete, and options. It can return a response that has been constructed in the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Background Functions

A

Can be triggered by changes in Cloud Storage Buckets, messages in the Cloud Pub/Sub topic, or one of the supported Firebase Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Event Triggers

A

Things happening inside or outside the GCP enviornment, where certain occurances trigger an action. Events can come from Cloud Storage, Cloud Pub/Sub, Stackdriver, Cloud Firestore, Firebase Realtime Database, Storage and Authentication

17
Q

Triggers

A

The configured reaction to an event. The actual binding of the trigger happens at deployment time.

18
Q

Cloud SQL Connectivity

A

Cloud Functions are stateless and therefore need access to an external storage or database. Cloud SQL can be connected using a local socket interface provided in the Cloud Functions execution enviornment.

19
Q

VPC Connectivity for Cloud Functions

A

You can access services within VPC by creating serverless VPC access controller, referring to this connection when you deploy the function. Does not work with Shared VPCs and legacy networks.