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

Exam Professional-Cloud-Developer All Questions
Exam Professional-Cloud-Developer All Questions

View all questions & answers for the Professional-Cloud-Developer exam

Google Cloud Developer Professional-Cloud-Developer Question # 13 Topic 2 Discussion

Professional-Cloud-Developer Exam Topic 2 Question 13 Discussion:
Question #: 13
Topic #: 2

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.)


A.

Select a virtual machine (VM) size with higher CPU for Cloud Build runs.


B.

Deploy a Container Registry on a Compute Engine VM in a VPC, and use it to store the final images.


C.

Cache the Docker image for subsequent builds using the -- cache-from argument in your build config file.


D.

Change the base image in the Dockerfile to ubuntu:latest, and install Python 3.7 using a package manager utility.


E.

Store application source code on Cloud Storage, and configure the pipeline to use gsutil to download the source code.


Get Premium Professional-Cloud-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.