Question 665 of 1,000
Secure compute, storage, and databaseshardMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to create a user mapped to the Entra ID user and grant SELECT on the Sales schema only. This works because Azure SQL Database supports schema-level permissions, allowing you to precisely control access by granting a specific permission like SELECT directly on a schema, which automatically applies to all current and future tables within that schema. On the AZ-500 exam, this scenario tests your understanding of granular, database-scoped permissions versus broader server-level roles, which would grant access across all schemas. A common trap is choosing to deny permissions on other schemas, but deny rules can be overridden by explicit grants and are less secure than a targeted grant. Another trap is using a contained database user, which does not support Entra ID authentication. Remember the principle of least privilege: grant exactly what is needed, nothing more. For a memory tip, think "Schema SELECT, not server reject."

AZ-500 Secure compute, storage, and databases Practice Question

This AZ-500 practice question tests your understanding of secure compute, storage, and databases. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Your company uses Azure SQL Database with Microsoft Entra ID authentication. You need to restrict a user to only view data from the 'Sales' schema, without granting permissions to other schemas. What should you do?

Question 1hardmultiple choice
Full question →

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

Create a user mapped to the Entra ID user and grant SELECT on the Sales schema only.

Creating a user in the database mapped to the Entra ID user and granting SELECT only on the Sales schema meets the requirement. Option A is wrong because roles at the server level grant broader permissions. Option B is wrong because denying permissions is less secure and can be overridden. Option D is wrong because contained database users do not use Entra ID.

Key principle: OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough.

Answer analysis

Option-by-option breakdown

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

  • Add the user to the db_datareader role in the database.

    Why it's wrong here

    db_datareader grants read access to all schemas.

  • Use a DENY statement on all other schemas for the user.

    Why it's wrong here

    DENY can be overridden by GRANT at a higher scope; best practice is to grant only what is needed.

  • Create a user mapped to the Entra ID user and grant SELECT on the Sales schema only.

    Why this is correct

    This grants precisely the required permissions.

    Related concept

    OSPF neighbours must agree on key parameters.

  • Create a contained database user with password and assign to db_datareader.

    Why it's wrong here

    Contained database users do not support Entra ID authentication.

Common exam traps

Common exam trap: OSPF can fail even when IP connectivity looks correct

OSPF neighbour formation depends on matching areas, timers, network type, authentication and passive-interface behaviour. Do not choose an answer only because the devices can ping.

Detailed technical explanation

How to think about this question

OSPF questions usually test the details that control adjacency and route selection. Read the neighbour state, area, router ID and interface configuration before deciding what is wrong.

KKey Concepts to Remember

  • OSPF neighbours must agree on key parameters.
  • Router ID selection can affect neighbour relationships and LSDB output.
  • OSPF cost influences the preferred path.
  • A route can appear in OSPF information but not become the installed route.

TExam Day Tips

  • Check area mismatch first when OSPF adjacency fails.
  • Review passive interfaces when a network is advertised but no neighbour forms.
  • Use show ip ospf neighbor and show ip route clues carefully.

Key takeaway

OSPF neighbour adjacency depends on matching area, hello/dead timers, network type, and authentication — IP reachability alone is not enough.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Review OSPF neighbour requirements — matching area type, hello and dead timers, network type, stub flags, and authentication. Study show ip ospf neighbor states (INIT, 2-WAY, FULL). Then practise related AZ-500 OSPF questions on adjacency and route selection.

Related practice questions

Related AZ-500 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-500 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-500 question test?

Secure compute, storage, and databases — This question tests Secure compute, storage, and databases — OSPF neighbours must agree on key parameters..

What is the correct answer to this question?

The correct answer is: Create a user mapped to the Entra ID user and grant SELECT on the Sales schema only. — Creating a user in the database mapped to the Entra ID user and granting SELECT only on the Sales schema meets the requirement. Option A is wrong because roles at the server level grant broader permissions. Option B is wrong because denying permissions is less secure and can be overridden. Option D is wrong because contained database users do not use Entra ID.

What should I do if I get this AZ-500 question wrong?

Review OSPF neighbour requirements — matching area type, hello and dead timers, network type, stub flags, and authentication. Study show ip ospf neighbor states (INIT, 2-WAY, FULL). Then practise related AZ-500 OSPF questions on adjacency and route selection.

What is the key concept behind this question?

OSPF neighbours must agree on key parameters.

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 20, 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 AZ-500 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 AZ-500 exam.