PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that Person.Contact is always updated when UpdateContact executes

You have a Microsoft SQL Azure database.
You have the following stored procedure:

You discover that the stored procedure periodically fails to update Person.Contact.
You need to ensure that Person.Contact is always updated when UpdateContact executes.
The solution must minimize the amount of time required for the stored procedure to execute
and the number of locks held.
What should you do?

Which program should you use?

HOTSPOT
A company maintains separate environments for test, production, and quality assurance.
The company uses the project deployment model for SQL Server Integration Services
(SSIS) deployments.
You create an SSIS project to perform a weekly refresh of the company’s data warehouse
and cubes. The project has three packages.
You need to configure the project to ensure so that the test and production teams can run
each package without manually adding server-specific information.

Which program should you use?
To answer, select the appropriate program in the answer area.

You need to ensure that the aggregations are optimal

A multidimensional SQL Server Analysis Services (SSAS) database will be tested next
week.
During the test period, users will access the database for 30 days. Multidimensional
Expressions (MDX) queries generated during the test period must represent the variety of
queries that will be used in the production environment.
After testing completes, you need to implement aggregations for every partition in the
solution while minimizing development effort. You need to ensure that the aggregations are
optimal.
What should you do? (More than one answer choice may achieve the goal. Select the BEST
answer.)

you need to deal with temporary data in the most efficient way to minimize physical disk pressure

You use SQL Server 2014. The physical server is a dedicated database server that has
120GB of RAM available. There is approximately 50GB of storage space available on a slow
local disk.
You create a new stored procedure. You decide you need to temporarily hold approximately
300,000 rows from two tables, from which you will compute two complex business scores.
The stored procedure will use temporary storage defined as follows:

The code will make several passes through the data, applying complex calculations before
writing the data to a permanent disk-based table in the same database from which it reads
the data.
For this stored procedure, you need to deal with temporary data in the most efficient way to
minimize physical disk pressure.
What should you do? More than one answer choice may achieve the goal. Select the BEST
answer.

Which expression should you use in the calculation designer?

You are creating a calculated measure in a sales cube by using a Multidimensional
Expressions (MDX) calculation. The cube includes a date dimension. The date dimension
has a hierarchy named Calendar that includes Calendar Year, Month, and Day attributes.
The calculated measure must calculate the year-to-date sales for the current slicer. The
MDX calculation must work for as many hierarchy levels as possible.
You need to create a calculated measure for the cube that meets the requirements.
Which expression should you use in the calculation designer? (More than one answer choice
may achieve the goal. Select the BEST answer.)

Which three actions should you perform in sequence?

DRAG DROP
You have a business intelligence (BI) infrastructure.
You create a SQL Server Integration Services (SSIS) project that contains the packages for
the BI infrastructure.
You need to automate the deployment of the SSIS project. The solution must ensure that the
deployment can occur as part of an unattended Transact-SQL script.
Which three actions should you perform in sequence? To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.

Which value should you select for the AggregationFunction property for the Average Rate measure?

You are developing a SQL Server Analysis Services (SSAS) cube for the accounts
department.
You create a measure group named Exchange Rate that consists of measures pertaining to
currency exchange rates. One of the measures in this group is named Average Rate and it
will be used to report the average currency exchange rate over time.
Currently the AggregationFunction property for the Average Rate measure is set to Sum.
You need to ensure that Average Rate measure reports the average of the currency
exchange rate over time.
Which value should you select for the AggregationFunction property for the Average Rate
measure? To answer, select the appropriate setting in the answer area.

Which code segment should you execute?

###BeginCaseStudy###
Case Study: 1
Scenario 1
Application Information
Your company receives invoices in XML format from customers. Currently, the invoices are
stored as files and processed by a desktop application. The application has several
performance and security issues. The application is being migrated to a SQL Server-based
solution. A schema named InvoiceSchema has been created for the invoices xml.
The data in the invoices is sometimes incomplete. The incomplete data must be stored and
processed as-is. Users cannot filter the data provided through views.
You are designing a SQL Server database named DB1 that will be used to receive, process,
and securely store the invoice data. A third-party Microsoft .NET Framework component will
be purchased to perform tax calculations. The third-party tax component will be provided as a
DLL file named Treytax.dll and a source code file named Amortize.cs. The component will
expose a class named TreyResearch and a method named Amortize(). The files are located in
c:\temp\.
The following graphic shows the planned tables:

You have a sequence named Accounting.InvoiceID_Seq.
You plan to create two certificates named CERT1 and CERT2. You will create CERT1 in
master. You will create CERT2 in DB1.
You have a legacy application that requires the ability to generate dynamic T-SQL statements
against DB1. A sample of the queries generated by the legacy application appears in
Legacy.sql.
Application Requirements
The planned database has the following requirements:
• All stored procedures must be signed.
• The original XML invoices must be stored in the database.

• An XML schema must be used to validate the invoice data.
• Dynamic T-SQL statements must be converted to stored procedures.
• Access to the .NET Framework tax components must be available to T-SQL objects.
• Columns must be defined by using data types that minimize the amount of space used
by each table.
• Invoices stored in the InvoiceStatus table must refer to an invoice by the same
identifier used by the Invoice table.
• To protect against the theft of backup disks, invoice data must be protected by using
the highest level of encryption.
• The solution must provide a table-valued function that provides users with the ability
to filter invoices by customer.
• Indexes must be optimized periodically based on their fragmentation by using the
minimum amount of administrative effort.
Usp_InsertInvoices.sql

Invoices.xml
All customer IDs are 11 digits. The first three digits of a customer ID represent the customer’s
country. The remaining eight digits are the customer’s account number.
The following is a sample of a customer invoice in XML format:

InvoicesByCustomer.sql

Legacy.sql

CountryFromID.sql

IndexManagement.sql

###EndCaseStudy###

You are testing disaster recovery procedures.
You attempt to restore DB1 to a different server and you receive the following error
message: “Msg 33111.
Level 16, State 3, Line 1
Cannot find server certificate with thumbprint
,0xA694FBEA88C9354E5E2567C30A2A69E8FB4C44A9\
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.”
You need to ensure that you can restore DB1 to a different server.
Which code segment should you execute?

Customer dimension attributes will come from the following two sources: An enterprise resource planning (ERP)

You are designing a customer dimension for a multidimensional OLAP (MOLAP) database.
The dimension table will contain millions of rows of data.
Customer dimension attributes will come from the following two sources:
An enterprise resource planning (ERP) system that contains millions of rows of dat