Kuis Alibaba Cloud MaxCompute-SQL Development
Kuis Alibaba Cloud MaxCompute-SQL Development
5. Which of the following statements about order By and distribute By / sort by is incorrect in the
MaxCompute SQL syntax.
A. The keys of order by/sort by/distribute by must be output columns (namely, column aliases) of
Select statements.
B. Order by or group by cannot be used together with distribute by
C. When order by is used for sorting, NULL is considered to be zero.
D. Distribute by' performs hash-based sharding on data by values of certain columns. Aliases of
Select output columns must be used.
6. The source and pattern parameters of like and rlike must be string types or integer.
A. True
B. False
15. MaxCompute SQL provides EXPLAIN operation. What does the execution result include?
A. All resource structures corresponding to the DML sentence.
B. The dependency structure of all Task corresponding to the DML sentence.
C. The dependency structure of all Operator in Task.
D. The dependency structure of all Task in Task
18. When you have multiple tables join, it only allows one leftmost table to be a mapjoin table
A. True
B. False
19. Group by is for group query in MaxCompute SQL. Which of the following query of Group by are
correct?
A. Generally "group by" and aggregate function are used together.
B. The key of "group by" can be the column name of the input table.
C. When SELECT contains aggregate functions, "group by" can be an expression consisting of
columns of input tables.
D. When SELECT contains aggregate functions, "group by" can be the alias of the output column of
the SELECT statement.
21. Which of the following MaxCompute SQL syntax statements are correct?
A. JOIN of MaxCompute supports n-way join, but it must be a non-Cartesian product.
B. The indirect expression of MaxCompute's JOIN must be an equation expression.
C. When mapjoin references a small table or sub query, alias should be referenced, otherwise it will
report syntax errors.
D. Right outer join returns all records in the right table, even if there is no matched record in the left
table.
22. Suppose table t_dml only has one field named as id (type is string), which MaxCompute SQL query
cannot be executed correctly?
A. create table t_dml_bak like t_dml;
B. insert into table t_dml select '1900-01-01 00:00:00' from dual;
C. insert overwrite table t_dml select * from dual;
D. update table t_dml set id='a';
23. MaxCompute SQL supports multiple data type. Which group is incorrect?
A. Tinyint, Smallint, Int, Float, Varchar
B. Bigint, String, Double, Boolean, Decimal, Smallint
C. Bigint, String, Double, Datetime, Link, Decimal
D. Tinyint, Smallint, Float, Varchar, TIMESTAMP
24. Data type inconsistency is often encountered in business data processing. In order to keep data type
consistent, data processing system involves data type conversion. If maxcompute SQL is used for data
processing, which of the following conversion can not be achieved?
A. Bigint to String
B. String to Boolean
C. C. String to Bigint
D. Datetime to String
27. Which of the following statements of mapjoin Hint application of Maxcompute SQL are correct?
A. When a large table joins one or more small tables, you can use MapJoin, which performs much
faster than regular Joins.
B. When Mapjoin references a small table or sub query, alias should be referenced.
C. MaxCompute SQL does not support the use of complex Join conditions such as unequal
expressions, or logic in normal Joins on conditions, but in MapJoin it can.
D. When do multiple tables Join, the two left tables can be MapJoin tables at the same time.
28. Which of the following descriptions about the MaxCompute SQL constraint conditions are correct?
A. MaxCompute SQL does not support transactions.
B. MaxCompute SQL does not support indexes.
C. MaxCompute SQL supports delete operations.
D. MaxCompute SQL does not support update operations.
29. Which statement is incorrect for the dynamics partition in MaxCompute SQL?
A. If the destination table has multi-level partitions, it is allowed to specify parts of partitions to be
static partitions through 'Insert' statement, but the static partitions must be advanced partitions.
B. The value of dynamic partition can be special characters.
C. In the 'select_statement' field, the following field provides a dynamic partition value for the target
table.
D. The value of dynamic partition cannot be NULL.