ExamGecko
Home / Google / Professional Cloud Developer / List of questions
Ask Question

Google Professional Cloud Developer Practice Test - Questions Answers, Page 7

List of questions

Question 61

Report
Export
Collapse

You are using Cloud Build to build and test application source code stored in Cloud Source Repositories. The build process requires a build tool not available in the Cloud Build environment.

What should you do?

Download the binary from the internet during the build process.
Download the binary from the internet during the build process.
Build a custom cloud builder image and reference the image in your build steps.
Build a custom cloud builder image and reference the image in your build steps.
Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
Suggested answer: B
asked 18/09/2024
HWANG SEON TAE
43 questions

Question 62

Report
Export
Collapse

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?

Install the Stackdriver Logging Agent and configure it to send the application logs.
Install the Stackdriver Logging Agent and configure it to send the application logs.
Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
Suggested answer: A
asked 18/09/2024
Alpesh Panchal
20 questions

Question 63

Report
Export
Collapse

Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 'Too Many Requests' status code.

How should you handle this error?

Add a cache-control header to the objects.
Add a cache-control header to the objects.
Request a quota increase from the GCP Console.
Request a quota increase from the GCP Console.
Retry the request with a truncated exponential backoff strategy.
Retry the request with a truncated exponential backoff strategy.
Change the storage class of the Cloud Storage bucket to Multi-regional.
Change the storage class of the Cloud Storage bucket to Multi-regional.
Suggested answer: C
asked 18/09/2024
Jagatnata Gurusinga
38 questions

Question 64

Report
Export
Collapse

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?

RESTful APIs
RESTful APIs
MQTT for APIs
MQTT for APIs
gRPC-based APIs
gRPC-based APIs
SOAP-based APIs
SOAP-based APIs
Suggested answer: A
asked 18/09/2024
Ronakkumar Shyani
47 questions

Question 65

Report
Export
Collapse

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?

Perform Read-Only transactions.
Perform Read-Only transactions.
Perform stale reads using single-read methods.
Perform stale reads using single-read methods.
Perform strong reads using single-read methods.
Perform strong reads using single-read methods.
Perform stale reads using read-write transactions.
Perform stale reads using read-write transactions.
Suggested answer: D
asked 18/09/2024
alvaro Vasconcelos
35 questions

Question 66

Report
Export
Collapse

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?

Google Professional Cloud Developer image Question 66 28744 09182024191318000000

Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
Suggested answer: D
asked 18/09/2024
Angela Rivalta
37 questions

Question 67

Report
Export
Collapse

You plan to make a simple HTML application available on the internet. This site keeps information about FAQs for your application. The application is static and contains images, HTML, CSS, and Javascript. You want to make this application available on the internet with as few steps as possible.

What should you do?

Upload your application to Cloud Storage.
Upload your application to Cloud Storage.
Upload your application to an App Engine environment.
Upload your application to an App Engine environment.
Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
Containerize your application first. Deploy this container to Google Kubernetes Engine (GKE) and assign an external IP address to the GKE pod hosting the application.
Containerize your application first. Deploy this container to Google Kubernetes Engine (GKE) and assign an external IP address to the GKE pod hosting the application.
Suggested answer: A
asked 18/09/2024
Mir Ali
42 questions

Question 68

Report
Export
Collapse

Your company has deployed a new API to App Engine Standard environment. During testing, the API is not behaving as expected. You want to monitor the application over time to diagnose the problem within the application code without redeploying the application.

Which tool should you use?

Stackdriver Trace
Stackdriver Trace
Stackdriver Monitoring
Stackdriver Monitoring
Stackdriver Debug Snapshots
Stackdriver Debug Snapshots
Stackdriver Debug Logpoints
Stackdriver Debug Logpoints
Suggested answer: B

Explanation:

1ba49e4780e6

asked 18/09/2024
Avishek Das
42 questions

Question 69

Report
Export
Collapse

Your company's development teams want to use Cloud Build in their projects to build and push Docker images to Container Registry. The operations team requires all Docker images to be published to a centralized, securely managed Docker registry that the operations team manages.

What should you do?

Use Container Registry to create a registry in each development team's project. Configure the Cloud Build build to push the Docker image to the project's registry. Grant the operations team access to each development team's registry.
Use Container Registry to create a registry in each development team's project. Configure the Cloud Build build to push the Docker image to the project's registry. Grant the operations team access to each development team's registry.
Create a separate project for the operations team that has Container Registry configured. Assign appropriate permissions to the Cloud Build service account in each developer team's project to allow access to the operation team's registry.
Create a separate project for the operations team that has Container Registry configured. Assign appropriate permissions to the Cloud Build service account in each developer team's project to allow access to the operation team's registry.
Create a separate project for the operations team that has Container Registry configured. Create a Service Account for each development team and assign the appropriate permissions to allow it access to the operations team's registry. Store the service account key file in the source code repository and use it to authenticate against the operations team's registry.
Create a separate project for the operations team that has Container Registry configured. Create a Service Account for each development team and assign the appropriate permissions to allow it access to the operations team's registry. Store the service account key file in the source code repository and use it to authenticate against the operations team's registry.
Create a separate project for the operations team that has the open source Docker Registry deployed on a Compute Engine virtual machine instance. Create a username and password for each development team. Store the username and password in the source code repository and use it to authenticate against the operations team's Docker registry.
Create a separate project for the operations team that has the open source Docker Registry deployed on a Compute Engine virtual machine instance. Create a username and password for each development team. Store the username and password in the source code repository and use it to authenticate against the operations team's Docker registry.
Suggested answer: A
asked 18/09/2024
Weisi Huang
39 questions

Question 70

Report
Export
Collapse

You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. Your application can scale horizontally, and each instance of your application needs to have a stable network identity and its own persistent disk.

Which GKE object should you use?

Deployment
Deployment
StatefulSet
StatefulSet
ReplicaSet
ReplicaSet
ReplicaController
ReplicaController
Suggested answer: B
asked 18/09/2024
David Clark
39 questions
Total 265 questions
Go to page: of 27
Search

Related questions