Final Flashcards

(64 cards)

1
Q

What services does Google offer for serverless services?

A

Cloud run, cloud functions, app engine

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

If the serverless service is fully managed, what would you pick?

A

Cloud run

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

If the serverless service is event driven, what would you pick?

A

Cloud Function

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

If the serverless service automatically handles scaling and load balancing but you need to config it what would you pick?

A

App Engine

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

What service handles with RESTful APIs?

A

Cloud run and function

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

What service deals with web and mobile backends?

A

App Engine

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

What service deals with real time file procesing?

A

Cloud functions and cloud storage

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

What service deals with data pipeliens?

A

Pub/Sub for traversing data

Dataflow for configuring data

BigQuery for analytical data

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

Whats the command to create a VM?

A

gcloud compute isntances create NAME –zone=us

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

Whats the command to connect to a VM?

A

gcloud computer ssh NAME –zone=ZONE

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

If you need incremental backup of a disk, what should you use?

A

Snapshots

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

If you need reusable OS templates, what should you use?

A

Images

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

If you need a disk to survive when an instance is deleted or detached, what should you use?

A

Persistent Disks

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

How do you create a cluster? Whats the command?

A

gcloud container clusters create my-cluster –num-nodes=3 –zone=us-central1-a

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

How do you deploy a kubectl app? and expose it to the internet? Command

A

kubectl create deployment nginx –image=nginx

kubectl expose deployment nginx –port=80 –type=LoadBalancer

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

How do you do Node Pool scaling command?

A

gcloud container clusters resize my-cluster –num-nodes=5

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

If you need kubectl to work by needing credentials, what should you do? command

A

gcloud container clusters get-credentials

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

What is a standard environment?

A

Standard: Sandboxed, cheaper, autoscaling

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

What is flexible environment?

A

Flexible: custom runtime, slower startup

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

How do you deploy an App Engine? command

A

gcloud app deploy app.yaml
gcloud app browse

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

How many regions can you put per project?

A

Just one

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

Whats the command to create an instance template?

A

gcloud compute instance-templates create

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

Whats the command to create a MIG?

A

gcloud compute instance-groups managed create web-mig –template=my-template –size=2

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

Whats the command to enable autoscaling?

A

gcloud compute instance-groups managed set-autoscaling web-mig –max-num-replicas=5 –target-cpu-utilization=0.8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Why would you use a regional internal Load balancer?
For private traffic
26
Tell me the type and keypoints of CloudSQL
Type: Relational Key Points: MySQL, PostgreSQL, SQL Server, use private IP for internal apps
27
Tell me the type and keypoints of BigQuery
Type: Data warehouse Keypoints: Serverless, SQL-based analytics
28
Tell me the type and keypoints of Firestore
Type: NoSQL KeyPoints: Real-time, JSON documents
29
Which database fits transactional usage?
Cloud SQL
30
Which database fits analytics?
BigQuery
31
Which database fits mobile/web app data sync?
Firestore
32
What command to create a bucket?
gcloud storage buckets create gs://my-bucket --location=us-central1
33
What is Cloud Terraform for?
More widely used, multi-cloud Focus only on basic blocks: provider, resource, variables
34
What is gcloud good for?
Quick fast single command deployments
35
If you are asked to pick a service for repeatable and consistent deployment, what would you do?
Pick deployment manager or terraform
36
Whats the command for pub/sub?
gcloud pubsub topics create my-topic, subscriptions create
37
Whats the command for cloud functions?
gcloud functions deploy helloPubSub --runtime nodejs18 --trigger-topic my-topic
38
Whats the command for IAM bindings?
gcloud projects add-iam-policy-binding PROJECT_ID --member=user:me@gmail.com --role=roles/viewer
39
What are the four Cs of a VM lifecycle?
Create, connect, configure, cleanup
40
How would you handle scaling?
Template, MIG, Autoscale, LB
41
How should configure your DNS so that applications on prem don't get forgotten for in the cloud?
Create a private zone on Cloud DNS. Configure the applications using the DNS name
42
If you want to see who had access to what, what logs would you look at?
Data Access Aduit Logs
43
What is Hyperdisk extreme?
Cloud's fastest, high performance disk type for VMs
44
Errors are occuring on your VMs, what should you do?
Install and configure an Ops agent to view the logs from Cloud Logging
45
What is Cloud filestore?
Managed netowrk file system Use when apps need a shared file system
46
What is Cloud TPU?
Tensor Processing Unit
47
What command line do you need to create a GKE cluster?
gcloud container clusters create my-cluster --zone us-central1-a
48
What do flow logs do?
Allow you to log network traffic inside your network
49
Auto-healing, what does it apply to?
Applies to managed instance groups
50
Q: How do you send 2% of traffic to a new App Engine version?
A: Deploy the new version and use traffic splitting (--splits) to weight 98/2.
51
Q: In Cloud Run for Anthos, how do you split traffic for App Engine?
A: Create a new revision of the same service and split traffic between revisions.
52
Q: What’s the quickest way to rebuild one bad VM in a MIG?
A: Recreate just that instance.
53
Q: How do MIGs detect and replace broken HTTPS instances?
A: Attach an HTTPS (port 443) health check to the MIG (or load balancer).
54
Q: You need internal-only access to a GKE service across two VPCs. What’s the pattern?
A: Internal LoadBalancer Service + VPC Peering between VPCs.
55
Q: When migrating a nightly 50-minute, 1–20 GB in-memory job, minimal effort/cost?
A: Lift-and-shift to Compute Engine VM and schedule start/stop.
56
Q: What disk for extreme IOPS on a single VM?
A: Hyperdisk Extreme.
57
Q: Best machine type for huge in-memory datasets?
A: Memory-optimized (M1, M2, etc.) machine types.
58
Q: Which audit log shows who read data (e.g., GCS object reads)?
A: Data Access audit logs.
59
Q: Which role lets an auditor see Admin Activity + Data Access logs?
A: roles/logging.privateLogViewer.
60
Q: Two VMs in different regions need to talk privately—best practice?
A: Same VPC, create a subnet in the second region, use private IP.
61
Q: Need internal-only access to a GKE service from another VPC. Steps?
A: Service type: LoadBalancer (internal) + VPC Peering.
62
Q: Easiest way to flip between many projects in CLI?
A: Create a gcloud configuration per project and activate as needed.
63
Q: MIG creation failing due to disks—what to check?
A: Instance template syntax and remove disks with colliding names (same as instance names).
64
Q: Should you set autoDelete on disks to fix creation failures?
A: Not required for creation errors; it’s for cleanup, not creation success.