GCP Cloud Storage Flashcards

1
Q

What is google cloud storage suitable for?

A

Unstructured data, pictures, videos, objects, documents, text files, multimedia, file backup

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

In AWS and Azure what are the services Google Cloud Storage is like?

A

AWS S3 and Azure BLOB storeage.

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

Google cloud storage integrates very well with other GCP services, what are these services?

A

-BigQuery - Import/Export
-AppEngine - Object storage, logs, datastore backup
-CloudSQL - Import/Export of tables
-ComputeEngine - Startup scripts, Images and general object storage

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

Do I have to enable encryption on Google Cloud Storage?

A

No, GCP Cloud Storage is by default encryption.

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

Google Cloud Storage has a number of storage classes, what are they?

A

-Single region
-Multi-region
-Nearline
-Coldline

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

How large can an object be?

A

5TB

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

What are the organizational units of Google Cloud Storage?

A

-Buckets
-Objects

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

In Google Cloud Storage an I better to have lost of objects per bucket or lots of buckets?

A

Fewer buckets and more objects per bucket gives better performance.

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

I am writing 1000 of objects to Google Cloud Storage, I want the best performance, I intend to use sequential names for the objects, will this use of sequential naming give me the best performance?

A

No, as all the objects will be written to the same servers, we want objects to be written to all servers in Google Cloud Storage, by using random naming we get to have the objects distributed.

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

Do I need to have a uniques name for a bucket?

A

Yes

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

Do all classes have the same throughput, low latency and high durability?

A

Yes, unline AWS Glacier where the glacier is different.

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

For Multi-Regional Google Cloud Storage, what is the SLA?

A

99.95%

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

For Single-Regional Google Cloud Storage, what is the SLA?

A

99.9%

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

For Nearline Google Cloud Storage, what is the SLA?

A

99%

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

For Coldline Google Cloud Storage, what is the SLA?

A

99%

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

What uses cases is Multi-Regional Google Cloud Storage good for?

A

Data frequently accessed world wide, website content, streaming, video games

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

What uses cases is Single-Regional Google Cloud Storage good for?

A

Frequently accessed in same region (e.g data analytics in DataProc)

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

What uses cases is Nearline Google Cloud Storage good for?

A

Infrequent accessed data (regular backups)

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

What uses cases is Coldlinel Google Cloud Storage good for?

A

Cold data (archive data, desaster recovery)

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

Is there a retevial cost for Nearline Google Cloud Storage?

A

Yes

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

Is there a retevial cost for ColdlineGoogle Cloud Storage?

A

Yes

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

Is there minium duration period for Nearline Google Cloud Storage? and what is it?

A

Yes it is 30days

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

Is there minium duration period for Coldline Google Cloud Storage? and what is it?

A

Yes and it is 90days

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

Do I have to have unique names for buckets?

A

Yes

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

If we chose to use regional storage for GCP Cloud storage, where is the data stored?

A

Data is replicated to 3 or more Zones in a region.

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

If we chose to use multi-regional storage for GCP Cloud storage, where is the data stored?

A

Data is replicated to multiple regions.

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

Is my GCP Cloud Storage data encrypted by default?

A

Yes

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

What is a disadvantage of the Coldine storage class compared to the Standard storage class?
-Slower data access
-Minimum lifespan
-Charged for download
-More expensive

A

-Minimum lifespan
-Charged for download

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

Is a service account tied to a person’s account?

A

Yes is is tied to a personal account

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

With coldline, what is the retention period?

A

It is the min time you have to leave the data in nearline storage, it is 90 days for coldline storage.

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

With nearliie storage what is the retention period?

A

It is the min time you have to leave the data in nearline storage, it is 30 days for coldline storage.

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

What is coldline storage good for?

A

Backup, DR, Archive
Good for accessing once a year

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

Of the storage tiers, witch the lowest cost per month?

A

Coldline

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

Is the retrevial cost for coldline lower then nealine?

