Courseiva
Question 570 of 919
Implement a secure environmenteasyMultiple SelectObjective-mapped

DP-300 Implement a secure environment Practice Question

You are configuring security for an Azure SQL Database that will be used by a web application. The application uses a connection string with SQL authentication. You need to protect the database from SQL injection attacks. Which two measures should you implement? (Choose two.)

⚠ Common exam trap

Test-takers frequently confuse data-at-rest or data-masking features (TDE, DDM, Always Encrypted) with injection prevention, when in fact only query-level controls like parameterized queries and validated stored procedures directly mitigate SQL injection.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use parameterized queries in the application.

Parameterized queries ensure that user input is treated as data, not executable code, by separating SQL logic from input values. This prevents attackers from injecting malicious SQL statements into the query string, which is the primary defense against SQL injection attacks.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable Transparent Data Encryption (TDE).

    Why it's wrong here

    TDE protects data at rest, not injection.

  • Use parameterized queries in the application.

    Why this is correct

    Parameterized queries prevent injection.

  • Configure Dynamic Data Masking (DDM).

    Why it's wrong here

    DDM masks data, but does not prevent injection.

  • Implement stored procedures with input validation.

    Why this is correct

    Stored procedures can validate inputs.

  • Enable Always Encrypted on sensitive columns.

    Why it's wrong here

    Always Encrypted does not prevent SQL injection.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DP-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-300 exam.