PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #118
Your organization has a production Cloud SQL for MySQL instance. Your instance is configured with 16 vCPUs and 104 GB of RAM that is running between 90% and 100% CPU utilization for most of the day…
The correct answer is A. Issue a gcloud sql instances patch command to increase the number of vCPUs. The correct answer is A. The gcloud sql instances patch command is the correct and recommended way to modify a Cloud SQL instance's machine type, including adding vCPUs. It applies the change with only a brief instance restart (typically a few seconds), satisfying the 'minimal…
Question
Your organization has a production Cloud SQL for MySQL instance. Your instance is configured with 16 vCPUs and 104 GB of RAM that is running between 90% and 100% CPU utilization for most of the day. You need to scale up the database and add vCPUs with minimal interruption and effort. What should you do?
Options
- AIssue a gcloud sql instances patch command to increase the number of vCPUs.
- BUpdate a MySQL database flag to increase the number of vCPUs.
- CIssue a gcloud compute instances update command to increase the number of vCPUs.
- DBack up the database, create an instance with additional vCPUs, and restore the database.
How the community answered
(29 responses)- A86% (25)
- B3% (1)
- C7% (2)
- D3% (1)
Explanation
The correct answer is A. The gcloud sql instances patch command is the correct and recommended way to modify a Cloud SQL instance's machine type, including adding vCPUs. It applies the change with only a brief instance restart (typically a few seconds), satisfying the 'minimal interruption' requirement. Option C (gcloud compute instances update) is used to modify Compute Engine VM instances, not Cloud SQL managed instances - these are separate services. Option B is incorrect because the number of vCPUs is determined by the machine type, not a MySQL database flag. Option D (backup, create new instance, restore) is the most disruptive approach, requiring significant downtime and manual effort.
Topics
Community Discussion
No community discussion yet for this question.