exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 1 question 21 discussion

Actual exam question from Microsoft's PL-300
Question #: 21
Topic #: 1
[All PL-300 Questions]

HOTSPOT
-

You have the Azure SQL databases shown in the following table.



You plan to build a single PBIX file to meet the following requirements:

• Data must be consumed from the database that corresponds to each stage of the development lifecycle.
• Power BI deployment pipelines must NOT be used.
• The solution must minimize administrative effort.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
SanaCanada
Highly Voted 2 years ago
Given answer is correct To meet the requirements specified, we can use a single parameter in the PBIX file that controls which database is used for data consumption based on the stage of the development lifecycle. We can use a Text parameter type in Power BI to achieve this. The parameter can be used to switch between the different database connections when a user interacts with the report. The text parameter could include values such as "Development", "Staging", and "Production", which correspond to the different databases shown in the table. The parameter can then be used in the queries to dynamically filter the data based on the selected stage of the development lifecycle. By using a single parameter, we can minimize administrative effort and ensure that the report works with each stage of the development lifecycle. No confusion, and no need to discuss further
upvoted 106 times
nelrosell
7 months, 3 weeks ago
no not correct
upvoted 1 times
...
inejo
1 year, 10 months ago
Gracias por tu explicación :)
upvoted 4 times
...
Nemesizz
1 year, 11 months ago
Why not two parameters, one for the name and other for the server?
upvoted 9 times
...
prikha16
1 year, 10 months ago
How will give this parameter in the source step of the queries for tables? we need to give server and DB name?
upvoted 3 times
CookieMingkee
1 year, 3 months ago
It is a trick question. You have to pay attention to the names of the databases and the servers. Databases: db-powerbi-dev db-powerbi-uat db-powerbi-prod Servers: dev.database.windows.net uat.database.windows.net prod.database.windows.net The only differences among the 3 names are "dev", "uat", and "prod". Create a single parameter as Text and Suggested value as List of Values. Your list of values will be: dev uat prod In the Power Query editor use the parameter value and concatenate it with the rest of the database and server name. Source = Sql.Database(#"ParameterName"&".database.windows.net", "db-powerbi-"&#"ParameterName") If the Parameter Value selected from the list is "uat", the connection is interpreted as: Source = Sql.Database("uat.database.windows.net", "db-powerbi-uat") I hope that clarifies the answer.
upvoted 78 times
...
...
...
BellaL9
Highly Voted 2 years ago
Create: 2 parameters Parameter type: text
upvoted 22 times
Alam4545
1 year, 7 months ago
why do you think about server name? just deal with three different database name with one parameter. That's it!
upvoted 2 times
...
semauni
2 years ago
I would agree if this table was not available. In this case, both the server and the database name are tied to the test stage, so that column encompasses both. SanaCanada explains very well how to accomplish the connection with just one parameter.
upvoted 3 times
Shalaleh
1 year, 12 months ago
would you please explain more?
upvoted 2 times
...
...
...
nelrosell
Most Recent 7 months, 3 weeks ago
The given database names are different from each environment as well as the server name. So it needs two parameters, if the given database names are same then we only need one parameter for the server name.
upvoted 1 times
...
rcaliandro
8 months, 2 weeks ago
We need one-text parameter in order to switch the various environments (dev, test, prod)
upvoted 1 times
...
Kiran37
9 months, 1 week ago
Correct , create Parameter for 2 Environment
upvoted 1 times
...
Jane97
10 months, 1 week ago
To meet the requirements specified, we can use a single parameter in the PBIX file that controls which database is used for data consumption based on the stage of the development lifecycle. We can use a Text parameter type in Power BI to achieve this. The parameter can be used to switch between the different database connections when a user interacts with the report. The text parameter could include values such as "Development", "Staging", and "Production", which correspond to the different databases shown in the table. The parameter can then be used in the queries to dynamically filter the data based on the selected stage of the development lifecycle. By using a single parameter, we can minimize administrative effort and ensure that the report works with each stage of the development lifecycle
upvoted 1 times
...
abhijeetbgmcanada
1 year, 3 months ago
one param approach will work only if , each full connection string can be prepared like <database>. <other part of URL>. in that case, 3 env.s can be switched as per need. if both cannot be combined ina single entity, then 2 params are needed. ( I dont have exact idea abot how the connection gets created in textuual form internally ). kindly confirm if i am wrong and upvote if correct.
upvoted 3 times
...
SumaiyaKS
1 year, 4 months ago
I think coz db name is an optional param, one would do for the server name alone
upvoted 1 times
...
Saluk_DE
1 year, 4 months ago
Connection is done with two different fields "Server" and "Database", so you will need also two parameters for that. Answer should be 2 parameters, both text.
upvoted 1 times
...
lcss27
1 year, 7 months ago
Correct Answers: One Parameter / Text In Power Query, in Advance Editor you can use 1 parameter to update the stage of the server and the database by modifying the M Code as follows: '=Sql.Database(parameter&"ServerUrl", "DatabaseName"&parameter)'
upvoted 4 times
abhijeetbgmcanada
1 year, 3 months ago
But in such solution, when the database name changes from dev to uat to prod, paramter vales will place the URL of dev uat and prod, but how database name will change automatically? ( i.e. suppose you statically give database name as dev db name, then param value comes as uat env URL. then how this will work ? hencce I feel 2 params are needed.
upvoted 1 times
...
...
Igetmyrole
1 year, 7 months ago
The correct answers are Two Parameters and Text. ** Two Parameters: it is because we have three stages; Development, Test, and Production, which means we need parameters to dynamically switch between these stages. We have two columns in the table that are relevant for the scenario, "Stage" (to determine the stage) and "Server URL" (to specify the database server URL). ** Text: Text parameter is suitable for the scenario because we want to use them to switch between different server URLs based on the selected stage.
upvoted 1 times
TrainingCA06
1 year, 1 month ago
No NO NO, the answer is right.: 1 Parameter type text, and then when you configure it show an option to LIST, in the list you add each environment.
upvoted 1 times
...
cs3122
1 year, 3 months ago
You can accomplish this with 1 parameter instead. It would contain "Dev" "uat" and "Prod", and you can apply it to both columns
upvoted 1 times
...
...
ApacheKafka
1 year, 9 months ago
I think we just need 1 parameter because all the databases have different names and url to represent each of the stages. Using 2 parameters is waste of resources as just 1 parameter can serve the purpose. In this case we can chose to use either the database name or url. The stage column is only an additional information to clarify each database name or url. I hope this is clear.
upvoted 1 times
...
JJMC5544
1 year, 9 months ago
1 Parameter with "List of Values"
upvoted 2 times
...
Scobie
1 year, 10 months ago
SanaCanada is correct here only one parameter is needed. With one parameter with the parameter type of "Text" and Suggested Values to be "List of values" you can set three values as dev, uat, and prod. In the Azure they contain the same structure for the Name and Server URL. "db-powerbi-" & ".database.windows.net" The only thing that changes between the stages is dev, uat, and prod and for each of the stages the Name and Server URL is the same value for that stage. E.g, "db-powerbi-dev" & "dev.database.windows.net"
upvoted 4 times
Cyprien_B
1 year, 10 months ago
To be a bit more precise, when modifying the source in Power Query, we can click on "Advanced" and modify the source URL for a URL that contains both text and parameters.
upvoted 1 times
...
prikha16
1 year, 10 months ago
Those of you who are saying one, have you tried it yourself? I am not able to edit the code in advanced editor using one parameter. I would go with 2 parameters.
upvoted 1 times
...
...
KARELA
1 year, 11 months ago
Please share resources from where this is referenced.
upvoted 3 times
...
Sandy2010
2 years ago
Given answer is correct
upvoted 1 times
Shalaleh
1 year, 12 months ago
why? can you explain why not 2?
upvoted 2 times
...
...
Vidharthi
2 years ago
I think we need to create three parameter for, dev test, prod ?
upvoted 1 times
joaowendling
1 year, 12 months ago
No, we just need one text parameter, that will reflect what is the stage of development. One parameter can have multiple values (dev, test, prod)
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago