Which service provides managed Kubernetes on Google Cloud?
AGoogle Kubernetes Engine
BApp Engine
CCloud Run
DCompute Engine
Explanation
Google Kubernetes Engine (GKE) manages Kubernetes clusters, while others don't focus on container orchestration.
Q422
A company needs to securely share data across projects. What should they configure?
AService accounts and IAM roles
BCloud Storage buckets only
CVirtual Private Cloud (VPC)
DLoad balancer settings
Explanation
Service accounts and IAM roles allow fine-grained access control for sharing data securely across projects.
Q423
You are configuring a load balancer. What happens when the health check fails?
ATraffic will be sent to the instance
BInstance will be removed from rotation
CAll traffic is dropped immediately
DHealth check retries indefinitely
Explanation
When a health check fails, the instance is temporarily removed from the load balancer to ensure traffic is served by healthy instances.
Q424
Which service is best for managing application configurations in GCP?
AGoogle Cloud Runtime Configuration
BGoogle Cloud Monitoring
CGoogle Cloud Storage
DGoogle Cloud Pub/Sub
Explanation
Google Cloud Runtime Configuration is specifically designed for managing application configurations, unlike others which serve different purposes.
Q425
A company needs to prevent unwanted data egress from its Cloud Storage buckets. Which IAM role should be assigned to minimize this?
AStorage Object Viewer
BStorage Legacy Object Reader
CStorage Admin
DStorage Object Admin
Explanation
The 'Storage Object Viewer' role allows read-only access, preventing data egress, unlike admin roles which allow modifications.
Q426
What happens when you set a Cloud Function's timeout to 10 seconds?
AFunction runs for 10 seconds only
BFunction automatically retries after timeout
CFunction fails if it exceeds 10 seconds
DFunction restarts on hitting timeout
Explanation
If a Cloud Function exceeds its timeout, it fails and does not retry or restart.
Q427
Which service automates resource provisioning on Google Cloud?
AGoogle Deployment Manager
BGoogle Pub/Sub
CGoogle App Engine
DGoogle Cloud Functions
Explanation
Google Deployment Manager automates the deployment of resources, while others serve different purposes.
Q428
A company needs a highly available database solution. Which of the following is the best choice?
ACloud Datastore
BCompute Engine
CCloud SQL
DCloud Storage
Explanation
Cloud SQL provides managed relational databases with high availability, unlike the other services listed.
Q429
You are configuring a firewall rule. What happens when both an allow and deny rule apply?
AAllow rule takes priority
BDeny rule takes priority
CRandom selection occurs
DNo traffic is passed
Explanation
In Google Cloud, allow rules take priority over deny rules for inbound traffic.
Q430
Which service can automatically scale your infrastructure based on demand?
AGoogle Kubernetes Engine
BGoogle Cloud Functions
CGoogle Cloud Storage
DGoogle Cloud CDN
Explanation
Google Kubernetes Engine can automatically scale containers, while the others do not provide automatic infrastructure scaling.