Question 13 of 84 from exam PCD: Professional Cloud Developer

Question 13 of 84 from exam PCD: Professional Cloud Developer

Question

Your teammate has asked you to review the code below.

Its purpose is to efficiently add a large number of small rows to a BigQuery table.

BigQuery service = BigQueryOptions.newBuilder() .build() .getService();

public void writeToBigQuery(Collection<Map<String, String>> rows){
for (Map<String, String> row : rows) {
InsertAllRequest insertRequest = InsertAllRequest.newBuilder (
“datasetId”, “tableId”,
InsertAllRequest .RowToInsert.of (row) ) .build();
service.insertAll (insertRequest) ;

Which improvement should you suggest your teammate make?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.