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