Microsoft 70-516 Exam Overview:
| Certification Vendor: | Microsoft |
| Exam Name: | TS: Accessing Data with Microsoft .NET Framework 4 |
| Exam Number: | 70-516 |
| Exam Duration: | 120 minutes |
| Real Exam Qty: | Approximately 40–60 (varies; historical exams) |
| Passing Score: | 700/1000 |
| Exam Format: | Multiple choice, Multiple response, Case studies |
| Certificate Validity Period: | Retired (historical certification; no longer active, no renewal period) |
| Related Certifications: | MCTS: .NET Framework 4, Data Access MCITP Database Developer (related track) |
| Available Languages: | English |
| Exam Price: | $165 USD (varies by region) |
| Recommended Training: | ADO.NET and Entity Framework training (Microsoft Learn - general) |
| Exam Registration: | Microsoft Certification Portal (historical reference) |
| Sample Questions: | Microsoft 70-516 Sample Questions |
| Exam Way: | Proctored exam (historically Pearson VUE testing centers or online proctoring where available) |
| Pre Condition: | Basic knowledge of C# and .NET Framework 4, familiarity with ADO.NET and database concepts recommended |
| Official Syllabus URL: | https://learn.microsoft.com/en-us/credentials/certifications/ |
Microsoft 70-516 Exam Syllabus Topics:
| Section | Weight | Objectives |
|---|---|---|
| Topic 1: Control Data | 22% | - Data manipulation and concurrency
|
| Topic 2: Query Data | 22% | - Use data access technologies
|
| Topic 3: Model Data | 20% | - Design conceptual and logical data models
|
| Topic 4: Form and Organize Reliable Applications | 18% | - Enterprise data access design
|
| Topic 5: Control Connections and Context | 18% | - Entity Framework context management
|
Microsoft TS: Accessing Data with Microsoft .NET Framework 4 Sample Questions:
1. Which code segment will properly return the TimeSpan returned by the stopWatch variable?
A) Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); DoSomething(); stopWatch.Reset(); TimeSpan ts = stopWatch.Elapsed; string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(elapsedTime, "RunTime");
private void DoSomething()
{ ... }
B) Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
DoSomething();
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;
string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds,
ts.Milliseconds / 10);
Console.WriteLine(elapsedTime, "RunTime");
private void DoSomething()
{ ... }
C) Stopwatch stopWatch = new Stopwatch(); stopWatch.Begin(); DoSomething(); stopWatch.End(); TimeSpan ts = stopWatch.Elapsed; string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(elapsedTime, "RunTime");
private void DoSomething()
{ ... }
D) Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); DoSomething(); TimeSpan ts = stopWatch.Elapsed; string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); Console.WriteLine(elapsedTime, "RunTime");
private void DoSomething()
{ ... }
2. You are developing a WCF data service that will expose an existing Entity Data Model (EDM). You have the following requirements:
-Users must be able to read all entities that are exposed in the EDM.
-Users must be able to update or replace the SalesOrderHeader entities.
-Users must be prevented from inserting or deleting the SalesOrderHeader entities
You need to ensure that the data service meets the requirements. Which code segment should you use in the Initialize method?
A) config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.SetEntitySetAccessRule("SalesOrderHeader", EntitySetRights.AllWrite);
B) config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.SetEntitySetAccessRule("SalesOrderHeader", EntitySetRights.WriteAppend |
EntitySetRights.WriteDelete);
C) config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.SetEntitySetAccessRule("SalesOrderHeader", EntitySetRights.WriteMerge | EntitySetRights.WriteReplace);
D) config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.SetEntitySetAccessRule("SalesOrderHeader", EntitySetRights.All);
3. You use Microsoft .NET Framework 4.0 to develop an application that uses WCF Data Services to persist entities from the following Entity Data Model.
You create a new Blog instance named newBlog and a new Post instance named newPost as shown in the
following code segment.
(Line numbers are included for reference only.)
01 Blog newBlog = new Blog();
02 Post newPost = new Post();
03 ....
04 Uri serviceUri = new Uri("...");
05 BlogsEntities context = new BlogsEntities(serviceUri);
06 ....
You need to ensure that newPost is related to newBlog through the Posts collection property and that
newPost and newBlog are sent to the service.
Which code segment should you insert at line 06?
A) newBlog.Posts.Add(newPost); context.AttachTo("Blogs", newBlog); context.AttachTo("Posts", newPost); context.SaveChanges(SaveChangesOptions.Batch);
B) newBlog.Posts.Add(newPost); context.UpdateObject(newBlog); context.UpdateObject(newPost); context.SaveChanges(SaveChangesOptions.Batch);
C) context.AttachLink(newBlog, "Posts", newPost); context.SaveChanges(SaveChangesOptions.Batch) ;
D) newBlog.Posts.Add(newPost); context.AddToBlogs(newBlog); context.AddToPosts(newPost); context.SaveChanges(SaveChangesOptions.Batch);
4. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. You create a DataSet object in the
application.
You add two DataTable objects named App_Products and App_Categories to the DataSet.
You add the following code segment to populate the DataSet object.
(Line numbers are included for reference only.)
01 public void Fill(SqlConnection cnx, DataSet ds)
02 {
03 var cmd = cnx.CreateCommand();
04 cmd.CommandText = "SELECT * FROM dbo.Products; " + "SELECT * FROM
dbo.Categories";
05 var adapter = new SqlDataAdapter(cmd);
06 ...
07 }
You need to ensure that App_Products and App_Categories are populated from the dbo.Products and
dbo.Categories database tables.
Which code segment should you insert at line 06?
A) adapter.Fill(ds, "Products"); adapter.Fill(ds, "Categories");
B) adapter.TableMappings.Add("Table", "App_Products"); adapter.TableMappings.Add("Table1", "App_Categories"); adapter.Fill(ds);
C) adapter.Fill(ds.Tables["App_Products"]); adapter.Fill(ds.Tables["App_Categories"]);
D) adapter.TableMappings.Add("Products", "App_Products"); adapter.TableMappings.Add("Categories", "App_Categories"); adapter.Fill(ds);
5. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model entities.
You need to create a database from your model. What should you do?
A) Run the edmgen.exe tool in FromSSDLGeneration mode.
B) Use the Generate Database Wizard in Visual Studio. Run the resulting script against a Microsoft SQL Server database.
C) Use the Update Model Wizard in Visual Studio.
D) Run the edmgen.exe tool in FullGeneration mode.
Solutions:
| Question # 1 Answer: B | Question # 2 Answer: C | Question # 3 Answer: A | Question # 4 Answer: D | Question # 5 Answer: B |
We're so confident of our products that we provide no hassle product exchange.


By Martina

