[Sep 16, 2022] Fully Updated Cloud Developer (Professional-Cloud-Developer) Certification Sample Questions
Latest Google Professional-Cloud-Developer Real Exam Dumps PDF
NEW QUESTION 33
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 Datastore/Firestore
- B. Cloud Storage
- C. Cloud SQL
- D. Cloud Spanner
Answer: C
Explanation:
Reference:
https://cloud.google.com/solutions/migrating-mysql-to-cloudsql-concept
NEW QUESTION 34
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.
To start the case study
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.
Company Overview
HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.
Executive Statement
We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other.
Solution Concept
HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data.
Existing Technical Environment
HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform.
The HipLocal team understands their application well, but has limited experience in global scale applications.
Their existing technical environment is as follows:
* Existing APIs run on Compute Engine virtual machine instances hosted in GCP.
* State is stored in a single instance MySQL database in GCP.
* Data is exported to an on-premises Teradata/Vertica data warehouse.
* Data analytics is performed in an on-premises Hadoop environment.
* The application has no logging.
* There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive.
Business Requirements
HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:
* Expand availability of the application to new regions.
* Increase the number of concurrent users that can be supported.
* Ensure a consistent experience for users when they travel to different regions.
* Obtain user activity metrics to better understand how to monetize their product.
* Ensure compliance with regulations in the new regions (for example, GDPR).
* Reduce infrastructure management time and cost.
* Adopt the Google-recommended practices for cloud computing.
Technical Requirements
* The application and backend must provide usage metrics and monitoring.
* APIs require strong authentication and authorization.
* Logging must be increased, and data should be stored in a cloud analytics platform.
* Move to serverless architecture to facilitate elastic scaling.
* Provide authorized access to internal apps in a secure manner.
HipLocal's APIs are showing occasional failures, but they cannot find a pattern. They want to collect some metrics to help them troubleshoot.
What should they do?
- A. Use Stackdriver Trace to look for performance bottlenecks.
- B. Install the Stackdriver Monitoring agent on the VMs.
- C. Install the Stackdriver Logging agent on the VMs.
- D. Take frequent snapshots of all of the VMs.
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION 35
You have an application in production. It is deployed on Compute Engine virtual machine instances controlled by a managed instance group. Traffic is routed to the instances via a HTTP(s) load balancer. Your users are unable to access your application. You want to implement a monitoring technique to alert you when the application is unavailable.
Which technique should you choose?
- A. Managed instance group - heath checks
- B. Cloud Load Balancing - heath checks
- C. Stackdriver uptime checks
- D. Smoke tests
Answer: C
Explanation:
Reference:
https://medium.com/google-cloud/stackdriver-monitoring-automation-part-3-uptime-checks-
476b8507f59c
NEW QUESTION 36
You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. The application exposes an HTTP-based health check at /healthz. You want to use this health check endpoint to determine whether traffic should be routed to the pod by the load balancer.
Which code snippet should you include in your Podconfiguration?
- A.

- B.

- C.

- D.

