PCD · topic practice

Deploying applications practice questions

Practise Google Professional Cloud Developer Deploying applications practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Deploying applications

What the exam tests

What to know about Deploying applications

Deploying applications questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Deploying applications exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Deploying applications questions

20 questions · select your answer, then reveal the explanation

Question 1easymultiple choice
Read the full NAT/PAT explanation →

A team deploys a containerized web application on Google Kubernetes Engine (GKE) using a Deployment. They need to expose the application externally via a stable IP address and enable SSL termination. Which resource should they use?

During a deployment to App Engine flexible environment, the new version fails to start and the logs show 'Container failed to start: context deadline exceeded'. The previous version remains serving traffic. What is the most likely cause?

A company has a multi-region Cloud Run service with traffic splitting between revisions. They notice that a newly rolled-out revision is receiving 0% of traffic even though they set traffic to 100% via the console. The revision shows 'Ready: Yes'. What is the most likely cause?

A DevOps engineer is automating deployments to Compute Engine using a CI/CD pipeline. They want to minimize downtime and ensure that if a new VM fails health checks, the old VM continues serving. Which deployment strategy should they implement?

A developer deploys a Cloud Function (2nd gen) that processes messages from Pub/Sub. The function sometimes fails with 'Deadline Exceeded' for messages that take longer than 9 minutes. What should the developer do to handle these long-running messages without losing them?

Which TWO statements about deploying applications on Google Kubernetes Engine (GKE) are correct?

Which THREE practices should be followed when deploying a containerized application to Cloud Run?

A developer runs the above command and receives the error. What is the most likely cause?

Network Topology
gcloud builds submittag gcr.io/my-project/my-image:latestRefer to the exhibit.```...

A developer deploys the above app.yaml to App Engine standard environment. The deployment succeeds, but the application fails to connect to the database. What is the most likely reason?

Exhibit

Refer to the exhibit.
```
# app.yaml for App Engine standard environment
runtime: python39
entrypoint: gunicorn -b :$PORT main:app
env_variables:
  DATABASE_URL: "postgresql://user:pass@localhost/mydb"
```

A company wants to deploy a containerized application on Google Kubernetes Engine (GKE) with zero downtime during updates. The application is stateless and runs on a Deployment with 5 replicas. Which deployment strategy should be used?

A developer is deploying a Cloud Run service that needs to access a Cloud SQL instance. The service is deployed with the --no-allow-unauthenticated flag. What is the recommended way to grant the service access to the database?

Question 12hardmultiple choice
Read the full NAT/PAT explanation →

A company is deploying a microservices architecture on GKE. They need to expose a set of related microservices under a single external IP address with path-based routing. Which Kubernetes resource should they use?

Question 13mediummultiple choice
Study the full Python automation breakdown →

A developer needs to deploy a Python application to App Engine flexible environment. The application requires a specific version of a system package (libssl-dev) that is not included in the default runtime image. How should the developer install this package?

Which TWO of the following are best practices when deploying applications on Google Kubernetes Engine (GKE)?

A developer runs the above command to build and push a container image to Container Registry, but receives the error shown. The developer has the 'Cloud Build Editor' role on the project. What is the most likely cause of the error?

Network Topology
$ gcloud builds submittag gcr.io/my-project/my-image .Refer to the exhibit.```

You are deploying a critical application on Compute Engine. The application requires high availability and must survive a zonal failure. You have created a managed instance group (MIG) with autoscaling across two zones. The application state is stored in a Cloud SQL instance with a read replica in another region. The application also uses a shared static IP address for client access. During a test, you simulate a failure of zone us-central1-a. You observe that the MIG automatically creates new instances in the remaining zone, but the application becomes unreachable for several minutes. What is the most likely cause of the downtime?

Your company is deploying a web application on Cloud Run using a continuous deployment pipeline from Cloud Build. The application is built as a Docker container and pushed to Container Registry. The Cloud Run service is configured with the '--no-allow-unauthenticated' flag. You have set up Cloud Build triggers to build and deploy on commits to the main branch. The deployment works correctly for the first few commits, but after adding a new environment variable in the Cloud Build configuration file (cloudbuild.yaml), the deployment fails with an error that the Cloud Run service cannot be updated because the new revision fails health checks. The application code has not changed. What is the most likely cause?

Question 18mediummultiple choice
Read the full NAT/PAT explanation →

A company is deploying a containerized application on Google Kubernetes Engine (GKE). The development team has built a Docker image and pushed it to Artifact Registry. They want to automate the deployment process so that whenever a new image is pushed to the registry, the application is automatically updated in the GKE cluster. Which combination of services should they use to achieve this?

A team is deploying a microservice application on Google Kubernetes Engine (GKE). They want to ensure high availability and minimize downtime during rolling updates. Which TWO actions should they take? (Choose two.)

Refer to the exhibit. A developer is deploying a container to Cloud Run and receives the error shown. What is the most likely cause?

Exhibit

Refer to the exhibit.
```
ERROR: (gcloud.beta.run.deploy) The user-provided container failed to start and listen on the port defined by the PORT environment variable (8080). Logs for this revision might contain more information.

Logs:
2024-03-15 10:23:45.123456  Container called exit(1).
2024-03-15 10:23:45.123789  Fatal error: Unable to bind to port 8080: Permission denied
```

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Deploying applications sessions

Start a Deploying applications only practice session

Every question in these sessions is drawn from the Deploying applications domain — nothing else.

Related practice questions

Related PCD topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the PCD exam test about Deploying applications?
Deploying applications questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Deploying applications questions in a focused session?
Yes — the session launcher on this page draws every question from the Deploying applications domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other PCD topics?
Use the topic links above to move to related areas, or go back to the PCD question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the PCD exam covers. They are not copied from any real exam or dump site.