What happens when you set a VM instance to preemptible in Google Cloud?
ACosts decrease significantly.
BInstance runs indefinitely.
CInstance can be terminated anytime.
DAutomatic backups are enabled.
Explanation
Preemptible VMs can be terminated by Google at any time, whereas the other options are incorrect regarding their characteristics.
Q202
Which Google Cloud service is used for serverless computing?
ACloud Functions
BCompute Engine
CCloud Storage
DCloud Spanner
Explanation
Cloud Functions enables event-driven serverless computing, unlike the other options which are not serverless.
Q203
A company needs to ensure its data lake can scale elastically. Which service should it use?
ABigQuery
BCloud Firestore
CCloud SQL
DCloud Storage
Explanation
BigQuery is designed for scalable analytics on large data sets, while the other services do not provide similar capabilities for a data lake.
Q204
What happens when you apply IAM roles to a service account in GCP?
APermissions are inherited only to users.
BRoles automatically propagate to all resources.
CSecurity policies become vulnerable immediately.
DThe service account gains specific permissions.
Explanation
Assigning IAM roles to a service account grants it specific permissions to perform tasks, while the other options misrepresent IAM functionality.
Q205
Which Google Cloud service is best for running Docker containers?
AGoogle Kubernetes Engine
BCloud Functions
CCloud Run
DApp Engine
Explanation
Google Kubernetes Engine is specifically designed for managing containerized applications, while others have different focuses.
Q206
A company needs to ensure that its data is not retrievable after deletion. Which Google Cloud feature should they use?
ABucket Lock
BObject Versioning
CData Loss Prevention API
DIAM policies
Explanation
Bucket Lock enables an immutable policy for a Cloud Storage bucket, preventing data recovery after deletion.
Q207
You are configuring a VPC network. What happens when you enable Private Google Access?
AAccess to public IPs only
BAccess to predefined Google services
CRestricts all egress traffic
DDisables all private IP traffic
Explanation
Enabling Private Google Access allows VM instances to connect to Google services using internal IPs.
Q208
Which service is best for data analytics on GCP?
ABigQuery
BCloud Storage
CCompute Engine
DCloud Functions
Explanation
BigQuery is specifically designed for data analytics, while others serve different purposes.
Q209
You are configuring a VPC with subnets. What happens if you do not specify an IP range?
ADefault IP range will be used
BNo subnets can be created
CSubnet IPs are auto-assigned
DConfiguration will fail
Explanation
A VPC requires defined IP ranges for subnets; otherwise, creation fails.
Q210
A company needs to store unstructured data and requires high availability. Which storage option should they choose?
ACloud SQL
BCloud Storage
CFireStore
DPersistent Disk
Explanation
Cloud Storage is designed for unstructured data with high availability, in contrast to SQL databases which are structured.