PrepAway - Latest Free Exam Questions & Answers

Category: 70-691

Exam 70-691: TS: Windows HPC Server 2008, Developing

Which three actions should you perform?

You plan to migrate a Windows Communication Foundation (WCF) service from a non-HPC application to a Windows HPC Server 2008.
You have the following code segment. (Line numbers are included for reference only.)

01 [ServiceContract(SessionMode=SessionMode.Required)]
02 [ServiceBehavior(
03 ConcurrencyMode = ConcurrencyMode.Single,
04 InstanceContextMode = InstanceContextMode.PerSession)] 05 public class QuoteService
06 {
07 [OperationContract(
08 Action=@"http://contoso.com/QuoteSvc/Process", 09 IsOneWay=true)]
10 public void ProcessQuote(string symbol)
11 {
12 /// implementation details.
13 }
14 }

You need to ensure that the service can run in an HPC cluster environment. Which three actions should you perform? (Each correct answer presents part of the solution.
Choose three.)

What should you do?

You create a service-oriented architecture (SOA) application that will be deployed on a Windows HPC Server 2008 cluster. The application contains a Windows Communication Foundation (WCF) service. The WCF service includes the following data contract class. (Line numbers are included for reference only.)

01 [DataContract]
02 public class Person
03 {
04 [DataMember]
05 public string FullName
06 {
07 get;
08 set;
09 }
10 }

You have the following business requirements:
Client applications must create new versions of the Person class by adding new data members and retaining the old version at the server side. No data must be lost when data passes from a new version to an old version and back to the new version of the Person class. You need to modify the Person class to ensure that the business requirements are met. What should you do?

Which code segment should you use?

You create a service-oriented architecture (SOA) application that will be deployed on a Windows HPC Server 2008 cluster. The application contains the following code segment.
(Line numbers are included for reference only.)

01 ServiceContract]
02 public interface IWcfService
03 {
04 [OperationContract]
05 [FaultContract(typeof(ArgumentNullException))] 06 void CreatePerson(Person p);
07 }
09 public class WcfService : IWcfService
10 {
11 public void CreatePerson(Person p)
12 {
13 if (p == null)
14 throw new ArgumentNullException();
15 …
16 }
17 }

You need to ensure that the client application properly handles the ArgumentNullException exception. Which code segment should you use?

Which command should you run?

You create a service-oriented architecture (SOA) application that will be deployed on a Windows HPC Server 2008 cluster. You create a Windows Communication Foundation (WCF) service. The assembly name of the WCF service is ContosoService.dll. The Metadata Exchange (MEX) endpoint of the service is exposed in the following URL: http://contoso.com/ContosoService/mex. You plan to provide the service metadata files offline to the development team of a client application. You need to export the service metadata files of the WCF service.
Which command should you run?

Which code segment should you insert at line 17?

You create a service-oriented architecture (SOA) application that will be deployed on a Windows HPC Server 2008 cluster.
The cluster has the following configuration:
A head node named HeadNode01
A Windows Communication Foundation (WCF) broker node Ninety compute nodes
You deploy and register a WCF service named MyWcfService on all compute nodes. You plan to create a client application for the WCF service. You write the following code segment. (Line numbers are included for reference only.)

01 public void InvokeService()
02 {
03 ISchedulerJob job =
04 GetJobReference("HeadNode01", "MyWcfService"); 05 Binding binding = new
06 NetTcpBinding(SecurityMode.None, false);
07 EndpointAddress endpoint = new
08 EndpointAddress(job.EndpointAddresses[0]);
09 MyWcfServiceClient proxy = new
10 MyWcfServiceClient(binding, endpoint);
11 proxy.MyServiceOperation();
12 proxy.Close();
13 }
14 ISchedulerJob GetJobReference(string headNode, 15 string serviceName)
16 {
18 }

You need to ensure that the client application uses an existing shared session that was previously created.
Which code segment should you insert at line 17?

What should you do?

You are an application developer. Your company uses a Windows HPC Server 2008 cluster. You analyze the communication patterns between Microsoft Message Passing Interface (MPI) ranks of a long-running MPI application.
You need to collect real-time event trace data from the application without using the event trace log files. What should you do?

Which code segment should you use to replace lines 12 and 13?

You create a Microsoft Message Passing Interface (MPI) application by using Microsoft Visual C++.
You write the following code segment. (Line numbers are included for reference only.)

01 MPI_Init(&argc, &argv);
02 int a[100], b[100], c[100], myrank;
03 MPI_Status status;
04 MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
05 if (myrank==0)
06 {
07 MPI_Send(a, 100, MPI_INT, 1, 1, MPI_COMM_WORLD); 08 MPI_Send(b, 100, MPI_INT, 1, 2, MPI_COMM_WORLD); 09 }
10 else
11 {
12 MPI_Recv(b, 10, MPI_INT, 0, 2, MPI_COMM_WORLD,&status);
13 MPI_Recv(a, 10, MPI_INT, 0, 1, MPI_COMM_WORLD,&status); 14 }

The code segment will be executed with two MPI ranks. You discover that a deadlock occurs occasionally. You need to resolve deadlocks in the application. Which code segment should you use to replace lines 12 and 13? (Each correct answer presents a complete solution. Choose two.)


Page 2 of 812345...Last »