Google Cloud

Google Cloud Certified – Professional Cloud Developer

PR000266

Validate your skills as a Professional Cloud Developer with exam code PR000266 in Google Cloud.

495 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 191–200 of 495

Q191

A company needs to automatically scale its web application based on the load. Which GCP service should they use?

  • A Cloud Functions
  • B App Engine
  • C Compute Engine with Autoscaler
  • D Cloud 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?

  • A Messages are immediately dropped.
  • B Messages are retried indefinitely.
  • C Messages are queued for delivery.
  • D Message 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?

  • A Google Kubernetes Engine
  • B App Engine
  • C Cloud Functions
  • D BigQuery
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?

  • A Object Lifecycle Management
  • B Customer-managed encryption keys
  • C Access Control Lists
  • D Regional 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?

  • A Function execution continues until completed
  • B Function is automatically restarted
  • C Function execution is terminated
  • D Function 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?

  • A Google Kubernetes Engine
  • B Cloud Storage
  • C Cloud Firestore
  • D Cloud 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?

  • A Cloud SQL
  • B Cloud Memorystore
  • C Secret Manager
  • D Cloud 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?

  • A Function runs indefinitely
  • B Function fails immediately
  • C Function runs with default timeout
  • D Function 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?

  • A Cloud Functions
  • B Compute Engine
  • C App Engine
  • D Kubernetes 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?

  • A Use a Pub/Sub topic
  • B Directly access that SQL database
  • C Store in Cloud Storage
  • D Use BigQuery for storage
Explanation Direct access allows immediate insertion of results into Cloud SQL, while the other options add complexity.