Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 103 discussion

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

You have a developer laptop with the Cloud SDK installed on Ubuntu. The Cloud SDK was installed from the Google Cloud Ubuntu package repository. You want to test your application locally on your laptop with Cloud Datastore. What should you do?

  • A. Export Cloud Datastore data using gcloud datastore export.
  • B. Create a Cloud Datastore index using gcloud datastore indexes create.
  • C. Install the google-cloud-sdk-datastore-emulator component using the apt get install command.
  • D. Install the cloud-datastore-emulator component using the gcloud components install command.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
someoneinthecloud
Highly Voted 4 years, 4 months ago
I believe answer is C https://cloud.google.com/sdk/docs/downloads-apt-get The question is not about the datastore command itself but from where we should run the update command on the Ubuntu to install the component.
upvoted 48 times
XRiddlerX
4 years, 3 months ago
I agree with this comment. The answer is C. If you installed the SDK from the Ubuntu repo and try to do the following: $ gcloud components install cloud-datastore-emulator You will receive this message: ERROR: (gcloud.components.install) You cannot perform this action because the Cloud SDK component manager is disabled for this installation. You can run the following command to achieve the same result for this installation: sudo apt-get install google-cloud-sdk-datastore-emulator
upvoted 54 times
stepkurniawan
4 years, 3 months ago
it says that in your Ubuntu, you have Cloud SDK installed already. So it should be able to run the command in D
upvoted 4 times
Ale1973
4 years, 2 months ago
Yes, but it says that "The Cloud SDK was installed from the Google Cloud Ubuntu package repository", then to install datastore emulator you should use the command in Option C.
upvoted 14 times
...
...
Ale1973
4 years, 2 months ago
WOW!!! Today I have learned a new and interesting thing thanks to you...
upvoted 8 times
...
myuniquename
3 years, 2 months ago
absolutely insane if that question comes up during the associate exam, who on earth would know that off the top of their heads?
upvoted 36 times
...
...
...
professor
Highly Voted 4 years, 5 months ago
Ans is D https://cloud.google.com/datastore/docs/tools/datastore-emulator
upvoted 26 times
Eshkrkrkr
4 years ago
Wrong! The answer is C! When you install SDK using apt Cloud SDK Component Manager is disabled and you need to install extra packages again using apt. https://cloud.google.com/sdk/docs/components#managing_cloud_sdk_components Note: These instructions will not work if you have installed Cloud SDK using a package manager such as APT or yum because Cloud SDK Component Manager is disabled when using that method of installation.
upvoted 26 times
SWObaby
3 years, 11 months ago
I believe the answer is C... It is a tricky question!! The question states, "The Cloud SDK was installed from the Google Cloud Ubuntu package repository." For those, who aren't that familiar with Debian/Ubuntu, D seems like an attractive answer. It works as a way to install Datastore...but it does NOT fit the context of the question. I recommend looking back to G Cloud SDK installation (Debian/Ubuntu): https://cloud.google.com/sdk/docs/install#deb Read the "Installation Steps" in the documentation. In Step 3, "sudo apt-get update && sudo apt-get install google-cloud-sdk". Then, Step 4 is additionally adding other components, such as "sudo apt-get install google-cloud-sdk-datastore-emulator". Proving C the correct answer.
upvoted 23 times
ShakthiGCP
3 years, 8 months ago
Go With 'C' ... just tried creating a ubuntu server and verified these.. Dont worry about any other options. https://cloud.google.com/sdk/docs/quickstart#deb check this link .
upvoted 6 times
...
...
...
...
juankloyd
Most Recent 1 week, 6 days ago
Selected Answer: C
C for me.
upvoted 1 times
...
deskj
1 month, 1 week ago
C is correct because the datastore emulator is installed using apt and not gcloud. D is incorrect because the "cloud-datastore-emulator" component is a legacy component and is not recommended for use. The correct component to install is "google-cloud-sdk-datastore-emulator". https://cloud.google.com/datastore/docs/tools/datastore-emulator
upvoted 1 times
...
Timfdklfajlksdjlakf
2 months, 3 weeks ago
Selected Answer: C
The correct answer is C. Don't mix your Ubuntu CLI with Gcloud. How is it supposed to work. It's either or. Not mixed.
upvoted 2 times
...
wojanx77
4 months, 3 weeks ago
Selected Answer: C
Looks like it may be "C" as there is an error when I try to install emulator by gcloud command. === gcloud components install cloud-datastore-emulator ERROR: (gcloud.components.install) You cannot perform this action because the Google Cloud CLI component manager is disabled for this installation. You can run the following command to achieve the same result for this installation: sudo apt-get install google-cloud-cli-datastore-emulator ===
upvoted 2 times
...
PiperMe
9 months, 1 week ago
C. Install the google-cloud-sdk-datastore-emulator component using the apt get install command. Here's why: A. Export Cloud Datastore data: This wouldn't help with local testing as it simply exports your data, not the Datastore environment itself. B. Create a Cloud Datastore index: Creating an index wouldn't allow you to run a local emulator for testing. C. Install the google-cloud-sdk-datastore-emulator component using apt get install: This method is the recommended way to install the Cloud Datastore Emulator on Ubuntu when the Cloud SDK is installed from the Google Cloud Ubuntu package repository. D. Install the cloud-datastore-emulator component using the gcloud components install command: This command would work if you had installed the Cloud SDK using the gcloud installer instead of the Ubuntu package repository.
upvoted 1 times
...
Bagibo
10 months, 3 weeks ago
D -Option C suggests installing the google-cloud-sdk-datastore-emulator component using the apt-get install command. However, the Cloud SDK components are typically managed using the gcloud components command, and the correct component name for the Cloud Datastore Emulator is cloud-datastore-emulator. So, to ensure consistency and compatibility with the Cloud SDK's management commands, it's recommended to use the gcloud components install command to install the Cloud Datastore Emulator, making option D the more appropriate choice.
upvoted 2 times
...
Bagibo
10 months, 3 weeks ago
Selected Answer: D
Option C suggests installing the google-cloud-sdk-datastore-emulator component using the apt-get install command. However, the Cloud SDK components are typically managed using the gcloud components command, and the correct component name for the Cloud Datastore Emulator is cloud-datastore-emulator. So, to ensure consistency and compatibility with the Cloud SDK's management commands, it's recommended to use the gcloud components install command to install the Cloud Datastore Emulator, making option D the more appropriate choice.
upvoted 2 times
...
AndyMandy
10 months, 3 weeks ago
Selected Answer: D
https://cloud.google.com/datastore/docs/tools/datastore-emulator
upvoted 2 times
...
kaby1987
10 months, 4 weeks ago
Selected Answer: C
Ans is C
upvoted 1 times
...
Rahul001
11 months, 2 weeks ago
Installing the emulator The Datastore emulator is a component of the Google Cloud CLI's gcloud CLI. Use the gcloud components install command to install the Datastore emulator: gcloud components install cloud-datastore-emulator //Please go through the documentation and the ans has to be D.
upvoted 2 times
...
DZ_Ben
12 months ago
Selected Answer: D
D for sure
upvoted 1 times
...
thewalker
1 year ago
Selected Answer: D
D Now that you have the gcloud command - Cloud SDK- better to use it: https://cloud.google.com/datastore/docs/tools/datastore-emulator#installing_the_emulator
upvoted 1 times
...
mufuuuu
1 year ago
Selected Answer: C
Install the google-cloud-sdk-datastore-emulator component using the apt get install command.
upvoted 1 times
...
walker1988
1 year ago
Selected Answer: C
Answer C
upvoted 1 times
...
walker1988
1 year ago
Selected Answer: D
Answer D
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 ...