A company needs to ensure that its Cloud IAM policies are based on least privilege. What should they do?
AAudit roles regularly
BUse default roles
CAssign all roles to admins
DRemove role constraints
Explanation
Regular auditing of roles helps maintain least privilege; default roles may not be sufficient, while assigning all roles is too permissive.
Q372
What happens when you set a Google Cloud Storage bucket's access control to 'public'?
AData is fully encrypted
BAnyone can read data
COnly admins can access it
DIt affects billing costs
Explanation
Setting a bucket to public allows anyone to read its data; encryption status and billing costs are not directly impacted by access settings.
Q373
Which service is best for managing Kubernetes clusters?
ACloud Functions
BCloud Run
CGKE
DApp Engine
Explanation
GKE (Google Kubernetes Engine) is specifically designed for managing Kubernetes clusters, while the others serve different container deployment options.
Q374
A company needs to securely share data with external partners while maintaining control over access. Which Google Cloud service should they use?
ACloud Storage
BBigQuery
CCloud IAM
DData Loss Prevention API
Explanation
Cloud Storage can be used to share files securely with fine-grained IAM access controls, whereas the others do not focus on direct file sharing.
Q375
What happens when you delete a Google Cloud Pub/Sub subscription?
AMessages are permanently lost
BMessages are retained for 7 days
COnly unacknowledged messages are lost
DSubscription is archived for recovery
Explanation
When a subscription is deleted, all messages in it are permanently lost, including those that have not yet been acknowledged, while the other options imply retention or recovery that doesn't occur.
Q376
Which Google Cloud service is primarily used for data warehousing?
ABigQuery
BCloud Storage
CDatastore
DFirestore
Explanation
BigQuery is designed for large-scale data analysis, whereas the others serve different data storage needs.
Q377
A company needs to securely share datasets while controlling access. Which service should they use?
ABigQuery
BCloud Storage
CData Catalog
DCloud IAM
Explanation
BigQuery supports dataset sharing with fine-grained access controls, unlike the others that focus on different functionalities.
Q378
What happens when you set a Cloud Function trigger to run on Google Cloud Pub/Sub?
AFunction runs on storage change.
BFunction runs on message arrival.
CFunction runs daily.
DFunction runs on HTTP request.
Explanation
Setting a trigger to Pub/Sub means the function executes with each incoming message, not on storage changes or schedules.
Q379
Which service allows real-time data processing in Google Cloud?
ACloud Pub/Sub
BCloud Storage
CBigQuery
DCloud Functions
Explanation
Cloud Pub/Sub is designed for real-time data processing; the others focus on storage or batch processing.
Q380
A company needs to store sensitive customer data in Google Cloud. Which service is best for encryption at rest?
AGoogle Cloud IAM
BGoogle Cloud Datastore
CGoogle Cloud Key Management
DGoogle Cloud Load Balancer
Explanation
Google Cloud Key Management handles encryption keys; the others do not specialize in data encryption.