exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 61 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 61
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You support a web application that runs on App Engine and uses CloudSQL and Cloud Storage for data storage. After a short spike in website traffic, you notice a big increase in latency for all user requests, increase in CPU use, and the number of processes running the application. Initial troubleshooting reveals:
✑ After the initial spike in traffic, load levels returned to normal but users still experience high latency.
✑ Requests for content from the CloudSQL database and images from Cloud Storage show the same high latency.
✑ No changes were made to the website around the time the latency increased.
✑ There is no increase in the number of errors to the users.
You expect another spike in website traffic in the coming days and want to make sure users don't experience latency. What should you do?

  • A. Upgrade the GCS buckets to Multi-Regional.
  • B. Enable high availability on the CloudSQL instances.
  • C. Move the application from App Engine to Compute Engine.
  • D. Modify the App Engine configuration to have additional idle instances.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ESP_SAP
Highly Voted 2 years, 11 months ago
Correct Answer is D: Scaling App Engine scales the number of instances automatically in response to processing volume. This scaling factors in the automatic_scaling settings that are provided on a per-version basis in the configuration file. A service with basic scaling is configured by setting the maximum number of instances in the max_instances parameter of the basic_scaling setting. The number of live instances scales with the processing volume. You configure the number of instances of each version in that service's configuration file. The number of instances usually corresponds to the size of a dataset being held in memory or the desired throughput for offline work. You can adjust the number of instances of a manually-scaled version very quickly, without stopping instances that are currently running, using the Modules API set_num_instances function. https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed
upvoted 10 times
...
MBA_1
Highly Voted 2 years, 12 months ago
D is correct - https://cloud.google.com/appengine/docs/standard/python/config/appref max_idle_instances Optional. The maximum number of idle instances that App Engine should maintain for this version. Specify a value from 1 to 1000. If not specified, the default value is automatic, which means App Engine will manage the number of idle instances. Keep the following in mind: A high maximum reduces the number of idle instances more gradually when load levels return to normal after a spike. This helps your application maintain steady performance through fluctuations in request load, but also raises the number of idle instances (and consequent running costs) during such periods of heavy load.
upvoted 6 times
Manh
2 years, 11 months ago
Agree with D
upvoted 1 times
...
...
alpha_canary
Most Recent 9 months ago
Selected Answer: D
https://cloud.google.com/appengine/docs/legacy/standard/python/config/appref#scaling_elements:~:text=traffic%20or%20not.-,max_idle_instances,-Optional.%20The%20maximum
upvoted 1 times
...
jomonkp
11 months ago
Selected Answer: D
Option D
upvoted 1 times
...
JonathanSJ
1 year, 9 months ago
Selected Answer: D
D. Modify the App Engine configuration to have additional idle instances. This will ensure that there are enough resources available to handle the spike in traffic, reducing the likelihood of latency for users. Additionally, you may also consider enabling high availability on the CloudSQL instances and upgrading the GCS buckets to Multi-Regional for more resiliency.
upvoted 1 times
...
Greg123123
1 year, 10 months ago
Selected Answer: D
D, no brainer. A B and C don't even make sense.
upvoted 1 times
Greg123123
1 year, 10 months ago
A. then how about CloudSQL? B. then how about cloud storage? C. the same could also happen and even worse if it isn't MIG
upvoted 1 times
...
...
ramzez4815
2 years, 1 month ago
Selected Answer: D
Vote for D
upvoted 2 times
...
Sekierer
2 years, 9 months ago
Selected Answer: D
D is correct
upvoted 4 times
...
TNT87
2 years, 10 months ago
D is the answer
upvoted 2 times
...
TNT87
2 years, 10 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
Biden
2 years, 11 months ago
D looks like the nearest correct solution though this will not address with high latency with CloudSQL & storage instances
upvoted 1 times
...
NXD
3 years ago
D is correct to me. A: wrong – because increase in latency for all user requests, not for specific region. So B: wrong – problem affects both database and GCS C: wrong increase in CPU use, and the number of processes running the application => problem is that CPU is not enough to run application processes.
upvoted 3 times
...
giammydell
3 years ago
B could be useful but does not solve latency problem on Cloud Storage side
upvoted 3 times
...
TNT87
3 years ago
Ans B https://cloud.google.com/sql/docs/mysql/high-availability
upvoted 2 times
TNT87
2 years, 11 months ago
Ans D,B has latency issues
upvoted 1 times
...
...
Nik22
3 years ago
A. Upgrade the GCS buckets to Multi-Regional. B. Enable high availability on the CloudSQL instances. C. Move the application from App Engine to Compute Engine. D. Modify the App Engine configuration to have additional idle instances. There is nothing in the question that talks about region. If I assume that bucket is created in the region where the app is deployed B - Gives redundancy. I don't see how this can improve the latency C - Does not make any sense D - Additional instance, would reduce the CPU Time & memory. I would go with D. But not too sure.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago