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 401–410 of 495
A company needs a serverless solution to run backend code in response to events. What should they use?
-
A
Cloud Functions
-
B
Cloud Run
-
C
App Engine
-
D
Compute Engine
Explanation
Cloud Functions is specifically designed for executing event-driven serverless functions, unlike the others.
You are configuring IAM permissions for a project. What happens when a user is granted the 'Viewer' role?
-
A
User can create resources
-
B
User cannot change resources
-
C
User can delete resources
-
D
User can view but not access logs
Explanation
The 'Viewer' role allows users to see resources but not modify them, while others imply more permissions.
Which service is best for deploying containerized applications?
-
A
Google Kubernetes Engine
-
B
Cloud Storage
-
C
BigQuery
-
D
Cloud Functions
Explanation
Google Kubernetes Engine specializes in managing containerized applications, unlike the other services listed.
A company needs to maintain a consistent storage location across regions. Which service should they use?
-
A
Cloud Spanner
-
B
Cloud Filestore
-
C
Persistent Disk
-
D
Cloud Storage with multi-region
Explanation
Cloud Storage with multi-region provides consistent storage across multiple locations, unlike the other choices.
You are configuring a Cloud Function that must respond to Pub/Sub messages. What should you ensure?
-
A
Function timeout is unlimited
-
B
Use HTTP trigger only
-
C
Function has correct trigger type
-
D
Use only Python runtime
Explanation
You need the correct trigger type for Pub/Sub, while other options restrict functionality unnecessarily.
Which service is best for serverless functions?
-
A
Cloud Functions
-
B
Cloud Run
-
C
App Engine
-
D
Compute Engine
Explanation
Cloud Functions is designed for serverless computations, while others serve different use cases.
A company needs to migrate a legacy application to GCP while minimizing downtime. Which strategy should they implement?
-
A
Lift-and-shift
-
B
Rebuild from scratch
-
C
Rip and replace
-
D
Hybrid cloud deployment
Explanation
Lift-and-shift allows relatively quick migration with minimal changes, preserving uptime.
What happens when you violate IAM permissions hierarchy in GCP?
-
A
Access is denied
-
B
Access is granted
-
C
Roles are automatically assigned
-
D
Logging stops functioning
Explanation
Violating permissions will always lead to access being denied for users.
Which service is best for building serverless applications?
-
A
Cloud Functions
-
B
Compute Engine
-
C
App Engine
-
D
Cloud Run
Explanation
Cloud Functions is designed for serverless solutions, while the others require more management.
A company needs to store its logs with low latency and quick query capabilities. Which Google service should they use?
-
A
BigQuery
-
B
Cloud Storage
-
C
Stackdriver Logging
-
D
Cloud Spanner
Explanation
Stackdriver Logging is specifically tailored for log management and quick queries.