PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk:70-549VB
科目编号:70-549VB
科目名称:PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk
描述:
70-549VB 考试是 Microsoft 公司的 PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk 认证考试官方代号,kaoccna 的 70-549VB 权威考试题库软件是 Microsoft 认证厂商的授权产品,kaoccna 绝对保证顺利通过,否则承诺全额退款!
PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk 认证作为全球IT领域专家 Microsoft 热门认证之一,是许多大中 IT 企业选择人才标准的必备条件。 如果你正在准备 70-549VB 考试,为 Microsoft PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk认证做最后冲刺,又苦于没有绝对权威的考试真题模拟
mcsepass 实行"一次不过全额退款"承诺。如果您购买我们 70-549VB 的考题,只要不是首次通过,凭盖有 PROMETRIC 或 VUE 考试中心钢印的考试成绩单,我们将退还您购买 70-549VB 考题大师的全部费用,绝对保证您的利益不受到任何的损失。
- 科目: 70-549VB
- 原价:
¥ 462.00 - 现价: ¥ 358.00
kaoccna 的优势
70-549VB 试题的质量和价值
mcsepass 模拟测试题具有最高的专业技术含量,只供具有相关专业知识的专家和学者学习和研究之用。
100% 保证您通过 70-549VB 的考试
如果你使用 mcsepass 模拟测试,我们将保证你的第一次参加考试即取得成功,否则,我们将全额退款!
试用后再购买
mcsepass 提供每种产品免费测试。在您决定购买之前,请检测联接,可能存在的问题及试题质量和适用性。
kaoccna认证考试题库网专业提供 Microsoft 70-549VB 最新题库下载,完全覆盖 mcsepass 考试原题。
部分考题展示
Exam : Microsoft 70-549VB
Title : PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk
1. You are an enterprise application developer.
You are designing an event logging mechanism for a multi-tiered application.
You need to ensure that the event logging mechanism meets the following requirements:
·Event data is available for at least three years.
·Event data is accessible through a central location.
·Access to event data is controlled for different types of events and users.
·The development effort is minimized.
Which two actions should you perform? (Each answer presents part of the solution. Choose two.)
A. Use a custom class to log events.
B. Use the Trace class to log events.
C. Use the Debug class to log events.
D. Use a custom TraceListener object to write data to a database.
E. Use the EventLogTraceListener object to write data to the application Event Log file.
F. Use the TextWriterEventListener object to write data to a text file in a central server.
Answer: BD
2. You are an enterprise application developer.
You are designing an event logging mechanism for an application. The application will be installed on all computers in your company.
The company policy has the following requirements:
·Developers must be informed of critical events.
·Help-desk technicians must have access to all events on each computer.
You need to design the event logging storage strategy that complies with the company policy.
What should you do?
A. ·Implement a custom SMTP trace listener for critical events.
·Implement an EventLogTraceListener object for all events.
B. ·Implement a custom database trace listener for critical events.
·Implement a TextWriterEventListener object for all events.
C. ·Implement a TextWriterEventListener object for critical events.
·Implement an EventLogTraceListener object for all events.
D. ·Implement a DefaultTraceListener object for critical events.
·Implement a TextWriterEventListener object for all events.
Answer: A
3. You are an enterprise application developer.
You are creating a distributed application. The application transfers a parent table and a child table from a business component. The application modifies the two tables and transfers updates to the business component.
The distributed application must enforce the constraints for referential integrity. The components must provide access to values of the correct type at compile time.
You need to identify the type of object for serialization.
Which type of object(s) should you choose?
A. an untyped DataSet
B. an array of DataTables
C. a strongly typed DataSet
D. a custom type that contains a strongly typed parent DataTable and a strongly typed child DataTable
Answer: C
4. You are an enterprise application developer. You create a data access layer for an order processing application.
The data access layer meets the following criteria:
·The data access layer contains a GetConnectionString method to retrieve and return the connection string for the database.
·The data access layer contains a stored procedure named GetTotalOrderAmount.
·The stored procedure runs a select query to return only the sum of the OrderAmount column for the active orders. At times, there might be no active orders.
You create the following method to execute the stored procedure and return the total.
Public Function GetTotalOrderAmount() As Double
Dim con As New SqlConnection(GetConnectionString())
Dim sql As String = "GetTotalOrderAmount"
Dim cmd As New SqlCommand(sql, con)
Dim rd As IDataReader = cmd.ExecuteReader()
Dim amt As Double = 0.0
If rd.Read() Then
amt = rd.GetDouble(0)
End If
rd.Close()
con.Close()
Return amt
End Function
You need to review the code and recommend modifications to simplify the code and improve performance, if necessary.
What should you conclude and recommend?
A. The code does not need to be modified.
B. The code needs to be modified. You must remove the condition that verifies whether the DataReader object returned any rows.
C. The code needs to be modified. You must use a DataSet object instead of a DataReader object.
D. The code needs to be modified. You must use the ExecuteScalar method instead of the ExecuteReader method.
Answer: D
5. You are an enterprise application developer.
You develop an application to manage products. You plan to expose the products from the application to your business partners.
The design solution must meet the following requirements:
·The service is accessible through firewalls.
·The service interoperates with client applications that are developed by using different frameworks.
You need to ensure that the solution meets the requirements by using the minimum amount of development effort.
What should you do?
A. Use an ASP.NET Web service.
B. Use an Enterprise Services component.
C. Use an ASP.NET-hosted .NET Remoting.
D. Use a managed Windows service-hosted .NET Remoting service.
Answer: A
6. You are an enterprise application developer. You are creating a component that will be deployed as part of a class library. The component must meet the following specifications:
·The interface of the component must be accessible to components outside the hosting assembly.
·The interface of the component must be interoperable with components written in any other .NET Framework languages.
·The implementation of the component cannot be expanded upon by a derived class.
You need to design the interface of the component.
Which three tasks should you perform? (Each correct answer presents part of the solution. Choose three.)
A. Apply the CLSCompliant(True) attribute to the assembly and component definition.
B. Apply the MustInherit keyword to the component definition.
C. Apply the ComVisible(True) attribute to the assembly and component definition.
D. Create a primary interop assembly for the assembly that hosts your component.
E. Apply the NotInheritable keyword to the component definition.
F. Apply the Public keyword to the component definition.
Answer: AEF
7. You are an enterprise application developer. You are manipulating a collection of customer, product, and supplier objects.
The collection objects must fulfill the following requirements:
·The objects must use custom sort methods on different properties of the respective classes.
·The objects must be strongly typed.
A developer from your team decides to use the following collection classes.
Public MustInherit Class MyCollectionBase
Inherits System.Collections.CollectionBase
Public MustOverride Sub Sort()
End Class
Public Class CustomerCollection
Inherits MyCollectionBase
'Code overrriding CollectionBase methods
Public Overrides Sub Sort()
'Customer sorting method
End Sub
End Class
Public Class SupplierCollection
Inherits MyCollectionBase
'Code overrriding CollectionBase methods
Public Overrides Sub Sort()
'Supplier sorting method
End Sub
End Class
Public Class ProductCollection
Inherits MyCollectionBase
'Code overrriding CollectionBase methods
Public Overrides Sub Sort()
'Product sorting method
End Sub
End Class
You need to review the code and recommend improvements to simplify maintenance, if necessary.
What should you conclude and recommend?
A. The code does not need to be modified.
B. The code needs to be modified. The MyCollectionBase class must implement the ICollection interface instead of inheriting from the CollectionBase class.
C. The code needs to be modified. Use List(Of T) class instead of creating custom collections.
D. The code needs to be modified. The child collection classes must inherit from the CollectionBase class instead of the MyCollectionBase class.
Answer: C
8. You are an enterprise application developer.
You are designing an event logging mechanism for a Web service. The Web service will be hosted on a Web farm.
Your company policy specifies that all events for a component must be stored in a secure location.
You need to design the event logging storage strategy to comply with the company policy.
Which storage mechanism should you use?
A. Trace.axd
B. Event log database
C. System event log
D. Application event log
Answer: B
9. You are an enterprise application developer.
You are developing a smart client application.
You write a method that reads a registry value.
Your application runs from a partially trusted environment.
The method must not throw an exception when it reads the registry value.
You need to ensure that your code is authorized to read the registry key before it attempts to read the value.
What should you do?
A. Call the Assert method of the RegistryPermission class.
B. Call the Demand method of the RegistryPermission class.
C. Call the GetAccessControl method of the RegistryKey class.
D. Call the GetAccessRules method of the RegistrySecurity class.
Answer: B
10. You are an enterprise application developer.
You are creating an application that has a business object named Product. The application also includes a Windows form along with a ComboBox control.
You plan to display the Name property of the Product object in the ComboBox control. An application workflow allows the user to add new Product objects.
You need to recommend an appropriate data structure for the Product objects. You also need to ensure that when a new Product object is added, the data structure provides notifications to update the ComboBox control automatically.
Which data structure should you recommend?
A. ArrayList
B. List(T)
C. Collection(T)
D. BindingList(T)
Answer: D
11. You are an enterprise application developer.
You are reviewing the following code segment. (Line numbers are included for reference only.)
01 Public Class MyResource
02 Implements IDisposable
03
04 Private disposed As Boolean = False
05
06 Public Sub Dispose() Implements IDisposable.Dispose
07 Dispose(True)
08 End Sub
09
10 Private Sub Dispose(ByVal disposing As Boolean)
11 If Not Me.disposed Then
12 If disposing Then
13 ReleaseManagedResources()
14 End If
15 ReleaseUnmanagedResources()
16 disposed = True
17 End If
18 End Sub
19
20 Protected Overrides Sub Finalize()
21 Try
22 ReleaseManagedResources()
23 ReleaseUnmanagedResources()
24 Finally
25 MyBase.Finalize()
26 End Try
27 End Sub
28
29 End Class
You discover that the dispose pattern is implemented incorrectly.
You need to modify the code segment to ensure that the dispose pattern is implemented correctly.
What should you do?
A. ·Insert the following line of code after line 07.
GC.SuppressFinalize(Me)
·Replace lines 22 and 23 with the following line of code.
Dispose(True)
B. ·Insert the following line of code after line 07.
GC.SuppressFinalize(Me)
·Replace lines 22 and 23 with the following line of code.
Dispose(False)
C. ·Insert the following line of code after line 21.
GC.SuppressFinalize(Me)
·Replace lines 22 and 23 with the following line of code.
Dispose(False)
D. ·Insert the following line of code after line 21.
GC.SuppressFinalize(Me)
·Replace lines 22 and 23 with the following line of code.
Dispose(True)
Answer: B
12. You are an enterprise application developer.
You design an event logging mechanism for a serviced component.
You need to ensure that the event logging mechanism conforms to the following requirements:
·All critical exceptions must be logged for debugging purposes.
·Administrators must be allowed to enable and disable tracing for different types of event logging.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Use a single TraceSwitch object to ascertain whether an event is to be logged.
B. Use a single TraceLevelSwitch object to ascertain whether an event is to be logged.
C. Raise an exception of the System.Exception type for each code segment that must be traced.
D. Handle the exceptions in different CATCH blocks as specific exception types. Define the types of exceptions that must be logged, and log the exceptions.
E. Handle the exceptions in a single CATCH block as a System.Exception type. Define the properties of each exception object that must be logged, and log the exceptions.
Answer: BD
13. You are an enterprise application developer.
You create an application to provide an enterprise-wide barcode printing solution.
You are developing a component that contains a method named InitializePrinter. The method will call a private function named IsPrinterLicensed to verify the license of the printer for the application.
You need to ensure that the exceptions raised by the IsPrinterLicensed function bubble up to the application that calls the InitializePrinter method. You also need to ensure that the exceptions contain contextual information.
Which code segment should you use?
A. Dim nResult As Integer = IsPrinterLicensed(printerName)
InitPrinter(printerName)
B. Try
Dim nResult As Integer = IsPrinterLicensed(printerName)
InitPrinter(printerName)
Catch ex As Exception
Throw ex
End Try
C. Try
Dim nResult As Integer = IsPrinterLicensed(printerName)
InitPrinter(printerName)
Catch ex As Exception
Throw New Exception("Exception thrown from InitializePrinter")
End Try
D. Try
Dim nResult As Integer = IsPrinterLicensed(printerName)
InitPrinter(printerName)
Catch ex As Exception
Throw New Exception("Exception thrown from InitializePrinter", ex)
End Try
Answer: D
14. You are an enterprise application developer.
The Data Access Layer (DAL) of an application contains the following code segment. (Line numbers are included for reference only.)
01 Public Shared Function GetEmployees() As List(Of Employee)
02 Dim employees As New List(Of Employee)()
03 Using cnn As New SqlConnection(_cnnStr)
04 Dim cmd As New SqlCommand("GetEmployees", cnn)
05 cnn.Open()
06 Dim ds As New DataSet()
07 Dim da As New SqlDataAdapter(cmd)
08 da.Fill(ds)
09 For Each row As DataRow In ds.Tables(0).Rows
10 Dim emp As New Employee()
11 emp.ID = Convert.ToInt32(row("Id"))
12 emp.Name = Convert.ToString(row("Name"))
13 employees.Add(emp)
14 Next
15 End Using
16 Return employees
17 End Function
You review the code segment and discover that it takes a long time to execute.
You need to modify the code segment to improve the performance.
What should you do?
A. ·Create a SqlDataReader object.
·Iterate through a DataReader object to populate the employees list.
B. ·Fill a DataTable object by using the DataTable.Load method.
·Iterate through the DataTable to populate the employees list.
C. ·Fill a DataTable object by using a SqlDataAdapter object.
·Iterate through the DataTable to populate the employees list.
D. ·Fill a DataTable object by using the DataTable.Load method.
·Create a DataTableReader object from the DataTable.
·Iterate through the DataTableReader to populate the employees list.
Answer: A