asmedel's picture
From asmedel rss RSS  subscribe Subscribe

070-549 Exam Questions & Answers 

 

 
 
Tags:  dedicated server  070-549 training  070-549 exams  070-549 tests  070-549 practice exams  070-549 exam materials  070-549 download  070-549 certification 
Views:  279
Published:  November 25, 2010
 
0
download

Share plick with friends Share
save to favorite
Report Abuse Report Abuse
 
Related Plicks
No related plicks found
 
More from this user
[Finance]Immediate Cash Loans  Urgent Supplier For The Immediate Needs[4357]

[Finance]Immediate Cash Loans Urgent Supplier For The Immediate Needs[4357]

From: asmedel
Views: 587
Comments: 0

Hospitality Marketing Consulting

Hospitality Marketing Consulting

From: asmedel
Views: 1034
Comments: 0

Waro

Waro

From: asmedel
Views: 604
Comments: 0

El Pronombre 3

El Pronombre 3

From: asmedel
Views: 963
Comments: 0

helath net 99 AR

helath net 99 AR

From: asmedel
Views: 1961
Comments: 1

 
See all 
 
 
 URL:          AddThis Social Bookmark Button
Embed Thin Player: (fits in most blogs)
Embed Full Player :
 
 

Name

Email (will NOT be shown to other users)

 

 
 
Comments: (watch)
 
 
Notes:
 
