Practice Deploying Questions Now
Start a timed practice session focusing on Deploying Applications topics from the PCD question bank.
Start PCD Practice Quiz →PCD Deploying Question Bank (20 Questions)
Browse all 20 practice questions covering Deploying Applications for the PCD certification exam. Each question includes the full answer and a detailed explanation to help you understand the concepts.
- Question 1Deploying Applications
How do you implement a canary deployment for a GKE service?
Show Answer & Explanation
Correct Answer: BExplanation:GKE canary with Istio: two Deployments (stable + canary). VirtualService routes traffic by weight (95/5 → 90/10 → 50/50 → 0/100). Monitor: Cloud Monitoring custom dashboards per version. Automated: Flagger observes metrics, promotes automatically. Cloud Deploy also supports canary for Cloud Run and GKE with built-in metrics analysis.
- Question 2Deploying Applications
How do you implement a blue-green deployment on Cloud Run?
Show Answer & Explanation
Correct Answer: BExplanation:Blue-green on Cloud Run: 1) Deploy green: gcloud run deploy --no-traffic (creates revision with 0% traffic). 2) Test green: gcloud run services update-traffic --to-tags=green=green-revision (tagged URL for testing). 3) Switch: gcloud run services update-traffic --to-revisions=green-revision=100. 4) Rollback: switch traffic back to blue revision instantly.
- Question 3Deploying Applications
How do you deploy a new version with zero downtime in GKE?
Show Answer & Explanation
Correct Answer: BExplanation:Zero-downtime GKE: Deployment strategy: RollingUpdate (maxSurge: 1, maxUnavailable: 0 — always have capacity). Readiness probe: new pod only receives traffic when ready. Liveness probe: restart unhealthy pods. PDB: minAvailable ensures minimum pods during updates. PreStop hook: graceful shutdown (finish in-flight requests).
- Question 4Deploying Applications
How do you implement blue-green deployments on Cloud Run?
Show Answer & Explanation
Correct Answer: BExplanation:Cloud Run blue-green: deploy new revision (auto: no-traffic if --no-traffic flag). Tag: gcloud run services update-traffic --to-tags=green=100. Test: https://green---service-xxx.run.app. Promote: gcloud run services update-traffic --to-latest. Rollback: route traffic to previous revision. Instant: no downtime, no DNS propagation. Also: gradual rollout (10% → 50% → 100%).
- Question 5Deploying Applications
What is a canary deployment on GKE?
Show Answer & Explanation
Correct Answer: BExplanation:Canary on GKE: deploy new version with fewer replicas. Use: Istio traffic splitting (VirtualService weight), Gateway API HTTPRoute, or Cloud Deploy canary strategy. Validate: error rates, latency, business metrics. Gradually increase traffic percentage. Rollback if issues detected.
- Question 6Deploying Applications
You want to gradually roll out a new version of a Cloud Run service. How do you do this?
Show Answer & Explanation
Correct Answer: BExplanation:Cloud Run traffic splitting: gcloud run services update-traffic SERVICE --to-revisions=NEW=5,OLD=95. Monitor: error rate, latency. If healthy, increase: 25%, 50%, 100%. Rollback: route 100% back to old revision. Also: tags for preview URLs (test specific revisions with tagged URLs before routing traffic). Zero-downtime, gradual rollout.
- Question 7Designing Scalable, Available, and Reliable Cloud-Native Applications
You need to deploy a stateful application (e.g., a database) on GKE. What Kubernetes resource should you use?
Show Answer & Explanation
Correct Answer: BExplanation:StatefulSet: stable pod names (pod-0, pod-1), ordered creation/deletion, persistent volume claims per pod (data survives pod restart). Use for: databases, Kafka, ZooKeeper, Elasticsearch. vs Deployment: stateless, random pod names, shared storage. StatefulSet + Persistent Disk = durable stateful workload on GKE.
- Question 8Building and Testing Applications
How should you manage dependencies for a Python application deployed to Cloud Run?
Show Answer & Explanation
Correct Answer: BExplanation:Dependency management: Pin versions (package==1.2.3 in requirements.txt) for reproducible builds. Dockerfile: COPY requirements.txt . → RUN pip install (cached layer) → COPY . . (code changes don't rebuild deps). Vulnerability scanning: Artifact Registry on-push scanning. Use pip-audit or safety for proactive scanning in CI.
- Question 9Designing Scalable, Available, and Reliable Cloud-Native Applications
How should you version a REST API deployed on Cloud Run?
Show Answer & Explanation
Correct Answer: BExplanation:API versioning: URL path (/v1/, /v2/) is most common and explicit. Cloud Run: deploy new revision with v2 endpoints, use traffic tags to test (my-service-v2-xxx.run.app). Migrate traffic gradually. Backward compatibility: v1 continues working. Deprecation: communicate timeline, return deprecation headers, eventually sunset. Apigee for advanced versioning at scale.
- Question 10Deploying Applications
A newly deployed Cloud Run revision is causing 500 errors. How do you quickly rollback?
Show Answer & Explanation
Correct Answer: BExplanation:Cloud Run instant rollback: gcloud run services update-traffic SERVICE --to-revisions=GOOD_REVISION=100. Takes effect immediately (seconds). Previous revisions are retained. Also: gcloud run services update-traffic --to-latest (routes to latest stable). GKE: kubectl rollout undo deployment/NAME. Always verify rollback worked: check error rate, latency metrics.
- Question 11Building and Testing Applications
What are Cloud Native Buildpacks and how do they simplify Cloud Run deployment?
Show Answer & Explanation
Correct Answer: BExplanation:Google Cloud Buildpacks: detect language (Python, Java, Go, Node.js, .NET, Ruby), install dependencies, compile if needed, create optimized OCI container image. gcloud run deploy --source=. (no Dockerfile needed). Benefits: best practices built-in (security patches, layer optimization), consistent builds, no Dockerfile maintenance. Customizable with project.toml.
- Question 12Designing Scalable, Available, and Reliable Cloud-Native Applications
How do you design a Cloud Run service for multi-region deployment with automatic failover?
Show Answer & Explanation
Correct Answer: BExplanation:Multi-region Cloud Run: deploy service to us-central1 + europe-west1 + asia-northeast1. Global HTTPS LB with serverless NEGs (one per region). Health checks: auto-route to healthy regions. Database: Cloud Spanner (global strong consistency) or Firestore (multi-region). Cloud CDN for static content. Automatic failover — no manual intervention on region outage.
- Question 13Deploying Applications
How does Cloud Run handle scaling for a newly deployed revision?
Show Answer & Explanation
Correct Answer: BExplanation:Cloud Run automatically scales container instances from zero to handle incoming requests, scaling up as traffic increases and back to zero when idle, with configurable min/max instances.
- Question 14Deploying Applications
What is the purpose of Cloud Run traffic splitting?
Show Answer & Explanation
Correct Answer: BExplanation:Traffic splitting in Cloud Run routes a configurable percentage of requests to different revisions, enabling gradual rollouts and A/B testing without infrastructure management.
- Question 15Deploying Applications
What deployment strategies does Cloud Run support?
Show Answer & Explanation
Correct Answer: BExplanation:Cloud Run revisions: deploy new revision, split traffic (e.g., 10% new, 90% old), monitor, then shift 100%. Instant rollback by routing traffic to previous revision. Supports tag-based routing for preview URLs.
- Question 16Building and Testing Applications
How should you implement chaos engineering for your Cloud Run and GKE services?
Show Answer & Explanation
Correct Answer: BExplanation:Chaos engineering: controlled experiments to verify resilience. GKE: Chaos Mesh or Litmus (inject pod failures, network delays, CPU stress). Service mesh: Istio fault injection (add latency, return errors for a percentage of requests). Verify: circuit breakers trip, retries work, fallbacks activate, alerts fire. Start in staging, graduate to production with blast radius limits.
- Question 17Building and Testing Applications
Where should container images be stored for GKE deployments within Google Cloud?
Show Answer & Explanation
Correct Answer: BExplanation:Artifact Registry is the recommended container registry for GKE, providing regional storage, vulnerability scanning, IAM-based access control, and integration with Cloud Build and GKE.
- Question 18Deploying Applications
What is the recommended tool for deploying applications to GKE with progressive delivery?
Show Answer & Explanation
Correct Answer: BExplanation:Cloud Deploy provides managed, opinionated continuous delivery to GKE and Cloud Run with features like delivery pipelines, approval gates, rollback, and canary deployments.
- Question 19Deploying Applications
What are deployment strategies in GKE?
Show Answer & Explanation
Correct Answer: BExplanation:Rolling update: default K8s, gradual pod replacement (maxSurge, maxUnavailable). Blue-Green: two deployments, switch Service selector. Canary: split traffic via Istio/Gateway API weights. Recreate: all-at-once (downtime). Advanced: Cloud Deploy manages promotion + rollback across environments.
- Question 20Deploying Applications
What are GKE deployment strategies?
Show Answer & Explanation
Correct Answer: BExplanation:GKE strategies: Rolling update (default — maxSurge, maxUnavailable), Recreate (kill all old, create new — brief downtime), Blue-green (two deployments, Service selector switch), Canary (Istio traffic splitting: 5% → 25% → 100%). Advanced: Flagger (progressive delivery controller), Cloud Deploy (managed delivery pipeline with approval gates). Choose based on: risk tolerance, downtime tolerance, and resource budget.
Key Deploying Concepts for PCD
PCD Deploying Exam Tips
Deploying Applications questions in PCD are typically scenario-based. Focus on service-level decision making aligned to official exam objectives. Priority concepts: deploy, gke, cloud run, app engine, canary, blue-green.
What PCD Expects
- Anchor your answer in select the most practical, secure, and scalable answer for the stated scenario.
- Deploying scenarios for PCD are frequently mapped to Domain 3 (~20%), so read the objective carefully before picking controls or architecture.
- Expect multi-service scenarios where Deploying interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated service question.
- When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Professional) and managed-service best practices.
High-Value Deploying Concepts
- Know the core Deploying building blocks cold: deploy, gke, cloud run, app engine.
- Review the edge-case features and limits for canary, blue-green; these details are commonly used to differentiate answer choices.
- Practice service-integration reasoning: how Deploying pairs with Building & Testing, Integrating Services in real deployment patterns.
- For PCD, explain why the chosen Deploying design meets reliability, security, and cost expectations better than the alternatives.
Common PCD Traps
- Watch for answers that partially solve the requirement but miss operational constraints.
- Questions in Deploying Applications often include distractors that look correct for Deploying but violate least-privilege, durability, or availability requirements.
- Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
- If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.
Fast Review Checklist
- Can you compare at least two Deploying implementation paths and justify which one best fits the scenario?
- Can you map the chosen answer back to Deploying Applications (~20%) outcomes for PCD?
- Can you explain security and access boundaries for Deploying without relying on default-open assumptions?
- Can you describe how Deploying integrates with Building & Testing and Integrating Services during failure, scaling, and monitoring events?