PrepAway - Latest Free Exam Questions & Answers

Which cmdlet should you run?

Your network contains an Active Directory domain named contoso.com. The domain contains two
member servers named Server1 and Server2. All servers run Windows Server 2012 R2.
Server1 and Server2 have the Failover Clustering feature installed. The servers are configured as
nodes in a failover cluster named Cluster1. Cluster1 contains a cluster disk resource.
A developer creates an application named App1. App1 is NOT a cluster-aware application. App1
runs as a service. App1 stores date on the cluster disk resource.
You need to ensure that App1 runs in Cluster1. The solution must minimize development effort.
Which cmdlet should you run?

PrepAway - Latest Free Exam Questions & Answers

A.
Add-ClusterGenericServiceRole

B.
Add-ClusterGenericApplicationRole

C.
Add-ClusterScaleOutFileServerRole

D.
Add-ClusterServerRole

Explanation:
Add-ClusterGenericApplicationRole
Configure high availability for an application that was not originally designed to run in a failover
cluster.
If you run an application as a Generic Application, the cluster software will start the application,
then periodically query the operating system to see whether the application appears to be running.
If so, it is presumed to be online, and will not be restarted or failed over.
EXAMPLE 1.
Command Prompt: C:\PS>
Add-ClusterGenericApplicationRole -CommandLine NewApplication.exe
Name OwnerNode State
—- ——— —–
cluster1GenApp node2 Online
Description
———–
This command configures NewApplication.exe as a generic clustered application. A default name
will be used for client access and this application requires no storage.
Add-ClusterGenericApplicationRole
http://technet.microsoft.com/en-us/library/ee460976.aspx

12 Comments on “Which cmdlet should you run?

  1. Leem says:

    Add-ClusterGenericServiceRole
    Configures high availability for a service that was not originally designed to run in a failover cluster.

    Detailed Description

    The Add-ClusterGenericServiceRole cmdlet configures high availability for a service that was not originally designed to run in a failover cluster. The cluster software will start the service, then periodically query the Service Controller (a feature of the operating system) to determine whether the service appears to be running. If so, then it is presumed to be online, and will not be restarted or failed over.




    2



    2
  2. Cowpoo says:

    The key sentence here is ‘App stores data’. The answer would be Add-ClusterGenericApplicationRole

    There is a similar question that mentions ‘App as service’. The answer in this case would be Add-ClusterGenericServiceRole.




    3



    0
  3. pfishers says:

    According to the below from Technet it would appear A: Add-ClusterGenericServiceRole is the answer.

    Example 2: Configure a service that uses default values and a specified disk
    This example configures Service1 as a generic clustered service using Cluster Disk 6, and assigns defaults for the name and IP address.

    Windows PowerShell
    PS C:\> Add-ClusterGenericServiceRole -ServiceName “Service1” -Storage “Cluster Disk 6”




    1



    1
  4. fgsfds says:

    After some digging I believe the answer is B.

    Looking at the Generic Service Devnet (https://msdn.microsoft.com/en-us/library/aa369600(v=vs.85).aspx) Microsoft specifies that the Generic Service Should only be used if all of the below apply:
    The resource is not a device. The generic resource types are not designed to manage hardware.
    The resource is stateless.
    The resource is not dependent on other resources.
    The resource does not have unique attributes that should be managed with private properties.
    The resource does not have special functionality that should be exposed through control codes.
    The resource can be started and stopped easily without using special procedures.

    As this application stores data on a Cluster Disk Resource, this is therefore dependant on another resource and cannot be configured as a Generic Service. We must configure this application as a Generic Application Resource DLL.




    0



    0
    1. den says:

      this explanation looks good at first sight, but what I find inconsistent about the MSDN articles is that on one hand we have this restriction about “The resource is not dependent on other resources.”, but on the other hand the Add-ClusterGenericServiceRole command also supports the storage parameter…?!
      so maybe someone is able to clear things up here, as I did not find any other articles giving detailed information about this :-/




      1



      0
  5. asd says:

    “App1 is NOT a cluster-aware application. App1
    runs as a service.”

    If it were a non-cluster away application: B (think .exe)

    Because it actually runs as a service: A (think running services)




    1



    1
  6. dunderhead says:

    The key to this question is how the cluster reviews the operational availability of the app/service for failover. Generic Services are reviewed by the operating system reporting the status of the service. Generic Applications are providing their status directly. -storage is a parameter of the Generic Services cmdlet to allow the cluster service to keep the service and storage components together if failover occurs. I don’t see anything in the scenario that suggests any handling other than the service.

    A – add-clustergenericservicerole




    0



    0

Leave a Reply