GCP Compute Flashcards

1
Q

If you run an instance (VM) on GCP cloud compute for 1 hr 5 min, are you charged for 1 hr 5min or 2hrs?

A

GCP compute engine is per min billing, you will be charged 1hr 5min.

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

To avail of discounts on GCP compute engine, do you need to make an upfront commitment?

A

No, provided you keep the resource running for more than 25% of billing month you will automatically receive discount.

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

Can you avail of discount if you leave you VM instance turned on 100% of the time during a month?

A

Yes, there is a sustained usage discount you get provided you instance is running all month.

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

Can i use capatial letter for instance name?

A

No only lowercase letter numbers and hyphen

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

Do I have to have a uniques name for an instance?

A

Yes, but only within the project.

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

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

A

Take a snapshot and use a snapshot to create a new image in zone B.

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

What are the types of instances you can have?

A

Standard, High-CPU-to-Memory and High-Memory-to-CPU

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

What is unique about the F1Micro

A

Instance qualifies for free tier

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

Is the trial account limited for instances?

A

Yes 8CPU per instance

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

Are standard persistant disks HDD or SSD?

A

HDD

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

Are persistent disks located in the same physical server as the computer|?

A

No, the disks are parts of a separate storage service and physically located in separate hardware?

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

Do persistent disk increase performance when you increase the size of the disk?

A

Yes

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

What is an instance service account used for?

A

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.

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

What is instance access scope used for?

A

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.

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

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?

A

Yes, you can select to have instance live migrated before maintenance.

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

Can I have a VM restart if it stops?

A

Yes

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

What is a preemptable instance?

A

It is an instance that runs up to 24hrs and can be terminated by Google at any time.

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

I am deleting my instance and I want to keep the disk, by default will the disk be preserved?

A

No, you have to uncheck the delete the boot disk the disk will be deleted automatically when you delete the instance.

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

We require more performance IOPS performance form an persistent ssd disk, what can we do with out raid?

A

We can increase the size of the did, as performance is linked with the size of the disk.

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

Can we decrease the persistent disk size?

A

No, you can not decrease the persistent disk size.

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

Can you increase the persistent disk size while VM is running?

A

Yes

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

What source types can we have for a persistent disk?

A
  • boot
  • snapshot
  • blank
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What are the persistent disks storage classes?

A
  • regional (link S3)
  • multi-regional (like S3 but across regions)
  • nearline
  • ## coldline (long tern storage like AWS glacier)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

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?

A

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).

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

When creating persistent storage disk, can i use my own keys for encryption?

A

Yes, you can have customer managed keys or customer supplied keys.

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

For a windows instance how can I create data consistent snapshot?

A

Enable VSS when creating a snapshot

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

For standard persistent storage what is the smallest disk size you can create?

A

10GB

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

For standard persistent storage what is the max disk size you can create?

A

64TB

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

When you snapshot a persistent disk, is the snapshot only available in the zone or only in the region or globally?

A

Globally, unlike AWS where the snapshot is only available in the region.

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

When creating a persistent storage disk, can I create a disk that spans more than a single zone?

A

No a persistent disk is created in a single zone.

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

I need to create new image, what options do I have a source?

A
  • Image (existing)
  • Disk (existing)
  • Snapshot
  • Cloud storage (Object)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

What is an instance group?

A

The instance group is a scaling group, an entity that elastically scales the number of instances based on workload,

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

What is a snapshot?

A

It takes a point in time incremental backup of the instances.

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

Is it possible to use a snapshot from one zone to create a instance in another zone?

A

Yes, snapshots can be used to create a snapshot in another zone.

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

Can i create a snapshot of instance while it is running?

A

Yes, you do not need to power down the instance

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

When I create a snapshot of a windows instance, is the snapshot a safe data consistent snapshot?

A

Yes, you can enable VSS for windows and this will create a data consistent snapshot

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

When I create a snapshot of a linux instance, is the snapshot a safe data consistent snapshot?

A

No

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

When I create a snapshot of an instance, is the snapshot incremental or a full snapshot?

A

Snapshots are incremental, the initial one is a full, after initial snapshot it is the difference data that is stored.

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

When I create a snapshot of an instance in a project, can I use the snapshot in a separate project?

A

No snapshots are only available in the project they are created in

40
Q

What is the primary purpose of creating a snapshots?

A

To create a backup of the running instance

41
Q

What is the primary purpose of creating an image?

A

To create a instance.

42
Q

When you create a custom image, is this image available across projects?

A

Yes

43
Q

When you create a custom image, is this image available across projects in another account?

A

Yes you can share across accounts

44
Q

Is it possible to use a snapshot from one zone to create a instance in another zone in another region?

A

Yes

45
Q

How can I move a VM from one zone to another zone?

A

Turn VM off and take a snapshot, create instance another region.

46
Q

When creating an image, other then a snapshot, where else could I pull the data from?

A

Cloud storage

47
Q

When creating a image can I create it form a disk?

A

Yes this is an option.

48
Q

What is a preemptible instance?

A

It is an instance that can run for upto 24 hrs and can at any point be interrupted (killed) by GCP

49
Q

Is a preemptible instance lower cost then a normal instance?

