Courseiva

Google Cloud Associate Data Practitioner (GCP-ADP) (GCP-ADP) — Questions 151205

205 questions total · 3pages · All types, answers revealed

Page 2

Page 3 of 3

151
MCQhard

In Dataflow, what is the impact of using a high number of workers for a small dataset?

A.Faster processing
B.Decreased latency
C.Data corruption
D.Increased cost and overhead
AnswerD

You pay for idle workers and incur management overhead.

Why this answer

Over-provisioning leads to excessive cost and overhead without performance gain.

152
MCQhard

You need to run a Workflows execution based on a schedule. Which Google Cloud service is designed to manage this triggering?

A.Eventarc
B.Cloud Tasks
C.Cloud Scheduler
D.Pub/Sub
AnswerC

Cloud Scheduler is the standard service for recurring triggers.

Why this answer

Cloud Scheduler is the fully managed service for scheduling jobs, including triggers for Workflows.

153
MCQeasy

When creating a Looker visualization, which chart type is best for showing the relationship between two numerical variables?

A.Donut chart.
B.Table chart.
C.Scatter plot.
D.Area chart.
AnswerC

Scatter plots display data points representing two variables.

Why this answer

A scatter plot is the standard chart for observing the correlation or relationship between two numeric axes.

154
MCQeasy

Which service should you use to search for and discover datasets across your entire Google Cloud organization?

A.BigQuery Explorer
B.Cloud Storage Browser
C.Cloud Logging
D.Data Catalog
AnswerD

Data Catalog allows centralized search and metadata discovery.

Why this answer

Data Catalog is the primary discovery tool for finding and understanding data assets in Google Cloud.

155
MCQmedium

What happens if you delete a Dataplex Lake?

A.The data is moved to a 'trash' bucket
B.The lake is deleted, but the underlying assets remain
C.Access to the assets is granted to all users
D.All underlying data assets are deleted
AnswerB

The lake is just a logical view; the storage remains intact.

Why this answer

Deleting a Lake removes the logical grouping but does not delete the underlying data assets (like BigQuery datasets or GCS buckets).

156
MCQhard

You are creating a Looker report with a 'measure' that calculates the total revenue. You notice it is summing correctly but the format is wrong. Where do you change the format?

A.In the dashboard filter settings.
B.By editing the underlying SQL.
C.In the 'User' settings.
D.In the LookML view file using 'value_format_name'.
AnswerD

This is the standard way to apply currency or numeric formats.

Why this answer

The 'value_format_name' or 'value_format' parameter in the LookML view definition is where you control display formatting.

157
MCQeasy

When reviewing a Looker dashboard, which icon do you click to reload the data?

A.The refresh icon.
B.The edit icon.
C.The share icon.
D.The filter icon.
AnswerA

This triggers a re-query of the underlying data.

Why this answer

Looker dashboards have a refresh icon (circular arrow) that reloads the data based on current cache settings.

158
MCQhard

Your team needs to audit all modifications made to DAG files in the GCS bucket used by Cloud Composer. What is the most efficient way to achieve this?

A.Enable Data Access audit logs on the GCS bucket.
B.Enable 'Version History' in the Airflow UI.
C.Use Cloud Monitoring to alert on 'gcs_object_write' events.
D.Write a custom DAG to scan the bucket every minute.
AnswerA

Audit logs track all mutations to objects in GCS.

Why this answer

Enable Cloud Audit Logs (Data Access logs) on the GCS bucket to track all API calls including object modifications.

159
MCQmedium

You are querying a dataset in BigQuery that uses partitioning. Your query doesn't use the partitioning column. What is the consequence?

A.BigQuery will automatically optimize the scan.
B.The query will fail immediately.
C.The query results will be inaccurate.
D.The query will perform a full table scan.
AnswerD

This is the default and cost-inefficient behavior.

Why this answer

Without the partition filter, BigQuery performs a full table scan, increasing both cost and execution time.

160
MCQmedium

You need to verify the integrity of a large file uploaded to GCS. What is the standard way to do this?

A.Use Cloud Logging
B.Check file size
C.Check MD5 hash
D.Use Dataflow
AnswerC

MD5 hash check is the standard method for verifying file integrity.

Why this answer

Comparing the MD5 hash provided by GCS against the local file's hash ensures integrity.

161
MCQeasy

When configuring a Workflows execution, you want to ensure the workflow can be triggered by an HTTP POST request. Which feature allows this?

A.Executing the workflow via the REST API.
B.Configuring a Cloud Scheduler job with an HTTP target.
C.Enabling the 'HTTP Gateway' on the workflow itself.
D.Creating a Service Account with 'Public Access'.
AnswerA

