Professional Cloud Developer Practice Test practice questions, page 14 of 15, with answer review and explanations.
Question 66
Your application is running on Compute Engine and is showing sustained failures for a small number of requests. You have narrowed the cause down to a single Compute Engine instance, but the instance is unresponsive to SSH. What should you do next?
Reboot the machine.
Enable and check the serial port output.
Delete the machine and create a new one.
Take a snapshot of the disk and attach it to a new machine.
Question 67
You configured your Compute Engine instance group to scale automatically according to overall CPU usage. However, your application's response latency increases sharply before the cluster has finished adding up instances. You want to provide a more consistent latency experience for your end users by changing the configuration of the instance group autoscaler. Which two configuration changes should you make? (Choose two.)
Add the label ג€AUTOSCALEג€ to the instance group template.
Decrease the cool-down period for instances added to the group.
Increase the target CPU usage for the instance group autoscaler.
Decrease the target CPU usage for the instance group autoscaler.
Remove the health-check for individual VMs in the instance group.
Question 68
You have an application controlled by a managed instance group. When you deploy a new version of the application, costs should be minimized and the number of instances should not increase. You want to ensure that, when each new instance is created, the deployment only continues if the new instance is healthy. What should you do?
Perform a rolling-action with maxSurge set to 1, maxUnavailable set to 0.
Perform a rolling-action with maxSurge set to 0, maxUnavailable set to 1
Perform a rolling-action with maxHealthy set to 1, maxUnhealthy set to 0.
Perform a rolling-action with maxHealthy set to 0, maxUnhealthy set to 1.
Question 69
Your application requires service accounts to be authenticated to GCP products via credentials stored on its host Compute Engine virtual machine instances. You want to distribute these credentials to the host instances as securely as possible. What should you do?
Use HTTP signed URLs to securely provide access to the required resources.
Use the instance's service account Application Default Credentials to authenticate to the required resources.
Generate a P12 file from the GCP Console after the instance is deployed, and copy the credentials to the host instance before starting the application.
Commit the credential JSON file into your application's source repository, and have your CI/CD process package it with the software that is deployed to the instance.
Question 70
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?
Configure a GKE Ingress resource.
Configure a GKE Service resource.
Configure a GKE Ingress resource with type: LoadBalancer.
Configure a GKE Service resource with type: LoadBalancer.