exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 163 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 163
Topic #: 1
[All Associate Cloud Engineer Questions]

You have developed a containerized web application that will serve internal colleagues during business hours. You want to ensure that no costs are incurred outside of the hours the application is used. You have just created a new Google Cloud project and want to deploy the application. What should you do?

  • A. Deploy the container on Cloud Run for Anthos, and set the minimum number of instances to zero.
  • B. Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.
  • C. Deploy the container on App Engine flexible environment with autoscaling, and set the value min_instances to zero in the app.yaml.
  • D. Deploy the container on App Engine flexible environment with manual scaling, and set the value instances to zero in the app.yaml.
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
crysk
Highly Voted 3 years, 11 months ago
I think that is B the correct answer, because Cloud Run can scale to 0: https://cloud.google.com/run/docs/about-instance-autoscaling And App Engine Flexible can't scale to 0, the minimum instance number is 1: https://cloud.google.com/appengine/docs/the-appengine-environments#comparing_high-level_features
upvoted 39 times
ryumada
2 years, 6 months ago
No for the App Engine Flexible Environment, but App Engine Standard can also scale to zero.
upvoted 3 times
...
...
pca2b
Highly Voted 3 years, 11 months ago
B: not A because Anthos is an add-on to GKE clusters, 'new project' means we dont have a GKE cluster to work with https://cloud.google.com/kuberun/docs/architecture-overview#components_in_the_default_installation
upvoted 16 times
...
JoseCloudEng1994
Most Recent 2 months, 2 weeks ago
Selected Answer: B
Trick question. - With AppEngine you pay all the time for the resources that you are using - With Cloud Run you pay for startup/shutdown + ONLY the time the app is servicing requests. Since they clarify 'during business' hours the answer is B, definitively tricky though
upvoted 1 times
...
09bd94b
3 months, 1 week ago
Selected Answer: B
Cloud Run is the only option provided able to scale to 0
upvoted 1 times
...
ccpmad
9 months, 2 weeks ago
Selected Answer: B
Container = cloud run (not App Engine) On AE, app runs as a node process, like booting it up with npm start locally. AE is a traditional hosting platform: it runs continuously and serves requests as they come in. At the end of the month, you pay for the amount of time it was running, which is typically “the entire month”. Cloud Run runs containers, so for each release you have to build a container and push it to GCP. Unlike App Engine, Cloud Run only runs when requests come in, so you don’t pay for time spent idling.
upvoted 1 times
...
scanner2
1 year, 5 months ago
Selected Answer: B
Cloud Run is a managed compute platform that lets you run containers directly on top of Google's scalable infrastructure. Cloud Run adds and removes instances automatically to handle all incoming requests. If there are no incoming requests to your service, even the last remaining instance will be removed. This behavior is commonly referred to as scale to zero. https://cloud.google.com/run/docs/overview/what-is-cloud-run
upvoted 3 times
...
Captain1212
1 year, 6 months ago
Selected Answer: B
B is the correct answer, in c, d as App engine flexible environment can't scale to Zero and A in this GKE cluster is used but we have just created a project so it will add extra cost
upvoted 1 times
...
N_A
1 year, 9 months ago
Selected Answer: B
C. and D. are wrong answers as only the App Engine standard environment scales down to zero. Answer A. will incur extra cost as Cloud Run for Anthos runs on Kubernetes, so need to have a k8s cluster available. B. Is correct, as "Cloud Run automatically scales up or down from zero to N depending on traffic, leveraging container image streaming for a fast startup time." from https://cloud.google.com/run
upvoted 4 times
...
Charumathi
2 years, 4 months ago
Selected Answer: B
B is the correct answer, Cloud Functions can scale to zero, whereas App Engine will not be able to scale to zero, it should have at least one instance. Add-on Info, App-Engine Standard can scale to zero, whereas App-Engine Flexible couldn't scale down to zero.
upvoted 4 times
...
sylva91
2 years, 5 months ago
Selected Answer: B
B is the answer since we can scale to 0 and the other key word is "containerized"
upvoted 2 times
...
Roro_Brother
2 years, 8 months ago
Selected Answer: B
B is the right answer
upvoted 1 times
...
AzureDP900
2 years, 8 months ago
B is correct
upvoted 1 times
...
tomnatoli75
2 years, 9 months ago
https://cloud.google.com/appengine/docs/standard/python/config/appref min_instances Warning: For this feature to function properly, you must make sure that warmup requests are enabled and that your application handles warmup requests. Note: This setting applies only if the version of the app defined by this app.yaml file is configured to receive traffic. To learn more about routing traffic to different versions of an app, see Splitting Traffic. Optional. The minimum number of instances for App Engine to create for this module version. These instances serve traffic when requests arrive, and continue to serve traffic even when additional instances are started up as required to handle traffic. Specify a value from 0 to 1000. You can set the parameter to the value 0 to allow scaling to 0 instances to lower costs when no requests are being served. Note that you are charged for the number of instances specified whether they are receiving traffic or not. So C
upvoted 1 times
...
JelloMan
2 years, 9 months ago
Selected Answer: B
along with the reason that most have stated (only Cloud Run can scale down to 0 instances) another reason is that Cloud Run is pay-per-use. App-engine flexible is paid based on usage of vCPU, memory, and persistent disks, so you will be racking up cost quickly just because your VM's are created (regardless if they're running or not)
upvoted 4 times
...
jblima
2 years, 10 months ago
Selected Answer: B
B is the correct
upvoted 1 times
...
nshah68
2 years, 11 months ago
Selected Answer: B
Flex caanot scale down to 0. Standard can but that is not relevant here. Therefore, Cloud Run is the best answer since it can scale down to 0 when there is no traffic
upvoted 3 times
...
luciorifa
3 years ago
Selected Answer: B
Correct anwer is B, Cloud Run is a serverless solution that, same as Cloud Functions, can be activated based on events.
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