A company needs to analyze streaming data in real time. Which service should they use?
AGoogle Cloud Dataflow
BGoogle Cloud Datastore
CGoogle Cloud Storage
DGoogle BigQuery
Explanation
Google Cloud Dataflow is designed for real-time data processing, while the others are for storage and batch analysis.
Q92
What happens when you set a Cloud Pub/Sub message attribute to an empty string?
AThe message is discarded
BThe attribute is ignored
CThe message processing fails
DThe message is prioritized
Explanation
An empty string as an attribute is valid but ignored by subscribers, while other options imply loss or errors.
Q93
You are configuring IAM roles for a GCP project. What should be avoided?
AApplying the principle of least privilege
BGranting overly broad permissions
CUsing predefined roles when possible
DReviewing roles periodically
Explanation
Granting overly broad permissions violates security principles, while other options enhance security practices.
Q94
Which Google Cloud service is best for real-time data streaming?
ACloud Pub/Sub
BCloud Storage
CBigQuery
DDataflow
Explanation
Cloud Pub/Sub is designed for real-time messaging, while the others are for data storage or batch processing.
Q95
A company needs to manage access to its BigQuery datasets. What IAM role should they assign to users who require read-only access?
ABigQuery User
BBigQuery Data Viewer
CBigQuery Editor
DBigQuery Job User
Explanation
The BigQuery Data Viewer role grants read-only access, while others also allow edit or job creation permissions.
Q96
What happens when you delete a Cloud Storage bucket that is not empty?
ABucket deletion fails
BFiles are deleted automatically
CContents moved to another bucket
DBucket becomes read-only
Explanation
Attempting to delete a non-empty bucket fails unless you first delete its contents.
Q97
Which service allows you to run Spark jobs on GCP?
ADataproc
BDataflow
CBigQuery
DCloud Functions
Explanation
Dataproc is specifically designed for running Spark jobs, while Dataflow is for stream processing, BigQuery is for analytics, and Cloud Functions is for serverless computing.
Q98
A company needs to ensure its BigQuery datasets are only accessible to specific user groups. Which method is best to control access?
AVPC Service Controls
BFine-grained access controls
CCloud Identity Groups
DIAM Roles
Explanation
Fine-grained access controls provide detailed dataset-level permissions, while other options offer broader control mechanisms.
Q99
What happens when you enable automatic replication in Cloud Storage?
AData is synced to another region
BData is spread across multiple zones
CData is only stored in one location
DData becomes read-only immediately
Explanation
Automatic replication spreads data across multiple zones for redundancy, while the other options are incorrect representations of replication behavior.
Q100
Which service is used for real-time data processing in Google Cloud?
ACloud Pub/Sub
BCloud Storage
CBigQuery
DCloud Functions
Explanation
Cloud Pub/Sub is designed for real-time messaging; the others are for data storage or querying.