You are configuring IAM roles for a new project. What happens if a user has two roles with conflicting permissions?
ALower privilege wins
BHigher privilege wins
CResult is undefined
DAccess denied by default
Explanation
In IAM, higher privilege roles take precedence over lower ones when permissions conflict.
Q172
Which service should you use for real-time analytics on streaming data?
ABigQuery
BCloud Dataflow
CCloud Functions
DCloud Firestore
Explanation
Cloud Dataflow is designed for processing streaming data in real-time, while the others are not main frameworks for real-time analytics.
Q173
A company needs to anonymize user data while still allowing for analysis. Which Google Cloud product would be most appropriate?
ACloud Pub/Sub
BCloud Datastore
CBigQuery with SQL functions
DCloud Spanner
Explanation
BigQuery can perform SQL operations to anonymize data effectively during analysis, unlike the other options which are not suited for direct data analysis with anonymization.
Q174
What happens when you apply a stricter IAM policy to a Google Cloud resource?
AAll current permissions are revoked.
BNew roles are added automatically.
CAccess might be restricted immediately.
DOnly project owners are affected.
Explanation
Applying a stricter IAM policy can restrict access for certain roles, while the others do not accurately describe IAM policy behavior.
Q175
Which service optimizes storage costs based on usage patterns?
ACloud Storage Lifecycle Management
BBigQuery Pricing Model
CDataproc Cost Optimization
DFirestore Automatic Scaling
Explanation
Cloud Storage Lifecycle Management helps adjust storage classes based on access frequency, while others focus on different cost aspects.
Q176
A company needs to migrate sensitive data to Google Cloud. What should they use to ensure data is encrypted at rest?
ADefault Cloud KMS keys
BCustomer-managed encryption keys
CStorage Buckets only
DBigQuery Dataset permissions
Explanation
Customer-managed encryption keys allow for controlled encryption while default keys do not provide the same level of control.
Q177
You are configuring a Dataflow job. What happens when you set the autoscaling algorithm to *Optimize For Throughput*?
ADecreases resource usage immediately
BIncreases parallelism to boost throughput
CLocks resources during peak loads
DAutomatically retries failed computations
Explanation
Setting to Optimize For Throughput increases parallelism for higher throughput, while other options describe unrelated behavior.
Q178
Which service allows real-time processing of streaming data on Google Cloud?
AGoogle Cloud Functions
BGoogle Dataproc
CGoogle Dataflow
DGoogle BigQuery
Explanation
Google Dataflow is designed specifically for stream processing; the others handle batch or event-driven primarily.
Q179
A company needs data analytics for real-time user engagement on their e-commerce platform. Which architecture pattern should they use?
ABatch processing
BLambda architecture
CData lake only
DMonolithic architecture
Explanation
Lambda architecture combines batch and real-time data processing; others do not optimize for real-time analytics.
Q180
What happens when a Google Cloud Pub/Sub subscription is not acknowledged?
AMessage is deleted
BMessage is processed again
CMessage is sent to Coldline
DMessage is marked as redelivered
Explanation
Unacknowledged messages are redelivered to subscribers; the others either don't occur or misrepresent Pub/Sub behavior.