Free Professional Cloud Developer Exam Braindumps (page: 35)

Page 35 of 82

You recently developed a new service on Cloud Run. The new service authenticates using a custom service and then writes transactional information to a Cloud
Spanner database. You need to verify that your application can support up to 5,000 read and 1,000 write transactions per second while identifying any bottlenecks that occur. Your test infrastructure must be able to autoscale.
What should you do?

  1. Build a test harness to generate requests and deploy it to Cloud Run. Analyze the VPC Flow Logs using Cloud Logging.
  2. Create a Google Kubernetes Engine cluster running the Locust or JMeter images to dynamically generate load tests. Analyze the results using Cloud Trace.
  3. Create a Cloud Task to generate a test load. Use Cloud Scheduler to run 60,000 Cloud Task transactions per minute for 10 minutes. Analyze the results using Cloud Monitoring.
  4. Create a Compute Engine instance that uses a LAMP stack image from the Marketplace, and use Apache Bench to generate load tests against the service. Analyze the results using Cloud Trace.

Answer(s): B



You are using Cloud Build for your CI/CD pipeline to complete several tasks, including copying certain files to Compute Engine virtual machines. Your pipeline requires a flat file that is generated in one builder in the pipeline to be accessible by subsequent builders in the same pipeline. How should you store the file so that all the builders in the pipeline can access it?

  1. Store and retrieve the file contents using Compute Engine instance metadata.
  2. Output the file contents to a file in /workspace. Read from the same /workspace file in the subsequent build step.
  3. Use gsutil to output the file contents to a Cloud Storage object. Read from the same object in the subsequent build step.
  4. Add a build argument that runs an HTTP POST via curl to a separate web server to persist the value in one builder. Use an HTTP GET via curl from the subsequent build step to read the value.

Answer(s): B



Your company’s development teams want to use various open source operating systems in their Docker builds.
When images are created in published containers in your company’s environment, you need to scan them for Common Vulnerabilities and Exposures (CVEs). The scanning process must not impact software development agility. You want to use managed services where possible.
What should you do?

  1. Enable the Vulnerability scanning setting in the Container Registry.
  2. Create a Cloud Function that is triggered on a code check-in and scan the code for CVEs.
  3. Disallow the use of non-commercially supported base images in your development environment.
  4. Use Cloud Monitoring to review the output of Cloud Build to determine whether a vulnerable version has been used.

Answer(s): A



You are configuring a continuous integration pipeline using Cloud Build to automate the deployment of new container images to Google Kubernetes Engine (GKE). The pipeline builds the application from its source code, runs unit and integration tests in separate steps, and pushes the container to Container Registry. The application runs on a Python web server.

The Dockerfile is as follows:

FROM python:3.7-alpine
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
CMD [ "gunicorn", "-w 4", "main:app" ]

You notice that Cloud Build runs are taking longer than expected to complete. You want to decrease the build time.
What should you do? (Choose two.)

  1. Select a virtual machine (VM) size with higher CPU for Cloud Build runs.
  2. Deploy a Container Registry on a Compute Engine VM in a VPC, and use it to store the final images.
  3. Cache the Docker image for subsequent builds using the -- cache-from argument in your build config file.
  4. Change the base image in the Dockerfile to ubuntu:latest, and install Python 3.7 using a package manager utility.
  5. Store application source code on Cloud Storage, and configure the pipeline to use gsutil to download the source code.

Answer(s): A,C



Page 35 of 82



Post your Comments and Discuss Google Professional Cloud Developer exam with other Community members:

DaveP commented on November 19, 2023
Some of these answers are wrong according to the Google sample questions.
UNITED STATES
upvote

devansh commented on June 21, 2023
does anyone recently took the exam , i have it in 2 days , are these dumps only enough for the prep?
Anonymous
upvote