You are designing a globally available web application that must handle variable traffic loads and automatically scale to zero when idle. Which Google Cloud compute platform is the best fit?
Designing Cloud Native Applications
Question · Medium
You need to choose a database for a new application that requires horizontally scalable, globally consistent relational transactions. Which Google Cloud service should you use?
Chapter 1: Exam and Compute Platform Decisions
1.1 Current Exam, Sources, and Scenario Method
Study guide
Your application needs to process events asynchronously with guaranteed at-least-once delivery. Messages should be retained for replay if needed. Which Google Cloud service is most appropriate?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
You are designing a microservices application where services need to discover each other dynamically. Which approach is recommended on Google Kubernetes Engine?
Question · Easy
You are designing an application that needs to cache frequently accessed data to reduce latency and database load. Which Google Cloud service should you use?
Your team wants to implement the strangler fig pattern to gradually migrate a monolithic application to microservices on Google Cloud. Which approach best supports this pattern?
Question · Hard
1.2 Cloud Run Execution and Platform Selection
You need to implement a circuit breaker pattern in your microservices application running on GKE. Which approach is most effective?
You are designing an application that needs to handle 10,000 concurrent WebSocket connections. Which Google Cloud compute platform best supports this requirement?
You are building an application that must be resilient to a single zone failure within a region. Which design principle should you follow?
You want to run a batch job that processes data for 2 hours and can tolerate interruptions. Which Compute Engine VM type provides the lowest cost?
1.3 GKE Modes and Compute Engine Trade-offs
You need to set up a CI/CD pipeline that builds a container image from source code in Cloud Source Repositories, runs tests, and pushes the image to Artifact Registry. Which Google Cloud service should you use?
Building And Testing Applications
You want to ensure that container images pushed to Artifact Registry are scanned for known vulnerabilities before being deployed. What should you configure?
You are writing a Cloud Build configuration file (cloudbuild.yaml) and need to run unit tests before building the Docker image. How should you structure the build steps?
Your team wants to implement supply chain security for their container images. Which combination of Google Cloud services enforces that only attested images are deployed to GKE?
Chapter 2: Container Engineering and API Contracts
2.1 Stateless Microservices and Multi-stage Builds
You need to store Docker container images and language-specific packages (npm, Maven, Python) in a single managed repository. Which Google Cloud service should you use?
You are implementing integration tests for a Cloud Function that interacts with Firestore and Pub/Sub. What is the recommended approach?
Your Cloud Build pipeline needs to access a secret API key stored securely. What is the recommended way to handle this?
You want to set up a Cloud Build trigger that automatically starts a build whenever code is pushed to the main branch of your repository. What should you configure?
2.2 Container Hardening, Signals, and Layer Caching
You want to deploy a new version of your Cloud Run service with zero downtime and gradually shift traffic from the old version to the new one. Which deployment strategy should you use?
Deploying Applications
You need to deploy a containerized application to GKE with a rolling update strategy that ensures at least 75% of pods are available during the deployment. How should you configure the Deployment spec?
You are deploying a stateful application on GKE that requires each pod to have a stable hostname and persistent storage. Which Kubernetes workload type should you use?
Your team needs to automate the progressive delivery of applications to GKE clusters, including canary analysis and automatic rollback. Which Google Cloud service should you use?
2.3 REST, gRPC, and Protobuf Contracts
You are deploying an API to Cloud Run and need to ensure only authenticated users can access it. What is the recommended approach?
You need to expose a GKE service externally with SSL termination and path-based routing. Which Kubernetes resource should you create?
You deployed a new version of your application to App Engine and want to split traffic 50/50 between the old and new versions for A/B testing. How should you configure this?
Your application running on Cloud Run needs to read data from Cloud Firestore. What is the recommended way to authenticate the service?
Integrating Google Cloud Services
Chapter 3: gRPC Compatibility and Geographic Routing
3.1 Schema Evolution and gRPC Routing
Your application needs to store and retrieve user session data with sub-millisecond latency. Which Google Cloud service is most appropriate?
You need to trigger a Cloud Function whenever a new file is uploaded to a specific Cloud Storage bucket. What event source should you configure?
Your application needs to send transactional emails and SMS notifications asynchronously without blocking the main request thread. Which architecture pattern should you use?
You are building a REST API that requires rate limiting, API key validation, and usage analytics. Which Google Cloud service provides these capabilities?
3.2 Geography, Network Tiers, and Load Balancers
Your application needs to process streaming data from IoT devices in real time and write aggregated results to BigQuery. Which Google Cloud service should you use for stream processing?
You need to manage application configuration data that may change between environments (dev, staging, prod) without rebuilding the container image. What is the recommended Kubernetes approach?
Your application needs to store sensitive configuration such as database passwords in Kubernetes. What should you use instead of ConfigMaps?
You are implementing a blue-green deployment for your GKE application. What is the primary advantage of this strategy?
3.3 Serverless NEGs, Sessions, and Edge Controls
Your Cloud Run service is experiencing cold start latency. What configuration can reduce this?
Your application uses Cloud SQL for PostgreSQL and needs to handle connection management efficiently from Cloud Run, which may have many concurrent instances. What should you use?
You need to implement distributed tracing across your microservices to identify latency bottlenecks. Which Google Cloud service should you use?
Your application needs a task queue that retries failed work and, with idempotent handlers, achieves effectively exactly-once processing even if a worker fails mid-execution. Which Google Cloud service best fits this pattern?
Loading more…