nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #147

You have an HTTP Cloud Function that is called via POST. Each submission's request body has a flat, unnested JSON structure containing numeric and text data. After the Cloud Function completes, the…

The correct answer is B. Transform the POST request's JSON data, and stream it into BigQuery. BigQuery is Google Cloud's fully managed, serverless data warehouse purpose-built for complex analytical queries at massive scale. Streaming the Cloud Function's JSON payload into BigQuery via the Streaming API makes data immediately queryable (no batch delay), and BigQuery's…

Designing and Implementing Data Storage and Analytics Solutions

Question

You have an HTTP Cloud Function that is called via POST. Each submission's request body has a flat, unnested JSON structure containing numeric and text data. After the Cloud Function completes, the collected data should be immediately available for ongoing and complex analytics by many users in parallel. How should you persist the submissions?

Options

  • ADirectly persist each POST request's JSON data into Datastore.
  • BTransform the POST request's JSON data, and stream it into BigQuery.
  • CTransform the POST request's JSON data, and store it in a regional Cloud SQL cluster.
  • DPersist each POST request's JSON data as an individual file within Cloud Storage, with the file

How the community answered

(58 responses)
  • A
    9% (5)
  • B
    83% (48)
  • C
    5% (3)
  • D
    3% (2)

Explanation

BigQuery is Google Cloud's fully managed, serverless data warehouse purpose-built for complex analytical queries at massive scale. Streaming the Cloud Function's JSON payload into BigQuery via the Streaming API makes data immediately queryable (no batch delay), and BigQuery's distributed architecture supports many concurrent users running complex queries simultaneously - exactly matching the requirement. Option A (Datastore) is a document database optimized for transactional lookups, not large-scale analytics. Option C (Cloud SQL) is a relational database that struggles with high-concurrency complex analytics at scale. Option D (Cloud Storage as individual files) requires additional ETL before analytics are possible and does not support direct SQL-based analysis.

Topics

#BigQuery#Data Warehousing#Analytics#Data Ingestion

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice