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

Go back to Microsoft

Example Questions

You plan to develop a Microsoft Message Passing Interface (MPI) application by using Microsoft Visual Studio. You have installed the Microsoft HPC Pack 2008 SDK at C:\Program Files\Microsoft HPC Pack 2008 SDK.You create a new console application. You need to ensure that the application compiles for a 64-bit architecture. Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.) You are designing a parallel algorithm for an OpenMP application. You write the following pseudocode to represent the sequential logic of the algorithm. (Line numbers are included for reference only.) 01 do i = 1, m 02 do j = 1, n 03 x = i/real(m) 04 y = j/real(n) 05 depth[j, i] = calculate_val(x, y) 06 enddo 07 enddo You need to identify the variables that must be declared as private variables to correctly parallelize the algorithm. Which set of variables should you select? You develop a parallel application that will be deployed on a Windows HPC Server 2008 cluster. You write the following code segment. (Line numbers are included for reference only.) 01 MPI_Init(&argc, &argv); 03 { 04 // program part for rank 0 06 } 06 else 07 { 08 // program part for all other ranks 09 } 10 MPI_Finalize(); You need to ensure that the code in the rank 0 section only executes on the process that has a rank of 0. Which code segment should you insert at line 02? 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? You plan to develop a parallel application by using Windows HPC Server 2008. The application performs the following tasks: Performs multistep calculations Processes data by using the same code segment that runs on each compute node You need to ensure that each compute process executes the same step simultaneously. Which type of communication should you use? You plan to develop a parallel application by using Windows HPC Server 2008. You plan to use a method to control the calculations performed by each individual process. You need to ensure that different commands can be sent to each process. Which function should you use? You plan to develop a parallel application by using Windows HPC Server 2008. You need to implement a method that will send different data to each process in a communicator by using a single call. Which function should you use? You are developing a parallel application that will be deployed to a Windows HPC Server 2008 cluster.You plan to use the Microsoft Message Passing Interface (MPI) library. You need to implement a new procedure for send and receive operations to allow overlapping of computation with communication routines. Which two communication semantics should you choose? (Each correct answer presents part of the solution. Choose two.) You create a parallel application by using Microsoft Visual Studio 2008. The application prints a message to the console of all Microsoft Message Passing Interface (MPI) processes except for one. The application terminates and displays an error message. You need to change the code in the application so that the application completes successfully. Which set of tasks should you include in the application? You plan to submit a job by using Open Grid Framework (OGF) HPC Basic Profile. You have the following XML definition. (Line numbers are included for reference only.) 01 <jsdl:Application> 02 <jsdl-hpcp:HPCProfileApplication name="IPConfig"> 04 <jsdl-hpcp:Input></jsdl-hpcp:Input> 05 <jsdl-hpcp:Output>ipconfig_out.txt</jsdl-hpcp:Output> 06 <jsdl-hpcp:Error>ipconfig_err.txt</jsdl-hpcp:Error> 07 </jsdl-hpcp:HPCProfileApplication> 08 </jsdl:Application> You need to run the ipconfig command as a job on the cluster. Which code segment should you insert at line 03? You create an OpenMP application by using Microsoft Visual C++. You are debugging the application. You set a breakpoint to the first line of code inside an OpenMP parallel region. The first thread execution inside the OpenMP parallel region must be debugged. You need to ensure that you debug the first thread in isolation when you step through the code. What should you do? You submit a multitask job to a Windows HPC Server 2008 cluster. The job is assigned a job ID of 67.You need to find out the tasks in the job that have completed successfully. Which command should you use? You are an application developer. Your company uses a Windows HPC Server 2008 cluster.You analyze the performance of a Microsoft Message Passing Interface (MPI) application.You need to create an application performance report that indicates the functions that take a long time to execute. What should you do? You develop an application that reads data from a file, performs calculations on the data, and writes the result to another file. The read and write operations are atomic and are not parallelized.You divide the calculation tasks across a set of threads by using the following do construct. (Line numbers are included for reference only.) 01 #pragma omp parallel shared(in, out, len) 02 { 03 read_array(in, len); 05 #pragma omp for private(j) 06 for(j=1; j<len; j++) 07 compute_result(out(j),in,len); 08 write_array(out, len); 09 } You need to ensure that the read and write tasks are performed by a single thread. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) You are an application developer. You submit a new job that has a job ID of 88 to a Windows HPC Server 2008 cluster. The job contains two tasks named Task1 and Task2. You create a new job with an ID of 99. You need to copy Task2 from job 88 to job 99. Which set of commands should you run? You deploy a Windows Communication Foundation (WCF) service in a Windows HPC Server 2008 cluster. You need to measure the WCF service throughput by using the Windows HPC Server 2008 Administration Console. What should you do? You create a Microsoft Message Passing Interface (MPI) application by using Microsoft Visual Studio 2008. You plan to debug the application by using Visual Studio 2008. You need to configure the nodes that will be used for debugging. What should you do? You deploy a Windows Communication Foundation (WCF) service in a Windows HPC 2008 cluster. You need to measure the WCF service latency by using the Windows HPC Server 2008 Administration Console. What should you do? You create an OpenMP application using Microsoft Visual C++. The application includes the following code segment. (Line numbers are included for reference only.) 01 omp_set_num_threads(10); 03 #pragma omp parallel 04 { 05 //Other code 06 #pragma omp barrier 07 int amount; 08 //Other code 09 amount++; 10 } You set a breakpoint at line 09 and then start the debugger. You need to change the value for the variable amount to 15 only for the main thread. What should you do? You use a Windows HPC Server 2008 cluster that has three dual-core nodes. You have a new Microsoft Message Passing Interface (MPI) job named Job1.exe that is designed to run as two processes on every node used. You need to ensure that Job1.exe will run on all cores in the cluster. Which command should you use? You create a new Microsoft Message Passing Interface (MPI) application. The application will be deployed on a Windows HPC Server 2008 cluster. You plan to debug the application by using the MPI Cluster Debugger in Visual Studio 2008. You need to ensure that you can successfully launch and use the MPI Cluster Debugger. What should you do? 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? You create a Microsoft Message Passing Interface (MPI) application. The application has the following requirements: It must be executed on exactly 32 cores. It must use the high-speed interconnect network specified by 10.10.0.0/255.255.0.0 for the MPI traffic. You need to submit the job to meet the requirements of the application. Which two commands should you run? (Each correct answer presents a complete solution. Choose two.) You plan to develop a single program multiple data (SPMD) application by using Windows HPC Server 2008. You use multiple processes to perform intermediate calculations and to provide the results as a single number. You need to ensure that the intermediate results are collected and added together by using a single MPI function. Which function should you use? You create a Microsoft Message Passing Interface (MPI) application by using Microsoft Visual Studio 2008. The application process is named MPIApplication.exe. You plan to debug the application by using the MPI Cluster Debugger in Visual Studio 2008. You need to attach the debugger to the remote process on a compute node. Which process should you attach to? You are an application developer. Your company uses a Windows HPC Server 2008 cluster.You analyze the performance of a Microsoft Message Passing Interface (MPI) application. You create an event trace file named mpi_trace_67.1.0.etl. You need to generate clock synchronization data for the trace file. What should you do? Your company uses Windows HPC Server 2008. You create a new job and assign a job ID of 1356. You plan to add a new parametric sweep task to the job before you submit the job for execution. The task will run an application named paramapp.exe that takes a single command-line parameter. Parmapp.exe must execute 20 times. The command-line parameter must iterate from 1 to 20. You need to add a task to the job to execute paramapp.exe with the correct parameters. Which command should you run? You develop an application for a Windows HPC Server 2008 cluster. You want to verify whether a customer ¯ s cl uter meets the configuration requirements of your application. The customer provides you remote access to the cluster. You need to retrieve information including the number of nodes, jobs, and tasks in various states on the cluster. Which PowerShell cmdlet should you use? You are an application developer. You use a Windows HPC Server 2008 cluster. The queue on the cluster contains 10 jobs. The states of the jobs are either Queued or Running. You submit five new jobs that have job IDs of 201 through 205 by using a project named AppDev. You discover that you have submitted the jobs by using the wrong job description file. You need to cancel the five new jobs. Which command should you run? You are an application developer. Your company uses a Windows HPC Server 2008 cluster. You create a job and assign a job ID of 201. You have not submitted the job for execution. The job includes two tasks named Task1 and Task2. You plan to add a new task named Task3 to the job. Task3 consists of an executable file named hostname.exe. You have the following requirements: Task1 and Task2 must start as soon as the cluster can schedule them on nodes. Task3 must not begin execution until Task2 has completed. You need to add Task3 to the job and submit the job so that the tasks are executed in the correct order. Which set of commands should you run?