A

Yes by upto 80%

50
Q

What type of workload is a preemptible instance good for?

A

Workloads that are tolerant of been shutdown at any point, like number crunching, image processing, etc.

51
Q

What is an instance group?

A

It is for managing a group of VM’s, they can be managed as a group. Much like AWS scale group.

52
Q

In a instance group, what is the difference between managed and unmanaged?

A

Managed is where instances are created and deleted depending on value such as screwdriver matric,CPI load, etc.

53
Q

When I have an instance in an instance group and it dies for some reason, do I need to manually recreate it?

A

No, it will automatically be recreated

54
Q

With a instance group what is used as an input when creating a instance?

A

an image template holds what the instance should look like.

55
Q

What is an instance template?

A

It is a template used by instance group when creating a instance.

56
Q

When using instance groups, can i have instances deployed to more then one zone?

A

Yes you can select what zones to use

57
Q

I need to store a startup script what is my option to have this startup script stored and available for use by the instance?

A

Use the GCP Compute Metadata Server?

58
Q

When a shutdown is started, will it run until it is finished processing or is there a time period limited before the instance is shut down anyway?

A

You have 90sec for a normal VM to start and finish a shutdown script or 30sec for a preemptive instance.

59
Q

I need an exact VM size, none of the default sizes suit, what options do i have?

A

In GCP Cloud Compute Instances you can customize the instance CPU and memory size.

60
Q

Is the persistant disk attached localy?

A

No, it is a seperate service, probaly ISCSI

61
Q

What storage options do we have for block storage for VM’s?

A
  • Persistant, both HDD and SDD

- Local attached disk SSD nly

62
Q

Is local attached disk HDD or SSD?

A

SSD

63
Q

Is the bootdisk a local or persistand disk?

A

Persistand only

64
Q

Why use a local SSD disk?

A

High preformance, local disk has no network latency

65
Q

When using local SSD disk, is it resielent?

A

No

66
Q

Can the local disk be a boot disk?

A

No only an attached disk

67
Q

Are persistant disks highly available and redundant?

A

Yes

68
Q

With a persistant disk how can I imporve prefromance?

A

Increace size

69
Q

What types of persistand dis is available?

A

Zonal and Regional

70
Q

What is the max size for persistant disk?

A

64TB

71
Q

What is the max size of local disk?

A

There is just one size of 375GB, it cant be larger or smaller. But you can attach upto 8 at same time.

72
Q

Can I create a local disk after I create the instance?

A

No

73
Q

When i delete my instance will the persistant disk get deleted?

A

By default yes, but there is an option to have the disk persist.

74
Q

When creating a disk can I create the disk form an exsting disk?

A

Yes provided it is in the same

75
Q

For local disk what optons do we have?

A

SCSI and NVME

76
Q

Can you attach a persistant disk to an already running machine?

A

Yes

77
Q

What is the purpose of an image?

A

To create an instance

78
Q

What is the purpose of a snapshot?

A

backup of your instance

79
Q

Can you create an image from a disk?

A

yes, it is recomended to shutdown the instance

80
Q

Can i access an image aceoss projects?

A

yes

81
Q

Can i access a snapshot across projects?

A

No

82
Q

what sources can i capture an image from?

A

existing disk
snapshot
another image
compresed image in cloud storage (Tar.gz an image and store on cloud storage)

83
Q

For Images what are the states I can marks the image so it is depricated?

A

Depricated: Works but gives warning
Obailate: New users can not use it
Delete: All users can not use it
Active: Marked image active again after it was marked depricated

84
Q

Can you create a Image from a snapshot?

A

Yes

85
Q

If i set my image to deprecated, what happens?

A

I get a warning if I go to sue it

86
Q

What is an instance template used for?

A

It is used by instance groupe when creating instances. It is set of what the instance should look like.

87
Q

Are instance templates regional or global?

A

They are global provided you do not use a disk tied to a region.

88
Q

When I have instance in an instance group, will the instances be subject to firewall rules?

A

Yes just like normal instance.

89
Q

I have an instance group and i need to role out a new software change, how best can I so this?

A

Instance group has a rolling update feature, this can be used to role out the update,

90
Q

I have an instance group and i need to preform a canary update, how best can I so this?

A

instance groups support partial role out of new software/template

91
Q

What happens when the host you instance is running on requires maintenance?

A

GCP will live to migrate your VM to a new host before maintenance

92
Q

What happens when the network or power grid for you host your instance is running on requires maintenance?

A

GCP will live to migrate your VM to a new host before maintenance

93
Q

When GCP want to do maintenance on you instance host, what will happen first?

A

You will be notified

94
Q

Will you see GCP maintenance in your logs?

A

Yes

95
Q

When GCP want to do maintenance on a preemptable instance, what will happen?

A

The preemptable instance will be terminated

96
Q

Is there a way to ensure the secure integrity of an instance (VM)?

A

Shielded instances ensure integrity with,

  • Secure boot: Ensure the integrity of all boot components. Firmware is signed and verified by Google. Signed manufacturers firmware is signed and checked.
  • https://www.brainscape.com/study?context_pack_id=11884056&deck_id=7301059