A company needs to automate the provisioning of databases. Which service should they use?
AGoogle Cloud Functions
BCloud Composer
CCloud SQL
DDatabase Migration Service
Explanation
Cloud Composer supports automation through workflow orchestration; others don't focus on provisioning.
Q162
What happens when you increase the instance class of a Cloud SQL database?
ARequires restarting the database
BData is automatically expanded
CPerformance is degraded temporarily
DBackup is triggered immediately
Explanation
Increasing instance class requires a restart for changes; other options do not accurately reflect instance class changes.
Q163
Which Google Cloud service enables automated backups for databases?
ACloud SQL
BCloud Storage
CBigQuery
DCompute Engine
Explanation
Cloud SQL provides automated backups; others do not primarily focus on databases.
Q164
A company needs to perform analytics on real-time streaming data. Which service is most appropriate?
ABigQuery
BCloud Pub/Sub
CCloud Dataflow
DCloud Spanner
Explanation
Cloud Dataflow is specifically designed for processing streaming data, while others serve different purposes.
Q165
You are configuring IAM roles for a service account and want to limit access to only necessary resources. What should you do?
AAssign predefined roles only
BUse basic roles such as Viewer
CImplement the principle of least privilege
DGrant roles broadly for ease
Explanation
The principle of least privilege minimizes access rights; other options increase security risks.
Q166
Which Google Cloud service is typically used for managing large-scale NoSQL databases?
ACloud Spanner
BBigQuery
CCloud SQL
DFirestore
Explanation
Cloud Spanner is designed for scalable NoSQL solutions, while others cater to SQL or analytics.
Q167
A company needs to migrate its on-premises MySQL database to Google Cloud while minimizing downtime as much as possible. Which approach should they use?
AUse Cloud Firebase
BPerform a one-time export/import
CUse Database Migration Service
DUse Cloud Functions
Explanation
The Database Migration Service supports continuous migration with minimal downtime.
Q168
What happens when you exceed the maximum provisioned IOPS in a Cloud SQL instance?
APerformance is unaffected
BInstance automatically scales up
CRequests are throttled or queued
DDatabase is temporarily shut down
Explanation
Exceeding IOPS leads to throttling or queuing of requests.
Q169
Which service provides managed NoSQL databases in Google Cloud?
ACloud Firestore
BBigtable
CCloud Spanner
DCloud SQL
Explanation
Cloud Firestore is designed for NoSQL; others are either SQL or not specifically managed NoSQL.
Q170
A company needs to analyze large volumes of log data in real-time. Which Google Cloud service should they use?
ACloud Pub/Sub
BDataflow
CBigQuery
DDataproc
Explanation
Dataflow is optimized for real-time stream processing, while others serve different purposes.