0
0
GCPcloud~10 mins

Cloud Scheduler for cron jobs in GCP - Interactive Code Practice

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

Complete the code to specify the frequency of the Cloud Scheduler job using a cron expression.

GCP
schedule: '[1]'
Drag options to blanks, or click blank then click option'
Aevery 5 minutes
B5 * * * *
C'*/5 * * * *'
D0 5 * * *
Attempts:
3 left
💡 Hint
Common Mistakes
Using natural language like 'every 5 minutes' instead of a cron expression.
Omitting quotes around the cron expression string.
2fill in blank
medium

Complete the code to specify the timezone for the Cloud Scheduler job.

GCP
timeZone: '[1]'
Drag options to blanks, or click blank then click option'
AUTC
BGMT+5
CPST
DAmerica/New_York
Attempts:
3 left
💡 Hint
Common Mistakes
Using timezone abbreviations like 'PST' which can be ambiguous.
Using GMT offsets instead of IANA timezone names.
3fill in blank
hard

Fix the error in the Cloud Scheduler job definition by completing the missing field for the HTTP target URL.

GCP
httpTarget:
  uri: '[1]'
  httpMethod: 'POST'
Drag options to blanks, or click blank then click option'
Ahttps://example.com/api/job
Bexample.com/api/job
Chttp://example.com/api/job
Dftp://example.com/api/job
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the scheme (http/https) in the URL.
Using 'http://' instead of 'https://'.
Using unsupported protocols like 'ftp://'.
4fill in blank
hard

Fill both blanks to define a Cloud Scheduler job with a Pub/Sub target and set the message body.

GCP
pubsubTarget:
  topicName: '[1]'
  data: '[2]'
Drag options to blanks, or click blank then click option'
Aprojects/my-project/topics/my-topic
Bmy-topic
CSGVsbG8gd29ybGQ=
DHello world
Attempts:
3 left
💡 Hint
Common Mistakes
Using only the topic short name instead of full path.
Providing plain text instead of base64 encoded data.
5fill in blank
hard

Fill all three blanks to configure a Cloud Scheduler job with an App Engine HTTP target, setting the service, version, and relative URI.

GCP
appEngineHttpTarget:
  service: '[1]'
  version: '[2]'
  relativeUri: '[3]'
Drag options to blanks, or click blank then click option'
Adefault
Bv1
C/tasks/cleanup
Dv2
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect service names.
Using version names that do not exist.
Omitting the leading slash in relativeUri.