of Visual Studio.NET 2003. Question: 18 You are an application developer for Company.com. Each client computer in Company runs either Microsoft Windows XP Professional or Windows 98. You are developing an application that will be used by all users in Company. Users log on to their client computers by using a domain user account that is a member of the local Power Users group and the user’s computer. You log on to your Windows XP Professional computer by using a domain user account that is a member of the local Administrators group and Power Users group on your computer. When examsing your application, you need to ensure that your examss accurately reflect the production environment in which the application will run. How should you exam the application?
A. Ask a domain administrator to temporarily remove your domain user account from the local Administrators group on your computer while you are examsing the application. B. Exam the application on your computer. When examsing, log on to the computer by using a domain user account that is a member of only the local Power Users group on your computer. C. Deploy the application to a Windows XP Professional computer and a Windows 98 computer. Log on to each computer by using a domain user account that is a member of only the local Power Users group. D. Compile the assemblies of the application from the command line by running the runas command and specifying a domain user account that is a member of only the local Power Users group on your computer. Answer: C Explanation Ito appropriately exams your application, it needs to be examsed in an environment that mimics the production environment. In this scenario only Windows XP has a local Power Users group, but Windows 98 systems must be examsed since they are deployed in the environment.
Question: 19 You are an application developer for Company.com. You develop an ASP.NET Web application that writes to an event log named EventLog1. All managers in Company will run this application. During a exam on a manager’s client computer, the application fails in the following code segment. (Line numbers are includes for reference only.) 1. Dim EventLog1 As New EventLog 2. If Not EventLog.SourceExists(“CompanyWebApp”) Then 3. EventLog.CreateEventSource(“CompanyWebApp”, “Application”) 4. End If 5. EventLog1.Source = “CompanyWebApp” 6. EventLog1.WriteEntry(“The event occurred.”)

Exam Name:
Implementing Security for Applications with Microsoft Visual Basic .NET
Exam Type:
Microsoft
Exam Code:
70-330
Total Questions:
85
Page 25 of 129
You need to ensure that event data is written to EventLog1. You want to achieve this goal without
granting unnecessary permissions.
What should you do?
A. Insert the following code into the application.
Dim eventLogDir As String
eventLogDir = “C:\%windir”\system32\config\AppEvent.Evt”

