ExamGecko
Home / Google / Professional Data Engineer / List of questions
Ask Question

Google Professional Data Engineer Practice Test - Questions Answers, Page 7

Add to Whishlist

List of questions

Question 61

Report Export Collapse

Which of the following statements about Legacy SQL and Standard SQL is not true?

Standard SQL is the preferred query language for BigQuery.
Standard SQL is the preferred query language for BigQuery.
If you write a query in Legacy SQL, it might generate an error if you try to run it with Standard SQL.
If you write a query in Legacy SQL, it might generate an error if you try to run it with Standard SQL.
One difference between the two query languages is how you specify fully-qualified table names (i.e. table names that include their associated project name).
One difference between the two query languages is how you specify fully-qualified table names (i.e. table names that include their associated project name).
You need to set a query language for each dataset and the default is Standard SQL.
You need to set a query language for each dataset and the default is Standard SQL.
Suggested answer: D
Explanation:

You do not set a query language for each dataset. It is set each time you run a query and the default query language is Legacy SQL.

Standard SQL has been the preferred query language since BigQuery 2.0 was released.

In legacy SQL, to query a table with a project-qualified name, you use a colon, :, as a separator. In standard SQL, you use a period, ., instead.

Due to the differences in syntax between the two query languages (such as with project-qualified table names), if you write a query in Legacy SQL, it might generate an error if you try to run it with Standard SQL.

Reference:

https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql

asked 18/09/2024
Antoine CHEA
29 questions

Question 62

Report Export Collapse

How would you query specific partitions in a BigQuery table?

Use the DAY column in the WHERE clause
Use the DAY column in the WHERE clause
Use the EXTRACT(DAY) clause
Use the EXTRACT(DAY) clause
Use the __PARTITIONTIME pseudo-column in the WHERE clause
Use the __PARTITIONTIME pseudo-column in the WHERE clause
Use DATE BETWEEN in the WHERE clause
Use DATE BETWEEN in the WHERE clause
Suggested answer: C
Explanation:

Partitioned tables include a pseudo column named _PARTITIONTIME that contains a date-based timestamp for data loaded into the table. To limit a query to particular partitions (such as Jan 1st and 2nd of 2017), use a clause similar to this:

WHERE _PARTITIONTIME BETWEEN TIMESTAMP('2017-01-01') AND TIMESTAMP('2017-01-02')

Reference: https://cloud.google.com/bigquery/docs/partitionedtables#the_partitiontime_pseudo_column

asked 18/09/2024
Phillip Doman
40 questions

Question 63

Report Export Collapse

Which SQL keyword can be used to reduce the number of columns processed by BigQuery?

BETWEEN
BETWEEN
WHERE
WHERE
SELECT
SELECT
LIMIT
LIMIT
Suggested answer: C
Explanation:

SELECT allows you to query specific columns rather than the whole table.

LIMIT, BETWEEN, and WHERE clauses will not reduce the number of columns processed by BigQuery.

Reference: https://cloud.google.com/bigquery/launchchecklist#architecture_design_and_development_checklist

asked 18/09/2024
Kaniamuthan K
49 questions

Question 64

Report Export Collapse

To give a user read permission for only the first three columns of a table, which access control method would you use?

Primitive role
Primitive role
Predefined role
Predefined role
Authorized view
Authorized view
It's not possible to give access to only the first three columns of a table.
It's not possible to give access to only the first three columns of a table.
Suggested answer: C
Explanation:

An authorized view allows you to share query results with particular users and groups without giving them read access to the underlying tables. Authorized views can only be created in a dataset that does not contain the tables queried by the view.

When you create an authorized view, you use the view's SQL query to restrict access to only the rows and columns you want the users to see.

Reference: https://cloud.google.com/bigquery/docs/views#authorized-views

asked 18/09/2024
Youssef El Akhal
40 questions

Question 65

Report Export Collapse

What are two methods that can be used to denormalize tables in BigQuery?

1) Split table into multiple tables; 2) Use a partitioned table
1) Split table into multiple tables; 2) Use a partitioned table
1) Join tables into one table; 2) Use nested repeated fields
1) Join tables into one table; 2) Use nested repeated fields
1) Use a partitioned table; 2) Join tables into one table
1) Use a partitioned table; 2) Join tables into one table
1) Use nested repeated fields; 2) Use a partitioned table
1) Use nested repeated fields; 2) Use a partitioned table
Suggested answer: B
Explanation:

The conventional method of denormalizing data involves simply writing a fact, along with all its dimensions, into a flat table structure. For example, if you are dealing with sales transactions, you would write each individual fact to a record, along with the accompanying dimensions such as order and customer information.

The other method for denormalizing data takes advantage of BigQuery's native support for nested and repeated structures in JSON or Avro input data. Expressing records using nested and repeated structures can provide a more natural representation of the underlying data. In the case of the sales order, the outer part of a JSON structure would contain the order and customer information, and the inner part of the structure would contain the individual line items of the order, which would be represented as nested, repeated elements.

