70-469 Premium Bundle

70-469 Premium Bundle

Recertification for MCSE: Data Platform Certification Exam

4.5 
(20790 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

Microsoft 70-469 Free Practice Questions

Q1. You are evaluating the table design. 

You need to recommend a change to Tables.sql that reduces the amount of time it takes for usp_AttendeesReport to execute. 

What should you add at line 14 of Tables.sql? 

A. FullName nvarchar(100) NOT NULL CONSTRAINT DF_FuIlName DEFAULT (dbo.CreateFullName (FirstName, LastName)), 

B. FullName AS (FirstName +‘ ’+ LastName), 

C. FullName nvarchar(100) NOT NULL DEFAULT (dbo.CreateFullName (FirstName, LastName)). 

D. FullName AS (FirstName +‘ ’+ LastName) PERSISTED, 

Answer:

Q2. You execute IndexManagement.sql and you receive the following error message: "Msg 512, Level 16, State 1, Line 12 

Subquery returned more than 1 value. This is not permitted when the subquery follows =,! 

=, <, <= ,>, > = or when the subquery is used as an expression." 

You need to ensure that IndexManagement.sql executes properly. 

Which WHILE statement should you use at line 18? 

A. WHILE SUM(@RowNumber) < (SELECT @counter FROM @indextable) 

B. WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable) 

C. WHILE COUNT(@RowNumber) < (SELECT @counter FROM @indextable) 

D. WHILE @counter < (SELECT SUM(RowNumber) FROM @indextabie) 

Answer:

Q3. You need to add a new column named Confirmed to the Attendees table. 

The solution must meet the following requirements: 

. Have a default value of false. 

. Minimize the amount of disk space used. 

Which code block should you use? 

A. ALTER TABLE Attendees 

ADD Confirmed bit DEFAULT 0; 

B. ALTER TABLE Attendees 

ADD Confirmed char(l) DEFAULT '1' 

C. ALTER TABLE Attendees 

ADD Confirmed bit DEFAULT 1; 

D. ALTER TABLE Attendees 

ADD Confirmed char(l) DEFAULT ‘1’; 

Answer:

Q4. You plan to create a new column in a table. The column must meet the following requirements: 

Be able to store images that are larger than 1 MB each. 

Be able to access the images from Microsoft .NET Framework applications. 

You need to recommend which data type must be used in the column. 

Which data type should you recommend? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. nvarchar 

B. varbinary 

C. image 

D. FileStream 

Answer:

Q5. You have a Microsoft SQL Azure database that contains a table named Customers. 

You have a table-valued function named TopCustomers that returns a list of all the customers that have purchased items during the last 12 months. The ID of the customer is passed as an argument to the TopCustomers function. 

You need to create a query that returns a list of all the Customer names and the purchase dates. 

The solution must return only customers that have purchased an item during the last 12 months. 

What should you add to the query? 

A. OUTER JOIN 

B. CROSS JOIN 

C. CROSS APPLY 

D. OUTER APPLY 

Answer:

Q6. You have a SQL Server 2012 database named Database1. You execute the following code: 

You insert 3 million rows into Sales. 

You need to reduce the amount of time it takes to execute Proc1. 

What should you do? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q7. You have a Microsoft SQL Azure database that contains a table named Employees. 

You create a non-clustered index named EmployeeName on the name column. 

You write the following query to retrieve all of the employees that have a name that starts with the letters JOH: 

You discover that the query performs a table scan. 

You need to ensure that the query uses EmployeeName. 

What should you do? 

A. Recreate EmployeeName as a unique index 

B. Recreate EmployeeName as a clustered index 

C. Replace LEFT(name,3) = 'JOH' by using name like 'JOH%' 

D. Replace LEFT(name,3) = 'JOH' by using substring(name, 1, 3) = 'JOH' 

Answer:

Q8. You have a text file that contains an XML Schema Definition (XSD). 

You have a table named Schema1.Table1. 

You have a stored procedure named Schema1.Proc1 that accepts an XML parameter named Param1. 

