Which Google Cloud service is best for serverless compute?
ACloud Functions
BCompute Engine
CApp Engine
DKubernetes Engine
Explanation
Cloud Functions provides a fully managed serverless framework, while others require more infrastructure management.
Q302
A company needs to securely manage access permissions for its GCP resources. Which GCP feature should they use?
AIAM Roles
BService Accounts
CCloud Storage Buckets
DNetwork Policies
Explanation
IAM Roles provide fine-grained access control to GCP resources, unlike the other options which do not manage permissions directly.
Q303
What happens when a Cloud Pub/Sub message is not acknowledged within its acknowledgment deadline?
AMessage is deleted
BMessage is retried automatically
CMessage stays in queue indefinitely
DMessage is marked as abandoned
Explanation
Unacknowledged messages are retried automatically until they are acknowledged, while other options are incorrect behaviors.
Q304
Which service provides automated resource management for Kubernetes clusters?
AGoogle Kubernetes Engine
BCloud Run
CApp Engine
DCompute Engine
Explanation
Google Kubernetes Engine simplifies Kubernetes management, while others are different compute services.
Q305
A company needs to ensure its application can handle sudden traffic spikes with minimal latency. Which option should they consider?
ARegional Managed Instance Groups
BPreemptible VMs
COnly Standard VMs
DCloud Functions
Explanation
Regional Managed Instance Groups enable autoscaling to handle traffic spikes effectively, unlike others that are less suitable for this requirement.
Q306
You are configuring IAM roles for a data-processing app using Cloud Storage. What happens when you assign an Editor role to a user?
ACan read and write objects
BCan only read objects
CCan delete buckets only
DCan manage IAM roles
Explanation
The Editor role provides read and write access to the resources, unlike the other options which have limited permissions.
Q307
Which service is best for serverless execution of code?
ACloud Functions
BCompute Engine
CCloud Run
DApp Engine
Explanation
Cloud Functions allows for event-driven execution without server management, while others require more configuration or management.
Q308
A company needs to configure a virtual private cloud (VPC) with isolated subnets. What should they do?
AUse default VPC settings
BCreate subnets with custom CIDR
CEnable public access on all subnets
DAttach all subnets to the same region
Explanation
Creating subnets with custom CIDR allows for isolation, unlike default or public settings.
Q309
What happens when a Google Cloud IAM policy is updated?
AImmediate updates to all resources
BChanges take 24 hours to propagate
CObserver roles switch automatically
DPrevious permissions remain intact
Explanation
IAM policy updates are applied immediately across all relevant resources, while the other options reflect misunderstandings of IAM behavior.
Q310
Which service is best for real-time data analytics in GCP?
ABigQuery
BDataflow
CCloud Pub/Sub
DCloud Functions
Explanation
Dataflow is optimized for real-time streaming data processes, while BigQuery is more suited for ad-hoc queries on batch data.