
Answer-first summary for fast verification
Answer: Run `gcloud services list --project` to retrieve all enabled services.
Option D is correct because `gcloud services list --project` defaults to listing only enabled APIs, directly providing the list without additional steps. Options A and B are incorrect as they list all available APIs, not just the enabled ones. Option C is incorrect because it focuses on account information rather than project-specific enabled services. This approach ensures the auditors receive precisely the information they need for the audit.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is undergoing a Cloud Security and Compliance audit by a third-party auditor. To assist your team during the audit, you need to provide the auditors with a list of enabled Google Cloud Platform APIs for your GCP project using the command line. What is the correct method to achieve this?
A
Execute gcloud init to establish a new configuration and set the current project to your GCP project, then run gcloud services list --available.
B
Use gcloud projects describe to obtain the project value, followed by gcloud services list --available.
C
Identify the account value with gcloud info, then execute gcloud services list --account.
D
Run gcloud services list --project to retrieve all enabled services.
No comments yet.