A company needs to automatically scale its web application based on the load. Which GCP service should they use?
ACloud Functions
BApp Engine
CCompute Engine with Autoscaler
DCloud Run
Explanation
Compute Engine with Autoscaler allows automatic scaling based on load, while the other options do not offer this functionality in the same way.
Q192
You are configuring a Pub/Sub subscription with a push endpoint. What happens if the endpoint is not reachable?
AMessages are immediately dropped.
BMessages are retried indefinitely.
CMessages are queued for delivery.
DMessage delivery is logged only.
Explanation
If the push endpoint is unreachable, Pub/Sub retries message delivery with exponential backoff, which is not the same as infinite retries.
Q193
Which service can you use to orchestrate containerized applications in Google Cloud?
AGoogle Kubernetes Engine
BApp Engine
CCloud Functions
DBigQuery
Explanation
Google Kubernetes Engine is specifically designed for orchestration of containers, while the others serve different purposes.
Q194
A company needs to secure data at rest in Google Cloud Storage. Which feature should they use?
AObject Lifecycle Management
BCustomer-managed encryption keys
CAccess Control Lists
DRegional replication
Explanation
Customer-managed encryption keys provide enhanced security for data at rest, unlike the other options.
Q195
What happens when a Cloud Function exceeds its timeout period?
AFunction execution continues until completed
BFunction is automatically restarted
CFunction execution is terminated
DFunction logs an error and exits gently
Explanation
When the timeout period is exceeded, the function execution is unconditionally terminated, unlike the other options which imply continued execution.
Q196
Which service can automatically scale based on load?
AGoogle Kubernetes Engine
BCloud Storage
CCloud Firestore
DCloud Functions
Explanation
Cloud Functions can automatically scale based on demand, unlike the other services mentioned, which require manual intervention for scaling.
Q197
A company needs to securely manage secrets for its application. Which service is best suited for this purpose?
ACloud SQL
BCloud Memorystore
CSecret Manager
DCloud Storage
Explanation
Secret Manager is specifically designed to securely store and manage sensitive information, while the others do not focus on secret management.
Q198
What happens when you incorrectly set a Cloud Function's timeout to 0 seconds?
AFunction runs indefinitely
BFunction fails immediately
CFunction runs with default timeout
DFunction is skipped
Explanation
Setting a timeout of 0 seconds results in an immediate failure of the function, unlike the other options which are incorrect outcomes.
Q199
Which Google Cloud service is best for serverless computing?
ACloud Functions
BCompute Engine
CApp Engine
DKubernetes Engine
Explanation
Cloud Functions is specifically designed for serverless applications, while the others require more infrastructure management.
Q200
A developer needs to run a machine learning model and store its results directly in a Cloud SQL instance. Which is the best option?
AUse a Pub/Sub topic
BDirectly access that SQL database
CStore in Cloud Storage
DUse BigQuery for storage
Explanation
Direct access allows immediate insertion of results into Cloud SQL, while the other options add complexity.