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 100 discussion

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

You need to ensure reliability for your application and operations by supporting reliable task scheduling for compute on GCP. Leveraging Google best practices, what should you do?

  • A. Using the Cron service provided by App Engine, publish messages directly to a message-processing utility service running on Compute Engine instances.
  • B. Using the Cron service provided by App Engine, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances.
  • C. Using the Cron service provided by Google Kubernetes Engine (GKE), publish messages directly to a message-processing utility service running on Compute Engine instances.
  • D. Using the Cron service provided by GKE, publish messages to a Cloud Pub/Sub topic. Subscribe to that topic using a message-processing utility service running on Compute Engine instances.
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
JoeShmoe
Highly Voted 4 years, 11 months ago
Answer is B
upvoted 32 times
...
Smart
Highly Voted 4 years, 8 months ago
B is correct. More appropriately: https://cloud.google.com/solutions/reliable-task-scheduling-compute-engine
upvoted 30 times
fraloca
3 years, 9 months ago
https://cloud.google.com/solutions/reliable-task-scheduling-compute-engine#schedule-compute-engine
upvoted 4 times
...
...
xaqanik
Most Recent 9 months ago
Selected Answer: B
You can create Cron job using HTTP endpoint, Pub/Sub and App engine.
upvoted 1 times
...
odacir
11 months, 2 weeks ago
Selected Answer: B
Answer is B, but this question is outdated, Today the best practices for cron is Cloud Scheduler: fully managed enterprise-grade cron job scheduler https://cloud.google.com/scheduler/?gad_source=1&gclsrc=ds&gclsrc=ds
upvoted 20 times
JaimeMS
4 months, 4 weeks ago
Thanks... I was a little confused by this options
upvoted 2 times
...
...
JPA210
1 year ago
This seems to be an old question, despite B could be the more correct answer, it is not exactly a good one. 'Using the Cron service provided by App Engine', the cron service is provided by Cloud Scheduler, not App Engine. App Engine HTTP endpoint can be a target for the cron task.
upvoted 9 times
...
salim_
1 year, 5 months ago
Selected Answer: B
https://cloud.google.com/blog/products/gcp/reliable-task-scheduling-on-google-compute-engine
upvoted 3 times
...
rr4444
1 year, 7 months ago
Something feels missing/broken about this question Even before comments in discussion that correctly mentioned Cloud Scheduler, which is not mentioned in the question
upvoted 6 times
parthkulkarni998
10 months, 2 weeks ago
This is because cloud scheduler is a newly released service which is a replacement to cloud app engine cron service.
upvoted 1 times
...
...
dataqueen_3110
1 year, 9 months ago
"By using Cloud Scheduler for scheduling and Pub/Sub for distributed messaging, you can build an application to reliably schedule tasks across a fleet of Compute Engine instances." https://cloud.google.com/architecture/reliable-task-scheduling-compute-engine Answer is B. (Note: It was down to B or D but containerization was not mentioned)
upvoted 2 times
...
beehive
1 year, 10 months ago
Answer is B. Cloud Scheduler provides a fully managed, enterprise-grade service that lets you schedule events. After you have scheduled a job, Cloud Scheduler will call the configured event handlers, which can be App Engine services, HTTP endpoints, or Pub/Sub subscriptions. To run tasks on your Compute Engine instance in response to Cloud Scheduler events, you need to relay the events to those instances. One way to do this is by calling an HTTP endpoint that runs on your Compute Engine instances. Another option is to pass messages from Cloud Scheduler to your Compute Engine instances using Pub/Sub.
upvoted 8 times
...
habros
1 year, 11 months ago
Selected Answer: B
A and C are out… messages are to be sent to pub sub and processed using a client. D is overkill for this purpose
upvoted 2 times
...
megumin
1 year, 11 months ago
Selected Answer: B
B is ok
upvoted 1 times
...
AzureDP900
2 years ago
B is right
upvoted 1 times
...
Nirca
2 years, 1 month ago
Selected Answer: B
Ans is B https://cloud.google.com/architecture/reliable-task-scheduling-compute-engine
upvoted 1 times
...
Sbgani
2 years, 1 month ago
Ans is B https://cloud.google.com/architecture/reliable-task-scheduling-compute-engine refer the examples with diagram
upvoted 1 times
zellck
2 years, 1 month ago
the link points to use Cloud Scheduler, and not Cron service provided by App Engine.
upvoted 3 times
zr79
2 years ago
This is the new way to run schedule
upvoted 2 times
...
...
...
FAD04
2 years, 2 months ago
I got this question in exam 01/09/2022
upvoted 5 times
...
pp0709
2 years, 2 months ago
Selected Answer: D
This solution can be implemented using both A and D 1) With App Engine - https://cloud.google.com/appengine/docs/flexible/nodejs/scheduling-jobs-with-cron-yaml 2) With GKE - https://cloud.google.com/kubernetes-engine/docs/how-to/cronjobs They ask for best practices and it's well known that GKE (aka containers) is the best practice for building modern infra solution. Yet another confusing PCA question on the card. Honestly, think the quality of the questions can be mightily improved.
upvoted 1 times
BiddlyBdoyng
2 years ago
GKE is too expensive if all you are after is cron scheduling.
upvoted 1 times
...
pp0709
2 years, 2 months ago
Sorry, can be implemented using both B and D
upvoted 2 times
kapara
1 year, 3 months ago
You right, but D is overkill. So B if the best practices for this task.
upvoted 1 times
...
...
medi01
1 year, 6 months ago
A is a bad solution as "send message directly to the utility" is not really reliable, you'd want pub/sub in between.
upvoted 1 times
...
...
6721sora
2 years, 2 months ago
B says Appengine. But Cloud Scheduler is itself a managed service. To schedule jobs via AppEngine, the cron.yaml has to be used. It can be done similarly via GKE as well. This question is confusing
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