You are configuring Cloud Spanner. What happens if you set a database's consistency level to 'Strong'?
AFaster response times
BLower availability
CEventual consistency applied
DRead-only access only
Explanation
Strong consistency ensures all replicas give the same result, potentially reducing availability to maintain data integrity, unlike eventual consistency which allows lower latency and higher availability.
Q112
Which service is best for real-time data processing?
ABigQuery
BCloud Pub/Sub
CCloud Storage
DCloud SQL
Explanation
Cloud Pub/Sub is designed for real-time messaging, unlike the other options, which serve different purposes.
Q113
A company needs a highly scalable NoSQL database. Which should they use?
ACloud SQL
BFirestore
CCloud Storage
DBigtable
Explanation
Bigtable is designed for high scalability in NoSQL databases, unlike the other options focused on SQL or object storage.
Q114
You are configuring a Cloud SQL instance. What happens if you set a lower max_connections than your application needs?
AConnections will be allowed once established.
BNew connections will be denied.
CConnections will automatically scale.
DThe instance will crash.
Explanation
New connections cannot be established if the max_connections limit is reached, contrary to other options, which misrepresent the behavior.
Q115
A company needs to store large volumes of analytics data. Which Google Cloud service should they use?
ABigQuery
BCloud Storage
CCloud SQL
DFirestore
Explanation
BigQuery is designed for large-scale analytics, while the others are not optimized for this purpose.
Q116
What happens when you enable automatic replication in Cloud Spanner?
AReduces latency across regions
BIncreases storage costs
CCreates multiple data copies
DEliminates failover time
Explanation
Automatic replication ensures multiple data copies for reliability, while the others are misleading.
Q117
You are configuring IAM roles for a Cloud SQL instance. What is the effect of granting the 'roles/cloudsql.viewer' role?
AFull access to manage databases
BRead-only access to databases
CNo access to Cloud SQL
DAbility to delete instances
Explanation
The 'roles/cloudsql.viewer' role allows read-only access, while the other options provide incorrect permissions.
Q118
Which Google Cloud service is best for managing large scale NoSQL databases?
AFirestore
BCloud SQL
CBigQuery
DCloud Spanner
Explanation
Cloud Spanner is designed for large scale NoSQL databases, while Firestore is more suited for document storage, Cloud SQL for relational databases, and BigQuery for analytics.
Q119
A company needs to provide managed MySQL instances for multi-regional access; what should they use?
ACloud SQL
BCloud Functions
CFirestore
DApp Engine
Explanation
Cloud SQL supports managed MySQL instances suited for multi-regional access, whereas the others do not provide managed relational databases.
Q120
What happens when a Cloud Firestore document exceeds 1 MB in size?
ADocument is stored as usual
BDocument is split into smaller parts
CAn error is thrown
DDocument is served without changes
Explanation
When a Cloud Firestore document exceeds 1 MB, an error is thrown as it violates the maximum size limit for documents.