Dec-2024 New Version Professional-Cloud-Developer Certificate & Helpful Exam Dumps is Online
Professional-Cloud-Developer Free Certification Exam Material with 265 Q&As
NEW QUESTION # 37
You work for an organization that manages an ecommerce site. Your application is deployed behind a global HTTP(S) load balancer. You need to test a new product recommendation algorithm. You plan to use A/B testing to determine the new algorithm's effect on sales in a randomized way. How should you test this feature?
- A. Split traffic between versions using weights.
- B. Mirror traffic to the new version of your application.
- C. Enable the new recommendation feature flag on a single instance.
- D. Use HTTP header-based routing.
Answer: B
Explanation:
https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting Deploying a new version of an existing production service generally incurs some risk. Even if your tests pass in staging, you probably don't want to subject 100% of your users to the new version immediately. With traffic management, you can define percentage-based traffic splits across multiple backend services.
For example, you can send 95% of the traffic to the previous version of your service and 5% to the new version of your service. After you've validated that the new production version works as expected, you can gradually shift the percentages until 100% of the traffic reaches the new version of your service. Traffic splitting is typically used for deploying new versions, A/B testing, service migration, and similar processes.
https://cloud.google.com/traffic-director/docs/advanced-traffic-management#weight-based_traffic_splitting_for_safer_deployments
https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#split_the_traffic_2
https://cloud.google.com/load-balancing/docs/https/traffic-management-global#traffic_actions_weight-based_traffic_splitting
NEW QUESTION # 38
You are designing a schema for a table that will be moved from MySQL to Cloud Bigtable. The MySQL table is as follows:
How should you design a row key for Cloud Bigtable for this table?
- A. Set Account_id as a key.
- B. Set Event_timestamp as a key.
- C. Set Account_id_Event_timestamp as a key.
- D. Set Event_timestamp_Account_id as a key.
Answer: D
NEW QUESTION # 39
You are in the final stage of migrating an on-premises data center to Google Cloud. You are quickly approaching your deadline, and discover that a web API is running on a server slated for decommissioning. You need to recommend a solution to modernize this API while migrating to Google Cloud. The modernized web API must meet the following requirements:
* Autoscales during high traffic periods at the end of each month
* Written in Python 3.x
* Developers must be able to rapidly deploy new versions in response to frequent code changes You want to minimize cost, effort, and operational overhead of this migration. What should you do?
- A. Ask the development team to re-write the application to run as a Docker container on Google Kubernetes Engine.
- B. Modernize and deploy the code on App Engine standard environment.
- C. Modernize and deploy the code on App Engine flexible environment.
- D. Deploy the modernized application to an n1-standard-1 Compute Engine instance.
Answer: B
Explanation:
https://cloud.google.com/appengine/docs/standard
NEW QUESTION # 40
You have a web application that publishes messages to Pub/Sub. You plan to build new versions of the application locally and need to quickly test Pub/Sub integration tor each new build. How should you configure local testing?
- A. Install the Pub/Sub emulator using gcloud and start the emulator with a valid Google Project ID. When developing locally, configure your application to use the local emulator by exporting the fuhsub emulator Host variable
- B. Run the gclcud config set api_endpoint_overrides/pubsub https: / 'pubsubemulator.googleapi3.com.
coin/ command to change the Pub/Sub endpoint prior to starting the application - C. Install Cloud Code on the integrated development environment (IDE) Navigate to Cloud APIs, and enable Pub/Sub against a valid Google Project ID. When developing locally, configure your application to call pubsub.googleapis com
- D. In the Google Cloud console, navigate to the API Library and enable the Pub/Sub API When developing locally, configure your application to call pubsub.googleapis com
Answer: C
NEW QUESTION # 41
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 Service resource with type: LoadBalancer.
- C. Configure a GKE Ingress resource.
- D. Configure a GKE Ingress resource with type: LoadBalancer.
Answer: C
Explanation:
Reference:
https://cloud.google.com/kubernetes-engine/docs/concepts/ingress
NEW QUESTION # 42
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. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
- B. Install the Stackdriver agents on your Compute Engine instances.
- 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: B
Explanation:
Reference: https://cloud.google.com/monitoring/
NEW QUESTION # 43
Your company has a BigQuery data mart that provides analytics information to hundreds of employees. One user of wants to run jobs without interrupting important workloads. This user isn't concerned about the time it takes to run these jobs. You want to fulfill this request while minimizing cost to the company and the effort required on your part.
What should you do?
- A. Add the user as a job.user role in the existing project.
- B. Allow the user to run jobs when important workloads are not running.
- C. Create a separate project for the user to run jobs.
- D. Ask the user to run the jobs as batch jobs.
Answer: C
NEW QUESTION # 44
You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.
Which deployment strategy should you use?
- A. Canary deployment
- B. Rolling deployment
- C. Blue/green deployment
- D. Recreate deployment
Answer: C
Explanation:
Explanation/Reference: https://thenewstack.io/deployment-strategies/
NEW QUESTION # 45
You want to view the memory usage of your application deployed on Compute Engine. What should you do?
- A. Install the Stackdriver Client Library.
- B. Use the Google Cloud Platform Console.
- C. Install the Stackdriver Monitoring Agent.
- D. Use the Stackdriver Metrics Explorer.
Answer: D
NEW QUESTION # 46
You are planning to migrate a MySQL database to the managed Cloud SQL database for Google Cloud. You have Compute Engine virtual machine instances that will connect with this Cloud SQL instance. You do not want to whitelist IPs for the Compute Engine instances to be able to access Cloud SQL.
What should you do?
- A. Create a CloudSQL instance on one project. Create Compute engine instances in a different project.
Create a VPN between these two projects to allow internal access to CloudSQL. - B. Create a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
- C. Enable private IP for the Cloud SQL instance.
- D. Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
Answer: B
Explanation:
Explanation/Reference: https://cloud.google.com/sql/docs/mysql/connect-external-app
NEW QUESTION # 47
You recently migrated a monolithic application to Google Cloud by breaking it down into microservices. One of the microservices is deployed using Cloud Functions. As you modernize the application, you make a change to the API of the service that is backward-incompatible. You need to support both existing callers who use the original API and new callers who use the new API. What should you do?
- A. Leave the original Cloud Function as-is and deploy a second Cloud Function that includes only the changed API. Calls are automatically routed to the correct function.
- B. Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API. Use Cloud Endpoints to provide an API gateway that exposes a versioned API.
- C. Re-deploy the Cloud Function after making code changes to support the new API. Requests for both versions of the API are fulfilled based on a version identifier included in the call.
- D. Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API. Use a load balancer to distribute calls between the versions.
Answer: C
NEW QUESTION # 48
You are in the final stage of migrating an on-premises data center to Google Cloud. You are quickly approaching your deadline, and discover that a web API is running on a server slated for decommissioning.
You need to recommend a solution to modernize this API while migrating to Google Cloud. The modernized web API must meet the following requirements:
* Autoscales during high traffic periods at the end of each month
* Written in Python 3.x
* Developers must be able to rapidly deploy new versions in response to frequent code changes You want to minimize cost, effort, and operational overhead of this migration. What should you do?
- A. Ask the development team to re-write the application to run as a Docker container on Google Kubernetes Engine.
- B. Modernize and deploy the code on App Engine standard environment.
- C. Modernize and deploy the code on App Engine flexible environment.
- D. Deploy the modernized application to an n1-standard-1 Compute Engine instance.
Answer: B
Explanation:
Explanation
https://cloud.google.com/appengine/docs/standard
NEW QUESTION # 49
The new version of your containerized application has been tested and is ready to deploy to production on Google Kubernetes Engine. You were not able to fully load-test the new version in pre-production environments, and you need to make sure that it does not have performance problems once deployed. Your deployment must be automated. What should you do?
- A. Deploy the application via a continuous delivery pipeline using canary deployments. Use Cloud Monitoring to look for performance issues. and ramp up traffic as the metrics support it.
- B. Use Cloud Load Balancing to slowly ramp up traffic between versions. Use Cloud Monitoring to look for performance issues.
- C. Deploy the application using kubectl and set the spec.updateStrategv.type to RollingUpdate. Use Cloud Monitoring to look for performance issues, and run the kubectl rollback command if there are any issues.
- D. Deploy the application via a continuous delivery pipeline using blue/green deployments. Use Cloud Monitoring to look for performance issues, and launch fully when the metrics support it.
Answer: D
Explanation:
https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#perform_a_bluegreen_deployment
NEW QUESTION # 50
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 wants to improve the resilience of their MySQL deployment, while also meeting their business and technical requirements.
Which configuration should they choose?
- A. Replace the current single instance MySQL instance with Cloud SQL, and configure high availability.
- B. Use the current single instance MySQL on Compute Engine and several read-only MySQL servers on Compute Engine.
- C. Use the current single instance MySQL on Compute Engine, and replicate the data to Cloud SQL in an external master configuration.
- D. Replace the current single instance MySQL instance with Cloud SQL, and Google provides redundancy without further configuration.
Answer: C
NEW QUESTION # 51
Your development team is using Cloud Build to promote a Node.js application built on App Engine from your staging environment to production. The application relies on several directories of photos stored in a Cloud Storage bucket named webphotos-staging in the staging environment. After the promotion, these photos must be available in a Cloud Storage bucket named webphotos-prod in the production environment. You want to automate the process where possible. What should you do?
A)
Manually copy the photos to webphotos-prod.
B)
Add a startup script in the application's app.yami file to move the photos from webphotos-staging to webphotos-prod.
C)
Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:
D)
Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: C
Explanation:
https://cloud.google.com/storage/docs/gsutil/commands/cp
NEW QUESTION # 52
Your team develops services that run on Google Kubernetes Engine. Your team's code is stored in Cloud Source Repositories. You need to quickly identify bugs in the code before it is deployed to production. You want to invest in automation to improve developer feedback and make the process as efficient as possible. What should you do?
- A. Use Spinnaker to automate deploying container images to the production environment.
- B. Use Cloud Build to automate building container images from code based on Git tags.
- C. Use Cloud Build to automate building container images from code based on forked versions.
- D. Use Spinnaker to automate building container images from code based on Git tags.
Answer: D
NEW QUESTION # 53
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. Verify domain ownership with Webmaster Central. 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. Define an A record pointing to the single global App Engine IP address.
- D. 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.
Answer: A
Explanation:
Reference: https://cloud.google.com/appengine/docs/flexible/dotnet/mapping-custom-domains?hl=fa
NEW QUESTION # 54
You are creating a Google Kubernetes Engine (GKE) cluster and run this command:
The command fails with the error:
You want to resolve the issue. What should you do?
- A. Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
- B. Request additional GKE quota is the GCP Console.
- C. Open a support case to request additional GKE quotA.
- D. Request additional Compute Engine quota in the GCP Console.
Answer: B
NEW QUESTION # 55
Your company has created an application that uploads a report to a Cloud Storage bucket. When the report is uploaded to the bucket, you want to publish a message to a Cloud Pub/Sub topic. You want to implement a solution that will take a small amount to effort to implement.
What should you do?
- A. Configure the Cloud Storage bucket to trigger Cloud Pub/Sub notifications when objects are modified.
- B. Create an App Engine application to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
- C. Create a Cloud Function that is triggered by the Cloud Storage bucket. In the Cloud Function, publish a message to the Cloud Pub/Sub topic.
- D. Create an application deployed in a Google Kubernetes Engine cluster to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
Answer: C
Explanation:
Explanation/Reference: https://cloud.google.com/storage/docs/pubsub-notifications
NEW QUESTION # 56
Your company has a data warehouse that keeps your application information in BigQuery. The BigQuery data warehouse keeps 2 PBs of user data. Recently, your company expanded your user base to include EU users and needs to comply with these requirements:
Your company must be able to delete all user account information upon user request.
All EU user data must be stored in a single region specifically for EU users.
Which two actions should you take? (Choose two.)
- A. Use BigQuery federated queries to query data from Cloud Storage.
- B. Use DML statements in BigQuery to update/delete user records based on their requests.
- C. Create a dataset in the EU region that will keep information about EU users only.
- D. Create a Cloud Storage bucket in the EU region to store information for EU users only.
- E. Re-upload your data using to a Cloud Dataflow pipeline by filtering your user records out.
Answer: B,D
Explanation:
Reference: https://cloud.google.com/solutions/bigquery-data-warehouse
NEW QUESTION # 57
......
Get The Important Preparation Guide With Professional-Cloud-Developer Dumps: https://pdftorrent.dumpexams.com/Professional-Cloud-Developer-vce-torrent.html