Chapter 1: General Knowledge Flashcards
What is GCP?
GCP is a public cloud service that offers some of the same technologies used by Google itself to deliver its own products.
What are 4 broad categories that the public cloud offers?
- Compute resources
- Storage
- Networking
- Specialised services
What is the basic unit of computing resources?
Virtual Machines
Describe a virtual machine, in terms of your access and other people’s access to it.
- Either pre configured or customised.
- I have full access to the VM. i.e. Can configure file systems, add persistent storage, patch the operating system etc.
- I decide who has access to it.
What is a cluster (of VMs)?
When you create multiple VMs. If one of the VMs fail, the workload can be directed to other VMs.
What are Managed Kubernetes Clusters?
What can you specify and what does it do for you?
- ppl can focus on their application more.
- Makes use of containers.
- Can specify the number of servers to run and the containers that run on them.
- Can specify autoscaling parameters to optimise the number of containers running.
- The health of containers is monitored for you.
What is a container?
A container is like a lightweight VM that isolates processes running in one container from processes running in other containers.
When are containers good options?
When you need to run applications that depend on multiple micro services running in your environment.
What does serverless computing mean?
Doesn’t require you to set up VMs or Kubernetes clusters.
What are the serverless computing options on GCP?
App Engine and Cloud Functions.
What is App Engine for?
for applications and containers that run for extended periods of time.
i.e. website backend, point-of-sale system, custom business application.
What is Cloud Functions for?
Platform for running code in response to an event. i.e. uploading a file or adding a message to a message queue.
Works well when you need to respond to an event by running a short process coded in function or calling some other longer-running applications.
What are the types of Storage?
- Object storage
- File storage
- Block storage
- Caches
What is Object storage for and some of its characteristics?
Highly reliable and durable storage of objects, such as images or data sets. More limited functionality than file system-based storage systems.
Each object is individually addressable, usually by URL.
Not limited by the size of disks or drives.
It is serverless, no need to create VMs and attach storage to them.
Cloud Storage.
What is file storage?
Hierarchical storage system for files.
Provides network shared file systems.
Cloud Filestore.
Suitable for applications that require operating system-like file access to files.
What is Block Storage for?
Uses a fixed-size data structure called block to organise data.
Commonly used in ephemeral and persistent disks attached to VMs.
Can install file system on top of the block storage, or run applications that access blocks directly.
Takes longer to retrieve data, maybe need a combination of object storage and block storage.
What are Caches and its characteristics?
In-memory data stores that maintain fast access to data.
Memory is more expensive.
Volatile, lose data when power is lost. Hard to sync is with the system of truth.
What does latency refer to?
The time it takes to retrieve data.
Where do you need Networking?
need to work with networking between cloud resources and possibly with on-premise systems.
My internal GCP network is defined as a virtual private cloud, which contains all my resources that are isolated on the cloud.
Specialised Services
Serverless, do not need to configure servers or clusters.
Provide a specific function.
Provide an API for the functionality of the service.
Charged based on the use of the service.
What are some specialised services in GCP?
AutoML, machine learning service.
Cloud Natural Language, for analysing text.
Cloud Vision for analysing images.
Cloud Inference API, a service for computing correlations over time-series data.
Cloud Computing vs Data Center Computing
rent vs own resources
good for companies that has a little spike of use, owning the data center is good for companies that can accurately predict the number of servers and stuff and use it consistently.
Pay as you go for what you use.
easy to run a large bill for servers and storage if not monitoring usage.
Elastic Resource Allocation
Ability to add and remove compute resources on short notice.