You need to store validated XML data in Schema1.Table1. The solution must ensure that only valid XML data is accepted by Param1. What should you do? (Each correct answer presents part of the solution. Choose all that 

apply.) 

A. Define an XML column in Table1 by using an XML schema collection. 

B. Create an XML schema collection in the database from the text file. 

C. Declare Param1 var1 as type XML and associate the variable to the XML schema collection. 

D. use the modify method to insert the XML schema into each row of the XML column in Table1. 

Answer: ABD 

Q9. You administer a SQL Server 2014 instance. 

Users report that the SQL Server has seemed slow today. A large database was being restored for much of the day, which could be causing issues. 

You want to write a query of the system views that will report the following: 

Number of users that have a connection to the server 

Whether a user's connection is active 

Whether any connections are blocked 

What queries are being executed 

Whether the database restore is still executing and, if it is, what percentage of the restore is complete. 

Which system objects should you use in your query to best achieve this task? 

A. sys.dm_exec_requests, sys.dm_exec_sessions, sys.objects 

B. sys.dm_exec_sessions, sys.dm_exec_query_stats, sys.dm_exec_query_text,sys.objects 

C. sys.sysprocesses, sys.dm_exec_query_text, sys.objects 

D. sys.dm_exec_requests, sys.dm_exec_sessions, sys.dm_exec_query_text 

Answer:

Q10. You need to modify InsertInvoice to comply with the application requirements. Which code segment should you execute? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q11. You have a database named DB1. 

You plan to configure change data capture on the existing tables in DB1. 

The database file settings for the DB1 are shown in the exhibit. (Click the Exhibit button.) 

You need to minimize disk contention caused by change data capture. 

What should you do? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. Increase the autogrowth value of the database file. 

B. Set the database recovery model to simple. 

C. Increase the autogrowth value of the log file. 

D. Configure change data capture to use to a secondary filegroup. 

Answer:

Q12. You create a view by using the following code: 

Several months after you create the view, users report that the view has started to return unexpected results. 

You discover that the design of Table2 was modified since you created the view. 

You need to ensure that the view returns the correct results. 

Which code segment should you run? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q13. You are creating a stored procedure named usp1. Usp1 will create a table that will be used during the execution of usp1. Only usp1 will be allowed to access the table. 

You need to write the code required to create the table for usp1. The solution must minimize the need to recompile the stored procedure. 

Which code segment should you use to create the table? 

A. CREATE TABLE oneTable 

B. CREATE TABLE ##oneTable 

C. CREATE TABLE #oneTable 

D. DECLARE oneTable TABLE 

Answer:

Q14. You have a database for a mission-critical web application. The database is stored on a SQL Server 2012 instance and is the only database on the instance. 

The application generates all T-SQL statements dynamically and does not use stored procedures. 

You need to maximize the amount of memory available for data caching. 

Which advanced server option should you modify? 

A. Optimize for Ad hoc Workloads 

B. Enable Contained Databases 

C. Allow Triggers to Fire Others 

D. Scan for Startup Procs 

Answer:

Q15. You need to recommend a disaster recovery solution for the Dev database. 

What should you include in the recommendation? 

A. The simple recovery model and full backups 

B. The bulk-logged recovery model and full backups 

C. The full recovery model, full backups, and differential backups 

D. The full recovery model, full backups, and transaction log backups 

Answer:

Q16. You attempt to process an invoice by using usp_InsertInvoice.sql and you receive the following error message: "Msg 515, Level 16, State 2, Procedure usp_InsertInvoice, Line 

Cannot insert the value NULL into column 'InvoiceDate', table 'DB1.Accounting.Invoices' column does not allow nulls. INSERT fails." 

You need to modify usp_InsertInvoice.sql to resolve the error. 

How should you modify the INSERT statement? 

A. InvoiceDate varchar(l00) 'InvoiceDate', 

B. InvoiceDate varchar(100) 'Customer/InvoiceDate', ' 

C. InvoiceDate date '@InvoiceDate', 

D. InvoiceDate date 'Customer/@InvoiceDate', 

Answer:

START 70-469 EXAM