A company needs to analyze real-time streaming data. Which Google Cloud service should they choose?
ABigQuery
BDataflow
CCloud Storage
DCloud Pub/Sub
Explanation
Dataflow is optimized for processing stream data in real-time, unlike the others which serve different purposes.
Q162
What happens when a user is granted the role 'Viewer' in Google Cloud IAM?
AUser can modify resources
BUser can only view resources
CUser can create resources
DUser can delete resources
Explanation
The 'Viewer' role allows only read access, while others allow resource modification or creation.
Q163
Which service enables deploying managed Kafka clusters?
ACloud Pub/Sub
BCloud Dataflow
CCloud Composer
DCloud Pub/Sub for Kafka
Explanation
Cloud Pub/Sub for Kafka provides managed Kafka services, while others serve different purposes.
Q164
A company needs to store large unstructured data like images. Which solution is best?
ACloud SQL
BCloud Storage
CBigQuery
DCloud Spanner
Explanation
Cloud Storage is designed for unstructured data, unlike others which are structured or relational databases.
Q165
You are configuring IAM roles for a project. What happens when you grant a user permissions but also deny them in a policy?
ADeny takes precedence over allow
BAllow takes precedence over deny
CPermissions are ignored
DUser can access resources
Explanation
In IAM, any explicit denial takes precedence over granted permissions, blocking access despite allow grants.
Q166
A company needs to securely manage API keys. Which Google Cloud service should they use?
ASecret Manager
BCloud Functions
CCloud Pub/Sub
DCloud Storage
Explanation
Secret Manager is designed for securely managing sensitive information like API keys, while the other services do not provide this functionality.
Q167
What happens when you delete a Google Cloud Storage bucket that contains objects?
AObjects are archived.
BObjects are also deleted.
CObjects remain in Trash.
DBucket becomes read-only.
Explanation
Deleting a bucket removes all contained objects permanently, not archiving or retaining them.
Q168
You are configuring IAM roles on a project. Which is a key principle for best practices?
AUse least privilege access.
BGrant all permissions first.
CUse one role for everything.
DAssign roles to resource groups.
Explanation
The principle of least privilege ensures users have only the access they need, unlike the other options which can increase security risks.
Q169
Which service is optimal for real-time data processing?
ACloud Pub/Sub
BBigQuery
CCloud Storage
DCloud Functions
Explanation
Cloud Pub/Sub is designed for real-time messaging and data streaming, while other options focus on storage or batch processing.
Q170
A company needs to securely manage user permissions across multiple Google Cloud projects. Which IAM feature should they use?
AService Accounts
BCustom Roles
COrganization Policies
DIAM Conditions
Explanation
Custom Roles allow for granular control over permissions tailored to specific project needs, while other options do not address multi-project scenarios as efficiently.