Google Cloud Associate Data Practitioner — Question 36
Your organization uses Dataflow pipelines to process real-time financial transactions. You discover that one of your Dataflow jobs has failed. You need to troubleshoot the issue as quickly as possible. What should you do?
Answer options
- A. Set up a Cloud Monitoring dashboard to track key Dataflow metrics, such as data throughput, error rates, and resource utilization.
- B. Create a custom script to periodically poll the Dataflow API for job status updates, and send email alerts if any errors are identified.
- C. Navigate to the Dataflow Jobs page in the Google Cloud console. Use the job logs and worker logs to identify the error.
- D. Use the gcloud CLI tool to retrieve job metrics and logs, and analyze them for errors and performance bottlenecks.
Correct answer: C
Explanation
The correct answer is C because checking the job and worker logs in the Dataflow Jobs page directly provides specific details about the failure. Option A offers monitoring but lacks immediate troubleshooting capabilities, B involves unnecessary polling rather than direct analysis, and D, while useful, is less efficient than accessing logs through the console for this scenario.