What happens when you grant 'roles/viewer' instead of 'roles/editor' in IAM?
AUser can only read resources
BUser can delete resources
CUser can create resources
DUser can modify IAM roles
Explanation
'roles/viewer' permits read-only access, while 'roles/editor' allows modifications and deletions.
Q322
Which service allows encryption of data at rest in Google Cloud Storage?
AGoogle Cloud KMS
BGoogle Cloud Firestore
CGoogle BigQuery
DGoogle Compute Engine
Explanation
Google Cloud KMS provides encryption for data at rest, unlike the other services listed that serve different purposes.
Q323
A company needs to automate the deployment of applications across multiple environments. Which Google Cloud service should they use?
AGoogle Cloud Functions
BGoogle Cloud Build
CGoogle App Engine
DGoogle Cloud Run
Explanation
Google Cloud Build is designed for automating application deployments, while the other options are geared towards specific workloads or hosting applications.
Q324
What happens when you delete a Google Cloud Pub/Sub topic?
AAll subscriptions are deleted too
BSubscriptions remain intact
CDownstream services immediately stop
DMessages are retained temporarily
Explanation
Deleting a Pub/Sub topic also deletes all its subscriptions, which is crucial for managing message flows.
Q325
Which service should you use for real-time event processing?
ACloud Pub/Sub
BCloud Storage
CCloud Functions
DCloud SQL
Explanation
Cloud Pub/Sub is designed for real-time messaging, while the others serve different purposes.
Q326
A company needs to grant temporary access to a contractor to view specific resources. What is the best approach?
AUse IAM roles with a time limit
BCreate a service account for them
CAdd them as a project owner
DShare credentials of a permanent account
Explanation
Using IAM roles with time limits allows controlled and temporary access, while the others do not ensure security.
Q327
You are configuring a load balancer. What happens when you set an unhealthy threshold of three?
AInstance traffic is immediately cut off
BInstances are deemed healthy after three checks
CThree consecutive health check failures required
DAlerts sent after three failures
Explanation
An unhealthy threshold of three means three consecutive health check failures are needed to mark an instance as unhealthy.
Q328
Which service provides a fully managed NoSQL database?
ACloud Firestore
BCloud Spanner
CCloud SQL
DBigQuery
Explanation
Cloud Firestore is a fully managed NoSQL database, while the others focus on SQL or data warehousing.
Q329
A company needs to run a machine learning model that continually improves its predictions based on new data. Which Google Cloud service should they use?
ACloud Functions
BAI Platform
CBigQuery ML
DCloud Run
Explanation
AI Platform is designed for deploying and managing machine learning models, while the others do not focus on machine learning models specifically.
Q330
What happens when you assign a role to a Google Cloud resource?
AAccess is granted immediately
BPermissions apply only to sub-resources
CRoles override organization policies
DAccess is inherited from parent resources
Explanation
Access is inherited from parent resources, while other options contain incorrect assumptions about roles and permissions.