Professional-Cloud-Developer Exam Question 81

Your company's corporate policy states that there must be a copyright comment at the very beginning of all source files. You want to write a custom step in Cloud Build that is triggered by each source commit. You need the trigger to validate that the source contains a copyright and add one for subsequent steps if not there. What should you do?
  • Professional-Cloud-Developer Exam Question 82

    Your team is writing a backend application to implement the business logic for an interactive voice response (IVR) system that will support a payroll application. The IVR system has the following technical characteristics:
    * Each customer phone call is associated with a unique IVR session.
    * The IVR system creates a separate persistent gRPC connection to the backend for each session.
    * If the connection is interrupted, the IVR system establishes a new connection, causing a slight latency for that call.
    You need to determine which compute environment should be used to deploy the backend application. Using current call data, you determine that:
    * Call duration ranges from 1 to 30 minutes.
    * Calls are typically made during business hours.
    * There are significant spikes of calls around certain known dates (e.g., pay days), or when large payroll changes occur.
    You want to minimize cost, effort, and operational overhead. Where should you deploy the backend application?
  • Professional-Cloud-Developer Exam Question 83

    Before promoting your new application code to production, you want to conduct testing across a variety of different users. Although this plan is risky, you want to test the new version of the application with production users and you want to control which users are forwarded to the new version of the application based on their operating system. If bugs are discovered in the new version, you want to roll back the newly deployed version of the application as quickly as possible.
    What should you do?
  • Professional-Cloud-Developer Exam Question 84

    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?
  • Professional-Cloud-Developer Exam Question 85

    Your team is developing a Cloud Function triggered by Cloud Storage Events. You want to accelerate testing and development of your Cloud Function while following Google-recommended best practices. What should you do?