The Workflows API endpoint accepts POST requests to trigger executions.

Why this answer

Workflows can be triggered via HTTP POST requests to the workflow execution API endpoint.

162
MCQhard

In LookML, which parameter is used to define how a table should join to another?

A.relationship
B.join_type
C.dimension_group
D.foreign_key
AnswerA

This helps Looker understand how to aggregate joined data.

Why this answer

The 'relationship' parameter is essential for Looker to join tables correctly without errors.

163
MCQmedium

You are building a streaming pipeline using Dataflow to process sensor data arriving via Pub/Sub. You need to handle out-of-order data by allowing events to arrive late. Which Dataflow concept must you configure?

A.Side Inputs
B.Partitioning
C.GroupByKey
D.Watermarks
AnswerD

Watermarks track when the system expects all data for a specific time window has arrived.

Why this answer

Watermarks and triggers are used in Dataflow to handle windowing and late data arrival in streaming pipelines.

164
Multi-Selectmedium

Which TWO of the following statements about Dataplex discovery are true? (Choose two)

Select 2 answers
A.Discovery must be manually triggered for every scan
B.Discovery works only for BigQuery tables
C.Discovery deletes duplicate files
D.Discovery scans and infers schema from the data
E.Discovery generates metadata for the data assets
AnswersD, E

It automatically detects schemas.

Why this answer

Discovery is automatic for registered assets and generates metadata including schema.

165
Multi-Selectmedium

Which TWO factors should you consider when choosing a GCS storage class?

Select 2 answers
A.Data color
B.Data retention requirements
C.Network speed
D.Number of users
E.Access frequency
AnswersB, E

Determines lifecycle needs.

Why this answer

Access frequency and data retention requirements drive the choice of storage class.

166
MCQmedium

You have a Looker dashboard that loads slowly. What is the first thing you should check in the 'Looker System Activity' or 'Query History'?

A.Restart the Looker instance.
B.Check the Query History to see execution time and SQL complexity.
C.Delete all existing users.
D.Change the Looker instance color theme.
AnswerB

Understanding execution time and the generated SQL is the first step in troubleshooting.

Why this answer

Checking the query history helps identify if the underlying database is slow or if the Looker model is generating inefficient SQL.

167
Multi-Selecteasy

Which TWO of the following are GCP ingestion tools?

Select 2 answers
A.Cloud Storage
B.Cloud SQL
C.Cloud Compute
D.Pub/Sub
E.Cloud DNS
AnswersA, D

Primary landing zone for data.

Why this answer

Cloud Storage and Pub/Sub are both primary ingestion entry points.

168
MCQmedium

You need to export query results from BigQuery to a Google Sheet. What is the easiest way to do this?

A.Use the BigQuery Data Transfer Service.
B.Export to a CSV file and manually upload to Sheets.
C.Use the 'Save results' option and select 'Google Sheets'.
D.Write a Python script to call the Google Sheets API.
AnswerC

This provides a direct, simple integration.

Why this answer

BigQuery has a built-in 'Save Results' option that allows exporting directly to Google Sheets.

169
MCQhard

You have a query that processes 500GB of data. You want to reduce the cost of this query. What is the most effective approach?

A.Use a smaller machine type for the project.
B.Increase the query timeout limit.
C.Switch to BigQuery Omni.
D.Add a WHERE clause to filter by the partitioned column.
AnswerD

Limiting the data scanned is the primary cost-saving technique in BigQuery.

Why this answer

Filtering by partition columns drastically reduces the amount of data scanned, directly lowering the cost.

170
Multi-Selecthard

You have noticed that your data quality tasks are failing. Which THREE of the following are potential causes for failure? (Choose three)

Select 3 answers
A.The YAML rule configuration is malformed
B.The service account lacks permissions on the data
C.The user has a slow internet connection
D.The Dataproc environment is not available
E.The data files were moved to another lake
AnswersA, B, D

Invalid YAML structure will cause the task to fail.

Why this answer

Common failures include permission issues, invalid rule configurations, or missing execution environments.

171
MCQeasy

You need to store sensitive data in GCS. Which feature ensures data is encrypted at rest?

A.Default Encryption
B.Identity and Access Management
C.Cloud DLP
D.Customer-Managed Encryption Keys (CMEK)
AnswerA

GCS provides default encryption at rest for all stored objects.

Why this answer

All data in GCS is encrypted at rest by default using Google-managed keys.

172
MCQhard

You need to ensure that PII (Personally Identifiable Information) in BigQuery is automatically detected and tagged across your organization. Which Dataplex feature should you enable on your Lake?

A.Automatic data discovery
B.Data quality task
C.Lifecycle management policy
D.IAM policy inheritance
AnswerA

Data discovery scans the underlying storage to detect and label data.

Why this answer

Dataplex discovery scans data assets and can automatically apply labels and tags based on system-defined taxonomies.

173
MCQmedium

You need to perform data cleansing on a large dataset in Dataprep. Which execution engine should you choose for scalability?

A.Local Desktop
B.BigQuery
C.Cloud Run
D.Dataflow
AnswerD

Dataflow provides the distributed processing needed for large-scale Dataprep jobs.

Why this answer

Dataprep uses Dataflow as its execution engine to scale to large datasets.

174
MCQmedium

You are writing a Python script in Vertex AI Workbench. You want to query BigQuery and load the result into a pandas DataFrame. Which library should you use?

A.requests
B.pandas-gbq
C.google-cloud-bigquery
D.sqlalchemy
AnswerC

This is the official client library for BigQuery integration with Python.

Why this answer

The `google-cloud-bigquery` library contains the `to_dataframe()` method which is specifically designed for this.

175
Multi-Selecteasy

Which TWO are methods to secure GCS data?

Select 2 answers
A.Renaming files
B.IAM roles
C.Printing files
D.Public internet access
E.Cloud KMS encryption
AnswersB, E

Controls access.

Why this answer

IAM roles and Cloud KMS encryption are standard security methods.

176
MCQmedium

A data analyst is working in a Vertex AI Workbench notebook. They want to connect to a private BigQuery dataset. How should they authenticate?

A.Enter your username and password in every query.
B.Hardcode the service account key in the notebook.
C.The instance's attached service account will handle authentication automatically.
D.Use the 'gcloud auth login' command in every cell.
AnswerC

Google Cloud handles authentication via service account scopes for managed notebooks.

Why this answer

Vertex AI Workbench notebooks automatically handle authentication using the instance's service account.

177
MCQeasy

When using Cloud Scheduler to trigger a Workflows execution, what is the best practice for authenticating the scheduler to the Workflows API?

A.Use an API Key generated in the console.
B.Hardcode credentials in the scheduler job.
C.Use 'Public' access for the workflow.
D.Use an OIDC token with a service account.
AnswerD

OIDC provides secure authentication for Google Cloud API calls.

Why this answer

Using an OIDC token with a service account that has the 'Workflows Invoker' role is the secure, recommended method.

178
MCQmedium

You are using Vertex AI Workbench. You want to install a new Python library, `seaborn`, for visualization. What is the correct way to install it in the notebook instance?

A.!pip install seaborn
B.Use the Google Cloud Console library menu.
C.import seaborn
D.apt-get install seaborn
AnswerA

The '!' prefix allows running shell commands like pip install.

Why this answer

Using the pip magic command in a cell is the standard way to install libraries in a Jupyter environment.

179
MCQeasy

Which service should you use to ingest streaming data from mobile devices?

A.Cloud Storage
B.BigQuery
C.Pub/Sub
D.Cloud SQL
AnswerC

Pub/Sub handles high-scale streaming ingestion.

Why this answer

Pub/Sub is the globally available, scalable message queue perfect for mobile ingestion.

180
MCQhard

You are building a Looker model and want to create a measure that calculates the count of distinct customers. Which type of measure should you use?

A.type: count
B.type: average_distinct
C.type: sum_distinct
D.type: count_distinct
AnswerD

This is the native LookML way to perform distinct counts.

Why this answer

The `count_distinct` type is specifically designed for calculating unique occurrences in LookML.

181
MCQeasy

What is the primary function of the 'Dataplex Discovery' process?

A.To manage VPC firewall rules
B.To run SQL queries
C.To migrate data to the cloud
D.To automatically catalog and profile data
AnswerD

Discovery crawls the data to generate metadata and profile information.

Why this answer

Discovery automatically scans and catalogs data assets in your storage to make them discoverable.

182
MCQmedium

You have a dashboard in Looker Studio and you want to allow users to dynamically change the date range without editing the report. What should you add?

A.Parameter.
B.Date range control.
C.Calculated field.
D.Chart interaction filter.
AnswerB

This component enables interactive filtering of the report's time dimension.

Why this answer

A 'Date range control' allows end users to filter the entire report by a specific timeframe.

183
Multi-Selectmedium

Which THREE of the following are valid BigQuery table types?

Select 3 answers
A.Native
B.Partitioned
C.Local
D.Virtual
E.External
AnswersA, B, E

Standard storage.

Why this answer

BigQuery supports native, partitioned, and external tables.

184
MCQeasy

You need to change the color palette of your Looker dashboard charts. Where should you make this change?

A.Dashboard settings.
B.BigQuery project settings.
C.The user profile.
D.LookML model file.
AnswerA

Theme/palette settings are defined at the dashboard level.

Why this answer

Dashboard color settings are managed within the dashboard theme settings or the individual chart edit menu.

185
MCQhard

You have data scattered across multiple projects and need to provide a unified data governance view. What is the recommended hierarchy?

A.A single GCS bucket for all data
B.Multiple Lakes, one per project, and manage them independently
C.One Lake, with assets added from multiple projects
D.One Lake per project, then use a project-linking tool
AnswerC

Dataplex Lakes can aggregate assets across projects.

Why this answer

You create one Lake, and within that Lake, you add assets from different projects (within the same organization).

186
MCQeasy

You need to ensure that deleted files in GCS can be restored for 30 days. What should you configure?

A.Cloud Storage bucket lock
B.Object Versioning
C.Bucket Lifecycle policy
D.IAM
AnswerB

Object Versioning allows you to retrieve deleted files.

Why this answer

Object Versioning keeps versions of objects, and Lifecycle policies can delete older ones, but Object Versioning alone is the core feature here.

187
Multi-Selectmedium

Which TWO of the following are true about the relationship between Data Catalog and Dataplex? (Choose two)

Select 2 answers
A.Dataplex uses Data Catalog to store metadata
B.Data Catalog is now a sub-feature of Dataplex
C.You must pay for them separately
D.They have separate IAM systems
E.They are completely separate products
AnswersA, B

Data Catalog is the underlying metadata service.

Why this answer

Dataplex integrates Data Catalog capabilities; they are tightly coupled.

188
Multi-Selecthard

Which TWO of the following strategies help reduce Cloud Composer costs?

Select 2 answers
A.Keep all historical logs forever
B.Use the largest environment size
C.Delete unused environments
D.Increase scheduler frequency
E.Enable auto-scaling
AnswersC, E

Stops ongoing costs.

Why this answer

Stopping unused environments and using environment auto-scaling are effective cost-saving measures.

189
MCQhard

You are running a Dataflow job and notice that it is consuming too much memory and crashing. How do you optimize this?

A.Increase the number of workers
B.Reduce the number of workers
C.Use Batch mode
D.Select a higher memory machine type
AnswerD

Choosing an appropriate machine type (e.g., n1-highmem) provides more memory for the workers.

Why this answer

Setting the worker machine type to one with more RAM or adjusting the pipeline to use fewer expensive transforms is the standard optimization path.

190
MCQmedium

You are using Dataplex to manage data across multiple projects. You need to organize your BigQuery datasets and Cloud Storage buckets into a single logical entity for governance. Which Dataplex resource should you create?

A.Lake
B.Asset
C.Taxonomy
D.Data Zone
AnswerA

A Lake is the top-level container for organizing data assets.

Why this answer

A Lake in Dataplex is a logical grouping of data assets that provides a boundary for governance and security.

191
Multi-Selecthard

You are implementing a security strategy for your data lake. Which THREE of the following are supported ways to control access to data within a Dataplex Lake? (Choose three)

Select 3 answers
A.Grant Dataplex-specific roles to users
B.Apply IAM roles to the underlying storage resources
C.Use Policy Tags for column-level security
D.Use IP-based firewalls for all datasets
E.Assign roles to individual files
AnswersA, B, C

Dataplex roles control access to the governance layer.

Why this answer

Access is controlled via IAM at the resource level, policy tags for fine-grained control, and Dataplex roles for metadata access.

192
MCQmedium

You need to ingest log data into BigQuery from GCS files that arrive sporadically. Which service is best to trigger this?

A.Cloud Scheduler
B.BigQuery Data Transfer Service
C.Dataflow
D.Cloud Functions
AnswerD

Functions support GCS triggers to handle files as they arrive.

Why this answer

Cloud Functions, triggered by GCS object creation events, can automatically load files into BigQuery.

193
MCQhard

You are writing a complex BigQuery query and need to define a temporary table to use later in the same query. What is the most efficient syntax?

A.Nested subqueries.
B.WITH clause (CTE).
C.Variable declaration.
D.CREATE TABLE AS SELECT.
AnswerB

CTEs are standard, readable, and well-optimized by BigQuery.

Why this answer

Common Table Expressions (CTEs) defined with the WITH clause are the cleanest, most readable way to handle temporary logic.

194
MCQhard

You need to perform a complex windowing operation on streaming data in Dataflow. Which windowing strategy is best for session-based activity?

A.Fixed windows
B.Global windows
C.Session windows
D.Sliding windows
AnswerC

