Which service would you use for implementing CI/CD in Google Cloud?
ACloud Build
BCloud Storage
CApp Engine
DCloud Functions
Explanation
Cloud Build is specifically designed for CI/CD workflows, while the others serve different purposes.
Q302
A company needs to store large datasets, but wants to access and analyze the data in real-time. Which cloud storage option should they choose?
ACloud Storage
BBigQuery
CCloud SQL
DCloud Datastore
Explanation
BigQuery is optimized for analytics on large datasets, whereas the others are less suited for real-time analytics.
Q303
You are configuring IAM roles for a project. What happens if two roles grant contradictory permissions?
AThe most permissive role is chosen.
BThe least permissive role is effective.
CIAM denies all access in conflict.
DConflicting permissions are ignored.
Explanation
IAM evaluates all roles and grants the union of the permissions, giving priority to the most permissive settings.
Q304
Which service provides scalable, insulated computing resources?
ACompute Engine
BCloud Functions
CCloud Storage
DBigQuery
Explanation
Compute Engine provides scalable virtual machines, while others serve different functions related to serverless, storage, or data analytics.
Q305
A company needs to securely share files with external partners. What should they use?
ACloud Storage Signed URLs
BGoogle Drive Share Links
CCloud Pub/Sub
DCloud DNS
Explanation
Cloud Storage Signed URLs allow secure, time-limited access, while others either lack security features or serve different purposes.
Q306
You are configuring IAM roles for an application accessing Pub/Sub. What should you avoid?
ALeast privilege principle
BUsing predefined roles
CAssigning too many permissions
DCustom roles for specific needs
Explanation
Assigning too many permissions violates security best practices, whereas the others enhance security and management.
Q307
Which Google Cloud service provides serverless computing capabilities?
ACloud Functions
BCompute Engine
CKubernetes Engine
DApp Engine
Explanation
Cloud Functions allow you to run code in response to events without managing servers; other options involve managing infrastructure.
Q308
A company needs to ensure that only specific users can access certain GCS buckets. What should they implement?
AIAM Roles
BStorage Transfer Service
CVPC Peering
DCloud CDN
Explanation
IAM Roles provide fine-grained access control; the other options do not manage user permissions directly.
Q309
You are configuring a firewall rule in Google Cloud. What happens when you set the action to 'allow' but the priority is lower than another conflicting 'deny' rule?
AAllow rule overrides deny rule
BBoth rules are applied
CDeny rule takes precedence
DTraffic is rejected completely
Explanation
In Google Cloud, the highest priority rule processes first, so a deny rule with a higher priority will block the traffic.
Q310
Which service helps with automatic scaling of applications?
AGoogle Kubernetes Engine
BCloud Storage
CCloud Functions
DPub/Sub
Explanation
Google Kubernetes Engine automatically scales containerized applications based on demand; others do not have this capability.