You are configuring an IAM policy for a project. What happens if a user has both an explicit deny and an explicit allow permission?
ADeny takes precedence
BAllow takes precedence
CPermissions are combined
DError is thrown
Explanation
In IAM policies, explicit deny always takes precedence over explicit allow.
Q142
Which Google Cloud service is best for hosting a RESTful API?
ACloud Functions
BCloud Storage
CBigQuery
DCloud Run
Explanation
Cloud Run is specifically designed for containerized applications, making it ideal for RESTful APIs; Cloud Functions is too limited in scope for complex APIs.
Q143
A company needs to implement delay queues in their message processing architecture. Which Google Cloud service should they use?
APub/Sub
BCloud Functions
CCloud Tasks
DFirestore
Explanation
Cloud Tasks supports delay execution natively, unlike the other options.
Q144
You are configuring an App Engine service. What happens when you set the 'automatic scaling' option?
AInstances scale down to zero instantly
BInstance scaling is controlled manually
CScale based on request traffic
DInstances run indefinitely regardless of load
Explanation
Automatic scaling adjusts instances based on traffic; the other options either misinterpret this or contradict it.
Q145
Which service is best for deploying containerized applications?
AGoogle Kubernetes Engine
BCloud Functions
CApp Engine
DCloud Run
Explanation
Google Kubernetes Engine (GKE) provides robust orchestration for containers, while others serve different needs like serverless applications or web hosting.
Q146
A company needs real-time logging for a live application. Which GCP service should be used?
ACloud Storage
BCloud Pub/Sub
CCloud Monitoring
DCloud Logging
Explanation
Cloud Logging is specifically designed for real-time log collection and management, whereas others serve different purposes like data storage or monitoring.
Q147
What happens when a Cloud Function exceeds its timeout limit?
AFunction restarts automatically
BFunction execution fails
CFunction continues until completion
DFunction logs the timeout event
Explanation
If a Cloud Function exceeds its timeout, it fails and does not complete execution; others imply functionality not supported by GCP.
Q148
Which service is best for monitoring application performance?
ACloud Monitoring
BCloud Storage
CCloud Functions
DCloud Pub/Sub
Explanation
Cloud Monitoring provides comprehensive insights into performance, unlike the other options.
Q149
A company needs to securely manage access to its Google Cloud resources. What should they implement?
AService accounts
BCloud Functions
CBigQuery datasets
DApp Engine
Explanation
Service accounts offer secure, specific access management, while the others do not focus on access control.
Q150
You are configuring a global load balancer. What happens if one instance in the backend service fails?
ATraffic routes through other instances
BAll traffic stops until fixed
CErrors are returned to users
DNew instances are automatically created
Explanation
Traffic will reroute to healthy instances, ensuring high availability.