A

Yes, keep

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

Can i change a regional bucket to a multi regional bucket?

A

No

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

Can i change a multi regional bucket to a regional bucket?

A

No

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

Can i change a regional bucket to a nearline regional bucket?

A

Yes

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

Can i change a multi-regional bucket to a coldline bucket?

A

Yes

39
Q

What is the CLI for cloud storage?

A

gsutil

40
Q

I need to enforce IAM permissions at the cloud storage object level, will this work with IAM?

A

No, IAM only works to the bucket level, you have to use ACL

41
Q

I need to give an external user access to an object for a limited time, what is my best option?

A

Signed URL will give us time limited access.

42
Q

I need to give an external user access to an bucket for a limited time, what is my best option?

A

Signed URL will give us time limited access.

43
Q

What are legacy role?

A

Its a role that works with ACL’s, changing the ACL will change the IAM permission

44
Q

What is a retention policy?

A

It locks the bucket for a period, after the period the bucket is able to be changed.

45
Q

What is a standard role?

A

It is a IAM role that is no affected by ACL

46
Q

With object life cycle management what actions can i take?

A

-Delete and object
-Downgrade the storage class

47
Q

Is object life cycle management applied to the bucket o object?

A

Bucket

48
Q

With object life cycle can we change the storage class of the bucket or the objects in the bucket?

A

You are changing the objects in the bucket.

49
Q

What are the object life cycles conditions conditions?

A

-Age
-Created before
-Is live (not archive versions)
-Matches storage class
-Number of newer versions

50
Q

What are the object lifecycle actons?

A

-Delete
-SetStorageClass

51
Q

If i delete an live version of an object, is the object deleted?

A

No, it is archived.

52
Q

if i delete and archive version of the object, is the object deleted?

A

Yes

53
Q

When you have a life cycle rule with 2 actions,do 1 or 2 conditions have to be correct to invoke the action?

A

all conditions, in this case 1 and 2.

54
Q

When you have 2 life cycle rules with each having seperate conditions and actions, do all conditions need to be correct for actions to be invoked?

A

no, each condition will trigure its own action.

55
Q

How do you set versioning on for a bucket?

A

gsutil versioning set on

56
Q

How do i list all archived objects in a bucket?

A

gsutil ls -a gs://mybucket

57
Q

What is a generation number?

A

It is used when objects are versioned, each object gets a generation number.

58
Q

What is the Cloud Storage Transfer Service?

A

It is a service for copying data from AWS S3, another cloud storage bucket in any region, URL

59
Q

I have a bucket of data in east-us1 and want to have it coped to asia region once each day, what service can i use?

A

Transfer service allowes you to schedule the cpy of data.

60
Q

I have over 20 TB of data to ship to google, what is the recomended method?

A

Transfer applience

61
Q

what is the recomended size a transfer applience should be used.

A

20TB

62
Q

Why do we say Cloud Storage objects are immutable?

A

It is because you can not edit them in place, they are replaced if versioning is turned off.

63
Q

I require the lowest cost storage where data access every 14 days, what is my best option?

A

Regional storage, nearline.

64
Q

I require the lowest cost storage where data access every 50 days, what is my best option?

A

Regional coldline. Regional because you were not asked for multi-regional

65
Q

I work for an international Library, we require storage to store copies of our digital books, these books may only be accessed every 1 - 2 years. Do I need to ensure the highest level of durability? What is my best storage option?

A

Multi-region coldline.

66
Q

What is the max object size I can store?

A

5TB

67
Q

I need to transfer 100GB of files form GCP us-east1 to europe-west1, what is by best option?

A

Use GCP transfer-service to transfer storage form one region to another.

68
Q

I need to set up a daily transfer of 100GB of files form us-wert1 to wurope-west1, what is my best option?

A

GCP transfer-services has the ability to schedule transfer file, you can use this option to set a daily event to transfer files.

69
Q

