PCA-Assorted Flashcards

1
Q

What is the default limit on API calls per second in BigQuery, and what can we do if we need faster ingestion ?

A

100 API calls per second. Use PubSub for faster ingestion, possibly with Dataflow if deduplication/ ordering is a concern.

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

How do we temporarily allow some users to upload data to a Google Cloud Store bucket, if they do NOT have google accounts.

A

Signed URLs give the users time limited read/ read-write access for any bearer of the URL, even without a google account.

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

What is the fastest kind of a disk i can attach to a Compute VM which will not disappear when the VM is stopped.

A

Persistent SSD.
Note:
Local SSD disappears on stopping/ deleting VM
SSD is faster than the regular disks

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

What is the difference between labels and tags placed on a Compute VM ?

A

Tags are placed for firewalls / network configuration.
Labels are used for billing and cost management.

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

Which user is the startup script on a VM run as ?

A

root.
Note: startup scripts are run after creating all users for whom SSH access is configured in metadata

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

What are Persistent Connections in AppEngine

A

AppEngine supports persistent connections using WebSockets that last to an hour. Used for stock quotes, continuous location updates and like.

Note:
If the device stops/ disconnects, the connection is lost like any other connection.

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

Can a Cloud Function be written in any programming language ?

A

No, supported platforms are - Node.js, Python, Go, Java, .NET Core, and Ruby

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

What is the max time limit a Cloud Function must finish in ?

A

~9 minutes

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

Can Cloud Run store state ?

A

Not strictly - because it is not guaranteed the next call is served by the same instance, but instances can have global variables that can be used to create caches of costly to initialize objects that are lazy populated.

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

Can a Cloud Function store some state ?

A

No - A Cloud Function has no app context. It will need to store state externally, or AppEngine may be used

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

Can DataPrep connect to an online source outside GCP or SaaS service ?

A

No - data must be stored in GCP to be cleaned using DataPrep

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

We have a running Compute VM. How do we deploy a MIG duplicating this one VM ?

A

Create Snapshot -> Create Image -> Instance Template -> MIG
Instance template can be created only from an image, not directly from a snapshot. A MIG needs to be created from a template, not image

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

What GCP resources can be created without a VPC ?

A

Most managed GCP resources - Store buckets, Cloud Run, Cloud Functions can be created without VPC.
** Compute VM and GKE cluster need a VPC **

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

How do you configure a Compute VM to access Storage so that it can download it’s initial scripts from Cloud Storage ?

A

Enable Private Google Access on the subnet.

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

Name 2 services that scale to 0, and 2 that do not

A

Compute VM and GKE do NOT scale to zero since they are unmanaged services.

Most managed services such as Cloud functions, Cloud Run and AppEngine (Standard) scale to zero.

Note: AppEngine (Flexible) does NOT scale to zero.

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

A log that records all changes made in the database

A

Binary log / Transaction Log

17
Q

A service to schedule events, which will call the configured event handler - App Engine, HTTP Endpoint, PubSub

A

Cloud Scheduler