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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pamepadero
Highly Voted 3 years, 9 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 38 times
sgofficial
2 years, 8 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, 9 months ago
Great answer and documentation. Def B
upvoted 2 times
...
rzygor
2 years, 8 months ago
Question says that dev/test are "not critical", it doesn't mean that they are not needed at all ...
upvoted 19 times
...
...
kopper2019
Highly Voted 3 years, 9 months ago
Ans ) B , assuming VM doesn't need to be up after office hours .
upvoted 26 times
...
plumbig11
Most Recent 3 months, 2 weeks ago
Selected Answer: B
Cloud scheduler considering the requisites.
upvoted 1 times
...
rrope
3 months, 2 weeks ago
Selected Answer: D
By utilizing preemptible VMs for the acceptance and development environments, you can significantly reduce costs without compromising the availability and performance of your critical production environment.
upvoted 1 times
david_tay
1 month, 3 weeks ago
problem is you won't know what time preemptible VMs will shut down. There is only a brief warning from Google. Hence not suitable since they need to be up during work hours.
upvoted 1 times
...
...
25lion52
6 months, 3 weeks 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
12 months ago
B is right answer
upvoted 1 times
...
dija123
1 year ago
Selected Answer: B
Agree with B
upvoted 1 times
...
spuyol
1 year, 2 months 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
12 months 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
1 year, 3 months ago
Selected Answer: C
MIG's with autoscaling will scale to Zero if not needed
upvoted 3 times
spuyol
1 year, 2 months ago
some risks are added if you have different architecture on PRO and PRE envs
upvoted 1 times
...
...
AWS_Sam
1 year, 3 months ago
B for sure
upvoted 1 times
...
parthkulkarni998
1 year, 3 months 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, 5 months 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 2 times
...
werdy92
1 year, 5 months ago
really wondering why not C...Not critical is not equivalent with not running at all....
upvoted 5 times
parthkulkarni998
1 year, 3 months 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, 8 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
2 years 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
10 months, 1 week 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
2 years, 1 month 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
2 years, 1 month 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, 10 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
...
...
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