A company needs to analyze streaming data in real-time. Which service should they use?
ACloud Pub/Sub
BCloud Storage
CBigQuery
DCloud SQL
Explanation
Cloud Pub/Sub is built for real-time data streaming unlike the others that are for storage and analytics.
Q282
You are configuring access for a new Google Cloud project. What happens if you grant a user the 'roles/viewer' role?
AUser can view all resources
BUser can modify resources
CUser can create new resources
DUser can delete resources
Explanation
The 'viewer' role allows only viewing permissions, not modifications or deletions.
Q283
Which service is most suitable for real-time data processing?
ACloud Dataflow
BCloud Functions
CBigQuery
DCloud Storage
Explanation
Cloud Dataflow is designed for processing streaming data, while other options are not primarily for real-time processing.
Q284
A company needs to analyze user behavior data stored in a Cloud SQL database. Which approach is best for running complex queries and visualizing the results?
ABigQuery with federated queries
BDirect SQL queries in Cloud SQL
CCloud Storage file exports
DDataflow transformations on Cloud SQL
Explanation
BigQuery with federated queries allows for efficient analysis of data in Cloud SQL without exporting data.
Q285
What happens when you set a Pub/Sub topic's message retention period to zero?
AMessages are never retained.
BMessages are retained indefinitely.
CMessages are retained for 1 day.
DMessages are stored in Cloud Storage.
Explanation
Setting the retention period to zero causes messages to be discarded immediately after acknowledgment.
Q286
Which service is designed for analyzing big data with SQL?
ABigQuery
BCloud Functions
CCloud Run
DApp Engine
Explanation
BigQuery is specifically designed for SQL-based analytics, while others serve different purposes.
Q287
A company needs a scalable NoSQL database. Which should they use?
ACloud SQL
BFirestore
CCloud Spanner
DCloud Storage
Explanation
Firestore is a NoSQL database, whereas others are SQL or object storage solutions.
Q288
You are configuring a Dataflow job to process streaming data. What will happen if the job encounters a malformed record?
AJob will fail immediately.
BRecord will be skipped.
CJob retries processing the record.
DRecord will be logged for review.
Explanation
Dataflow skips malformed records by default, while others imply job failure or retry without valid behavior.
Q289
Which service would you use for serverless data processing?
ACloud Functions
BCloud Bigtable
CCloud Composer
DCloud Source Repositories
Explanation
Cloud Functions allows for serverless execution of code in response to events, while others serve different purposes like data storage or orchestration.
Q290
A company needs to analyze streaming data for real-time insights. Which Google Cloud service is best suited?
ACloud Pub/Sub
BCloud Dataproc
CBigQuery
DCloud Storage
Explanation
Cloud Pub/Sub is designed for real-time messaging and event-driven architectures, while others are focused on batch processing or storage.