Google Associate Cloud Engineer Question 140
Single answerGoogle Cloud PlatformYou are tasked with deploying an application on Google Cloud Platform that requires low latency, scales based on HTTP requests, and can be updated frequently without downtime. The application needs to integrate with other GCP services like Pub/Sub and Cloud Storage. Which service should you choose?
- A
Cloud Run
- B
Cloud Run for Anthos
- C
Cloud Functions
- D
Compute Engine
Show answer and explanation
Correct answer: A
Explanation
Cloud Run is the best choice for deploying an application that requires low latency, automatic scaling based on HTTP requests, and frequent updates without downtime. It is fully managed, integrates well with other GCP services, and allows for zero-downtime deployments, making it suitable for applications with these requirements.
- A. Correct.
Cloud Run is a fully managed service that automatically scales your stateless containers and is ideal for applications that need to scale based on HTTP requests. It offers integration with other GCP services and allows for zero-downtime deployments.
- B. Incorrect.
Cloud Run for Anthos runs on Kubernetes clusters, providing more control and flexibility over the infrastructure, but it requires managing the Anthos environment, which may not be necessary for simple scaling and integration needs.
- C. Incorrect.
Cloud Functions is designed for executing single-purpose functions in response to events, and while it scales automatically, it might not be the best fit for applications that require low-latency HTTP request handling and zero-downtime updates.
- D. Incorrect.
Compute Engine provides virtual machines and is suitable for applications that require full control over the operating system, but it requires manual scaling and is not ideal for applications that need to scale automatically based on HTTP requests.