DP-500 Practice Test practice questions, page 6 of 8, with answer review and explanations.
Question 26
You use an Apache Spark notebook in Azure Synapse Analytics to filter and transform data. You need to review statistics for a DataFrame that includes: The column name - The column type - The number of distinct values - Whether the column has missing values Which function should you use?
displayHTML()
display(df, summary=true)
%%configure
display(df)
%%lsmagic
Question 27
You are using an Azure Synapse notebook to create a Python visual. You run the following code cell to import a dataset named Iris. A sample of the data is shown in the following table. You need to create the visual shown in the exhibit. (Click the Exhibit tab.) How should you complete the Python code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Question 28
You are creating a Power BI single-page report. Some users will navigate the report by using a keyboard, and some users will navigate the report by using a screen reader. You need to ensure that the users can consume content on a report page in a logical order. What should you configure on the report page?
the X position
the bookmark order
the layer order
the tab order
Question 29
You have an Azure Synapse workspace named Workspace1. You need to use PySpark in a notebook to read data from a SQL pool as an Apache Spark DataFrame and display the top five rows. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Question 30
You have a Power BI report that contains the table shown in the following exhibit. The table contains conditional formatting that shows which stores are above, near, or below the monthly quota for returns. You need to ensure that the table is accessible to consumers of reports who have color vision deficiency. What should you do?
Add alt text to explain the information that each color conveys.
Change the icons to use a different shape for each color.
Move the conditional formatting icons to a tooltip report.
Remove the icons and use red, yellow, and green background colors instead.