Udemy Notes Flashcards

(55 cards)

1
Q

Organize Memory, SSD, and Persistent Disks from fast to slow

A

Memory is the fastest
Then SSD
Then Persistent

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

Whats the command if you want to see the configurations for a kubernetes cluster?

A

D. Use “kubectl config use-context” and “kubectl config view” to review the output.

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

If you have projects from a different Cloud Organization and want to move it to your own billing account, how would that work? The simplest way

A

You would just link the projects to your own billing account

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

From these, BigTable, FireStore, Cloud Storage.

Which one is used for unstructured data like images/videos?

A

Cloud Storage

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

From these, BigTable, FireStore, Cloud Storage.

Which one is used for structured data like analytical queries or operational tasks?

A

BigTable

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

From these, BigTable, FireStore, Cloud Storage.

Which one is used for NoSQL, event driven, real time data?

A

Firestore

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

If you want a low-cost storage that you aren’t going to access frequently, and that you need to stay compliant, what should you pick?

A

Coldline Storage

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

If you want to update the configs of a infrastructure using deployment manager, what should the command be?

A

B. gcloud deployment-manager deployments update –config <deployment-config-path></deployment-config-path>

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

If you want to find the RDP credentials for a VM and give it to others, how would you do it?

A

B. After the VM has been created, use “gcloud compute reset-windows-password” to retrieve the login credentials for the VM.

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

Can you log into a VM with JSON private key?

A

No, JSON private key are used to provide API access permissions and does not translate to credentials

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

Difference between deployment manager and managed instance groups when it comes to lots of VMs?

A

Deployment manager is where you manage resources, configs of a VM while MiGs is for autoscaling and load balancing

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

App Engine Native feature of splitting?

A

You can use App Engine to split traffic between versions of your apps

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

Whats one big reason you’d put data in BigQuery over BigTable?

A

When you want to analyze data

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

When scaling a Compute Engine VM setup using a custom image, what is the correct process to quickly create multiple identical instances?

A

✅ Create a custom image from a snapshot, then create instances from that image.

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

What must you do to get logs from a VM running?

A

You need to install cloud logging agent so that the Cloud Logging app has someone sending more logs to it

Only simple log data is sent to cloud logging by default

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

WHat storage provides high IOPs?

A

Local SSDs

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

You need to deploy a new Compute Engine VM for a website, but the project doesn’t exist yet. What are the correct steps to follow?

A
  1. Create a new project using the Cloud SDK (gcloud projects create).
  2. Enable the Compute Engine API in that project (gcloud services enable compute.googleapis.com).
  3. Create the VM instance specifying the new project (gcloud compute instances create –project <PROJECT_ID>).</PROJECT_ID>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How can you estimate how much an on-demand BigQuery query will cost before running it?

A

Run a dry run query in the command line to estimate the number of bytes read,
then use the BigQuery Pricing Calculator to convert those bytes into a dollar cost

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

How do you group Google Cloud resources so they share common IAM policies and can be managed together?

A

Use Folders in the Google Cloud resource hierarchy.
Rule: Set IAM at the folder → policies inherit to all projects/resources under it.

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

You must SSH into many Compute Engine VMs securely without giving them public IPs. What should you use?

A

Cloud IAP for SSH/TCP (IAP TCP forwarding).
Rule: Identity-aware SSH over an IAP tunnel; no public IPs needed.

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

How can you avoid typing the zone (e.g., europe-west1-d) every time you run a gcloud command for your Compute Engine instances?

A

This sets the default zone for all future gcloud commands in your current configuration.

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

VMs in QuickServe-frontend must read BigQuery data in QuickServe-database. What’s the Google-recommended IAM setup?

A

Grant the frontend VM’s service account roles/bigquery.dataViewer on the QuickServe-database (project or specific datasets), and only the minimal roles it needs in QuickServe-frontend.

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

Your app (TCP on port 389) must be internet-facing and must preserve the original client IP. Which GCP load balancer?

A

External passthrough TCP Network Load Balancer (a.k.a. External TCP NLB).

24
Q

What’s the simplest way to get real-time visibility and alerts for firewall changes and new VM creations in Google Cloud?

A

Create log-based metrics in Cloud Logging (filtering Cloud Audit Logs for firewall + instance actions), then add Cloud Monitoring alerts on those metrics.

25
How can you prevent your proxy username and password from being logged when using the gcloud CLI?
Set them as environment variables:
26
Your Data Studio dashboard’s sales charts stopped showing correctly, and data comes from BigQuery where nightly jobs recalculate tables. What should you do first?
Check the nightly job in the BigQuery interface and review its job history for errors.
27
You’re moving an app from local (ADC) to a Compute Engine VM. What’s the Google-recommended way to authenticate with minimal changes?
Attach a service account to the VM and grant it only the required IAM roles. Let ADC pick it up automatically (no keys).
28
Does IAM affect individuals or groups of accounts?
Groups
29
For building a mobile app that processes time-series data, which GCP services should you use for: 1️⃣ Data processing, 2️⃣ Storage, and 3️⃣ Analytics?
1️⃣ Cloud Dataflow → Data processing (ETL pipeline) 2️⃣ Cloud Bigtable → Time-series storage 3️⃣ BigQuery → Analytics
30
Your VMs need to write sensor data into a specific Cloud Storage bucket. What’s the Google-recommended way to grant access?
Create a service account and grant it the roles/storage.objectCreator IAM role on that specific bucket.
31
Your VMs need to write sensor data into a specific Cloud Storage bucket. What’s the Google-recommended way to grant access?
Create a service account and grant it the roles/storage.objectCreator IAM role on that specific bucket.
32
You need a monitoring pod to run on every GKE node (and follow autoscaling). What Kubernetes object should you use?
Rule: Use a DaemonSet for “one pod per node” workloads (monitoring, logging, CNI, etc.). Why it’s correct (quick): DaemonSet automatically schedules one pod per node, adds pods on scale-up, removes them on scale-down → perfect for cluster autoscaler + node-level agents.
33
How do you automate a daily list of Compute Engine instances across prod and dev projects?
Create two gcloud configurations (prod/dev). In a script, activate each config and run: gcloud compute instances list Rule: Use gcloud config to switch projects/accounts cleanly in automation.
34
Dev on App Engine is ready. You need a new production project. What’s the correct approach?
Use gcloud to create a new project, then deploy the app to that project.
35
Clients must reach your Compute Engine VM over UDP 636. What should you do?
Add a network tag to the VM, and Create an ingress firewall rule allowing UDP:636 for that tag. Rule: Tags don’t open ports by themselves—firewall (ingress) rules do.
36
You need a Compute Engine VM that never routes public Internet traffic. What should you do?
Create the instance without a public IP address.
37
How should you share proposed infra changes for your GCP stack following best practices?
Use Deployment Manager templates and store them in Cloud Source Repositories (version control, reviews, history). Rule: IaC lives in Git, not in object storage.
38
Colleagues must manage buckets and objects for your photo app. Which IAM role?
A: ✅ Storage Admin (roles/storage.admin) Rule: Need bucket-level + object-level management → Storage Admin. Object-only roles (Object Admin/Creator) are too narrow; Project Editor is too broad.
39
BrightWeb needs to archive older versions of data after 30 days. The older versions are accessed monthly for reports and sometimes updated. What should they do?
Add a bucket lifecycle rule that moves older object versions after 30 days to Nearline Storage, which is ideal for monthly access with low retrieval costs.
40
StudyPal’s Compute Engine instance runs 9 AM–6 PM and needs daily backups retained 30 days with minimal management. What should you do?
Use the Compute Engine → Disks → Snapshot Schedule feature to schedule daily snapshots at 1 AM and set auto-delete after 30 days.
41
VMs have only internal IPs and must access a file in Cloud Storage without Internet access. What should you configure?
Enable Private Google Access on the subnet. This lets internal-only VMs reach Google APIs (like Cloud Storage) privately.
42
You must direct home.techfolio.com, techfolio.com, and www.techfolio.com to your load balancer’s IP. How should you configure DNS?
Create one A record for techfolio.com → load-balancer IP and two CNAME records for www and home → techfolio.com.
43
You need the fastest, simplest way to deploy a project-management platform on GCP. What should you do?
Search for the PMP in Google Cloud Marketplace and deploy it directly from there (no CLI or code needed).
44
InnovaGro wants to deploy via a Kubernetes manifest but minimize infrastructure management. What should they use?
Use GKE Autopilot, which keeps full Kubernetes API control while Google manages the nodes, scaling, and patching.
45
QuickVote receives unpredictable spikes of real-time votes. How should you store and process them efficiently?
Publish votes to Pub/Sub, then trigger Cloud Functions to process each message in real time for automatic scaling and low latency.
46
Only application servers in subnet-b should reach database servers in subnet-a. How do you configure this?
Create service accounts sa-app and sa-db, attach them to their respective servers, and make an ingress firewall rule allowing traffic from sa-app → sa-db.
47
Skyline Apps acquired a startup and must give its SREs identical custom roles in both organizations. How can you do this?
Run gcloud iam roles copy \ --source-organization \ --destination-organization to replicate the roles across orgs.
48
Foodify’s app uses Compute Engine instances for dynamic content and Cloud Storage for images/docs. How should traffic be distributed?
Use an external HTTP(S) load balancer with a managed SSL certificate, and configure a URL map to route static requests → Cloud Storage.
49
How should Pixellite Studios migrate: 300 TB video files (on-prem SAN) Amazon Redshift warehouse 20 GB PNG files in S3 — without custom code?
A: Use Transfer Appliance for videos Use BigQuery Data Transfer Service for Redshift data Use Storage Transfer Service for S3 PNGs
50
Is BigTable/BigQuery good for unstructured data like images/videos?
No
51
What is Firestore optimized for?
Designed for applications requiring real-time syncing or structured/semi structured storage
52
What is Filestore optimized for?
For applications requiring shared file systems such as web content management or persistent storage for applications
53
What storage is optimized to handle unstructured data like images/videos?
Cloud Storage
54
What makes someone want to upload their app to Cloud run over another service like Cloud App Engine?
You use cloud run when you need a serverless platform that is used for low/unpredictable traffic as it only charges as you go App Engine is designed for applications that require a higher level of customization and control over the runtime environment
55