A company needs low-latency access to large datasets while maintaining strong consistency. Which database service would you choose?
ACloud Firestore
BCloud Spanner
CBigtable
DCloud SQL
Explanation
Cloud Spanner provides low-latency access with strong consistency for large datasets compared to the other choices.
Q42
What happens when a Cloud SQL instance reaches its maximum storage quota?
AInstance automatically expands storage
BInstance goes down temporarily
CInstance becomes read-only
DNo effect on instance operation
Explanation
When the maximum storage quota is reached, the instance becomes read-only until storage is freed or expanded.
Q43
Which service is best for managing relational databases in GCP?
ACloud SQL
BBigtable
CFirestore
DCloud Spanner
Explanation
Cloud SQL is designed specifically for relational databases, while Bigtable and Firestore are NoSQL solutions and Cloud Spanner is for horizontal scaling but not just relational.
Q44
A company needs to store many unstructured data artifacts. Which GCP service should they use for this purpose?
ACloud Firestore
BCloud Storage
CCloud SQL
DCloud Bigtable
Explanation
Cloud Storage is optimized for storing unstructured data, unlike Firestore and Cloud SQL which are for structured data.
Q45
What happens when you scale a Cloud Spanner instance up within GCP?
ACharges decrease
BDowntime occurs
CMore processing capacity is available
DData becomes read-only
Explanation
Scaling up increases processing capacity without downtime, while charges generally increase and no restrictions on data occur.
Q46
Which service allows automatic database scaling in Google Cloud?
ACloud SQL
BFirestore
CBigtable
DSpanner
Explanation
Spanner supports automatic scaling, while the others require manual management.
Q47
A company needs to enforce encryption for data at rest in Cloud Storage. What should they do?
AUse customer-managed encryption keys
BEnable public access controls
CUse the default Google keys
DTurn off versioning
Explanation
Customer-managed encryption keys provide encryption control over data at rest, unlike the other options.
Q48
What happens when a Cloud SQL instance surpasses its IOPS limit?
AInstance crashes immediately
BQueries may experience latency
CBackup fails only
DPerformance remains unaffected
Explanation
Exceeding IOPS results in query latency, not immediate crash or backup failure.
Q49
Which service should you use for analytical SQL queries in Google Cloud?
ABigQuery
BCloud SQL
CFirestore
DSpanner
Explanation
BigQuery is designed for analytical queries, while the others are transactional or NoSQL databases.
Q50
A company needs a relational database that scales horizontally. Which option should they choose?
ACloud SQL
BSpanner
CFirestore
DBigtable
Explanation
Spanner provides horizontal scalability with relational features, while the others do not support it effectively.