You are configuring a TensorFlow model with TPU support. What happens when you set `tf.distribute.Strategy` to `TPUStrategy`?
AOnly CPU resources are used.
BTraining will be slower.
CModel will run on TPUs.
DNo distributed training occurs.
Explanation
Setting `TPUStrategy` enables the model to utilize TPUs for faster training; the other options are incorrect interpretations of this setting.
Q172
Which Google Cloud service best supports model training at scale?
ACloud AI Platform
BCloud Pub/Sub
CBigQuery
DCloud Functions
Explanation
Cloud AI Platform is specifically designed for scalable model training, while the others serve different purposes.
Q173
A company needs to process streaming data in real-time. Which service should they use?
ADataflow
BCloud Storage
CCloud SQL
DBigQuery
Explanation
Dataflow is intended for real-time data processing; the other options focus on data storage or analysis, not streaming.
Q174
What happens when a Firestore document is deleted in a collection that has Cloud Functions triggered on delete events?
AFunction does not trigger
BFunction triggers only for some documents
CFunction triggers for the deleted document
DFunction throws an error
Explanation
The delete event triggers the function specifically for the document deleted, enabling automated workflows; the others do not capture this behavior correctly.
Q175
Which Google Cloud service is optimal for real-time data processing?
ADataflow
BCloud Storage
CBigQuery
DDataproc
Explanation
Dataflow is designed for real-time data processing, while the others are for storage and batch processing.
Q176
A company needs to securely transmit data from its on-premises system to Google Cloud. What is the best practice?
AUse public internet without encryption
BImplement VPN or Interconnect
CUpload data via Cloud Console
DUse FTP for transfers
Explanation
Implementing VPN or Interconnect enhances security for data transmission; the other options are less secure.
Q177
What happens when you set a GCP Compute Engine instance to Preemptible?
AGuaranteed uptime
BLower cost but possible termination
CDedicated resources all day
DAutomatic scaling up to 10x
Explanation
Preemptible instances are cheaper but can be terminated by Google Cloud with short notice, while the others do not accurately describe Preemptible behavior.
Q178
Which Google Cloud service is specifically designed for managing APIs?
AGoogle Cloud Pub/Sub
BGoogle Cloud API Gateway
CGoogle Cloud Functions
DGoogle Cloud Dataflow
Explanation
Google Cloud API Gateway is built for API management, while the others serve different purposes.
Q179
A company needs to process large quantities of streaming data in real time; which service should they choose?
ABigQuery
BCloud Dataflow
CCloud Storage
DCloud SQL
Explanation
Cloud Dataflow is specifically designed for real-time stream processing, unlike the other options.
Q180
What happens when you enable VPC Service Control on a Google Cloud project?
AIncreased billing charges
BEnhanced isolation and security
CAutomatically encrypts all data
DAdds more compute resources
Explanation
VPC Service Control enhances security by allowing you to create security perimeters, while others do not relate to this functionality.