You are configuring access to a sensitive dataset in BigQuery. What role should you assign for only query access?
ABigQuery Data Viewer
BBigQuery Job User
CBigQuery Data Editor
DBigQuery Admin
Explanation
BigQuery Data Viewer allows query access without modification rights; other roles provide broader access than necessary.
Q232
Which Google Cloud service is designed for serverless event-driven functions?
ACloud Functions
BCloud Run
CApp Engine
DCloud Storage
Explanation
Cloud Functions is specifically built for serverless function execution, while others serve different purposes like containers or web applications.
Q233
A company needs to ensure their sensitive data is encrypted at rest and in transit. Which service can achieve this?
ABigQuery
BCloud Spanner
CDatastore
DCloud SQL
Explanation
Cloud Spanner provides encryption for data both at rest and in transit, whereas the other options lack comprehensive encryption features.
Q234
You are configuring resource access using IAM policies. What happens when a user has conflicting roles granted directly and through a group?
ADirect role takes precedence
BUser defaults to no access
CGroup role takes precedence
DRoles are combined for access
Explanation
In IAM, direct roles always take precedence over inherited ones from groups or other sources.
Q235
Which service is best for NoSQL databases on Google Cloud?
AFirestore
BCloud Spanner
CBigQuery
DCloud SQL
Explanation
Firestore is designed specifically for NoSQL, while others support SQL formats or analytics.
Q236
A company needs to enforce stricter data residency requirements. What is the best solution in Google Cloud?
AUse multiple regions
BSet IAM policies
CUse a single region
DEnable backups
Explanation
Using a single region ensures data remains within the designated area, unlike others.
Q237
You are configuring Cloud SQL replicas. What happens if the primary instance fails?
ANo data loss occurs
BRead-only replica becomes primary
CAll connections are lost
DService automatically scales
Explanation
The read-only replica can promote to primary when the primary fails; others do not address primary failure correctly.
Q238
Which service is best for managing relational databases?
ACloud SQL
BBigQuery
CDatastore
DCloud Firestore
Explanation
Cloud SQL is specifically designed for relational databases, while others serve different purposes.
Q239
A company needs low-latency reads and writes for a global application. What Google Cloud solution is best?
APub/Sub
BFirestore
CCloud Spanner
DCloud SQL
Explanation
Cloud Spanner offers horizontal scalability and strong consistency, making it ideal for global low-latency applications.
Q240
You are configuring a read replica in Cloud SQL. What database engine supports this feature?
ASQL Server
BMySQL
CApache Cassandra
DCloud Firestore
Explanation
Only MySQL and PostgreSQL support read replicas in Cloud SQL, not SQL Server and others.