MicrosoftMicrosoft
DP-420 · Question #29
DP-420 Question #29: Real Exam Question with Answer & Explanation
Sign in or unlock DP-420 to reveal the answer and full explanation for question #29. The question stem and answer options stay visible for context.
Integrate an Azure Cosmos DB solution
Question
You have a database in an Azure Cosmos DB for NoSQL account. You need to create an Azure function that will access the database to retrieve records based on a variable named accountnumber. The solution must protect against SQL injection attacks. How should you define the command statement in the function?
Options
- Acmd = "SELECT * FROM Persons p
- Bcmd = "SELECT * FROM Persons p
- Ccmd = "SELECT * FROM Persons p
- Dcmd = "SELECT * FROM Persons p
Unlock DP-420 to see the answer
You've previewed enough free DP-420 questions. Unlock DP-420 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#SQL Injection#Parameterized Queries#Azure Cosmos DB NoSQL#Secure Coding