Skip to main content

PROFESSIONAL-CLOUD-DEVELOPER Real Exam Questions

Professional Cloud Developer

405 questions available · Page 1 of 41

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

You are migrating a containerized application to Cloud Run. You plan to use Cloud Build to build your container image and push it to Artifact Registry, and you plan to use Cloud Deploy to deploy the image to production. You need to ensure that only secure images are deployed to production.

What should you do?

  1. A

    Use Cloud Armor in front of Cloud Run to protect the container image from threats.

  2. B

    Use Artifact Analysis to scan the image for vulnerabilities. Use Cloud Key Management Service to encrypt the image to be deployed to production.

  3. C

    Use Secret Manager to store the encrypted image. Deploy this image to production.

  4. D

    Use Binary Authorization to enforce a policy that only allows images that have been signed with a trusted key to be deployed to production.

Show answer and explanation

Correct answer: D

Explanation

References:
https://cloud.google.com/run/docs/deploying

Question 2 Single choice

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?

  1. A

    Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.

  2. B

    Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.

  3. C

    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.

  4. D

    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.

Show answer and explanation

Correct answer: A

Explanation

References:
https://cloud.google.com/appengine/docs/flexible/dotnet/mapping-custom-domains?hl=fa

Question 3 Single choice

Your application requires service accounts to be authenticated to GCP products via credentials stored on its host Compute Engine virtual machine instances. You want to distribute these credentials to the host instances as securely as possible.

What should you do?

  1. A

    Use HTTP signed URLs to securely provide access to the required resources.

  2. B

    Use the instance's service account Application Default Credentials to authenticate to the required resources.

  3. C

    Generate a P12 file from the GCP Console after the instance is deployed, and copy the credentials to the host instance before starting the application.

  4. D

    Commit the credential JSON file into your application's source repository, and have your CI/CD process package it with the software that is deployed to the instance.

Show answer and explanation

Correct answer: B

Explanation

References:
https://cloud.google.com/compute/docs/api/how-tos/authorization

Question 4 Single choice

You work for a company that operates an ecommerce website. You are developing a new integration that will manage all order fulfillment steps after orders are placed. You have created multiple Cloud Run functions to process each order.
You need to orchestrate the execution of the functions, using the output of each function to determine the flow. You want to minimize the latency of this process.

What should you do?

  1. A

    Use Workflows to call the functions, and use callbacks to handle the execution logic.

  2. B

    Use Workflows to call the functions, and use conditional jumps to handle the execution logic.

  3. C

    Use Cloud Composer to call the functions, and use an Apache Airflow HTTP operator to handle the execution logic.

  4. D

    Use Cloud Composer to call the functions, and use an Apache Airflow operator to handle the execution logic.

Show answer and explanation

Correct answer: B

Explanation

References:
https://cloud.google.com/binary-authorization/docs/making-attestations

Question 5 Multiple choice

You configured your Compute Engine instance group to scale automatically according to overall CPU usage. However, your application's response latency increases sharply before the cluster has finished adding up instances. You want to provide a more consistent latency experience for your end users by changing the configuration of the instance group autoscaler.

Which two configuration changes should you make? (Choose two.)

  1. A

    Add the label "AUTOSCALE" to the instance group template.

  2. B

    Decrease the cool-down period for instances added to the group.

  3. C

    Increase the target CPU usage for the instance group autoscaler.

  4. D

    Decrease the target CPU usage for the instance group autoscaler.

  5. E

    Remove the health-check for individual VMs in the instance group.

Show answer and explanation

Correct answers: B, D

Question 6 Single choice

You recently deployed an API to process hotel room requests. You need to enforce a quota on incoming API requests that allows no more than 1000 API search requests by each customer for every successful booking by that customer. You want the quota to reset every 24 hours. You want to prioritize the speed of the API over allowing exactly 1000 searches for every booking.

What should you do?

  1. A

    Configure an Apigee Quota policy with the Synchronous setting set to false. Reset the quota on every booking or when 24 hours have passed.

  2. B

    Store a query counter in a Firestore document that uses the customer ID as the key. Reset the counter to zero when a booking occurs or 24 hours have passed. Deny a search request if the user's counter is over 1000.

  3. C

    Store a query counter in memory that counts the number of search requests by each customer. Reset the counter to zero when a booking occurs or 24 hours have passed. Deny a search request if the user's counter is over 1000.

  4. D

    In BigQuery, store a table row for each search and booking request along with the customer ID and current time. Query the table for the number of prior search and booking requests made in the last 24 hours. Deny the search request if the number of prior search requests is 1000 times more than the number of prior booking requests.

Show answer and explanation

Correct answer: A

Explanation

An Apigee Quota policy with the Synchronous setting set to false efficiently enforces quotas with high performance, prioritizing API speed. It allows quota resets based on bookings or time, as required, even if the enforcement is not perfectly exact.

Question 7 Single choice

You work on an application that relies on Cloud Spanner as its main datastore. New application features have occasionally caused performance regressions. You want to prevent performance issues by running an automated performance test with Cloud Build for each commit made. If multiple commits are made at the same time, the tests might run concurrently.

What should you do?

  1. A

    Create a new project with a random name for every build. Load the required data. Delete the project after the test is run.

  2. B

    Create a new Cloud Spanner instance for every build. Load the required data. Delete the Cloud Spanner instance after the test is run.

  3. C

    Create a project with a Cloud Spanner instance and the required data. Adjust the Cloud Build build file to automatically restore the data to its previous state after the test is run.

  4. D

    Start the Cloud Spanner emulator locally. Load the required data. Shut down the emulator after the test is run.

Show answer and explanation

Correct answer: B

Question 8 Single choice

You have an analytics application that runs hundreds of queries on BigQuery every few minutes using BigQuery API. You want to find out how much time these queries take to execute.

What should you do?

  1. A

    Use Stackdriver Monitoring to plot slot usage.

  2. B

    Use Stackdriver Trace to plot API execution time.

  3. C

    Use Stackdriver Trace to plot query execution time.

  4. D

    Use Stackdriver Monitoring to plot query execution times.

Show answer and explanation

Correct answer: D

Question 9 Single choice

You are building an API that will be used by Android and iOS apps. The API must:

1. Support HTTPs
2. Minimize bandwidth cost
3. Integrate easily with mobile apps

Which API architecture should you use?

  1. A

    RESTful APIs

  2. B

    MQTT for APIs

  3. C

    gRPC-based APIs

  4. D

    SOAP-based APIs

Show answer and explanation

Correct answer: C

Question 10 Single choice

You are writing a Compute Engine hosted application in project A that needs to securely authenticate to a Cloud Pub/Sub topic in project B.

What should you do?

  1. A

    Configure the instances with a service account owned by project B
    Add the service account as a Cloud Pub/Sub publisher to project A

  2. B

    Configure the instances with a service account owned by project A Add the service account as a publisher on the topic.

  3. C

    Configure Application Default Credentials to use the private key of a service account owned by project
    Add the service account as a Cloud Pub/Sub publisher to project A

  4. D

    Configure Application Default Credentials to use the private key of a service account owned by project
    Add the service account as a publisher on the topic

Show answer and explanation

Correct answer: B