Fundamentals - Virtual Machines Flashcards
What does VPC stand for?
Virtual Private Cloud
Why do you need to configure a VPC networks?
The VPC networks:
- connect your GCP resources
- to each other
- and to the internet.
What do you need to configure so that you can connect your Google Cloud Platform resources to each other and to the internet.
A Virtual Private Cloud (VPC) network
Name 3 things you can configure on your VPC network (same as you would on a corporate network)?
You can segment your networks,
use firewall rules to restrict access to instances,
and create static routes to forward traffic to specific destinations
When defining a VPC network, do you need to limit it to a specific zone?
No - The virtual private cloud networks that you define have global scope.
They can have subnets in any GCP region worldwide.
And subnets can span the zones that make up a region.
Can VPC network subnets span more than one zone?
Yes - subnets can span the zones that make up a region.
Can VPC network subnets span more than one region?
No - Although VPC network can have subnets in any GCP region worldwide, subnets themselves are regional resources.
Can you increase the size of a subnet after it’s been created?
Yes - You can dynamically increase the size of a subnet in a custom network by expanding the range of IP addresses allocated to it.
What is the impact of provisioned VMs when you increase the size of subnet?
None - expanding the range of IP addresses allocated to a subnet doesn’t affect already‑configured VMs
Why would you define a subnet that spans more than one zone?
Resiliency - you could configure two VMs on different zones but which can easily communicate with each other as “neighbours” on the same subnet.
Which Cloud service do you use to create VMs?
Google Compute Engine
Name 4 benefits from provisioning your VM in the cloud over creating it on-prem?
There are no upfront investments,
You can run thousands of virtual CPUs…
…on a system that is designed to be fast …
…and to offer consistent performance.
Name 2 ways you can create a virtual machine in GCP?
Google Cloud Platform Console
Command line - using gcloud
What operating system images can you run on a GCP VM?
Google’s images of:
+ Linux
+ Windows
Or your own customised images
Which resource sizes does your choice of GCP VM determine?
How much memory…
… and how many virtual CPUs it has
Are GPUs available in all zones?
No - but they are available in many of them.
What type of workload would prompt you to consider using GPUs on your VM?
Machine learning
Certain types of data processing that can take advantage of GPUs
What types of disks can you choose for your GCP VMs?
Standard - Persistent disk
SSD - Local Solid State Drive
When storing data to SSD, what should you be mindful of?
Content doesn’t last past when the VM terminates
So don’t use it for data you need to persist.
What type of data should you store on an SSD?
Scratch pad - as content doesn’t last past when the VM terminates
What type of data SHOULDN’T you store on an SSD?
Persistent - as content doesn’t last past when the VM terminates
What is the default disk type for VMs?
Standard (persistent disk as opposed to SSD)
How can you configure your VM to come up with pre-defined configuration?
By passing in a startup script
Why would you choose to configure your VM as pre-emptible?
You can save money
What are the differences between a pre-emptible and a standard VM?
Just one difference: you’ve given Compute Engine permission to terminate it if it’s resources are needed elsewhere.