I have a bokets with mixed file extension like .txt .exe .png. I want to transfer just the .txt file from us-east1 to europe-west1, what is my bets option?

A

GCP transfer-services has the ability to filter just the extensions when transferring files.

70
Q

I have files available in an HTTP source on the internet, I want to store these files in europe-west1 on cloud storage, what is my bets method?

A

GCP transfer-services has the ability to use HTTP and HTTPS as a source.

71
Q

I have files stored in a regional bucket, I want to transfer the files to a multi-regional bucket, what is my best option?

A

You can use life-cycle policies to move from regional to multi-regional. But you can use the google transfer service to move the files for you.

72
Q

I have data stored on-prem, shoul;d I use transfer-service?

A

No, on-prem is not supported by the storage-service. It is best practice to use gsutil.

73
Q

I have data stored in AWS S3, what is my bets option for moving it to GCP Clouds Storage?

A

Use transfer-servicxe, transfer-service has AWS S3 support.

74
Q

I have 20TB of files I need to move from my datacenter, what are by best options?

A

Use the GCP Transfer Applience

75
Q

With each object I need to store extra information like who in my org owns the object, how best can I do this?

A

Use the meta data storage feature in cloud storage to store a key value pair.

76
Q

I have an application thet generates data in memory, its not saved to file. I need to store this data long term (10Years). What is my bets option?

A

Use the cloud storage streaming option to stream thet data to one or more objects in GCP cloud storage.

77
Q

What is object metadata

A

-it is a key value pair atatched to the object.
-Storage class is present as metadata (storageClass)
-Access control
-Cache control
Content disposal
Content encoding
Content languate
Content type

78
Q

What is the prefered method of access for Cloud Storage, Iam or ACL?

A

IAM

79
Q

When would I use ACL?

A

When you need to define object level access

80
Q

I need to give a user access to an object in a bucket, how do I do thisd with IAM?

A

You can not, IAM is only supported down to the bucket level. You will have to use ACL to asign access.

81
Q

I have 50 obbjects and need to asign access to all onbjects in the bucket, what is my bets option?

A

It is NOT ACL as this is two granular. Use Iam and give bucket level access.

82
Q

How can I make bucket public?

A

Use ACL, make read-only and make storage-object-viewer

83
Q

What is the max number of ACL per bucket?

A

100

84
Q

What are predefined ACL’s

A

A predefined or “canned” ACL is an alias for a set of specific ACL entries that you can use to quickly apply many ACL entries at once to a bucket or object. Like,
-publicRead
-authenticatedRead
-publicReadWrite

85
Q

I need to get notified when an object changes, should I use Pub/Sub or Object Change Notifications?

A

Pub/Sub is the recomeded method.

86
Q

I require my application to receive an event when an object in Cloud Storage changes, I do not wnat to use pub/sub. What other optrions do I have?

A

Object Change Notifications, yolu can have the application request a HTTP callback when a change happens.

87
Q

Can I enable and disable object versioning?

A

yes

88
Q

I have a Cloud Storage bucket and I wnat to make it available to user and also have the user pay for any charges, what is my bets option?

A

Usew the Cloud Storage user pays.

89
Q

I am in the health sector and duse to regulations I need to store files where for a period the files can not be deletedor changed. What is my bets option?

A

Use bucket retention policy to ensure objects can only be deleetd or over written once the age is grater then the retention period.

90
Q

What is a retention period lock used for?

A

It is used to lock the retention period for ever, it can never be changed. Once a retention policy is locked, you cannot delete the bucket until every object in the bucket has met the retention period.

91
Q

Is cloud storage regional?

A

No it multi-regional, like, United states, europe, asia

92
Q

I want to use the Transfer Service to move data from Google bucket to AWS S3, is this possible?

A

No, you can not transfer from a GCP bucket to AWS.

93
Q

Can I use Transfer service to keep two GCP buckets in sync?

A

Yes, you can set up two transfer policies. The destination always has to be a GCP Bucket.