Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Pass the Google Certified Professional - Cloud Developer Professional-Cloud-Developer Questions and answers with ValidTests

Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions
Questions # 1:

Your team detected a spike of errors in an application running on Cloud Run in your production project. The application is configured to read messages from Pub/Sub topic A, process the messages, and write the messages to topic B. You want to conduct tests to identify the cause of the errors. You can use a set of mock messages for testing. What should you do?

Options:

A.

Deploy the Pub/Sub and Cloud Run emulators on your local machine. Deploy the application locally, and change the logging level in the application to DEBUG or INFO. Write mock messages to topic A, and then analyze the logs.

B.

Use the gcloud CLI to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.

C.

Deploy the Pub/Sub emulator on your local machine. Point the production application to your local Pub/Sub topics. Write mock messages to topic A, and then analyze the logs.

D.

Use the Google Cloud console to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.

Expert Solution
Questions # 2:

You need to load-test a set of REST API endpoints that are deployed to Cloud Run. The API responds to HTTP POST requests Your load tests must meet the following requirements:

• Load is initiated from multiple parallel threads

• User traffic to the API originates from multiple source IP addresses.

• Load can be scaled up using additional test instances

You want to follow Google-recommended best practices How should you configure the load testing'?

Options:

A.

Create an image that has cURL installed and configure cURLto run a test plan Deploy the image in a

managed instance group, and run one instance of the image for each VM.

B.

Create an image that has cURL installed and configure cURL to run a test plan Deploy the image in an

unmanaged instance group, and run one instance of the image for each VM.

C.

Deploy a distributed load testing framework on a private Google Kubernetes Engine Cluster Deploy

additional Pods as needed to initiate more traffic and support the number of concurrent users.

D.

Download the container image of a distributed load testing framework on Cloud Shell Sequentially start

several instances of the container on Cloud Shell to increase the load on the API.

Expert Solution
Questions # 3:

Your team is creating a serverless web application on Cloud Run. The application needs to access images stored in a private Cloud Storage bucket. You want to give the application Identity and Access Management (IAM) permission to access the images in the bucket, while also securing the services using Google-recommended best practices What should you do?

Options:

A.

Enforce signed URLs for the desired bucket. Grant the Storage Object Viewer IAM role on the bucket to the Compute Engine default service account.

B.

Enforce public access prevention for the desired bucket. Grant the Storage Object Viewer IAM role on the bucket to the Compute Engine

default service account.

C.

Enforce signed URLs for the desired bucket Create and update the Cloud Run service to use a user -managed service account. Grant the Storage Object Viewer IAM role on the bucket to the service account

D.

Enforce public access prevention for the desired bucket.

Create and update the Cloud Run service to use a user-managed service account. Grant the Storage Object Viewer IAM role on the bucket to the service account.

Expert Solution
Questions # 4:

You want to view the memory usage of your application deployed on Compute Engine. What should you do?

Options:

A.

Install the Stackdriver Client Library.

B.

Install the Stackdriver Monitoring Agent.

C.

Use the Stackdriver Metrics Explorer.

D.

Use the Google Cloud Platform Console.

Expert Solution
Questions # 5:

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?

Options:

A.

Deploy your application on Cloud Run. Use traffic splitting to direct a subset of user traffic to the new version based on the revision tag.

B.

Deploy your application on Google Kubernetes Engine with Anthos Service Mesh. Use traffic splitting to direct a subset of user traffic to the new version based on the user-agent header.

C.

Deploy your application on App Engine. Use traffic splitting to direct a subset of user traffic to the new version based on the IP address.

D.

Deploy your application on Compute Engine. Use Traffic Director to direct a subset of user traffic to the new version based on predefined weights.

Expert Solution
Questions # 6:

You are building a new API. You want to minimize the cost of storing and reduce the latency of serving

images.

Which architecture should you use?

Options:

A.

App Engine backed by Cloud Storage

B.

Compute Engine backed by Persistent Disk

C.

Transfer Appliance backed by Cloud Filestore

D.

Cloud Content Delivery Network (CDN) backed by Cloud Storage

Expert Solution
Questions # 7:

You have an on-premises application that authenticates to the Cloud Storage API using a user-managed service account with a user-managed key. The application connects to Cloud Storage using Private Google Access over a Dedicated Interconnect link. You discover that requests from the application to access objects in the Cloud Storage bucket are failing with a 403 Permission Denied error code. What is the likely cause of this issue?

Options:

A.

The folder structure inside the bucket and object paths have changed.

B.

The permissions of the service account’s predefined role have changed.

C.

The service account key has been rotated but not updated on the application server.

D.

The Interconnect link from the on-premises data center to Google Cloud is experiencing a temporary outage.

Expert Solution
Questions # 8:

You are designing a chat room application that will host multiple rooms and retain the message history for each room. You have selected Firestore as your database. How should you represent the data in Firestore?

Options:

A.

 Create a collection for the rooms. For each room, create a document that lists the contents of the messages

B.

 Create a collection for the rooms. For each room, create a collection that contains a document for each message

C.

 Create a collection for the rooms. For each room, create a document that contains a collection for documents, each of which contains a message.

D.

 Create a collection for the rooms, and create a document for each room. Create a separate collection for messages, with one document per message. Each room’s document contains a list of references to the messages.

Expert Solution
Questions # 9:

You are responsible for deploying a new API. That API will have three different URL paths:

• https://yourcompany.com/students

• https://yourcompany.com/teachers

• https://yourcompany.com/classes

You need to configure each API URL path to invoke a different function in your code. What should you do?

Options:

A.

Create one Cloud Function as a backend service exposed using an HTTPS load balancer.

B.

Create three Cloud Functions exposed directly.

C.

Create one Cloud Function exposed directly.

D.

Create three Cloud Functions as three backend services exposed using an HTTPS load balancer.

Expert Solution
Questions # 10:

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?

Options:

A.

RESTful APIs

B.

MQTT for APIs

C.

gRPC-based APIs

D.

SOAP-based APIs

Expert Solution
Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions