Google Cloud Professional Data Engineer — Question 242

You are using Workflows to call an API that returns a 1KB JSON response, apply some complex business logic on this response, wait for the logic to complete, and then perform a load from a Cloud Storage file to BigQuery. The Workflows standard library does not have sufficient capabilities to perform your complex logic, and you want to use Python's standard library instead. You want to optimize your workflow for simplicity and speed of execution. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because invoking a Cloud Function allows you to use Python's standard library directly to handle the complex logic efficiently. Options A and B introduce unnecessary complexity and overhead by setting up additional infrastructure that is not needed for this task. Option D does not utilize Python's standard library and remains within the limitations of the Workflows standard library.