0
0
GCPcloud~10 mins

Why data services matter in GCP - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a Cloud Storage bucket named 'my-data-bucket'.

GCP
gsutil mb gs://[1]/
Drag options to blanks, or click blank then click option'
Abucket-data
Bdata-bucket-123
Cstorage-bucket
Dmy-data-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid bucket names
Omitting the gs:// prefix
Using spaces in bucket names
2fill in blank
medium

Complete the code to create a BigQuery dataset named 'analytics_data'.

GCP
bq mk [1]
Drag options to blanks, or click blank then click option'
Aanalytics_data
BanalyticsDataset
Cdata_analytics
Dmydataset
Attempts:
3 left
💡 Hint
Common Mistakes
Using camelCase instead of underscores
Using spaces in dataset names
Using invalid characters
3fill in blank
hard

Fix the error in the command to load data from a CSV file into BigQuery table 'sales_data'.

GCP
bq load --source_format=CSV [1].sales_data gs://my-bucket/sales.csv
Drag options to blanks, or click blank then click option'
Asales_dataset
Bmydataset
Csales_data
Ddataset_sales
Attempts:
3 left
💡 Hint
Common Mistakes
Using table name instead of dataset name
Omitting the dataset name
Using incorrect dataset names
4fill in blank
hard

Fill both blanks to create a Pub/Sub topic named 'data-updates' and publish a message 'Hello' to it.

GCP
gcloud pubsub topics create [1]
gcloud pubsub topics publish [2] --message="Hello"
Drag options to blanks, or click blank then click option'
Adata-updates
Bupdates-data
Cdata_update
Dupdate-data
Attempts:
3 left
💡 Hint
Common Mistakes
Using different topic names in create and publish commands
Typos in topic names
Using underscores instead of hyphens
5fill in blank
hard

Fill all three blanks to define a Cloud Function named 'processData' triggered by a Pub/Sub topic 'data-topic' with runtime 'python39'.

GCP
gcloud functions deploy [1] --runtime=[2] --trigger-topic=[3] --entry-point=main
Drag options to blanks, or click blank then click option'
AprocessData
Bpython39
Cdata-topic
DdataProcess
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong runtime versions
Mismatching topic names
Incorrect function names