NEW QUESTION 1Suppose you have a table that includes a nested column called “city” inside a column called “person”, but when you try to submit the following query in BigQuery, it gives you an error:SELECT person FROM `project1.example.table1` WHERE city = “London”How would you correct the error?

A. Add “, UNNEST(person)” before the WHERE clause.B. Change “person” to “person.city”.C. Change “person” to “city.person”.D. Add “, UNNEST(city)” before the WHERE clause.

Answer: BExplanation:Denormalization increases query speed for tables with billions of rows because BigQuery’s performance degrades when doing JOINs on large tables, but with a denormalized data structure, you don’t have to use JOINs, since all of the data has been combined into one table. Denormalization also makes queries simpler because you do not have to use JOIN clauses. Denormalization increases the amount of data processed and the amount of storage required because it creates redundant data.https://cloud.google.com/solutions/bigquery-data-warehouse#denormalizing_data

NEW QUESTION 3Which of these statements about exporting data from BigQuery is false?

A. To export more than 1 GB of data, you need to put a wildcard in the destination filename.B. The only supported export destination is Google Cloud Storage.C. Data can only be exported in JSON or Avro format.D. The only compression option available is GZIP.

NEW QUESTION 5Which of the following is not possible using primitive roles?

A. Give a user viewer access to BigQuery and owner access to Google Compute Engine instances.B. Give UserA owner access and UserB editor access for all datasets in a project.C. Give a user access to view all datasets in a project, but not run queries on them.D. Give GroupA owner access and GroupB editor access for all datasets in a project.

NEW QUESTION 6Which of these statements about BigQuery caching is true?

A. By default, a query’s results are not cached.B. BigQuery caches query results for 48 hours.C. Query results are cached even if you specify a destination table.D. There is no charge for a query that retrieves its results from cache.

Answer: DExplanation:When query results are retrieved from a cached results table, you are not charged for the query. BigQuery caches query results for 24 hours, not 48 hours. Query results are not cached if you specify a destination table. A query’s results are always cached except under certain conditions, such as if you specify a destination table.https://cloud.google.com/bigquery/querying-data#query-caching

NEW QUESTION 7Which of these sources can you not load data into BigQuery from?

Answer: DExplanation:You can load data into BigQuery from a file upload, Google Cloud Storage, Google Drive, or Google Cloud Bigtable. It is not possible to load data into BigQuery directly from Google Cloud SQL. One way to get data from Cloud SQL to BigQuery would be to export data from Cloud SQL to Cloud Storage and then load it from there.https://cloud.google.com/bigquery/loading-data

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

A. Standard SQL is the preferred query language for BigQuery.B. If you write a query in Legacy SQL, it might generate an error if you try to run it with Standard SQL.C. 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).D. You need to set a query language for each dataset and the default is Standard SQL.

Answer: DExplanation: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.https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql

NEW QUESTION 9How would you query specific partitions in a BigQuery table?

A. Use the DAY column in the WHERE clauseB. Use the EXTRACT(DAY) clauseC. Use the PARTITIONTIME pseudo-column in the WHERE clauseD. Use DATE BETWEEN in the WHERE clause

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

A. Primitive role.B. Predefined role.C. Authorized view.D. It’s not possible to give access to only the first three columns of a table.

Answer: CExplanation: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.https://cloud.google.com/bigquery/docs/views#authorized-views

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

A. 1. Split table into multiple tables2. Use a partitioned tableB. 1. Join tables into one table2. Use nested repeated fieldsC. 1. Use a partitioned table2. Join tables into one tableD. 1. Use nested repeated fields2. Use a partitioned table

Answer: BExplanation: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.https://cloud.google.com/solutions/bigquery-data-warehouse#denormalizing_data

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

A. 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.B. 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”.C. Create a partitioned table and stream new records to it every day.D. Use ORDER BY to put a table’s rows into chronological order and then change the table’s type to “Partitioned”.

Answer: DExplanation: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.https://cloud.google.com/bigquery/docs/partitioned-tables

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

Answer: BExplanation: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 formatAll three of the above operations can be performed using the “bq” command.https://cloud.google.com/bigquery/loading-data

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

A. Splitting tables into multiple tables; putting data in partitions.B. Splitting tables into multiple tables; putting data in partitions; using the LIMIT clause.C. Putting data in partitions; using the LIMIT clause.D. Splitting tables into multiple tables; using the LIMIT clause.

Answer: AExplanation: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.https://cloud.google.com/bigquery/docs/partitioned-tables