Applications in the Cloud Flashcards

(10 cards)

1
Q

What is Cloud Run?

A

A managed compute platform that runs stateless containers via web requests or Pub/Sub events. It’s serverless, meaning no infrastructure management is needed.

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

What is a key benefit of Cloud Run’s scaling?

A

It can automatically scale up and down from zero almost instantaneously, charging only for the resources used, calculated down to the nearest 100 milliseconds.

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

Describe the three main steps in the Google Cloud Run workflow.

A
  1. Write your code; 2. Build and package it into a container image; 3. Deploy to Cloud Run.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the alternative workflow for Cloud Run if you don’t want to manage containers?

A

A source-based workflow where Cloud Run uses Buildpacks to automatically build and package your source code into a container image.

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

How is pricing unique for Cloud Run?

A

You are only charged when your container handles requests, including startup and shutdown time, with a granularity of 100ms. You don’t pay for idle time.

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

What types of applications can Cloud Run run?

A

Any binary compiled for Linux 64-bit, including web applications written in popular languages like Java, Python, Node.js, PHP, Go, and C++.

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

What are Cloud Run functions designed for?

A

Lightweight, event-based, asynchronous compute solutions for creating small, single-purpose functions that respond to cloud events.

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

When would you use a Cloud Run function?

A

For event-driven tasks where you want to execute bite-sized business logic, such as converting image formats, generating thumbnails, or sending notifications when a new file is uploaded.

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

How are Cloud Run functions invoked?

A

They can be triggered asynchronously by events from Cloud Storage and Pub/Sub, or synchronously using HTTP invocation.

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

What is the main difference in use case between Cloud Run and Cloud Run functions?

A

Cloud Run is for hosting entire dynamic web applications or APIs, while Cloud Run functions are for small, single-purpose, event-driven tasks.

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