GCP Compute Flashcards
If you run an instance (VM) on GCP cloud compute for 1 hr 5 min, are you charged for 1 hr 5min or 2hrs?
GCP compute engine is per min billing, you will be charged 1hr 5min.
To avail of discounts on GCP compute engine, do you need to make an upfront commitment?
No, provided you keep the resource running for more than 25% of billing month you will automatically receive discount.
Can you avail of discount if you leave you VM instance turned on 100% of the time during a month?
Yes, there is a sustained usage discount you get provided you instance is running all month.
Can i use capatial letter for instance name?
No only lowercase letter numbers and hyphen
Do I have to have a uniques name for an instance?
Yes, but only within the project.
I have an instance in zone us-east1 and zone A, How can I easily move it to a new zone, us-east1 zone B
Take a snapshot and use a snapshot to create a new image in zone B.
What are the types of instances you can have?
Standard, High-CPU-to-Memory and High-Memory-to-CPU
What is unique about the F1Micro
Instance qualifies for free tier
Is the trial account limited for instances?
Yes 8CPU per instance
Are standard persistant disks HDD or SSD?
HDD
Are persistent disks located in the same physical server as the computer|?
No, the disks are parts of a separate storage service and physically located in separate hardware?
Do persistent disk increase performance when you increase the size of the disk?
Yes
What is an instance service account used for?
To enable the inctance access other services such as GCP Cloud Storage API, you have to give the instance an identity, to do this you asign the instance a service account that will be used when accessng other services in GCP.
What is instance access scope used for?
It is a lagacy functtion that was there before IAM and it enaables you to set access to GCP servcie API’s likeCloud Storage for the instance.
When Google is performing maintenance on an instance and has to shut down the physical server, is there an option I can choose to have the VM stat running?
Yes, you can select to have instance live migrated before maintenance.
Can I have a VM restart if it stops?
Yes
What is a preemptable instance?
It is an instance that runs up to 24hrs and can be terminated by Google at any time.
I am deleting my instance and I want to keep the disk, by default will the disk be preserved?
No, you have to uncheck the delete the boot disk the disk will be deleted automatically when you delete the instance.
We require more performance IOPS performance form an persistent ssd disk, what can we do with out raid?
We can increase the size of the did, as performance is linked with the size of the disk.
Can we decrease the persistent disk size?
No, you can not decrease the persistent disk size.
Can you increase the persistent disk size while VM is running?
Yes
What source types can we have for a persistent disk?
- boot
- snapshot
- blank
What are the persistent disks storage classes?
- regional (link S3)
- multi-regional (like S3 but across regions)
- nearline
- ## coldline (long tern storage like AWS glacier)
I have a boot persistent disk i us-east1-c zone and a instance in us-east1-d, can I have the instance use the persistent disk?
no, disk has to be in the same zone as the instance. I expect this is because the storage service is local to the zone (datacenter).
When creating persistent storage disk, can i use my own keys for encryption?
Yes, you can have customer managed keys or customer supplied keys.
For a windows instance how can I create data consistent snapshot?
Enable VSS when creating a snapshot
For standard persistent storage what is the smallest disk size you can create?
10GB
For standard persistent storage what is the max disk size you can create?
64TB
When you snapshot a persistent disk, is the snapshot only available in the zone or only in the region or globally?
Globally, unlike AWS where the snapshot is only available in the region.
When creating a persistent storage disk, can I create a disk that spans more than a single zone?
No a persistent disk is created in a single zone.
I need to create new image, what options do I have a source?
- Image (existing)
- Disk (existing)
- Snapshot
- Cloud storage (Object)
What is an instance group?
The instance group is a scaling group, an entity that elastically scales the number of instances based on workload,
What is a snapshot?
It takes a point in time incremental backup of the instances.
Is it possible to use a snapshot from one zone to create a instance in another zone?
Yes, snapshots can be used to create a snapshot in another zone.
Can i create a snapshot of instance while it is running?
Yes, you do not need to power down the instance
When I create a snapshot of a windows instance, is the snapshot a safe data consistent snapshot?
Yes, you can enable VSS for windows and this will create a data consistent snapshot
When I create a snapshot of a linux instance, is the snapshot a safe data consistent snapshot?
No
When I create a snapshot of an instance, is the snapshot incremental or a full snapshot?
Snapshots are incremental, the initial one is a full, after initial snapshot it is the difference data that is stored.