![]() |
Cloud MaxCompute-UDF Development (Exam) | Alibaba |
Introducing the Alibaba Cloud MaxCompute-UDF Development Exam! This certification exam is designed to validate your skills in developing User Defined Functions (UDF) within the MaxCompute environment. Ideal for data professionals and developers, this exam will test your knowledge and proficiency in writing and optimizing UDFs, ensuring you are equipped to handle complex data processing tasks on Alibaba Cloud. Enhance your credentials and demonstrate your expertise by earning this prestigious certification. Prepare today and take the next step in your cloud computing career with Alibaba Cloud.
Notice!
Always refer to the official Alibaba Documentaion for the most accurate and up-to-date information.
Attention!
If you have any questions that are not covered in this post, please feel free to leave them in the comments section below. Thank you for your engagement.
Exam Question
1. The NULL value in SQL is represented by a NULL reference in Java; therefore, ‘Java primitive type’ is not allowed because it cannot represent a NULL value in SQL.A. TrueB. False
A. UDTF through @Resolve annotation to specify the signatureB. UDAF through evaluate signature to map UDF input/output type.C. UDF through evaluate signature to map UDF input/output type.D. UDAF through @Resolve annotation to get the signature
A. No other expressions are allowed in the same SELECT clauseB. No other expressions are allowed in the same SELECT clauseC. It can be used in where filtering conditions.D. No support use with distribute by together in same
A. UDFB. UDAFC. UDGFD. UDTF
A. TrueB. False
A. The code is added to the MaxCompute through the form of resources.B. Java UDF must be packeted as Jar format.C. UDF framework can load jar packets automatically.D. After adding the Jar package, this UDF is ready for use.
A. TrueB. False
A. TrueB. False
A. It does not support the use with group by together in the same SELECT clause.B. It supports the use with distribute by together in the same SELECT clause.C. Supports other expressions in the same SELECT clause.D. It does not support the use with sort by together in the same SELECT clause.
A. To implement UDF, the class ‘com.aliyun.odps.udf.UDF’ must be inherited and the ‘evaluate’ method must be appliedB. The parameter type and return value type of Evaluate method is considered as UDF signature in SQL.C. To call UDF, the framework must match the correct evaluate method according to the parameter type called by UDF.D. The ‘evaluate’ method must be a static public method.E. User can implement multiple evaluate methods in UDF
A. The main logic of UDAF relies on these three interfaces: ‘iterate’, ‘merge’, and ‘terminate’.B. To implement UDAF we need to inherit the com.aliyun.odps.udf.Aggregator class.C. Need to implement interfaces. Eg setup, newBuffer, iterate, terminate, merge, close and so on.D. Don't support user-defined Writable buffer
A. SELECT myudf_lower(name) FROM t_test;B. SELECT * FROM t_test where myudf_lower('Aaa')=name;C. SELECT * FROM t_test where myudf_lower(name) = 'odps';D. SELECT * FROM t_test where myudf_lower(myudf_lower(name)) = 'zzzz';
A. To implement UDF, we need to inherit the com.aliyun.odps.udf.UDTF class.B. To implement UDF, we need to inherit the com.aliyun.odps.udf.UDTF class.C. . @Resovle() defines the function input/output parameters data type.D. When invoking UDTF, the input parameter can be not consistent with @Resolve definition.
A. select user_udtf(col0, col1, col2) as (c0, c1) from my_table;B. select user_udtf(col0, col1, col2) as (c0, c1),col3 from my_table;C. select user_udtf(col0, col1, col2) as (c0, c1) from (select * from my_table distribute by key sort by key) t;D. select reduce_udtf(col0, col1, col2) as (c0, c1) from (select col0, col1, col2 from (select map_udtf(a0, a1, a2, a3) as (col0, col1, col2) from my_table) t1 distribute by col0 sort by col0, col1) t2;
A. Function input and output are one to one.B. Return a scalar value of a specified type.C. Can not be used with other functions.D. It can be used in WHERE filtering conditions.