Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 103


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?

Show Answer
Correct Answer: CD

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.

Discussion

17 comments
Sign in to comment
someoneinthecloudOption: C
Jul 18, 2020

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.

XRiddlerX
Jul 30, 2020

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

stepkurniawan
Aug 25, 2020

it says that in your Ubuntu, you have Cloud SDK installed already. So it should be able to run the command in D

Ale1973
Sep 7, 2020

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.

Ale1973
Sep 7, 2020

WOW!!! Today I have learned a new and interesting thing thanks to you...

myuniquename
Sep 22, 2021

absolutely insane if that question comes up during the associate exam, who on earth would know that off the top of their heads?

professorOption: D
Jun 26, 2020

Ans is D https://cloud.google.com/datastore/docs/tools/datastore-emulator

Eshkrkrkr
Nov 10, 2020

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.

SWObaby
Dec 9, 2020

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.

ShakthiGCP
Mar 3, 2021

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 .

VijKallOption: D
Nov 3, 2023

gcloud components install cloud-datastore-emulator - This works in today's world, not 3 yrs back. So I will go with option D.

Rahul001Option: D
Dec 10, 2023

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.

AndyMandyOption: D
Jan 1, 2024

https://cloud.google.com/datastore/docs/tools/datastore-emulator

BagiboOption: D
Jan 4, 2024

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.

BagiboOption: D
Jan 4, 2024

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.

BAofBKOption: C
Nov 6, 2023

C is the best

VaraSrinvasOption: D
Nov 15, 2023

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

walker1988Option: D
Nov 22, 2023

Answer D

walker1988Option: C
Nov 22, 2023

Answer C

mufuuuuOption: C
Nov 23, 2023

Install the google-cloud-sdk-datastore-emulator component using the apt get install command.

thewalkerOption: D
Nov 23, 2023

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

DZ_BenOption: D
Nov 25, 2023

D for sure

kaby1987Option: C
Dec 29, 2023

Ans is C

PiperMeOption: C
Feb 15, 2024

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.

wojanx77Option: C
Jul 2, 2024

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 ===