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?
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?
Since the Cloud SDK was installed from the Google Cloud Ubuntu package repository, the gcloud components install command cannot be used to add new components because the Cloud SDK component manager is disabled. Instead, using the apt get install command with the google-cloud-sdk-datastore-emulator component is the appropriate method to install the Cloud Datastore Emulator on Ubuntu. This ensures compatibility with the installation method used.
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.
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
it says that in your Ubuntu, you have Cloud SDK installed already. So it should be able to run the command in D
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.
WOW!!! Today I have learned a new and interesting thing thanks to you...
absolutely insane if that question comes up during the associate exam, who on earth would know that off the top of their heads?
Ans is D https://cloud.google.com/datastore/docs/tools/datastore-emulator
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.
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.
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 .
gcloud components install cloud-datastore-emulator - This works in today's world, not 3 yrs back. So I will go with option D.
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.
https://cloud.google.com/datastore/docs/tools/datastore-emulator
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.
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.
C is the best
The answer to the question is at, https://cloud.google.com/datastore/docs/tools/datastore-emulator#installing_the_emulator gcloud components install cloud-datastore-emulator
Answer D
Answer C
Install the google-cloud-sdk-datastore-emulator component using the apt get install command.
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
D for sure
Ans is C
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.
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 ===