Answer: D
Explanation:
For the GKE ingress controller to use your readinessProbes as health checks, the Pods for an Ingress must exist at the time of Ingress creation. If your replicas are scaled to 0, the default health check will apply.
NEW QUESTION 37
Your data is stored in Cloud Storage buckets. Fellow developers have reported that data downloaded from Cloud Storage is resulting in slow API performance. You want to research the issue to provide details to the GCP support team. Which command should you run?
- A. gsutil test -o output.json gs://my-bucket
- B. gcloud services test -o output.json gs://my-bucket
- C. gcloud compute scp example-instance:~/test-data -o output.json gs://my-bucket
- D. gsutil perfdiag -o output.json gs://my-bucket
Answer: D
NEW QUESTION 38
You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositories repository. Your application is built on every commit to the master branch. You want to release specific commits made to the master branch in an automated method.
What should you do?
- A. Manually trigger the build for new releases.
- B. Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
- C. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
- D. Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
Answer: D
Explanation:
Explanation/Reference: https://docs.docker.com/docker-hub/builds/
NEW QUESTION 39
You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments.
How should you identify the Docker image in your build?
- A. Use the latest Docker image tag.
- B. Use the digest of the Docker image.
- C. Use a unique Docker image name.
- D. Use a semantic version Docker image tag.
Answer: D
NEW QUESTION 40
You are deploying a single website on App Engine that needs to be accessible via the URL http://www.altostrat.com/. What should you do?
- A. Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- B. Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Define an A record pointing to the single global App Engine IP address.
- C. Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- D. Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.
Answer: C
NEW QUESTION 41
You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine.
What should you do?
- A. Use signed URLs to upload files.
- B. Use CPanel to upload files.
- C. Use FTP to upload files.
- D. Change the API to be a multipart file upload API.
Answer: A
Explanation:
Reference:
https://wiki.christophchamp.com/index.php?title=Google_Cloud_Platform
NEW QUESTION 42
You want to create "fully baked" or "golden" Compute Engine images for your application. You need to bootstrap your application to connect to the appropriate database according to the environment the application is running on (test, staging, production). What should you do?
- A. When creating the Compute Engine instance, create a metadata item with a key of "DATABASE" and a value for the appropriate database connection string. In your application, read the "DATABASE" environment variable, and use the value to connect to the appropriate database.
- B. Embed the appropriate database connection string in the image. Create a different image for each environment.
- C. When creating the Compute Engine instance, create a metadata item with a key of "DATABASE" and a value for the appropriate database connection string. In your application, query the metadata server for the "DATABASE" value, and use the value to connect to the appropriate database.
- D. When creating the Compute Engine instance, add a tag with the name of the database to be connected. In your application, query the Compute Engine API to pull the tags for the current instance, and use the tag to construct the appropriate database connection string.
Answer: A
NEW QUESTION 43
Your application is deployed in a Google Kubernetes Engine (GKE) cluster. When a new version of your application is released, your CI/CD tool updates the spec.template.spec.containers[0].image value to reference the Docker image of your new application version. When the Deployment object applies the change, you want to deploy at least 1 replica of the new version and maintain the previous replicas until the new replica is healthy.
Which change should you make to the GKE Deployment object shown below?
- A. Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
- B. Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
- C. Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
- D. Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
Answer: C
NEW QUESTION 44
You manage an application that runs in a Compute Engine instance. You also have multiple backend services executing in stand-alone Docker containers running in Compute Engine instances. The Compute Engine instances supporting the backend services are scaled by managed instance groups in multiple regions. You want your calling application to be loosely coupled. You need to be able to invoke distinct service implementations that are chosen based on the value of an HTTP header found in the request. Which Google Cloud feature should you use to invoke the backend services?
- A. Traffic Director
- B. Anthos Service Mesh
- C. Service Directory
- D. Internal HTTP(S) Load Balancing
Answer: D
NEW QUESTION 45
Your application takes an input from a user and publishes it to the user's contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency.
How should you perform reads from Cloud Spanner for this application?
- A. Perform strong reads using single-read methods.
- B. Perform stale reads using read-write transactions.
- C. Perform Read-Only transactions.
- D. Perform stale reads using single-read methods.
Answer: B
Explanation:
Explanation/Reference: https://cloud.google.com/solutions/best-practices-cloud-spanner-gaming-database
NEW QUESTION 46
You are building an API that will be used by Android and iOS apps The API must:
* Support HTTPs
* Minimize bandwidth cost
* Integrate easily with mobile apps
Which API architecture should you use?
- A. gRPC-based APIs
- B. SOAP-based APIs
- C. RESTful APIs
- D. MQTT for APIs
Answer: C
Explanation:
Reference:
https://www.devteam.space/blog/how-to-build-restful-api-for-your-mobile-app/
NEW QUESTION 47
Which of the following iPhones support using Memoji?
- A. iPhone 6s
- B. iPhone 7
- C. iPhone X
- D. iPhone 8
Answer: C
Explanation:
Explanation/Reference: https://www.quora.com/Does-Memoji-work-on-all-devices-updated-to-iOS-12
NEW QUESTION 48
You developed a JavaScript web application that needs to access Google Drive's API and obtain permission from users to store files in their Google Drives. You need to select an authorization approach for your application. What should you do?
- A. Create a SAML token.
- B. Create an API key.
- C. Create a service account.
- D. Create an OAuth Client ID.
Answer: D
NEW QUESTION 49
You are running an application on App Engine that you inherited. You want to find out whether the application is using insecure binaries or is vulnerable to XSS attacks.
Which service should you use?
- A. Stackdriver Error Reporting
- B. Stackdriver Debugger
- C. Cloud Security Scanner
- D. Cloud Amor
Answer: C
Explanation:
Explanation/Reference: https://cloud.google.com/security-scanner
NEW QUESTION 50
You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code.
What should you do?
- A. Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
- B. Install the Stackdriver Logging Agent and configure it to send the application logs.
- C. Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
- D. Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
Answer: B
NEW QUESTION 51
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 Service resource.
- B. Configure a GKE Ingress resource.
- C. Configure a GKE Ingress resource with type: LoadBalancer.
- D. Configure a GKE Service resource with type: LoadBalancer.
Answer: B
NEW QUESTION 52
Your team develops services that run on Google Cloud. You need to build a data processing service and will use Cloud Functions. The data to be processed by the function is sensitive. You need to ensure that invocations can only happen from authorized services and follow Google-recommended best practices for securing functions. What should you do?
- A. Create a service account with the Cloud Functions Invoker role. Use that service account to invoke the function.
- B. Create a service account with the Cloud Functions Viewer role. Use that service account to invoke the function.
- C. Enable Identity-Aware Proxy in your project. Secure function access using its permissions.
- D. Create an OAuth 2.0 client ID for your calling service in the same project as the function you want to secure. Use those credentials to invoke the function.
Answer: A
NEW QUESTION 53
......
Google Professional-Cloud-Developer Dumps - Secret To Pass in First Attempt: https://actualtests.prep4away.com/Google-certification/braindumps.Professional-Cloud-Developer.ete.file.html