Practice Free Professional Cloud Developer Exam Online Questions
Your existing application keeps user state information in a single MySQL database. This state information is very user-specific and depends heavily on how long a user has been using an application. The MySQL database is causing challenges to maintain and enhance the schema for various users.
Which storage option should you choose?
- A . Cloud SQL
- B . Cloud Storage
- C . Cloud Spanner
- D . Cloud Datastore/Firestore
A
Explanation:
Reference: https://cloud.google.com/solutions/migrating-mysql-to-cloudsql-concept
You have been tasked with planning the migration of your company’s application from on-premises to Google Cloud. Your company’s monolithic application is an ecommerce website. The application will be migrated to microservices deployed on Google Cloud in stages. The majority of your company’s revenue is generated through online sales, so it is important to minimize risk during the migration. You need to prioritize features and select the first functionality to migrate.
What should you do?
- A . Migrate the Product catalog, which has integrations to the frontend and product database.
- B . Migrate Payment processing, which has integrations to the frontend, order database, and third-party payment vendor.
- C . Migrate Order fulfillment, which has integrations to the order database, inventory system, and third-party shipping vendor.
- D . Migrate the Shopping cart, which has integrations to the frontend, cart database, inventory system, and payment processing system.
Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many Requests" status code.
How should you handle this error?
- A . Add a cache-control header to the objects.
- B . Request a quota increase from the GCP Console.
- C . Retry the request with a truncated exponential backoff strategy.
- D . Change the storage class of the Cloud Storage bucket to Multi-regional.
C
Explanation:
Reference: https://developers.google.com/gmail/api/v1/reference/quota
Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many Requests" status code.
How should you handle this error?
- A . Add a cache-control header to the objects.
- B . Request a quota increase from the GCP Console.
- C . Retry the request with a truncated exponential backoff strategy.
- D . Change the storage class of the Cloud Storage bucket to Multi-regional.
C
Explanation:
Reference: https://developers.google.com/gmail/api/v1/reference/quota
Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many Requests" status code.
How should you handle this error?
- A . Add a cache-control header to the objects.
- B . Request a quota increase from the GCP Console.
- C . Retry the request with a truncated exponential backoff strategy.
- D . Change the storage class of the Cloud Storage bucket to Multi-regional.
C
Explanation:
Reference: https://developers.google.com/gmail/api/v1/reference/quota
Your application is deployed in a Google Kubernetes Engine (GKE) cluster. You want to expose this application publicly behind a Cloud Load Balancing HTTP(S) load balancer.
What should you do?
- A . Configure a GKE Ingress resource.
- B . Configure a GKE Service resource.
- C . Configure a GKE Ingress resource with type: LoadBalancer.
- D . Configure a GKE Service resource with type: LoadBalancer.
A
Explanation:
Reference: https://cloud.google.com/kubernetes-engine/docs/concepts/ingress
Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.
Which approach should you use?
- A . Deploy the website on App Engine and use traffic splitting.
- B . Deploy the website on App Engine as three separate services.
- C . Deploy the website on Cloud Functions and use traffic splitting.
- D . Deploy the website on Cloud Functions as three separate functions.
A
Explanation:
Reference: https://cloud.google.com/appengine/docs/standard/python/splitting-traffic
You are developing a JPEG image-resizing API hosted on Google Kubernetes Engine (GKE). Callers of the service will exist within the same GKE cluster. You want clients to be able to get the IP address of the service.
What should you do?
- A . Define a GKE Service. Clients should use the name of the A record in Cloud DNS to find the service’s cluster IP address.
- B . Define a GKE Service. Clients should use the service name in the URL to connect to the service.
- C . Define a GKE Endpoint. Clients should get the endpoint name from the appropriate environment variable in the client container.
- D . Define a GKE Endpoint. Clients should get the endpoint name from Cloud DNS.
You recently deployed a Go application on Google Kubernetes Engine (GKE). The operations team has noticed that the application’s CPU usage is high even when there is low production traffic. The operations team has asked you to optimize your application’s CPU resource consumption. You want to determine which Go functions consume the largest amount of CPU.
What should you do?
- A . Deploy a Fluent Bit daemonset on the GKE cluster to log data in Cloud Logging. Analyze the logs to get insights into your application code’s performance.
- B . Create a custom dashboard in Cloud Monitoring to evaluate the CPU performance metrics of your application.
- C . Connect to your GKE nodes using SSH. Run the top command on the shell to extract the CPU utilization of your application.
- D . Modify your Go application to capture profiling data. Analyze the CPU metrics of your application in flame graphs in Profiler.
D
Explanation:
https://cloud.google.com/profiler/docs/about-profiler
Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the source code that generated it, helping you identify the parts of your application that are consuming the most resources, and otherwise illuminating your applications performance characteristics.
https://cloud.google.com/profiler/docs
You are planning to deploy hundreds of microservices in your Google Kubernetes Engine (GKE) cluster.
How should you secure communication between the microservices on GKE using a managed service?
- A . Use global HTTP(S) Load Balancing with managed SSL certificates to protect your services
- B . Deploy open source Istio in your GKE cluster, and enable mTLS in your Service Mesh
- C . Install cert-manager on GKE to automatically renew the SSL certificates.
- D . Install Anthos Service Mesh, and enable mTLS in your Service Mesh.
D
Explanation:
https://cloud.google.com/service-mesh/docs/overview#security_benefits
– Ensures encryption in transit. Using mTLS for authentication also ensures that all TCP communications are encrypted in transit.