Developing SQL Databases Free Sample Questions

8 free sample questions50 in the full practice test

Try simulator

70-762 Sample Questions

  1. Question 1

    Background
    The HumanResources database contains a table, named Staff.
    A number of read-only, historical reports that make use of various queries, which execute simultaneously, to assess workforce costs, include totals that transform on a regular basis. When you are informed that the running of the workforce assessment reports is not constant, you are required to examine the database to detect the reason for this happening.
    It is your intention to install the application on a database server supporting other applications. The storage space required by the database should be reduced.

    Application
    An application that updates the Staff table calls two stored procedures, named UspStaffA and UspStaffB, simultaneously and asynchronously. UspStaffA only updates the Staffstatus column, while UspStaffB only updates the StaffPayRate column
    The application controls access to information by making use of views that permit user access to all columns in the tables that the view accesses, but also limit updates to the rows that the view returns.
    You are required to create a view that will be used to permit users to modify data in the Staff table. This view must also block users from accessing the view definition in catalog views.

    Which of the following is the view attribute that should be used to block users from accessing the view definition in catalog views?

    Answer and explanation

    Correct answer: C

    SCHEMABINDING is required for creating indexed views in SQL Server, which are essential for improving performance of read-only historical reports with simultaneous queries and changing totals. When a view is created with SCHEMABINDING, the underlying tables cannot be modified in ways that would affect the view definition, ensuring data consistency and allowing SQL Server to create indexes on the view. ENCRYPTION only protects view definition code, CHECK OPTION validates data modifications (not applicable for read-only reports), and VIEW_METADATA controls metadata access but does not enable performance optimizations through indexed views.

  2. Question 2

    Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements.
    A database, named Transactions, three tables named Client, Purchases and Items. The Client table has a column to record information regarding the last purchase made by the client. The Items table has the following fields:

    ItemlD
    ItemName
    Description
    QtyonHand
    MerchantName
    MerchantlD
    Obsolete

    The Purchases table has the following fields:

    PurchaselD
    ItemName
    ItemlD
    EmployeelD
    PurchaseDate

    You are preparing to execute a stored procedure that removes an obsolete item from the Items table. The stored procedure should allow for the information for the item to remain in the event that an open purchase contains an obsolete item. The stored procedure should then produce a custom error message, which identifies the PurchaselD for the open purchase

    Solution: You include the Try/Parse Transact-SQL segment to handle errors.
    Has the requirement been satisfied?

    Answer and explanation

    Correct answer: B

    No, the proposed solution does not satisfy the requirements. Based on the Transactions database scenario with Client, Purchase, and related tables, the solution likely fails to meet the specific constraints or performance requirements outlined in the question. Common issues in such scenarios include missing proper indexing strategies, inadequate foreign key relationships, or failure to implement required data integrity constraints for transactional systems.

  3. Question 3

    Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements.

    A reporting database contains a non-partitioned fact table, which is persisted on disk. The following problems exist with regards to the table:

    The completion of user queries is a lengthy process.
    The table requires excessive storage in the database.
    Indexes on the table are nonexistent.
    A number of columns include repeating values.

    You want to make use of an index that is the most effective at sorting out the problems listed.
    Solution: You create a hash index on the table. Has the requirement been satisfied?

    Answer and explanation

    Correct answer: B

    No, the solution does not satisfy the requirements. For a reporting database with a non-partitioned fact table, the proposed solution likely fails to address critical performance optimization needs such as proper indexing strategies, columnstore indexes for analytical workloads, or appropriate partitioning schemes. Fact tables in reporting databases require specific design patterns including star or snowflake schema implementations, optimized for read-heavy analytical queries rather than transactional operations.

  4. Question 4

    Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result.

    You have been tasked with creating two modules for a database with disk-based tables and memory-optimized tables.
    You are informed that encryption should be configured for the first module via the ENCRYPTION option. The first module should allow for updates on disk-based tables and memory-optimized tables, as well as support OUTPUT parameters.

    You are also informed that the second module should only access memory-optimized tables, and allow for updates on those tables. Furthermore, the second module should allow for substantial aggregations with maximum execution, as well as support OUTPUT parameters. Which of the following should you use for the first module?

    Answer and explanation

    Correct answer: D

    An interpreted stored procedure is the correct choice for creating modules that work with both disk-based tables and memory-optimized tables. Interpreted stored procedures can access both types of tables within the same procedure, providing flexibility for mixed workloads. Natively compiled stored procedures are optimized for memory-optimized tables only and cannot access disk-based tables. DML and DDL triggers have limitations with memory-optimized tables and are not suitable for creating general-purpose modules that need to work across both storage types.

Register free to unlock 4 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 50 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon