Google Associate Cloud Engineer Question 57
Single answerGoogle Cloud PlatformYour company is migrating a web application to Google Cloud Platform. The application experiences variable traffic patterns and requires automatic scaling based on demand. Which compute option should you choose to optimize cost and manageability?
- A
Compute Engine with custom machine types
- B
App Engine Standard Environment
- C
Google Kubernetes Engine with preemptible VMs
- D
Cloud Functions
Show answer and explanation
Correct answer: B
Explanation
App Engine Standard Environment is ideal for web applications with variable traffic patterns because it provides automatic scaling, abstracts infrastructure management, and charges based on actual usage. This makes it both a cost-effective and manageable solution on Google Cloud Platform.
- A. Incorrect.
Compute Engine with custom machine types provides flexibility in machine specifications but requires manual scaling configurations, which may not optimize cost and manageability for variable traffic.
- B. Correct.
App Engine Standard Environment automatically scales your application based on demand, abstracts away infrastructure management, and charges based on usage, making it a cost-effective and manageable option for variable traffic patterns.
- C. Incorrect.
Google Kubernetes Engine with preemptible VMs can reduce costs but requires more overhead in managing Kubernetes clusters and might not automatically scale based on demand without additional configurations.
- D. Incorrect.
Cloud Functions is designed for event-driven architectures and might not be suitable for traditional web applications that require consistent runtime environments.