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 271–280 of 495

Q271

Which Google Cloud service offers serverless compute capabilities?

  • A Cloud Functions
  • B Cloud Run
  • C App Engine
  • D Compute Engine
Explanation Cloud Functions provides event-driven, serverless compute, whereas the others cater to different use cases.
Q272

A company needs to control access to sensitive data across multiple Google Cloud projects. What should they implement?

  • A Service Accounts
  • B IAM Policies
  • C Cloud Identity
  • D Roles and Permissions
Explanation IAM Policies are used to manage access control at project and resource levels, unlike other options.
Q273

What happens when you delete a Cloud Pub/Sub subscription with unacknowledged messages?

  • A Messages are permanently lost
  • B Messages are retried indefinitely
  • C Messages are sent to Dead Letter Queue
  • D Messages stay in the backlog
Explanation Deleting the subscription leads to loss of unacknowledged messages, as they cannot be retrieved afterward.
Q274

Which service should be used for real-time messaging between microservices?

  • A Cloud Pub/Sub
  • B Cloud Storage
  • C Cloud Functions
  • D Cloud Run
Explanation Cloud Pub/Sub provides asynchronous messaging; the others serve different purposes.
Q275

A company needs to scale its application automatically based on incoming traffic. Which Google Cloud service should it consider?

  • A Compute Engine
  • B Google Kubernetes Engine
  • C App Engine
  • D Cloud Functions
Explanation App Engine offers built-in auto-scaling; others require manual setup for scaling.
Q276

You are configuring IAM roles for an application. What happens if a user has both 'Viewer' and 'Editor' roles on a resource?

  • A They only have viewer access.
  • B They cannot access the resource.
  • C They have editor access.
  • D Role permissions are cumulative.
Explanation The most permissive role ('Editor') applies; roles are not cumulative in practice.
Q277

Which service allows you to run applications in a serverless environment?

  • A Cloud Functions
  • B Cloud Run
  • C App Engine
  • D Compute Engine
Explanation Cloud Run is specifically designed for serverless applications, while the others require more management or infrastructure.
Q278

A company needs to ensure only users from specific IP addresses can access their Google Cloud resources. What is the best solution?

  • A Use IAM policies
  • B Set up VPC Service Controls
  • C Implement firewall rules
  • D Create custom roles
Explanation Firewall rules are designed to restrict traffic based on IP addresses, while the others do not achieve this goal as effectively.
Q279

What happens when you enable autoscaling on a Google Kubernetes Engine (GKE) cluster without setting resource limits?

  • A Cluster stops adding nodes
  • B Nodes scale independently
  • C Costs triple immediately
  • D Can lead to resource exhaustion
Explanation Without resource limits, autoscaling can lead to overuse of resources, causing potential exhaustion of cluster capacity.
Q280

Which Google Cloud service is best for monitoring application performance?

  • A Cloud Monitoring
  • B Cloud Functions
  • C Cloud SQL
  • D Cloud Storage
Explanation Cloud Monitoring provides insights into application performance, while others do not focus on monitoring.