Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 111 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 111
Topic #: 1
[All Professional Cloud Architect Questions]

Your company is running its application workloads on Compute Engine. The applications have been deployed in production, acceptance, and development environments. The production environment is business-critical and is used 24/7, while the acceptance and development environments are only critical during office hours. Your CFO has asked you to optimize these environments to achieve cost savings during idle times. What should you do?

  • A. Create a shell script that uses the gcloud command to change the machine type of the development and acceptance instances to a smaller machine type outside of office hours. Schedule the shell script on one of the production instances to automate the task.
  • B. Use Cloud Scheduler to trigger a Cloud Function that will stop the development and acceptance environments after office hours and start them just before office hours.
  • C. Deploy the development and acceptance applications on a managed instance group and enable autoscaling.
  • D. Use regular Compute Engine instances for the production environment, and use preemptible VMs for the acceptance and development environments.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
pamepadero
Highly Voted 3 years, 4 months ago
B is the answer. https://cloud.google.com/blog/products/it-ops/best-practices-for-optimizing-your-cloud-costs Schedule VMs to auto start and stop: The benefit of a platform like Compute Engine is that you only pay for the compute resources that you use. Production systems tend to run 24/7; however, VMs in development, test or personal environments tend to only be used during business hours, and turning them off can save you a lot of money! https://cloud.google.com/blog/products/storage-data-transfer/save-money-by-stopping-and-starting-compute-engine-instances-on-schedule Cloud Scheduler, GCP’s fully managed cron job scheduler, provides a straightforward solution for automatically stopping and starting VMs. By employing Cloud Scheduler with Cloud Pub/Sub to trigger Cloud Functions on schedule, you can stop and start groups of VMs identified with labels of your choice (created in Compute Engine). Here you can see an example schedule that stops all VMs labeled "dev" at 5pm and restarts them at 9am, while leaving VMs labeled "prod" untouched
upvoted 36 times
sgofficial
2 years, 3 months ago
Excellent ......even the good CFO is telling leave the office after 5.oo and come next day to work :)
upvoted 16 times
...
Ric350
2 years, 4 months ago
Great answer and documentation. Def B
upvoted 2 times
...
rzygor
2 years, 3 months ago
Question says that dev/test are "not critical", it doesn't mean that they are not needed at all ...
upvoted 17 times
...
...
kopper2019
Highly Voted 3 years, 4 months ago
Ans ) B , assuming VM doesn't need to be up after office hours .
upvoted 25 times
...
25lion52
Most Recent 2 months ago
Selected Answer: C
Stop the dev and acceptance envs is super weird. Any critical problems or overtimes will be an issue with this approach. Simple auto scaling environment is a good solution IMHO
upvoted 1 times
...
Gino17m
7 months, 1 week ago
B is right answer
upvoted 1 times
...
dija123
7 months, 3 weeks ago
Selected Answer: B
Agree with B
upvoted 1 times
...
spuyol
9 months, 3 weeks ago
Answer D A: too complex and maybe small or zero saving if you can't find a valid smaller machine type B: Not valid. Question says that PRE environments are not critical after office hours. But it doesn't say no service at all C: Some risk is introduced if you have different architecture on PRE than PRO envs D: It's the only valid and realiable option. Simple and effective. It's my choice. In a real scenario I will first start with this and then review if the savings are enough before more complicated choices
upvoted 3 times
Gino17m
7 months, 1 week ago
Ad. "B: Not valid. Question says that PRE environments are not critical after office hours. But it doesn't say no service at all" But the Question says that PRE environments are critical during office hours, so you can't use preemptible VMs - "Compute Engine might stop (preempt) these instances if it needs to reclaim the compute capacity for allocation to other VMs"
upvoted 1 times
...
...
the1dv
10 months, 2 weeks ago
Selected Answer: C
MIG's with autoscaling will scale to Zero if not needed
upvoted 3 times
spuyol
9 months, 3 weeks ago
some risks are added if you have different architecture on PRO and PRE envs
upvoted 1 times
...
...
AWS_Sam
10 months, 3 weeks ago
B for sure
upvoted 1 times
...
parthkulkarni998
11 months, 1 week ago
Selected Answer: C
Also managed instance group reduces instances in case of low/no-traffic incurring lesser charges. Ideally, its a cleaner approach considering the ask is to optimize during "idle time". Incase people are working in different time zones, late shifts it doesnt make sense to trigger shutdown at a predefined times.
upvoted 3 times
...
odacir
1 year ago
Selected Answer: B
B is the answer. But today, you don't need complicated CRON + CF. Auto shutdown by cron expression it's a feature built in: https://cloud.google.com/compute/docs/instances/schedule-instance-start-stop
upvoted 1 times
...
werdy92
1 year, 1 month ago
really wondering why not C...Not critical is not equivalent with not running at all....
upvoted 5 times
parthkulkarni998
11 months, 1 week ago
Also managed instance group reduces instances in case of low/no-traffic incurring lesser charges. Ideally, its a cleaner approach considering the ask is to optimize during "idle time". Incase people are working in different time zones, late shifts it doesnt make sense to trigger shutdown at a predefined times.
upvoted 2 times
...
...
wooloo
1 year, 4 months ago
"are only critical during office hours" does not mean it could be completely stopped. So may the option C correct?
upvoted 6 times
...
mifrah
1 year, 8 months ago
In my opinion B is over-engineered: Why not just add an "instance schedule" for start/stop the Compute Engines? Why creating a scheduler and writing a Cloud Function...
upvoted 3 times
ccpmad
5 months, 2 weeks ago
Just exactly what I have thought. It is enough with instance schedule". But GCP wants you to spend money and use cloud functions LOL
upvoted 1 times
...
...
MaryMei
1 year, 9 months ago
Selected Answer: B
https://cloud.google.com/compute/docs/instances/viewing-and-applying-idle-vm-recommendations B seems close to this Google provided service option, the extra step should be using idle VM recommendations to find and stop idle VM instances to reduce waste of resources
upvoted 1 times
...
PAUGURU
1 year, 9 months ago
Since the price of preemptibles is 1/4 the price of a standard machine D costs far less than B since office hours are 1/3 of whole day. It costs less to keep them running 24h as preemptibles.
upvoted 3 times
DevOpsifier
1 year, 5 months ago
Yes, but preemptibles use GCP excess resources so you will achieve the opposite of the desired effect, during office hours, they will underperform in the best case (worst case will stop altogether) and, during non-office hours, preemptibles will work well...
upvoted 1 times
...
...
windsor_43
1 year, 10 months ago
The Answer is B. Just had my exam today with a pass, this question was in the exam. Dated 31/12/22 Thanks to this site it was by far my most valuable
upvoted 3 times
...
omermahgoub
1 year, 11 months ago
The correct answer is B. Use Cloud Scheduler to trigger a Cloud Function that will stop the development and acceptance environments after office hours and start them just before office hours. One way to optimize the cost of your Compute Engine environments is to stop non-critical instances when they are not in use. In this case, you could use Cloud Scheduler to trigger a Cloud Function that will stop the acceptance and development environments after office hours and start them just before office hours. This will allow you to take advantage of the cost savings of not running these environments during idle times, while still ensuring that they are available during office hours when they are critical.
upvoted 1 times
omermahgoub
1 year, 11 months ago
Option A, creating a shell script to change the machine type of the development and acceptance instances, is not relevant because it does not address the issue of cost optimization during idle times. Option C, using a managed instance group with autoscaling, is not recommended because it would not allow you to take advantage of the cost savings of stopping the instances during idle times. Option D, using preemptible VMs for the acceptance and development environments, is also not recommended because preemptible VMs may be terminated by Google at any time, which would not be suitable for workloads that are critical during office hours.
upvoted 1 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 ...