You are configuring an expensive machine type in Google Compute Engine. What is the primary consideration for controlling costs?
AAlways use preemptible VMs
BSet up autoscaling policies
CEnable sustained use discounts
DLimit to only one VM instance
Explanation
Enabling sustained use discounts significantly helps in managing costs for long-running instances.
Q22
Which service provides global serverless application hosting?
AGoogle Cloud Run
BCompute Engine
CApp Engine
DKubernetes Engine
Explanation
App Engine is specifically designed for serverless applications, while the others require more management.
Q23
A company needs real-time data analytics for streaming IoT data. Which tool is most appropriate?
ABigQuery
BPub/Sub
CDataflow
DCloud Storage
Explanation
Dataflow provides real-time data processing capabilities, unlike the others.
Q24
What happens when you set a Cloud Storage bucket to 'Uniform' access?
AObject-level permissions enforced
BBucket-level permissions enforced
CNo permissions allowed
DPublic access granted
Explanation
Uniform access means bucket-level permissions apply to all objects inside, unlike object-level permissions.
Q25
Which service is best for real-time analytics on streaming data in Google Cloud?
ACloud Pub/Sub
BBigQuery
CCloud Spanner
DDataflow
Explanation
Dataflow is specifically designed for real-time stream processing, unlike the others which are not optimized for real-time analytics.
Q26
A company needs to store large volumes of structured data with low latency access. Which solution fits best?
ABigQuery
BCloud Spanner
CCloud Storage
DFirestore
Explanation
Cloud Spanner provides strong consistency and low latency for structured data, while the others are either unstructured or not designed for high transactional workloads.
Q27
What happens when you set a GCS bucket's storage class to 'Nearline'?
ALower cost, frequent access
BHigh redundancy with low latency
CLower cost, infrequent access
DNo redundancy, higher cost
Explanation
Nearline storage is cheaper for infrequently accessed data, unlike the other options which describe different storage characteristics.
Q28
Which service is used for serverless event-driven applications?
ACloud Functions
BCloud Run
CApp Engine
DCloud Run for Anthos
Explanation
Cloud Functions is specifically designed for serverless event-driven apps, while others are broader application platforms.
Q29
A company needs to run queries on large datasets stored in Google Cloud Storage. Which service should they use?
ABigQuery
BDataflow
CDataproc
DCloud Datastore
Explanation
BigQuery is optimized for running fast SQL queries on large datasets directly from Cloud Storage.
Q30
You are configuring IAM policies and assign roles at the organization level. What happens when a role is assigned at a lower resource level?
AIt overrides the organization role.
BIt is ignored entirely.
CIt combines with the organization role.
DIt applies only to the organization owner.
Explanation
IAM roles at lower levels combine with higher-level roles, enhancing permissions without overriding.