Courseiva
hardMultiple ChoiceObjective-mapped

PDE Practice Question: A data analyst runs a complex SQL query in…

Exhibit

Refer to the exhibit.

BigQuery job error log:
{
  "jobId": "job_12345",
  "errorResult": {
    "reason": "resourcesExceeded",
    "message": "Resources exceeded during query execution: The query could not be executed in the allocated memory. High memory usage caused the query to fail."
  },
  "statistics": {
    "query": {
      "statementType": "SELECT",
      "totalSlotMs": 12000000,
      "totalBytesProcessed": 5000000000000
    }
  }
}

A data analyst runs a complex SQL query in BigQuery that joins multiple large tables and receives the above error. Which action is most likely to resolve the issue?

⚠ Common exam trap

Google Cloud often tests the misconception that performance tuning (e.g., clustering or sampling) can resolve resource exhaustion errors, when in fact the root cause is insufficient compute capacity that must be addressed by increasing slot allocation.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Increase the number of slots allocated to the project.

The error indicates that the query exceeded the available slot resources in the BigQuery project. Increasing the number of slots allocated to the project (option D) directly addresses this by providing more compute capacity for parallel query execution, which is the correct action to resolve resource exhaustion in BigQuery's serverless architecture.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use a larger number of workers in the query execution.

    Why it's wrong here

    BigQuery does not expose worker count; it manages resources internally.

  • Use smaller tables by sampling data.

    Why it's wrong here

    Sampling would reduce accuracy and may not be acceptable.

  • Add clustering on join columns.

    Why it's wrong here

    Clustering can help but may not resolve memory exhaustion if the query is complex.

  • Increase the number of slots allocated to the project.

    Why this is correct

    More slots provide more memory and CPU, reducing resource exceeded errors.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

One of 890 original PDE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PDE exam.