Google Associate Cloud Engineer Question 93
Select 2Google Cloud PlatformYou are tasked with launching a new compute instance in Google Cloud Platform for a web application that needs high availability and redundancy. Which steps should you take to ensure the instance meets these requirements?
- A
Deploy the instance in a single zone for higher performance.
- B
Use an instance template and create a managed instance group.
- C
Distribute instances across multiple regions.
- D
Enable automatic instance restart and preemptibility.
Show answer and explanation
Correct answers: B, C
Explanation
To ensure high availability and redundancy for a web application on Google Cloud Platform, using a managed instance group with an instance template allows you to easily manage and scale your instances, providing automatic recovery in case of failure. Additionally, distributing instances across multiple regions ensures that your application can withstand regional outages.
- A. Incorrect.
Deploying in a single zone does not provide high availability or redundancy because it risks downtime if the zone becomes unavailable.
- B. Correct.
Using an instance template and creating a managed instance group allows for easy scaling and management, providing high availability through automatic scaling and healing.
- C. Correct.
Distributing instances across multiple regions increases redundancy and availability by ensuring that your application remains operational even if a region goes down.
- D. Incorrect.
Enabling automatic instance restart helps with availability but preemptibility is not suitable for high availability as it can lead to unexpected shutdowns.