Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud Architect topic 1 question 83 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 83
Topic #: 1
[All Professional Cloud Architect Questions]

Your BigQuery project has several users. For audit purposes, you need to see how many queries each user ran in the last month. What should you do?

  • A. Connect Google Data Studio to BigQuery. Create a dimension for the users and a metric for the amount of queries per user.
  • B. In the BigQuery interface, execute a query on the JOBS table to get the required information.
  • C. Use 'bq show' to list all jobs. Per job, use 'bq ls' to list job information and get the required information.
  • D. Use Cloud Audit Logging to view Cloud Audit Logs, and create a filter on the query operation to get the required information.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Googler2
Highly Voted 4 years ago
D- reasons: 1.-Cloud Audit Logs maintains audit logs for admin activity, data access and system events. BIGQUERY is automatically send to cloud audit log functionality. 2.- In the filter you can filter relevant BigQuery Audit messages, you can express filters as part of the export https://cloud.google.com/logging/docs/audit https://cloud.google.com/bigquery/docs/reference/auditlogs#ids https://cloud.google.com/bigquery/docs/reference/auditlogs#auditdata_examples
upvoted 47 times
GooglecloudArchitect
3 years, 9 months ago
D is the right as you can get the monthly view of the query usage across all the users and projects for auditing purpose. C does need appropriate permission to see the detail level data. Monthly view is tough to get directly from the bq ls or bq show commands.
upvoted 9 times
...
heretolearnazure
8 months ago
Answer is D
upvoted 1 times
...
...
Zarmi
Highly Voted 3 years, 11 months ago
Answer is D: https://cloud.google.com/bigquery/docs/reference/auditlogs#example_query_cost_breakdown_by_identity
upvoted 27 times
BobbyFlash
2 years, 4 months ago
Nailed it
upvoted 2 times
...
ErenYeager
1 year, 5 months ago
No mention about exporting to bq
upvoted 1 times
...
...
AhmedSami
Most Recent 2 months, 2 weeks ago
Selected Answer: C
reason: https://cloud.google.com/logging/docs/audit#data-access Data Access audit logs—except for BigQuery Data Access audit logs—are disabled by default because audit logs can be quite large. If you want Data Access audit logs to be written for Google Cloud services other than BigQuery, you must explicitly enable them
upvoted 1 times
...
SSS987
3 months, 1 week ago
I finally decide to go with Option D over B because we or the auditor might not have access to the metadata. In fact, in our project, not all of us had access to query this view. "To get the permission that you need to query the INFORMATION_SCHEMA.JOBS view, ask your administrator to grant you the BigQuery Resource Viewer" https://cloud.google.com/bigquery/docs/information-schema-jobs#required_role. (And not because of the wordings "Table" instead of "view" - don't think an architect exam will try to assess your memory of whether it is a table or a view or your understanding of the difference between a table and a view).
upvoted 2 times
...
PhatLau
3 months, 1 week ago
Selected Answer: D
C - bq show: To view job details (https://cloud.google.com/bigquery/docs/managing-jobs#view_job_details_2) bq ls: To list jobs (https://cloud.google.com/bigquery/docs/managing-jobs#list_jobs) So D is the correct one.
upvoted 1 times
...
zaxxon
4 months, 2 weeks ago
Selected Answer: C
https://cloud.google.com/bigquery/docs/managing-jobs#list_jobs_in_a_project
upvoted 1 times
...
muh21
7 months, 1 week ago
I think B is the correct answer
upvoted 1 times
...
TheCloudGuruu
11 months, 2 weeks ago
Selected Answer: D
Cloud Logging
upvoted 1 times
...
VarunGo
11 months, 3 weeks ago
Selected Answer: B
B is correct. here's the link - https://cloud.google.com/bigquery/docs/information-schema-jobs
upvoted 5 times
...
medi01
1 year ago
Selected Answer: B
JOBS system table does exist and it contains exactly the info we need: one record for each job executed by users (query is one of the type of the jobs)
upvoted 2 times
...
JC0926
1 year ago
Selected Answer: D
D. Use Cloud Audit Logging to view Cloud Audit Logs, and create a filter on the query operation to get the required information. Cloud Audit Logging records activities and API calls in Google Cloud services, including BigQuery. You can use Cloud Audit Logging to view logs and filter them based on specific operations, such as queries in BigQuery. By filtering on the query operation, you can gather the required information about how many queries each user ran in the last month, which is essential for audit purposes.
upvoted 2 times
...
gcppandit
1 year, 3 months ago
Selected Answer: D
A is not possible. B is possible if VIEW is used instead of TABLE in the description. I use this view to get this information regularly. C. I have no cloud how this can be right answer. D. Only possible as per text descriptions.
upvoted 4 times
medi01
1 year ago
JOBS being read-only for the user doesn't make it a view.
upvoted 2 times
...
...
foward
1 year, 3 months ago
Selected Answer: D
d is correct
upvoted 1 times
...
omermahgoub
1 year, 4 months ago
The correct answer is D. Use Cloud Audit Logging to view Cloud Audit Logs, and create a filter on the query operation to get the required information. Google Cloud's Cloud Audit Logging service allows you to view, search, and export audit logs for your Google Cloud projects. These audit logs contain information about the actions that are performed in your project, including queries that are run in BigQuery. To see how many queries each user ran in the last month, you can use Cloud Audit Logging to view the Cloud Audit Logs for your BigQuery project. Then, you can create a filter on the query operation to see only the queries that were run. You can also create a filter on the user field to see the queries that were run by each user. This will allow you to see the number of queries that were run by each user in the last month, which can be useful for audit purposes.
upvoted 5 times
omermahgoub
1 year, 4 months ago
Option A, connecting Google Data Studio to BigQuery and creating a dimension for the users and a metric for the amount of queries per user, is a valid method of visualizing data, but it would not provide the specific information about the number of queries that were run by each user in the last month. Option B, executing a query on the JOBS table to get the required information, is not a viable option because the JOBS table does not contain information about the user who ran the query. Option C, using the 'bq show' and 'bq ls' commands to list job information, is not a viable option because these commands do not provide information about the user who ran the query.
upvoted 7 times
morffi
12 months ago
Option A: Why would this not provide correct information? You could show the content of the JOBS view. : SELECT user_email, CAST(creation_time as DATE) as date, count(*) as queries_per_day FROM `region-eu`.INFORMATION_SCHEMA.JOBS WHERE creation_time BETWEEN TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 45 DAY) AND CURRENT_TIMESTAMP() AND job_type = 'QUERY' group by user_email, CAST(creation_time as DATE)
upvoted 1 times
...
...
...
surajkrishnamurthy
1 year, 4 months ago
Selected Answer: D
D is the correct answer
upvoted 1 times
...
[Removed]
1 year, 4 months ago
Bug it's Cloud Audit Logs enabled default for Big Query?
upvoted 1 times
...
megumin
1 year, 5 months ago
Selected Answer: D
D is ok
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 ...