
Use Professional-Cloud-Developer Exam Dumps (2023 PDF Dumps) To Have Reliable Professional-Cloud-Developer Test Engine
Professional-Cloud-Developer PDF Recently Updated Questions Dumps to Improve Exam Score
Google Professional Cloud Developer Practice Test Questions, Google Professional Cloud Developer Exam Practice Test Questions
The Professional Cloud Developer certificate validates the skills of the interested candidates in building highly available and scalable applications with the use of the tools and practices recommended by Google. The potential applicants for this certification must demonstrate practical experience with developer tools, Cloud-native applications, next-gen databases, and managed services. They also have the expertise in at least one programming language and can develop meaningful logs and metrics to trace and debug code. Those individuals pursuing this option must pass one qualifying exam.
NEW QUESTION 133
Which of the following statements is true about an actively swelling embedded battery?
- A. Actively swelling batteries are unlikely to lead to thermal runaway.
- B. Actively swelling batteries are likely caused by large amounts of liquid inside the batteries.
- C. Actively swelling batteries are not considered a safety concern.
- D. Actively swelling batteries are more likely to rupture and release gasses.
Answer: D
Explanation:
Explanation/Reference: https://www.ifixit.com/News/11211/what-to-do-with-a-swollen-iphone-battery
NEW QUESTION 134
Diego is servicing an embedded battery and it begins to swell. Which of the following is the proper response by Diego?
- A. Evacuate the room for fifteen minutes.
- B. Wait to see if the battery stops swelling or continues to thermal event.
- C. Immediately pour sand on the battery to cover it completely.
- D. Remove the swelling battery and move it to a fire-proof safety cabinet.
Answer: C
NEW QUESTION 135
You need to redesign the ingestion of audit events from your authentication service to allow it to handle a large increase in traffic. Currently, the audit service and the authentication system run in the same Compute Engine virtual machine. You plan to use the following Google Cloud tools in the new architecture:
Multiple Compute Engine machines, each running an instance of the authentication service Multiple Compute Engine machines, each running an instance of the audit service Pub/Sub to send the events from the authentication services.
How should you set up the topics and subscriptions to ensure that the system can handle a large volume of messages and can scale efficiently?
- A. Create one Pub/Sub topic. Create one pull subscription per audit service instance to allow the services to share the messages.
- B. Create one Pub/Sub topic per authentication service. Create one push subscription per topic, with the endpoint pointing to one audit service.
- C. Create one Pub/Sub topic per authentication service. Create one pull subscription per topic to be used by one audit service.
- D. Create one Pub/Sub topic. Create one push subscription with the endpoint pointing to a load balancer in front of the audit services.
- E. Create one Pub/Sub topic. Create one pull subscription to allow the audit services to share the messages.
Answer: E
Explanation:
Explanation
https://cloud.google.com/pubsub/docs/subscriber "Multiple subscribers can make pull calls to the same "shared" subscription. Each subscriber will receive a subset of the messages."
NEW QUESTION 136
You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second.
Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.
What should you do?
- A. Limit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
- B. Distribute the uploads across a large number of individual storage buckets.
- C. Use the XML API instead of the JSON API for interfacing with Cloud Storage.
- D. Pass the HTTP response codes back to clients that are invoking the uploads from your application.
Answer: B
Explanation:
Reference: https://cloud.google.com/storage/docs/request-rate
NEW QUESTION 137
You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.
Which command should you use?
- A. gcloud compute scp --project "my-gcp-project" --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone "us-east1-b"
- B. gcloud compute mv --project "my-gcp-project" --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone "us-east1-b"
- C. gsutil cp --project "my-gcp-project" -R ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone "us-east1-b"
- D. gsutil cp --project "my-gcp-project" -r ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone "us-east1-b"
Answer: A
Explanation:
Reference:
https://cloud.google.com/sdk/gcloud/reference/compute/copy-files
NEW QUESTION 138
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?
- A. Enable and check the serial port output.
- B. Reboot the machine.
- C. Take a snapshot of the disk and attach it to a new machine.
- D. Delete the machine and create a new one.
Answer: B
NEW QUESTION 139
You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.
Which alert condition should you configure?
- A. Metric threshold
- B. Metric absence
- C. Uptime check
- D. Process health
Answer: D
Explanation:
Explanation/Reference: https://cloud.google.com/monitoring/alerts/concepts-indepth
NEW QUESTION 140
Your application is built as a custom machine image. You have multiple unique deployments of the machine image. Each deployment is a separate managed instance group with its own template. Each deployment requires a unique set of configuration values. You want to provide these unique values to each deployment but use the same custom machine image in all deployments. You want to use out-of-the-box features of Compute Engine. What should you do?
- A. Place the unique configuration values in the instance template instance metadata.
- B. Place the unique configuration values in the instance template startup script.
- C. Place the unique configuration values in the persistent disk.
- D. Place the unique configuration values in a Cloud Bigtable table.
Answer: C
Explanation:
Reference:
https://cloud.google.com/compute/docs/instance-groups
NEW QUESTION 141
You are developing an application that will allow users to read and post comments on news articles. You want to configure your application to store and display user-submitted comments using Firestore. How should you design the schema to support an unknown number of comments and articles?
- A. Store each comment in a document, and add the comment's key to an array property on the article.
- B. Add each comment to an array property on the article.
- C. Store each comment in a subcollection of the article.
- D. Store each comment in a document, and add the comment's key to an array property on the user profile.
Answer: D
NEW QUESTION 142
Which of the following customer statements would alert you to a safety issue? (Choose two.)
- A. The corner of my iPad is badly bent.
- B. My iPhone has fluctuating sound levels. Sometimes it is deafening.
- C. The screen is too bright. It hurts my eyes.
- D. My iPhone flashed and sparked when I tried to charge it.
- E. The home button on my iPhone seems to have sunk.
- F. My new Apple Watch makes me itchy and my wrist is red and irritated.
Answer: D,E
NEW QUESTION 143
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. gcloud services test -o output.json gs://my-bucket
- B. gcloud compute scp example-instance:~/test-data -o output.json gs://my-bucket
- C. gsutil test -o output.json gs://my-bucket
- D. gsutil perfdiag -o output.json gs://my-bucket
Answer: D
Explanation:
Reference: https://groups.google.com/forum/#!topic/gce-discussion/xBl9Jq5HDsY
NEW QUESTION 144
Your operations team has asked you to create a script that lists the Cloud Bigtable, Memorystore, and Cloud SQL databases running within a project. The script should allow users to submit a filter expression to limit the results presented. How should you retrieve the data?
- A. Run gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list. Use a filter within the application, and then display the results
- B. Use the HBase API, Redis API, and MySQL connection to retrieve database lists. Combine the results, and then apply the filter to display the results
- C. Use the HBase API, Redis API, and MySQL connection to retrieve database lists. Filter the results individually, and then combine them to display the results
- D. Run gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list. Use --filter flag with each command, and then display the results
Answer: D
Explanation:
Explanation
https://cloud.google.com/sdk/gcloud/reference/topic/filters
Most gcloud commands return a list of resources on success. By default they are pretty-printed on the standard output. The --format=NAME[ATTRIBUTES](PROJECTION) and --filter=EXPRESSION flags along with projections can be used to format and change the default output to a more meaningful result. Use the --format flag to change the default output format of a command. For details run $ gcloud topic formats.
NEW QUESTION 145
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 Viewer role. Use that service account to invoke the function.
- B. Enable Identity-Aware Proxy in your project. Secure function access using its permissions.
- C. 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.
- D. Create a service account with the Cloud Functions Invoker role. Use that service account to invoke the function.
Answer: D
Explanation:
Reference:
https://medium.com/google-cloud/how-to-securely-invoke-a-cloud-function-from-google-kubernetes-engine-run
NEW QUESTION 146
You are creating an App Engine application that writes a file to any user's Google Drive.
How should the application authenticate to the Google Drive API?
- A. With the App Engine service account with delegated domain-wide authority.
- B. With the App Engine service account and https://www.googleapis.com/auth/drive.filescope that generates a signed JWT.
- C. With an OAuth Client ID with delegated domain-wide authority.
- D. With an OAuth Client ID that uses the https://www.googleapis.com/auth/drive.filescope to obtain an access token for each user.
Answer: C
Explanation:
Explanation/Reference: https://developers.google.com/drive/api/v3/about-auth
NEW QUESTION 147
You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second.
Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.
What should you do?
- A. Limit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
- B. Distribute the uploads across a large number of individual storage buckets.
- C. Use the XML API instead of the JSON API for interfacing with Cloud Storage.
- D. Pass the HTTP response codes back to clients that are invoking the uploads from your application.
Answer: B
Explanation:
Explanation/Reference: https://cloud.google.com/storage/docs/request-rate
NEW QUESTION 148
Your company has a BigQuery dataset named "Master" that keeps information about employee travel and expenses. This information is organized by employee department. That means employees should only be able to view information for their department. You want to apply a security framework to enforce this requirement with the minimum number of steps.
What should you do?
- A. Create a dataset named Master dataset. Create a separate view for each department in the Master dataset. Give employees access to the specific view for their department.
- B. Create a dataset named Master dataset. Create a separate table for each department in the Master dataset. Give employees access to the specific table for their department.
- C. Create a separate dataset for each department. Create a data pipeline for each department to copy appropriate information from the Master dataset to the specific dataset for the department. Give employees the permission to this department-specific dataset.
- D. Create a separate dataset for each department. Create a view with an appropriate WHERE clause to select records from a particular dataset for the specific department. Authorize this view to access records from your Master dataset. Give employees the permission to this department-specific dataset.
Answer: C
NEW QUESTION 149
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 stale reads using read-write transactions.
- B. Perform strong reads using single-read methods.
- C. Perform stale reads using single-read methods.
- D. Perform Read-Only transactions.
Answer: A
Explanation:
Reference: https://cloud.google.com/solutions/best-practices-cloud-spanner-gaming-database
Topic 1, HipLocal Case StudyCompany 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 10,000 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
NEW QUESTION 150
You want to view the memory usage of your application deployed on Compute Engine. What should you do?
- A. Install the Stackdriver Monitoring Agent.
- B. Use the Stackdriver Metrics Explorer.
- C. Install the Stackdriver Client Library.
- D. Use the Google Cloud Platform Console.
Answer: B
Explanation:
Explanation/Reference: https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory- usage-of-vm-instances
NEW QUESTION 151
You are developing a new web application using Cloud Run and committing code to Cloud Source Repositories. You want to deploy new code in the most efficient way possible. You have already created a Cloud Build YAML file that builds a container and runs the following command: gcloud run deploy. What should you do next?
- A. Create a Pub/Sub topic to be notified when code is pushed to the repository. Create a Pub/Sub trigger that runs the build file when an event is published to the topic.
- B. Create a build trigger that runs the build file in response to a repository code being pushed to the development branch.
- C. Create a webhook build trigger that runs the build file in response to HTTP POST calls to the webhook URL.
- D. Create a Cron job that runs the following command every 24 hours: gcloud builds submit.
Answer: B
Explanation:
Explanation
https://cloud.google.com/build/docs/triggers
Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execute a build when new events come in. You can also configure triggers to build code on any changes to your source repository or only on changes that match certain criteria.
NEW QUESTION 152
You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.
What should you do?
- A. Install the Stackdriver agents on your Compute Engine instances.
- B. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
- C. Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
- D. Replace your entire monitoring platform with Stackdriver.
Answer: A
Explanation:
Explanation/Reference: https://cloud.google.com/monitoring/
NEW QUESTION 153
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. MQTT for APIs
- B. gRPC-based APIs
- C. RESTful APIs
- D. SOAP-based APIs
Answer: C
NEW QUESTION 154
Your application performs well when tested locally, but it runs significantly slower when you deploy it to App Engine standard environment. You want to diagnose the problem. What should you do?
- A. File a ticket with Cloud Support indicating that the application performs faster locally.
- B. Use Stackdriver Debugger Snapshots to look at a point-in-time execution of the application.
- C. Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.
- D. Use Stackdriver Trace to determine which functions within the application have higher latency.
Answer: C
Explanation:
Topic 1, HipLocal Case Study
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 10,000 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
NEW QUESTION 155
......
Professional-Cloud-Developer Dumps Full Questions with Free PDF Questions to Pass: https://www.testkingpass.com/Professional-Cloud-Developer-testking-dumps.html
Free Cloud Developer Professional-Cloud-Developer Official Cert Guide PDF Download: https://drive.google.com/open?id=1FinNFat0Um59ccjJ917js68q7BNfN8tz