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

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

You need to produce a list of the enabled Google Cloud Platform APIs for a GCP project using the gcloud command line in the Cloud Shell. The project name is my-project. What should you do?

  • A. Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>.
  • B. Run gcloud init to set the current project to my-project, and then run gcloud services list --available.
  • C. Run gcloud info to view the account value, and then run gcloud services list --account <Account>.
  • D. Run gcloud projects describe <project ID> to verify the project value, and then run gcloud services list --available.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
dan80
Highly Voted 4 years, 2 months ago
A is the correct answer, log to gcloud and run the commands, doesnt make sense to run cloud init and gcloud services list --available gives you the full services that are available.
upvoted 50 times
raffiq
4 years, 2 months ago
Yes, Answer A correct. it shows only enabled services of API
upvoted 6 times
...
...
lxgywil
Highly Voted 3 years, 3 months ago
"A" is correct. For those, who have doubts: `gcloud services list --available` returns not only the enabled services in the project but also services that CAN be enabled. Therefore, option B is incorrect. https://cloud.google.com/sdk/gcloud/reference/services/list#--available
upvoted 12 times
squishy_fishy
3 years, 2 months ago
Best answer!
upvoted 1 times
...
...
pzacariasf7
Most Recent 5 months, 3 weeks ago
Selected Answer: A
A is correct!
upvoted 1 times
...
sabrinakloud
1 year, 4 months ago
Selected Answer: A
Answer: A
upvoted 1 times
...
Buruguduystunstugudunstuy
1 year, 6 months ago
Selected Answer: A
Let's do a side-by-side analysis of Answer A and Answer D to clear our doubts: Answer A: Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>. This option first retrieves the project ID by running the gcloud projects list command. Then, it uses the gcloud services list command with the --project flag to list the enabled APIs for the specified project.
upvoted 4 times
Buruguduystunstugudunstuy
1 year, 6 months ago
Answer D: Run gcloud projects describe <project ID> to verify the project value, and then run gcloud services list --available. This option uses the gcloud projects describe command with the project ID to retrieve information about the specified project, including the project ID. Then, it uses the gcloud services list command with the --available flag to list all available APIs, not just the ones that are enabled for the specified project. Based on the scenario presented in the question, we want to produce a list of the enabled APIs for a GCP project, NOT a list of all available APIs. Therefore, Answer A is more appropriate because it specifically lists the enabled APIs for the specified project. Answer D lists all available APIs which may include APIs that are not enabled in the project, which could cause confusion or unnecessary information. Therefore, Answer A is the correct option in this case.
upvoted 4 times
...
...
Bobbybash
1 year, 6 months ago
Selected Answer: D
D. Run gcloud projects describe <project ID> to verify the project value, and then run gcloud services list --available. To produce a list of enabled Google Cloud Platform APIs for a GCP project using the gcloud command line, you can first run gcloud projects describe <project ID> to verify the project ID for the project in question. Then, you can run gcloud services list --available to list all the available APIs and see which ones are enabled for the project. This command shows the full list of services and their status, including whether they are enabled, disabled, or ready for use. Option A is incorrect because it lists all the available services, regardless of whether they are enabled or not. Option B is incorrect because it lists only the available services, which might not be enabled in the project. Option C is incorrect because it shows account information and not service information.
upvoted 1 times
...
Charumathi
1 year, 11 months ago
A is correct answer, Run the following command to list the enabled APIs and services in your current project: gcloud services list whereas, Run the following command to list the APIs and services available to you in your current project: gcloud services list --available
upvoted 1 times
...
AzureDP900
2 years, 2 months ago
A is the correct answer
upvoted 1 times
...
haroldbenites
2 years, 3 months ago
Go for A
upvoted 1 times
...
luciorifa
2 years, 6 months ago
Selected Answer: A
A is the correct answer
upvoted 2 times
...
sharmaishu
2 years, 6 months ago
A is the correct answer. https://cloud.google.com/sdk/gcloud/reference/services/list#--available --available Return the services available to the project to enable. This list will include any services that the project has already enabled. To list the services the current project has enabled for consumption, run: gcloud services list --enabled To list the services the current project can enable for consumption, run: gcloud services list --available
upvoted 2 times
...
[Removed]
2 years, 8 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
vishnukumartr
2 years, 9 months ago
A. Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>.
upvoted 1 times
...
shawnkkk
2 years, 9 months ago
A. Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>.
upvoted 1 times
...
Litan
2 years, 11 months ago
A Correct
upvoted 2 times
...
mcaromit
3 years, 3 months ago
A is correct
upvoted 2 times
...
Rabbitfur
3 years, 4 months ago
A is correct answer --project option available in gcloud command
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