Microsoft

AI-103 practice question 5

Developing AI Apps and Agents on Azure · free question 5 of 20

Question

You have a Microsoft Foundry project that contains a workflow for a customer support triage process. You have an Ask a question node that stores user responses in a local variable named Var01. You need to create the following Power Fx expressions: - An if/else condition expression that ensures that Var01 contains a value - A Send message expression that returns the stored user response in uppercase How should you configure the expressions? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Explanation

If/else condition expression: Not(IsBlank(Local.Var01)) is true only when the variable holds a value. IsBlank(Local.Var01) is the opposite test, true when the variable has no value. IsEmpty checks whether a table has no records, so it is not the right test for a single response value. Send message expression: {Upper(Local.Var01)} converts the stored response to uppercase, and the curly braces evaluate the formula inside the message. Local variables must carry the Local. prefix, so {Upper(Var01)} fails with a name error. {Local.Var01} returns the response unchanged, without the uppercase conversion.

Need the theory? Learn it free in the AI-103 course on Godlike Academy

Practice the whole free set

Answer all 20 free AI-103 questions with instant feedback, or unlock all 65 questions with Learn and Exam modes.