You are configuring a VPC in Google Cloud. What is the primary purpose of a subnet?
ATo isolate resources
BTo improve performance
CTo segment a network
DTo provide external access
Explanation
A subnet is designed to segment a larger network into smaller networks, enhancing organization and management.
Q112
Which Google Cloud service can perform real-time analytics on streaming data?
ABigQuery
BCloud Pub/Sub
CCloud Dataflow
DCloud Storage
Explanation
Cloud Dataflow is specifically designed for stream processing, while the others serve different purposes.
Q113
A company needs to ensure that all of its data is compliant with GDPR. Which approach should they take?
AStore data only in US regions
BEnable data encryption at rest
CApply IAM roles to restrict access
DRegularly audit data access logs
Explanation
Data encryption at rest helps protect user data, while other options may support but do not ensure compliance directly.
Q114
You are configuring a Cloud SQL database with multiple replicas. What happens during a failover?
AThe primary instance gets deleted
BTraffic is routed to replicas only
CA new primary is promoted from replicas
DThe database remains offline during failover
Explanation
During failover, one of the replicas is promoted to primary to ensure availability.
Q115
Which service helps manage machine learning lifecycle?
AAI Platform
BBigQuery
CCloud SQL
DPub/Sub
Explanation
AI Platform manages the lifecycle of ML models; BigQuery is for data analysis, Cloud SQL for relational databases, and Pub/Sub for messaging.
Q116
A company needs to analyze streaming data from IoT devices in real-time. Which Google Cloud service should they use?
ACloud Functions
BDataflow
CCloud Storage
DApp Engine
Explanation
Dataflow is designed for processing streaming data, while Cloud Functions and App Engine handle application logic and Cloud Storage stores data.
Q117
What happens when a user with 'viewer' IAM role tries to delete a resource?
AThey can delete it.
BThey are denied permission.
CIt succeeds with warnings.
DThey will be redirected.
Explanation
The 'viewer' role does not allow deletion; it only grants read access, while other options imply incorrect permissions.
Q118
Which service allows real-time analysis of streaming data?
ADataflow
BCloud Storage
CBigQuery
DCloud Pub/Sub
Explanation
Dataflow is specifically designed for real-time data processing, while others are for storage or batch processing.
Q119
A company needs low-latency access to a wide variety of data. Which type of database should they choose?
ANoSQL database
BCloud SQL
CSpanner
DCloud Storage
Explanation
NoSQL databases provide optimal low-latency access for diverse data types, while others may not meet speed requirements.
Q120
You are configuring IAM permissions for a data scientist. What happens if they receive the 'roles/ml.admin' role?
AThey can only view models
BThey can deploy models
CThey can create datasets
DThey can manage projects
Explanation
The 'roles/ml.admin' role allows full management of machine learning models, unlike others which have limited capabilities.