You are managing several internal applications that are deployed on Compute Engine. Business users inform you that an application has become very slow over the past few days. You want to find the underlying cause in order to solve the problem. What should you do first?
A. Inspect the logs and metrics from the instances in Cloud Logging and Cloud Monitoring.
B. Change the Compute Engine Instances behind the application to a machine type with more CPU and memory.
C. Restore a backup of the application database from a time before the application became slow.
D. Deploy the applications on a managed instance group with autoscaling enabled. Add a load balancer in front of the managed instance group, and have the users connect to the IP of the load balancer.
Disclaimer
This is a practice question. There is no guarantee of coming this question in the certification exam.
Answer
A
Explanation
A. Inspect the logs and metrics from the instances in Cloud Logging and Cloud Monitoring.
(When an application becomes slow, the first step you should take is to gather information about the underlying cause of the problem. One way to do this is by inspecting the logs and metrics from the instances where the application is deployed. Google Cloud Platform (GCP) provides tools such as Cloud Logging and Cloud Monitoring that can help you to collect and analyze this information.
By reviewing the logs and metrics from the instances, you may be able to identify issues such as resource shortages (e.g. CPU, memory, or disk), network problems, or application errors that are causing the performance issues. Once you have identified the underlying cause of the problem, you can take steps to resolve it.)
B. Change the Compute Engine Instances behind the application to a machine type with more CPU and memory.
(Changing the Compute Engine instances behind the application to a machine type with more CPU and memory may help to improve the performance of the application, but it is not necessarily the first step you should take. You should first try to understand the underlying cause of the performance issues before making changes to the instances.)
C. Restore a backup of the application database from a time before the application became slow.
(Restoring a backup of the application database from a time before the application became slow may help to resolve the performance issues if the problem is related to the database. However, it is not necessarily the first step you should take, as there may be other issues causing the performance problems.)
D. Deploy the applications on a managed instance group with autoscaling enabled. Add a load balancer in front of the managed instance group, and have the users connect to the IP of the load balancer.
(Deploying the applications on a managed instance group with autoscaling enabled and adding a load balancer in front of the managed instance group may help to improve the performance of the application, but it is not necessarily the first step you should take. You should first try to understand the underlying cause of the performance issues before making changes to the deployment architecture.)