exam questions

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 56 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 56
Topic #: 1
[All Professional Data Engineer Questions]

You have enabled the free integration between Firebase Analytics and Google BigQuery. Firebase now automatically creates a new table daily in BigQuery in the format app_events_YYYYMMDD. You want to query all of the tables for the past 30 days in legacy SQL. What should you do?

  • A. Use the TABLE_DATE_RANGE function
  • B. Use the WHERE_PARTITIONTIME pseudo column
  • C. Use WHERE date BETWEEN YYYY-MM-DD AND YYYY-MM-DD
  • D. Use SELECT IF.(date >= YYYY-MM-DD AND date <= YYYY-MM-DD
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
damaldon
Highly Voted 2 years, 7 months ago
A. is correct according to this link: https://cloud.google.com/bigquery/docs/reference/legacy-sql
upvoted 9 times
...
baimus
Most Recent 7 months ago
Selected Answer: A
https://cloud.google.com/bigquery/docs/reference/legacy-sql#table-date-range
upvoted 1 times
...
Preetmehta1234
1 year, 2 months ago
Selected Answer: B
We don’t have TABLE DATE RANGE function in legacy SQL. Answer should be B
upvoted 1 times
mark1223jkh
11 months, 2 weeks ago
We actually have, look at the documentation, https://cloud.google.com/bigquery/docs/reference/legacy-sql
upvoted 2 times
...
...
AjoseO
1 year, 6 months ago
Selected Answer: A
The recommended action is to use the TABLE_DATE_RANGE function (option A). This function allows you to specify a range of dates to query across multiple tables.
upvoted 1 times
...
Nirca
1 year, 6 months ago
Selected Answer: A
The TABLE_DATE_RANGE function in BigQuery is a table wildcard function that can be used to query a range of daily tables. It takes two arguments: a table prefix and a date range. The table prefix is the beginning of the table names, and the date range is the start and end dates of the tables to be queried. The TABLE_DATE_RANGE function will expand to cover all tables in the dataset that match the table prefix and are within the date range. For example, if you have a dataset that contains daily tables named my_table_20230804, my_table_20230805, and my_table_20230806, you could use the TABLE_DATE_RANGE function to query all of the tables in the dataset between August 4, 2023 and August 6, 2023 as follows: SELECT * FROM TABLE_DATE_RANGE('my_table_', '2023-08-04', '2023-08-06');
upvoted 3 times
...
samdhimal
2 years, 3 months ago
A Is correct. TABLE_DATE_RANGE() : Queries multiple daily tables that span a date range.
upvoted 2 times
samdhimal
2 years, 3 months ago
Example: SELECT * FROM TABLE_DATE_RANGE(app_events_, TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY), CURRENT_TIMESTAMP())
upvoted 2 times
...
...
DipT
2 years, 4 months ago
Selected Answer: A
https://cloud.google.com/bigquery/docs/reference/legacy-sql TABLE_DATE_RANGE() Queries multiple daily tables that span a date range.
upvoted 1 times
...
skp57
2 years, 5 months ago
A. is Correct... from...https://cloud.google.com/blog/products/management-tools/using-bigquery-and-firebase-analytics-to-understand-your-mobile-app SELECT user_dim.app_info.app_platform as appPlatform, user_dim.device_info.device_category as deviceType, COUNT(user_dim.device_info.device_category) AS device_type_count FROM TABLE_DATE_RANGE([firebase-analytics-sample-data:android_dataset.app_events_], DATE_ADD('2016-06-07', -7, 'DAY'), CURRENT_TIMESTAMP()), TABLE_DATE_RANGE([firebase-analytics-sample-data:ios_dataset.app_events_], DATE_ADD('2016-06-07', -7, 'DAY'), CURRENT_TIMESTAMP()) GROUP BY 1,2 ORDER BY device_type_count DESC
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