ExamGecko
Home Home / Google / Professional Cloud Developer

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
Download the binary from the internet during the build process.
A.
Download the binary from the internet during the build process.
Answers
B.
Build a custom cloud builder image and reference the image in your build steps.
B.
Build a custom cloud builder image and reference the image in your build steps.
Answers
C.
Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
C.
Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
Answers
D.
Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
D.
Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
Answers
Suggested answer: B

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.
Install the Stackdriver Logging Agent and configure it to send the application logs.
A.
Install the Stackdriver Logging Agent and configure it to send the application logs.
Answers
B.
Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
B.
Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
Answers
C.
Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
C.
Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
Answers
D.
Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
D.
Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
Answers
Suggested answer: A

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?

A.
Add a cache-control header to the objects.
A.
Add a cache-control header to the objects.
Answers
B.
Request a quota increase from the GCP Console.
B.
Request a quota increase from the GCP Console.
Answers
C.
Retry the request with a truncated exponential backoff strategy.
C.
Retry the request with a truncated exponential backoff strategy.
Answers
D.
Change the storage class of the Cloud Storage bucket to Multi-regional.
D.
Change the storage class of the Cloud Storage bucket to Multi-regional.
Answers
Suggested answer: C

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.
RESTful APIs
A.
RESTful APIs
Answers
B.
MQTT for APIs
B.
MQTT for APIs
Answers
C.
gRPC-based APIs
C.
gRPC-based APIs
Answers
D.
SOAP-based APIs
D.
SOAP-based APIs
Answers
Suggested answer: A

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 Read-Only transactions.
A.
Perform Read-Only transactions.
Answers
B.
Perform stale reads using single-read methods.
B.
Perform stale reads using single-read methods.
Answers
C.
Perform strong reads using single-read methods.
C.
Perform strong reads using single-read methods.
Answers
D.
Perform stale reads using read-write transactions.
D.
Perform stale reads using read-write transactions.
Answers
Suggested answer: D

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 RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
A.
Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
Answers
B.
Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
B.
Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
Answers
C.
Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
C.
Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
Answers
D.
Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
D.
Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
Answers
Suggested answer: D

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?

A.
Upload your application to Cloud Storage.
A.
Upload your application to Cloud Storage.
Answers
B.
Upload your application to an App Engine environment.
B.
Upload your application to an App Engine environment.
Answers
C.
Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
C.
Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
Answers
D.
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.
D.
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.
Answers
Suggested answer: A

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?

A.
Stackdriver Trace
A.
Stackdriver Trace
Answers
B.
Stackdriver Monitoring
B.
Stackdriver Monitoring
Answers
C.
Stackdriver Debug Snapshots
C.
Stackdriver Debug Snapshots
Answers
D.
Stackdriver Debug Logpoints
D.
Stackdriver Debug Logpoints
Answers
Suggested answer: B

Explanation:

1ba49e4780e6

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?

A.
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.
A.
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.
Answers
B.
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.
B.
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.
Answers
C.
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.
C.
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.
Answers
D.
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.
D.
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.
Answers
Suggested answer: A

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?

A.
Deployment
A.
Deployment
Answers
B.
StatefulSet
B.
StatefulSet
Answers
C.
ReplicaSet
C.
ReplicaSet
Answers
D.
ReplicaController
D.
ReplicaController
Answers
Suggested answer: B
Total 265 questions
Go to page: of 27