Microsoft AB-400 - Extending Microsoft Power Platform Solutions with Code and AI Exam
Page: 3 / 11
Total 52 questions
Question #11 (Topic: Topic 1, Build Microsoft Power Platform solutions
)
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.
A company develops a Power Apps code app that integrates with a SQL Server database. The connection information will change based on the environment, so any values will be stored in an environment variable.
You plan to use the Power Apps CLI to add the SQL Server connection to the code app.
The command must meet the following criteria:
Read the current environment-specific value(s).
Account for the possibility of different server and table names.
Continue working when deployed to different environments.
You need to create the command.
Solution: pac code add-data-source -a “<apiId>” -c “<connectionId>” -d “crd1b_SQLConnection” -t “crd1b_SQLTableName”
Does the solution meet the goal?
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.
A company develops a Power Apps code app that integrates with a SQL Server database. The connection information will change based on the environment, so any values will be stored in an environment variable.
You plan to use the Power Apps CLI to add the SQL Server connection to the code app.
The command must meet the following criteria:
Read the current environment-specific value(s).
Account for the possibility of different server and table names.
Continue working when deployed to different environments.
You need to create the command.
Solution: pac code add-data-source -a “<apiId>” -c “<connectionId>” -d “crd1b_SQLConnection” -t “crd1b_SQLTableName”
Does the solution meet the goal?
A. Yes
B. No
Answer: B
Question #12 (Topic: Topic 1, Build Microsoft Power Platform solutions
)
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.
A company develops a Power Apps code app that integrates with a SQL Server database. The connection information will change based on the environment, so any values will be stored in an environment variable.
You plan to use the Power Apps CLI to add the SQL Server connection to the code app.
The command must meet the following criteria:
Read the current environment-specific value(s).
Account for the possibility of different server and table names.
Continue working when deployed to different environments.
You need to create the command.
Solution: pac code add-data-source -a “<apiId>” -c “<connectionId>” -d “myserver.database.windows.net,mydatabase” -t “sqltablename”
Does the solution meet the goal?
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.
A company develops a Power Apps code app that integrates with a SQL Server database. The connection information will change based on the environment, so any values will be stored in an environment variable.
You plan to use the Power Apps CLI to add the SQL Server connection to the code app.
The command must meet the following criteria:
Read the current environment-specific value(s).
Account for the possibility of different server and table names.
Continue working when deployed to different environments.
You need to create the command.
Solution: pac code add-data-source -a “<apiId>” -c “<connectionId>” -d “myserver.database.windows.net,mydatabase” -t “sqltablename”
Does the solution meet the goal?
A. Yes
B. No
Answer: B
Question #13 (Topic: Topic 1, Build Microsoft Power Platform solutions
)
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.
A company develops a Power Apps code app that integrates with a SQL Server database. The connection information will change based on the environment, so any values will be stored in an environment variable.
You plan to use the Power Apps CLI to add the SQL Server connection to the code app.
The command must meet the following criteria:
Read the current environment-specific value(s).
Account for the possibility of different server and table names.
Continue working when deployed to different environments.
You need to create the command.
Solution: pac code add-data-source -a “<apiId>” -c “<connectionId>” -d “@envvar:crd1b_SQLConnection” –t “@envvar:crd1b_SQL TableName”
Does the solution meet the goal?
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.
A company develops a Power Apps code app that integrates with a SQL Server database. The connection information will change based on the environment, so any values will be stored in an environment variable.
You plan to use the Power Apps CLI to add the SQL Server connection to the code app.
The command must meet the following criteria:
Read the current environment-specific value(s).
Account for the possibility of different server and table names.
Continue working when deployed to different environments.
You need to create the command.
Solution: pac code add-data-source -a “<apiId>” -c “<connectionId>” -d “@envvar:crd1b_SQLConnection” –t “@envvar:crd1b_SQL TableName”
Does the solution meet the goal?
A. Yes
B. No
Answer: A
Question #14 (Topic: Topic 1, Build Microsoft Power Platform solutions
)
HOTSPOT
You have the following code registered on the OnChange event of the parentcustomerid column on a contact table form. The parentcustomerid field is a lookup which can be an account or a contact record.
Line numbering is provided for information only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
You have the following code registered on the OnChange event of the parentcustomerid column on a contact table form. The parentcustomerid field is a lookup which can be an account or a contact record.
Line numbering is provided for information only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Answer:
Question #15 (Topic: Topic 2, Extend the user experience
)
DRAG DROP
You are creating a Power Apps Component Framework (PCF) control.
You test the control by using a local test harness.
You need to complete testing.
Which commands should you use? To answer, drag the appropriate commands to the correct functions. Each command may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
You are creating a Power Apps Component Framework (PCF) control.
You test the control by using a local test harness.
You need to complete testing.
Which commands should you use? To answer, drag the appropriate commands to the correct functions. Each command may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Answer: