Explanation
Deleting a topic also deletes all associated subscriptions, making option C the correct answer.
Q22
Which service is used for managed NoSQL databases in Google Cloud?
AGoogle Cloud Firestore
BGoogle Cloud SQL
CGoogle BigQuery
DGoogle Cloud Storage
Explanation
Google Cloud Firestore is specifically designed for NoSQL databases; the others are not NoSQL solutions.
Q23
A company needs to analyze large datasets and apply machine learning models. Which Google Cloud service is most suitable for this task?
AGoogle Cloud Functions
BGoogle BigQuery
CGoogle Cloud Pub/Sub
DGoogle Cloud Run
Explanation
Google BigQuery is optimized for large datasets and integrates well with machine learning; the others are not primarily designed for data analysis at scale.
Q24
You are configuring IAM permissions. What happens if a user has conflicting roles assigned?
ARole with higher privilege wins
BUser receives no access at all
CAccess depends on last role added
DPermissions combine, giving all access
Explanation
In GCP, the more privileged role takes precedence; the other options misinterpret how IAM resolves conflicts.
Q25
Which service is primarily used for big data analytics in Google Cloud?
ABigQuery
BCloud Storage
CCloud Functions
DCompute Engine
Explanation
BigQuery is designed for large-scale data analytics, whereas the others serve different purposes.
Q26
A company needs a managed solution for Kubernetes. Which Google Cloud service should they use?
ACloud Run
BApp Engine
CGoogle Kubernetes Engine
DCloud Functions
Explanation
Google Kubernetes Engine provides managed Kubernetes clusters; the others do not manage Kubernetes.
Q27
What happens when an IAM role is granted to a service account?
AAccount can access all resources
BRole limits account's access
COnly one API can be accessed
DAccess will be denied
Explanation
Roles define permissions, limiting what resources a service account can access; the others misrepresent IAM roles.
Q28
Which service is best for real-time data processing?
ACloud Pub/Sub
BGoogle Cloud Storage
CCloud Firestore
DBigQuery
Explanation
Cloud Pub/Sub supports real-time messaging; the others are for storage or querying.
Q29
A company needs to analyze large datasets across multiple regions. What should they use?
ACloud Spanner
BCloud SQL
CBigQuery
DApp Engine
Explanation
BigQuery is designed for large-scale data analytics across locations; others are not optimized for this use case.
Q30
You are configuring IAM roles for a team. What happens if you grant both editor and viewer roles to a user?
AUser can edit or view resources
BUser can't access any resources
CUser only gets viewer permissions
DUser gets no permissions at all
Explanation
Combined roles allow full access; other options misrepresent IAM behavior.