Google Cloud Professional Cloud Architect — Question 86
Your company is running a stateless application on a Compute Engine instance. The application is used heavily during regular business hours and lightly outside of business hours. Users are reporting that the application is slow during peak hours. You need to optimize the application's performance. What should you do?
Answer options
- A. Create a snapshot of the existing disk. Create an instance template from the snapshot. Create an autoscaled managed instance group from the instance template.
- B. Create a snapshot of the existing disk. Create a custom image from the snapshot. Create an autoscaled managed instance group from the custom image.
- C. Create a custom image from the existing disk. Create an instance template from the custom image. Create an autoscaled managed instance group from the instance template.
- D. Create an instance template from the existing disk. Create a custom image from the instance template. Create an autoscaled managed instance group from the custom image.
Correct answer: C
Explanation
The correct answer is C because creating a custom image from the existing disk allows you to create multiple instances that can handle increased load during peak hours using an autoscaled managed instance group. Options A and B involve creating an instance template or group directly from snapshots, which may not provide the necessary performance optimizations. Option D incorrectly suggests creating an instance template from the current disk without first creating a custom image, which does not follow the optimal process for scaling.