Slide 1: 070-549 Designing and Developing Enterprise Applications by Using the Microsoft .NET Framework Exam: 070-549 Demo Edition CERT MAGIC 1 http://www.certmagic.com
Slide 2: 070-549 Section 1: Sec One (1 to 8) Details: C#, Envisioning and Designing an Application QUESTION: 1 You work as the Enterprise application developer at Certmagic.com. TheCertmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.com operates as a financial institution.You have been asked to make a recommendation in terms of the technological design to meet the Certmagic.com requirements. The plan is to develop a component for Certmagic.com. And this component is to provide the business logic for the management of customer accounts. The component should meet certain technical requirements to serve the Certmagic.com needs. Following is a list of these requirements: 1. Instantiated classes must be reused by multiple threads. 2. Method calls must be rolled back in the event of a failure occurring. 3. Only certain users must have the ability to call certain methods. In your recommendation you should mention the appropriate technology that will meet these technological requirements.What should you do? A. Recommend the use of Microsoft .NET Enterprise Services. B. Recommend the use of Message Queuing. C. Recommend the use of Extensible Markup Language (XML) Web services. D. Recommend the use of Microsoft .NET Remoting. Answer: A Explanation: Microsoft .NET Enterprise Services will allow you to build applications and components that make use of COM+ services. It further allows you to develop components able of supporting transactions, just-in-time (JIT) activation. Object pooling, as well as role-based security. One of the requirements that should be met includes a roll-back method call in the event of failure. Object pooling will allow you to reuse class instances. And role-based security allows you to restrict method calls to specific users. Incorrect Answers: B: Message Queuing will not work under these circumstances since though it will allow you to support component-to-component communication through messages; it does not support role-based security to restrict method calls to certain users. C: You should not recommend the use of Extensible Markup Language (XML) Web services because although it allows one to support communication across different 2 http://www.certmagic.com
Slide 3: 070-549 platforms by means of using open Internet Protocols. However, it does not support object pooling to reuse class instances. And this is one of the requirements that should be met. D: .NET Remoting allows you to support communication across application domain boundaries by means of using remote method invocations; it does not provide transaction support to roll back in case of failure. QUESTION: 2 Exhibit: You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.com operates as an insurance company.You are currently developing an enterprise application that is destined to allow the Certmagic.com customer to pay their premiums for the insurance services rendered to them. The Certmagic.com customers have a choice in payment options: credit card or debit order. In your development of this application you took a decision to model the requirements on a class diagram. You now need to choose the appropriate class diagram. What should you do? (To answer, choose on the correct class diagram.) A. Diagram A B. Diagram B C. Diagram C D. Diagram D Answer: B Explanation: 3 http://www.certmagic.com
Slide 4: 070-549 The particular diagram models generalization. Taking into account the requirements, a customer may pay his/her premiums via credit card or debit order. This means that the payment class can be specialized though Credit Card and Debit Order classes. In a class diagram that models generalization, the triangle points to the general element. Incorrect Answers: A: This particular diagram models composition and indicates that a payment of premiums has a credit card and a debit order, which is not the case. C: This particular diagram models composition and indicates that a credit card and a debit order has a payment, which is not the case. D: This particular diagram also models generalization, however, it is depicted in the wrong direction. This will indicate that a payment of premiums is both by credit card and debit order, which is not correct. The payment of premiums is either one of the two, but not both. QUESTION: 3 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.com operates as an Internet Service Provider (ISP).You are currently developing an enterprise application for Certmagic.com. Certmagic.com currently offers its customers three services: Web site hosting, Internet connectivity and voice over Internet Protocol (VoIP). The choice of purchasing one or more of these services is up to each customer. Furthermore, multiple customers can purchase the same services. In the event of a customer purchasing a service, a service commencement date, as well as service termination data is set for that customer. The exhibit below illustrates the logical database design for the application. Exhibit: 4 http://www.certmagic.com
Slide 5: 070-549 You now need to normalize the database. What should you do? A. Move all columns from the Services table to the Customers table except the CustomerID column. Change the primary key on the Customers table to include the ServiceID column. Delete the Services table. B. Move all columns from the Customers table to the Services table except the CustomerID column. Change the primary key on the Services table to include the CustomerID column. Delete the Customers table. C. Add a table named CustomerServices. Add a Foreign Key to the CustomerServices table that references the CustomerID column of the Customer table. Add a Foreign Key to the CustomerServices table that references the ServiceID column in the Services table. D. Add a table named ServiceType and add two columns named ServiceTypeID and Description respectively. Add a foreign key to the Services table that references the ServiceTypeID column of the ServiceType table. Remove the ServiceType column from the Services table. Answer: D Explanation: When you normalize a database, you in essence separate the data into multiple tables to reduce duplicate data. In this case, the Services table contains data related to customer services which includes the service commencement date, the service termination data as well as the service type. Say 2000 customer purchase a service named VoIP, it will result in the VoIP value being duplicated in 2000 rows. Thus to eliminate this duplication of data, you should create a third table named ServiceType to store the service type information. Then you should add a foreign key to the Services table that references the primary key in the ServiceType table. Incorrect Answers: A, B: Combining columns into one table will result in de-normalizing. C: Adding an extra table with two foreign keys that references the appropriate columns in other tables should only be done in many-to-many relationships. An intersection table joins two entities that are involved in many-to-many relationships. In this scenario there is a one-to-many relationship between customers and purchased services, a many-to-many relationship between customers and service types, thus you should rather add a ServiceType table that can be used as the intersection table between customers and service types. 5 http://www.certmagic.com
Slide 6: 070-549 QUESTION: 4 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.com operates as a vehicle tracking organization in the vehicle insurance industry. You are currently developing a vehicle inventory management solution for Certmagic.com. Following are the existing facts: 1. A vehicle is identified by its vehicle identification number (VIN). 2. A vehicle has one or more options. 3. Different vehicles may have the same options. 4. Each option can be standard or nonstandard. The exhibit below illustrates the logical database design. Exhibit: You have been tasked to assess the Certmagic.com design in terms of data integrity. What conclusion can you draw? A. The design is correct. B. The design is incorrect. Option table should have a foreign key that references the VIN column in the Vehicle table. C. The design is incorrect. VehicleOption table should not have the OptionID column. D. The design is incorrect. Vehicle table should have a foreign key that references the OptionID column in the Option table. Answer: A Explanation: The Vehicle table has a primary key named VIN. This indicates that a VIN uniquely identifies a row in the Vehicle table. An Option table contains rows that represent the 6 http://www.certmagic.com
Slide 7: 070-549 possible options for all vehicles. A VehicleOption table contains rows that identify options for particular vehicles. This is a necessary table since there is a many-to-many relationship that exists between vehicles and options. Thus this design is correct in terms of data integrity. Incorrect Answers: B: The Option table should not have a foreign key that references the VIN column in the Vehicle table. This would only be required in a case of a many-to-one relationship between vehicles and options. C: The VehicleOption table should not be removed from the VehicleOption table as this will result in a disconnection in the relationship between vehicles and options. D: The Vehicle table should not have a foreign key that references the OptionID column in the Option table as this would only be required in a case where there is a one-to-many relationship between vehicles and options. QUESTION: 5 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.com operates as a cosmetics company. You are currently busy developing an enterprise application for Certmagic.com. This application must be able to support the ability to access chemical data. This chemical data are stored in five relational databases. The chemical makeup of each product is represented as a business entity. The business logic determines how the chemical makeup can be used in combinations to create new products. You need to evaluate the design in terms of the best performance that is can offer. Following are the physical design aspects that you should take into account in you evaluation: 1. One assembly for all business entities. 2. One assembly to contain business logic. 3. An assembly per type of database. What conclusion can you draw? A. This design will result in the best performance. B. This design will not yield the best performance. You should create one assembly for each type of business entity. C. This design will not yield the best performance. You should create an assembly for each type of chemical makeup combination. D. This design will not yield the best performance. You should create one assembly for all databases. Answer: A Explanation: The fewer the assemblies the better the performance when it comes to a Microsoft 7 http://www.certmagic.com
Slide 8: 070-549 ASP.NET Web application. When the common language runtime (CLR) loads an assembly, it performs certain functions. These functions are necessary and will definitely affect performance when a large number of assemblies are loaded. In this design, only one assembly is used to contain the business entities and only one assembly is used to contain the business logic. Due to a data access component having to correspond to a single data store, an assembly exists for each type of database; however, only one data access assembly will be loaded to access a particular database. Incorrect Answers: B: You should not create an assembly for each type of chemical makeup combination. This will require the application to load multiple assemblies when different entities are combines. The loading of multiple assemblies degrades performance. It is mentioned in the question that the chemical makeup of each product is represented as an entity. C: You should not create an assembly for each type of chemical makeup combination. This will require the application to load multiple assemblies when different entities are combines. The loading of multiple assemblies degrades performance. It is mentioned in the question that the chemical makeup of each product is represented as an entity. D: You should not create one assembly for all the databases. a data access component should correspond to only one single data store. In this case the data store is a database and because only one assembly will be loaded to access a particular database, multiple data access assemblies will not cause performance to degrade. QUESTION: 6 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.Com operates as a telecommunications company. You are currently busy implementing a solution for Certmagic.com that will, when completed, consist of five Microsoft Windows Forms applications, two Microsoft ASP.NET Web applications, and twenty Extensible Markup Language (XML) Web services. The Web services will be used by the Windows Forms applications as well as the Web applications to access business functionality. 1. The Web services: All the Web services have similar configuration requirements. However, only five of the Web services will make use of Simple Object Access Protocol (SOAP) header authentication. 1. The two Microsoft ASP.NET Web applications: Both of these applications have different configuration requirements. However, both of them require integrated Windows authentication. 1. The five Microsoft Windows Forms applications: All these applications makes use of integrated Windows authentication. The Web applications and the Web services are destined to be hosted on a server that will be running Microsoft Internet Information Services (IIS) 6.0. Following is the design of the Microsoft Visual Studio 2005 project structure: 1. One project for each Windows Forms application. 8 http://www.certmagic.com
Slide 9: 070-549 2. One project for each Web application. 3. One project for each XML Web service. You have been instructed to evaluate the design for maintainability and thus you need to draw a conclusion regarding the maintainability for the design. What conclusion can you draw? A. The design is easily maintainable. B. The design is difficult to maintain. Both Web applications should be placed in a single project. C. The design is difficult to maintain. All Web services should be placed in a single project. D. The design is difficult to maintain. All Windows Forms applications should be placed in a single project. Answer: C Explanation: Maintainability will be improved if all Web services are places in a single project as it will then allow you to make changes to the configuration in one place and have it reflected by all the Web services. Thus the conclusion should be the design is not maintainable - all Web services should be placed in a single project. Incorrect Answers: A: This is incorrect since there are still some measures that can be taken to improve maintainability. B: Placing both Web applications in a single project is impractical. These two Web applications have different configuration requirements and that means that they need to be in separate projects. D: Placing all Windows Forms applications in a single project is impractical since Windows Forms applications require an entry point, and only one point can exist per application. QUESTION: 7 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. Certmagic.com operates as an information bureau for the supply of information to financial institutions such as banks. You are currently busy implementing a solution for Certmagic.com that will, when completed, consist of three Microsoft ASP.NET Web applications. These applications will allow the Certmagic.com customer banks to manage credit-, investment- and current accounts. All three applications are destined to be hosted on a server that is configured with Microsoft Internet Information Services (IIS) 9 http://www.certmagic.com
Slide 10: 070-549 6.0. Included in the Physical design is the following IIS directory structure: 1. Default Web Site (D:\Inet\wwwroot) 2. Credit Portal (D:\FinanceWeb\Credit) 3. Investment Portal (D:\FinanceWeb\Investment) 4. Current Portal (D:\FinanceWeb\Current) In your solution you are required to display the application on pages. And images need to be reused across all three applications. To this end you need to select the best location to store these images to ensure that it can be used across all three applications. What should you do? A. Use D:\FinanceWeb to store the images. B. Use D:\Images to store the images. C. Use D:\InetWeb\wwwroot\Images to store the images. D. Use D:\FinanceWeb\Images to store the images. Answer: C Explanation: The D:\Inet\wwwroot\Images is the only location amongst the available options that represents a subdirectory of the IIS virtual root directory. This will allow each of the three Web applications the ability to reference the images by means of a URL. Incorrect Answers: A: D:\FinanceWeb does not correspond to the IIS virtual root directory and as such will not allow the web applications to reference the images using a URL. B: There is no IIS virtual directory that corresponds to any part of D:\Images and this option will thus not allow the Web applications to reference the images. D: There is no IIS virtual directory that corresponds to any part of D:\FinanceWeb\Images and as such this option will now allow the three Web applications to reference the images. QUESTION: 8 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. The design of applications forms part of your responsibilities at Certmagic.com. You are currently developing a Microsoft ASP.NET Web application that makes use of a data access component to access data in a Microsoft SQL Server 2005 database. This data access component makes use of Microsoft .NET Remoting to enable access over Transmission Control Protocol (TCP) port 9001. You must develop the Microsoft ASP.NET application to enable users to access data in the database via the Web application only. The following table illustrates the logical and physical design aspects that you should take into account when deciding whether the design meets with the security requirement: 10 http://www.certmagic.com
Slide 11: 070-549 What conclusion can you draw? A. The design meets the security requirement. B. The design does not meet the security requirement. The data access component should be deployed to an application server on the intranet. C. The design does not meet the security requirement. The data access component should be deployed to the database server on the intranet. D. The design does not meet the security requirement. The data access component should be deployed to an application server on the perimeter network. Answer: A Explanation: It is mentioned in the question that the Web server is placed in the perimeter network and that only HTTP traffic is allowed to the Web server. This means that users can only send HTTP requests to the Web server. Even though the data access component does exist on the Web server, it will still require access through an IPC channel and IPC supports communication on the same computer only. Thus the design currently meets the security requirement. Incorrect Answers: B: There is no need to deploy the data access component to application server on the intranet. The Web application connects to the data access component over IPC and IPC supports communication on the same computer only. C: There is no need to deploy the data access component to database server on the intranet. The Web application connects to the data access component over IPC and IPC supports communication on the same computer only. D: There is no need to deploy the data access component to application server on the perimeter network. The Web application connects to the data access component over IPC and IPC supports communication on the same computer only. Section 2: Sec Two (9 to 16) Details: 11 http://www.certmagic.com
Slide 12: 070-549 C#, Designing and Developing a Component QUESTION: 9 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. Certmagic.com operates as a financial institution. You are currently developing and enterprise application for Certmagic.com. Following are the aspects that should be taken into account in your design: 1. A Microsoft Windows Forms application that will allow all Certmagic.com employees to open accounts for customers. 2. A Microsoft ASP.NET Web application that will allow customers to open their own accounts. 3. A component named AccountOpenerProcess that manages the flow throughout both applications. You thus need to decide on the appropriate layer in the design in which to implement these components. What should you do? A. The Windows Forms, the Web application as well as the AccountOpenerProcess component must be placed in the business layer. B. The Windows Forms, the Web application as well as the AccountOpenerProcess component must be placed in the presentation layer. C. The Windows Forms and the Web application must be placed in the presentation layer. The AccountOpenerProcess component must be placed in the data layer. D. The Windows Forms and the Web application must be placed in the presentation layer. The AccountOpenerProcess component must be placed in the business layer. Answer: B Explanation: According to Microsoft best practices, the presentation layer should include the user interface components and user process components. The user interface components provide the interface with which users interact directly. This is what the Windows Forms application and the Web application is in this scenario. The user process components aid the flow of the application. If you separate the user process components from the user interface components, then you allow the workflow to be reused by multiple user interfaces. Due to the AccoutnOpenerProcess component aiding the flow throughout the application, you should place this component in the presentation layer as well. Incorrect Answers: A: None of these components should be placed in the business layer. The business layer should include the business workflows, business entities, business components and service interfaces. 12 http://www.certmagic.com
Slide 13: 070-549 C: This option is only partly correct. You should instead also be placing the AccountOpenerProcess component in the Presentation layer and not in the data layer. D: This is only partly correct since the AccountOpenerProcess component should also be placed in the presentation layer. QUESTION: 10 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. You are currently developing a Microsoft Windows service that will form part of an enterprise solution for Certmagic.com. The service must be able to (1) Monitor a File Transfer Protocol (FTP) directory for incoming files, and (2) Extract data from the files and import them into a database. Following are the requirements that should be met by this service: 1. It must run using a least privileged account. 2. It must be capable of processing 300 files per minute. 3. It must be able to recover from failures that cause it to stop functioning. You thus need to identify the factor that is most important during the design of the application. What should you do? A. You should identify factors pertaining to Maintainability. B. You should identify factors pertaining to Performance. C. You should identify factors pertaining to Security. D. You should identify factors pertaining to Usability. Answer: B Explanation: Performance should be identified as the most important factor under these circumstances. One of the requirements states that the service must be able to process 300 files per minute. This means that the service should perform at a rate of file files per second. This is this important and you need to decide how to design and implement the service to achieve this performance goal. Incorrect Answers: A: Maintainability is easily attainable by configuring Windows services to automatically restart after it stops. Thus this is not a factor to take into consideration under these circumstances. C: Security can easily be configured in a Windows service to run as a dedicated account for file and database purposes after it is implemented. D: Usability should not be the factor to take into consideration in this scenario. Windows services typically do not provide a user interface. 13 http://www.certmagic.com
Slide 14: 070-549 QUESTION: 11 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. Certmagic.com operates as a Geographic Positioning System service provider.You are currently developing a geographical mapping application. You must create a struct named Waypoint that models a waypoint. This waypoint is to consist of a set of latitude and longitude coordinates. In the event of a user passing a street address to the struct, it must perform a location lookup and set its coordinates appropriately. To this end you need to define the Waypoint struct. You need to ensure that your application requires the least amount of code to set the coordinates from a street address. What should you do? (Choose the correct code segment.) A. public struct Waypoint { public double Latitude; public double Longitude; public Waypoint FromAddress(String address) { Waypoint waypoint = new Waypoint(); // Set the Latitude and Longitude fields based on the address. return waypoint } } B. public struct Waypoint { public double Latitude; public double Longitude; public Waypoint(String address) { //Set the Latitude and Longitude fields based on the address. } } C. public struct Waypoint { public double Latitude; public double Longitude; public String address { set { //Set the Latitude and Longitude fields based on the address. } } } D. public struct Waypoint { 14 http://www.certmagic.com
Slide 15: 070-549 public double Lattitude; public double Longitude; public void SetAddress(String address) { //Set the Latitude and Longitude fields based on the address. } } Answer: B Explanation: When the Waypoint struct is defined with a non-default constructor, it allows calling code to initialize the Latitude and Longitude fields of the Waypoint struct when it is instantiated. This solution only uses one code statement. Incorrect Answers: A: You should not add a non-static method to return a Waypoint instance. As such it would require applications to first initialize the Waypoint struct by calling its constructor and only then can applications call methods on the structs. Furthermore this solution will require two code statements. C: You should not add a non-static method to set the Latitude and Longitude fields of the Waypoint instance. This will require the application to first initialize the Waypoint struct by calling its constructor and only then will the application be able to call methods on the struct. Besides this solution will require two code statements. D: You should not add a property to set the Longitude and Latitude fields of the Waypoint instance. This will require the application to first initialize the Waypoint struct by calling its constructor and only then will the application be able to call methods on the struct. Besides this solution will require two code statements. QUESTION: 12 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. Certmagic.com operates as the Emergency unit of the Traffic Department. You are currently busy implementing a Microsoft .NET Remoting component. This component will be used in the traffic control environment. The component will allow the traffic department to guide all traffic officers on duty to the available alternative routes during emergencies. As such the component must meet the following requirements: 1. A specific instance of the component must be allowed to control access to the navigational system on one traffic officer's vehicle. 2. The component must be instantiated only once while the traffic officer's navigational system is being controlled. 3. The component must be hosted on a server that is separate from the application. To this 15 http://www.certmagic.com
Slide 16: 070-549 end the design suggests making us of single-call activation over Transmission Control Protocol (TCP). You are now required to decide whether or not the design meets the requirements. What conclusion can you draw? A. The design meets the requirements. B. The design is inadequate; it should make use of client activation. C. The design is inadequate; it should make use of Singleton activation. D. The design is inadequate; it should make use of inter-process communication (IPC). Answer: B Explanation: The requirements clearly indicate that the component should be stateful, being stateful means that the component can be instantiated once, and maintain its state throughout its lifetime. With client activation, the client maintains state for a remote object; also the object gets instantiated once for each client. Thus the design is inadequate and should also make use of client activation. Incorrect Answers: A: There are definitely some inadequacies and you will need client activation to meet the stated requirements. C: Singleton activation is when a single instance of an object is provided to multiple clients. This is not what is required in this scenario since you only need to use one object per client. D: IPC supports communication between different processes running on the same computer only. This is not the case in this scenario; instead the application needs to communicate with the component on a different computer. QUESTION: 13 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. You are currently developing a business logic component that is used in a line-of-business (LOB) application. The business logic component calls a Web method named SeeCustomer in an Extensible Markup Language (XML) Web service. The SeeCustomer Web method throws an exception of a type SoapExtension in the event of the specified customer being non-existent. Now, when this exception is thrown, you must call a Web method named NewCustomer. To this end you need to implement the appropriate exception handling mechanism to meet this requirement. What should you do? A. Do nothing and leave the exception. 16 http://www.certmagic.com
Slide 17: 070-549 B. First catch the exception and do not re-throw it. C. First catch the exception, then log it, and then re-throw it. D. First catch the exception, then wrap the exception, and then throw the wrapped exception. Answer: B Explanation: When an exception is caught, you prevent it from propagating up the call stack. This will then allow you to call the NewCustomer Web method. Thus you should catch the exception and not re-throw it. Incorrect Answers: A: Not doing anything about the exception will allow the exception to propagate up the call stack and prevent you from calling the NewCustomer Web method. C: Re-throwing the exception will result in the exception propagating up the call stack and will not afford you the opportunity to call the NewCustomer Web method. D: A Wrapped exception being thrown would result in a new exception up the call stack and will also prevent you from calling the NewCustomer Web method. QUESTION: 14 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. Certmagic.com operates as a service provider in the security industry. You are currently developing a video surveillance application for Certmagic.com. You need to implement a class named Visuals. Visuals will be destined to control access to a video camera. A method named StartRecording must start a recording session of the camera if one is not already started. In the event of a recording session having started already when the method is called, you must interrupt the execution of the application. To this end you now need to define the Visuals class. What should you do? (Choose the correct code segment.) A. public class Visuals { private bool _recording = false; public event EventHandler Recording; public void StartRecording() { if(_recording = = true && Recording ! = null) { Recording(this, EventArgs.Empty); } 17 http://www.certmagic.com
Slide 18: 070-549 // Start recording _recording = true } } B. public delegate void RecordingStarted(String message); public class Visuals { private bool _recording = false; public RecordingStarted Recording; public void StartRecording() { if (_recording = = true) { Recording("A recording session is in progress."); } // Start recording _recording = true; } } C. public class Visuals { private bool _recording = false; public void StartRecording() { if (_recording = = true) { throw new InvalidOperationException("A recording session is in progress."); } // Start recording _recording = true; } } D. public class Visuals { private bool _recording = false; public void StartRecording() { if (_recording = = true) { MessageBox.Show("A recording session is in progress."); } // Start recording _recording = true; } } 18 http://www.certmagic.com
Slide 19: 070-549 Answer: C Explanation: If the method is called when there is already a recording session in progress then you should throw an exception. This will allow you to interrupt the normal flow of an application. Incorrect Answers: A: Raising an event will result in the application to subscribe to the event to receive notification regarding the status of recording sessions. Thus it will not interrupt the execution of the application. B: Invoking a delegate is not the solution since it will result in the application to require associating with a method with the delegate to receive notification regarding recording session status and as such would not interrupt the execution of the application. D: Displaying a message box does not interrupt the execution of an application; it would instead result in an interruption to the user. QUESTION: 15 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. Certmagic.com operates as an umbrella company for several recording houses in the music industry. You are currently developing an enterprise application for Certmagic.com. you need to design the database schema for this application and following are the facts regarding record labels/recording house, albums, songs, and artists; pertaining to the company that you need to take into account in your design: 1. A label has one or more albums. 2. A label has one or more artists. 3. An artist records zero or more albums. 1. An artist records one or more songs. 2. An artist belongs to one label. 1. An album is recorded by one or more artists. 2. An album has one or more songs. 3. An album is owned by one label. 4. A song is recorded by one or more artists. 5. A song exists on one or more albums. You need to normalize the database. To this end you need to decide on the amount of tables to use in the database. What should you do? A. You require 2 tables. B. You require 4 tables. C. You require 5 tables. D. You require 7 tables. 19 http://www.certmagic.com
Slide 20: 070-549 Answer: D Explanation: There are four main entities: namely Label, Artist, Album, Song. This means that you need to create four tables to correspond to these entities. However, you also need to take into account the many-to-many relationships that has to be reflected in the database. The existing many-to-many relationships include relationships between: artists and albums, albums and songs, and artists and songs. Thus you need an additional three tables. Seven tables is thus the minimum number of tables required for normalization. Incorrect Answers: A: With two tables only, the database would not be normalized. B: With only 4 tables the database would not be normalized. C: With only 5 tables the database would not be normalized. QUESTION: 16 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of applications. You are currently developing an Extensible Markup Language (XML) Web service that when completed will allow client applications the ability to download movie clips. One of the requirements that should be met is that all Web service clients must be able to use the Web service. You should also keep in mind that you should optimize the message transfer for some of the movie clips since fifty percent of the movie clips are quite large. To this end you decide to make use of Microsoft Visual Studio 2005 and Web Services Enhancements (WSE) 3.0 to develop the Web service. Now you need to modify the Web.config file to meet the requirements. What should you do? (Choose the correct configuration.) A. <configuration> <microsoft.web.services3) <mtom serverMode="optional"/> </microsoft.web.services3> </configuration> B. <configuration> <microsoft.web.services3) <mtom serverMode="always"/> </microsoft.web.services3> </configuration> C. <configuration> <microsoft.web.services3) <mtom clientMode="on"/> 20 http://www.certmagic.com
Slide 21: 070-549 </microsoft.web.services3> </configuration> D. <configuration> <microsoft.web.services3) <mtom serverMode="never"/> </microsoft.web.services3> </configuration> Answer: A Explanation: WSE 3.0 allows one to make use of Message Transmission Optimization Mechanism (MTOM) to encode and transmit large amounts of binary data. MTOM allows one to transmit binary messages in binary form without the need to encode them in a text format. It is necessary that the client application support MTOM to be able to use it. You also set MTOM in a Web service by setting the serverMode attribute of the mtom element. This attribute supports three values: optional, never and always. However, if MTOM is used in this way, the message transfer is not optimized. Incorrect Answers: B: The serverMode attribute should be set to optional, for if set to always, you need the Web service client to support MTOM and not all Web service clients supports MTOM. C: The serverMode attribute should be set to optional, for if set to on, the attribute will determine whether MTOM is supported by the Web service client and in this scenario you are configuring the Web service. D: The serverMode attribute should be set to optional, for if set to never, this attribute will indicate that MTOM should not be enabled for incoming Simple Object Access Protocol (SOAP) requests. Section 3: Sec Three (17 to 24) Details: C#, Designing and Developing an Application Framework QUESTION: 17 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of application frameworks. Certmagic.com operates as a medical technological company that manufactures electronic scanning equipment for medical use. You are currently developing a Microsoft Windows Forms application. This application is destined to allow doctors to perform computed Axial Tomography (CAT) 21 http://www.certmagic.com
Slide 22: 070-549 scans on patients. When a CAT scan is carried out, it takes over 1,000 two-dimensional scans that are combined to create a three-dimensional image. It takes no more than two seconds to make a two-dimensional scan, however it also takes approximately 20 seconds to combine each image. The Microsoft Windows Forms application that you are developing must allow doctors to take the two-dimensional scans without requiring the patients to wait for a long time. You thus need to choose the appropriate component to meet this requirement. What should you do? (Choose the correct component.) A. Process B. Timer C. BackgroundWorker D. ImageList Answer: C Explanation: The BackgroundWorker component will allow one to implement asynchronous processing. In this particular case you can implement two-dimensional scanning and use BackgroundWorker component to combine the scans. Incorrect Answers: A: The Process component allows one to execute a process. This is not what will reduce the waiting time for the patients. B: The Timer component allows a Windows Forms application to respond to timed events. You rather need to make use of BackgroundWorker component to reduce the waiting time for patients. D: The ImageList component allows one to manage a collection of images that can be used with the TreeView, ListView, and ToolStrip controls, not to reduce waiting time. QUESTION: 18 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of application frameworks. You are currently developing a Microsoft Windows Forms monitoring application for Certmagic.com. This application is destined to read data in a Microsoft SQL Server 2005 database and display it graphically on a form. All Certmagic.com users need to be able to: 1. choose the refresh rate for displaying data 2. choose an interval in multiples of one second To this end you need to reuse a component to meet these requirements without requiring excessive coding. What should you do? 22 http://www.certmagic.com
Slide 23: 070-549 A. You need to encapsulate a BackgroundWorker instance in a custom class by wrapping the BackgroundWorker component. B. You need to encapsulate a Timer instance in a custom class by wrapping the Timer component. C. You need to derive a class from BackgroundWorker by extending the BackgroundWorker component. D. You need to derive a class from System.Windows.Forms.Timer by extending the Timer component. Answer: D Explanation: The Timer component needs to be extended in the System.Windows.Forms.Timer class. The Timer component raises a Tick event at intervals specified in the Interval property. If you derive a class from Timer, you in essence allow client applications to set the interval property to multiples of one second. Incorrect Answers: A: The BackgroundWorker component allows for asynchronous code execution. It is stated pertinently in the question that no excessive coding must be allowed. B: Wrapping the Timer component is not the solution. It will require you to write code that exposes the functionality of the Timer component. C: You should not extend the BackgroundWorker component as this component allows one to execute code asynchronously in a background thread and automatically notify the foreground thread when the asynchronous operation completes. However, this involves extra coding is that is required. QUESTION: 19 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of application frameworks. Certmagic.com operates in the security and surveillance environment. You are currently developing a video surveillance application for Certmagic.com. While executing your duties, you examine a third party component that implements a Camera class. This class allows you to connect to a physical camera and record video or capture images. The following exhibit illustrates the Camera class definition: Exhibit: public class Camera { public virtual void CaptureImage() { //Capture a still image } 23 http://www.certmagic.com
Slide 24: 070-549 public virtual void StartRecording() { //Start a recording session } public virtual void StopRecording() { //Stop a recording session } } You now need to define the custom class to achieve the following goals: 1. reuse the Camera class to implement a custom class 2. allow the application to capture still images 3. prevent the application from being able to use your class to start and stop a recording session What should you go? (Choose the correct code segment.) A. public class StillImageCamera : Camera { public override void CaptureImage() { base.CaptureImage(); } } B. public class StillImageCamera : Camera { public override sealed void StartRecording() { base.StartRecording(); } public override sealed void StopRecording() { base.Stoprecording(); } } C. public class StillImageCamera { private readonly Camera _camera = new Camera(); public virtual void CaptureImage() { _camera.CaptureImage(); } } D. public class StillImageCamera : Camera { public new void CaptureImage() { 24 http://www.certmagic.com
Slide 25: 070-549 base.CaptureImage(); } } Answer: C Explanation: To allow yourself to be able to control access to the functionality exposed by the Camera class, you should wrap the Camera class by encapsulating it within another class. When you implement only the method that captures still images, you can prevent the application from making use of your class to start or stop a recording session. Incorrect Answers: A, B, D: To derive a class from the Camera class as suggested in these options is not the solution. This will result in a solution that will allow the application to access all functionality exposed by the Camera class through polymorphism. QUESTION: 20 You work as the Enterprise application developer at Certmagic.com. The Certmagic.com network consists of a single Active Directory domain named Certmagic.com. All servers in the domain run Windows Server 2003. Your responsibilities at Certmagic.com include the design and development of application frameworks. Certmagic.com operates in the Inland Revenue services department. You are currently developing an income tax preparation application. This application should calculate income tax on the following basis: To this end you create two Double variables. These are named income and tax 25 http://www.certmagic.com
Slide 26: 070-549 respectively. What is now required is to choose an appropriate decision flow structure to implement the business rules. What should you do? (Choose the appropriate code segment.) A. if (income <7500) { tax = 0.10*income; } else if (income <=30000) { tax = 0.15*(income - 7500) + 750; } else if (income <=72000) { tax = 0.25*(income - 30000) + 4200; } else { tax = 0.28*(income - 72000) + 15000; } B. if (income <=7500) { tax = 0.10*income; if (income <= 30000) { tax = 0.15*(income - 7500 + 750; if (income <= 72000) { tax = 0.25*(income - 30000) + 4200; } else { tax = 0.28*(income - 72000) + 15000; } } } C. switch ((int)income) { case 7500: { tax = 0.10*income; break; } case 30000: { 26 http://www.certmagic.com
Slide 27: 070-549 tax = 0.15*(income - 7400) + 750; break; } case 72000: { tax = 0.25*(income - 30000) + 4200; break; } default: { tax = 0.28*(income - 72000) + 15000; break; } } D. if (income <= 7500) { tax = 0.10*income; } if (income <= 30000) { tax = 0.15*(income - 7500) + 750; } if (income <= 72000) { tax = 0.25*(income - 30000) + 42000; } if (income > 72000) { tax = 0.28*(income - 72000) + 15000; } Answer: A Explanation: When you make use of if-else statements then you control execution based on a single expression. In this case, if the income of an individual is less than or equal to $7,500, the tax variable is set to 10% of the value of the income variable. Execution then leaves the entire if-else black. If not, then the code will determine whether the income is less than or equal to $ 30,000. If so, then the tax variable is set to $750 + 15% of the income over $7,500 etc. Incorrect Answers: B: You should not make use of nested if-statements because it will result in income less than $7,500 to be taxed as 25%. C: You should not make use of switch-case statements because each statement can be used to test a single value, but not a range of values. This will then result in income of less than $ 7,500 to be taxed at 28%. D: You should not make use of if statements as it will cause income of less than $7,500 to be taxed at 25%. 27 http://www.certmagic.com

   
Time on Slide Time on Plick
Slides per Visit Slide Views Views by Location