Session windows are designed to group activity by gaps in time.

Why this answer

Session windows group events that happen close together in time, which is ideal for sessionizing user activity.

195
Multi-Selectmedium

A team is migrating to Dataplex. Which TWO of the following are prerequisites for adding a BigQuery dataset as an asset to a Lake? (Choose two)

Select 2 answers
A.The user needs BigQuery permissions on the dataset
B.The user needs Dataplex asset-management permissions
C.The dataset must be public
D.The dataset must exist in the same project as the Lake
E.The dataset must contain at least one table
AnswersA, B

You must have read access to link the dataset.

Why this answer

The user needs proper IAM permissions on the project and the dataset to register it as an asset.

196
MCQhard

You are using Dataflow with autoscaling. What metric determines whether the worker pool scales up or down?

A.Work backlog and throughput
B.Network latency
C.Memory usage
D.User-defined triggers
AnswerA

Autoscaling reacts to the volume of pending work.

Why this answer

Dataflow autoscaling is based on the backlog of work and CPU usage of current workers.

197
Multi-Selectmedium

You need to organize your data governance strategy. Which TWO of the following are valid ways to use Dataplex Zones to improve your data organization? (Choose two)

Select 2 answers
A.Assign different IAM policies to different zones
B.Use zones to store query results
C.Create separate zones for each user
D.Group data by processing state (e.g., raw, curated)
E.Use zones to increase data storage speed
AnswersA, D

Zones act as security boundaries.

Why this answer

Zones are used to group assets by purpose (e.g., raw vs curated) and to enforce security policies.

198
MCQhard

You need to ingest IoT data into BigQuery. You need to handle messages arriving in millions per second. Which service acts as the buffer?

A.Cloud SQL
B.Pub/Sub
C.Cloud Functions
D.BigQuery Streaming API
AnswerB

Pub/Sub is designed for massive scale ingestion.

Why this answer

Pub/Sub is the only Google Cloud service capable of ingesting millions of messages per second as a globally scalable buffer.

199
MCQeasy

A user complains they cannot see a Dataplex Lake in the console. You verify they have the 'Viewer' role on the project. What is missing?

A.They need to refresh their browser
B.They need the 'roles/dataplex.viewer' role
C.They need the 'Owner' role
D.They need to be added to the project's whitelist
AnswerB

Specific product-level viewer roles are required for resource visibility.

Why this answer

The user needs a specific Dataplex role (like Dataplex Viewer) to see the Dataplex resources in the UI.

200
Multi-Selecthard

Which THREE of the following are Dataflow windowing types?

Select 3 answers
A.Fixed
B.Session
C.Binary
D.Sliding
E.Random
AnswersA, B, D

Standard window type.

Why this answer

Fixed, Sliding, and Session are the standard windowing types in Beam/Dataflow.

201
MCQmedium

You need to run a task in Cloud Composer only if the previous task failed. Which Trigger Rule should you use?

A.none_failed
B.always
C.all_success
D.one_failed
AnswerD

This trigger rule executes if any parent task failed.

Why this answer

The 'one_failed' trigger rule allows a task to execute if at least one parent task has failed.

202
Multi-Selectmedium

Which TWO of the following are true about Dataplex assets? (Choose two)

Select 2 answers
A.Assets can be created without a storage resource
B.Assets inherit the location of the zone
C.An asset must belong to exactly one zone
D.Assets can only be BigQuery tables
E.Assets duplicate the physical data
AnswersB, C

Assets share the zone's region.

Why this answer

Assets point to existing storage and are managed within zones.

203
Multi-Selecthard

Which THREE steps are involved in an effective Dataflow pipeline development?

Select 3 answers
A.Deployment
B.Testing
C.Automated email alerts
D.Development
E.Manual data entry
AnswersA, B, D

Running in production.

Why this answer

Development, Testing, and Deployment are the standard pipeline steps.

204
MCQhard

You need to ingest data from an external API that requires an OAuth token. Which tool is best for executing this periodically?

A.Pub/Sub
B.Cloud Functions
C.BigQuery Data Transfer Service
D.Storage Transfer Service
AnswerB

Cloud Functions allows custom code to handle OAuth and API interactions.

Why this answer

Cloud Functions triggered by Cloud Scheduler can handle API requests with custom authentication logic.

205
MCQmedium

You are using Dataprep to prepare data. How can you share your work with a team?

A.Copy the JSON definition
B.Share the Flow
C.Share the underlying GCS file
D.Export to a CSV
AnswerB

Sharing the flow provides access to the recipes and datasets.

Why this answer

Dataprep allows you to share 'Flows' with other project members.

Page 2

Page 3 of 3

All pages