Reference: https://cloud.google.com/solutions/bigquery-data-warehouse#denormalizing_data

asked 18/09/2024
Talal Elemam
55 questions

Question 66

Report Export Collapse

Which of these is not a supported method of putting data into a partitioned table?

If you have existing data in a separate file for each day, then create a partitioned table and upload each file into the appropriate partition.
If you have existing data in a separate file for each day, then create a partitioned table and upload each file into the appropriate partition.
Run a query to get the records for a specific day from an existing table and for the destination table, specify a partitioned table ending with the day in the format "$YYYYMMDD".
Run a query to get the records for a specific day from an existing table and for the destination table, specify a partitioned table ending with the day in the format "$YYYYMMDD".
Create a partitioned table and stream new records to it every day.
Create a partitioned table and stream new records to it every day.
Use ORDER BY to put a table's rows into chronological order and then change the table's type to "Partitioned".
Use ORDER BY to put a table's rows into chronological order and then change the table's type to "Partitioned".
Suggested answer: D
Explanation:

You cannot change an existing table into a partitioned table. You must create a partitioned table from scratch. Then you can either stream data into it every day and the data will automatically be put in the right partition, or you can load data into a specific partition by using "$YYYYMMDD" at the end of the table name.

Reference: https://cloud.google.com/bigquery/docs/partitioned-tables

asked 18/09/2024
justen layne
44 questions

Question 67

Report Export Collapse

Which of these operations can you perform from the BigQuery Web UI?

Upload a file in SQL format.
Upload a file in SQL format.
Load data with nested and repeated fields.
Load data with nested and repeated fields.
Upload a 20 MB file.
Upload a 20 MB file.
Upload multiple files using a wildcard.
Upload multiple files using a wildcard.
Suggested answer: B
Explanation:

You can load data with nested and repeated fields using the Web UI.

You cannot use the Web UI to:

- Upload a file greater than 10 MB in size

- Upload multiple files at the same time

- Upload a file in SQL format

All three of the above operations can be performed using the "bq" command.

Reference: https://cloud.google.com/bigquery/loading-data

asked 18/09/2024
Aviv Beck
46 questions

Question 68

Report Export Collapse

Which methods can be used to reduce the number of rows processed by BigQuery?

Splitting tables into multiple tables; putting data in partitions
Splitting tables into multiple tables; putting data in partitions
Splitting tables into multiple tables; putting data in partitions; using the LIMIT clause
Splitting tables into multiple tables; putting data in partitions; using the LIMIT clause
Putting data in partitions; using the LIMIT clause
Putting data in partitions; using the LIMIT clause
Splitting tables into multiple tables; using the LIMIT clause
Splitting tables into multiple tables; using the LIMIT clause
Suggested answer: A
Explanation:

If you split a table into multiple tables (such as one table for each day), then you can limit your query to the data in specific tables (such as for particular days). A better method is to use a partitioned table, as long as your data can be separated by the day.

If you use the LIMIT clause, BigQuery will still process the entire table.

Reference: https://cloud.google.com/bigquery/docs/partitioned-tables

asked 18/09/2024
Zdenek Kugler
34 questions

Question 69

Report Export Collapse

Why do you need to split a machine learning dataset into training data and test data?

So you can try two different sets of features
So you can try two different sets of features
To make sure your model is generalized for more than just the training data
To make sure your model is generalized for more than just the training data
To allow you to create unit tests in your code
To allow you to create unit tests in your code
So you can use one dataset for a wide model and one for a deep model
So you can use one dataset for a wide model and one for a deep model
Suggested answer: B
Explanation:

The flaw with evaluating a predictive model on training data is that it does not inform you on how well the model has generalized to new unseen data. A model that is selected for its accuracy on the training dataset rather than its accuracy on an unseen test dataset is very likely to have lower accuracy on an unseen test dataset. The reason is that the model is not as generalized. It has specialized to the structure in the training dataset. This is called overfitting.

Reference: https://machinelearningmastery.com/a-simple-intuition-for-overfitting/

asked 18/09/2024
Jean Presume
35 questions

Question 70

Report Export Collapse

Which of these numbers are adjusted by a neural network as it learns from a training dataset (select 2 answers)?

Weights
Weights
Biases
Biases
Continuous features
Continuous features
Input values
Input values
Suggested answer: A, B
Explanation:

A neural network is a simple mechanism that's implemented with basic math. The only difference between the traditional programming model and a neural network is that you let the computer determine the parameters (weights and bias) by learning from training datasets.

Reference: https://cloud.google.com/blog/big-data/2016/07/understanding-neural-networks-withtensorflow-playground

asked 18/09/2024
Francisco Jesús Cano Hinarejos
59 questions
Total 377 questions
Go to page: of 38

Related questions