Which service provides a serverless environment for code execution?
ACloud Functions
BCompute Engine
CApp Engine
DCloud Storage
Explanation
Cloud Functions is designed for serverless execution, while others provide managed or VM services.
Q2
A company needs to ensure their application can scale automatically under traffic spikes. Which features should they use?
AInstance Groups
BPersistent Disks
CTraffic Splitting
DVPC Networks
Explanation
Instance Groups can automatically scale based on load, while others do not provide scaling functionalities.
Q3
What happens when you deploy a Cloud Run service with the 'region-us-central1' setting?
AService runs in multiple regions
BService only accessible in the region
CService is globally replicated
DService uses only regional traffic
Explanation
Deploying in 'region-us-central1' limits access to that specific region, while others suggest wider or global availability.
Q4
Which service provides serverless event-driven services in Google Cloud?
ACloud Functions
BCompute Engine
CCloud Run
DApp Engine
Explanation
Cloud Functions is specifically designed for serverless event-driven architectures, unlike the others that provide more static or infrastructure-based solutions.
Q5
A company needs to store user data securely and also ensure that it is easily accessible for analytics. Which storage solution should they choose?
ACloud Storage
BBigQuery
CDatastore
DFilestore
Explanation
BigQuery is designed for analytical queries and can handle large datasets efficiently compared to the others which are more suited for raw storage.
Q6
You are configuring IAM roles for a GCP project. What happens when a user is assigned both a predefined role and a custom role with identical permissions?
ACustom role overrides predefined role
BPredefined role overrides custom role
CPermissions are doubled
DPermissions are merged
Explanation
When a user has multiple roles with identical permissions, those permissions are effectively merged, allowing access to all permissions from both roles.
Q7
Which Google Cloud service is used for serverless application deployment?
ACloud Functions
BCompute Engine
CCloud Run
DApp Engine
Explanation
Cloud Functions is specifically designed for serverless deployments, whereas others are not solely serverless.
Q8
A company needs to store large amounts of unstructured data for analysis. Which Google Cloud storage solution is best suited for this requirement?
ACloud SQL
BCloud Spanner
CCloud Storage
DBigtable
Explanation
Cloud Storage is ideal for unstructured data, unlike SQL databases which are structured.
Q9
You are configuring identity and access management for a project. What happens if a user has roles assigned at both project and organization levels?
AProject roles override organization roles
BOrganization roles override project roles
CRoles are combined for effective permissions
DUser gains no permissions at all
Explanation
GCP combines roles at different levels, granting effective permissions accordingly.
Q10
Which Google Cloud service scales automatically based on demand?
ACloud Functions
BPersistent Disk
CCloud Storage
DCompute Engine
Explanation
Cloud Functions automatically scale with event triggers, while others need manual scaling configurations.