You create a Cloud Scheduler job with the cron expression 0 9 * * 1-5. What is the behavior of this job?
Recall how cron expressions define minutes, hours, and days of the week.
The cron expression 0 9 * * 1-5 means the job triggers at minute 0 of hour 9 on every day of the month, but only on weekdays (Monday=1 through Friday=5).
You want a Cloud Scheduler job to publish a message to a Pub/Sub topic every hour. Which configuration is required in the job's target settings?
Cloud Scheduler supports direct Pub/Sub targets.
To publish messages to Pub/Sub, Cloud Scheduler must have the target type set to Pub/Sub with the topic name and message payload configured.
You have a Cloud Scheduler job that triggers a Cloud Function. What is the best practice to ensure the job has the least privilege needed?
Think about the principle of least privilege and role scopes.
Granting only the 'Cloud Functions Invoker' role on the specific function limits permissions to what is necessary, avoiding over-permissioning.
You have a Cloud Scheduler job that triggers an HTTP endpoint. Sometimes the endpoint is temporarily unavailable. Which retry configuration ensures the job retries with exponential backoff up to 5 attempts?
Exponential backoff helps reduce load during outages.
Configuring max attempts to 5 with exponential backoff retries helps handle temporary failures gracefully without overwhelming the endpoint.
You want to ensure a Cloud Scheduler job triggers reliably even if one region fails. What is the best architecture to achieve multi-region high availability?
Cloud Scheduler jobs are regional; think about redundancy strategies.
Cloud Scheduler does not replicate jobs globally. Deploying identical jobs in multiple regions with deduplication downstream ensures availability if one region fails.