PrepAway - Latest Free Exam Questions & Answers

Which three actions should you perform?

You manage a cloud service that has a web application named WebRole1. WebRole1 writes
error messages to the Windows Event Log.
Users report receiving an error page with the following message: “Event 26 has occurred.
Contact your system administrator.”
You need to access the WebRole1 event log.
Which three actions should you perform? Each correct answer presents part of the solution.

PrepAway - Latest Free Exam Questions & Answers

A.
Enable verbose monitoring.

B.
Update the WebRole1 web.config file.

C.
Update the cloud service definition file and the service configuration file.

D.
Run the Set-AzureVMDiagnosticsExtension PowerShell cmdlet.

E.
Run the Enable-AzureWebsiteApplicationDiagnostic PowerShell cmdlet.

F.
Create a storage account.

Explanation:
http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how
to-monitor/ http://msdn.microsoft.com/en-us/library/azure/ee758710.aspx
http://msdn.microsoft.com/en-us/library/azure/ee758711.aspx

24 Comments on “Which three actions should you perform?

      1. David says:

        The app already spit out an error, so why do we need to configure web.congi file again.

        Also, if we are creating a new storage account to store logs, don’t we need to update the configuration files to point to this location?




        0



        0
  1. ItsNotWebConfig says:

    https://msdn.microsoft.com/en-us/magazine/ff714589.aspx

    The problem is that you’d like to be able to change the switch values at run time, and Windows Azure doesn’t allow you to just replace the web.config or app.config without redeploying the service. The generic ASP.NET solution for this is to use WebConfiguationManager to alter configuration values, but Windows Azure doesn’t currently allow you to do this for cloud-deployed services, either.

    The solution is to mirror the values for these switches in *** ServiceConfiguration.cscfg ***. Windows Azure lets you edit that file (or upload a new one) through the development portal while your service is running. You’ll have to write some additional code to make this work, though.




    0



    0
    1. David says:

      Enable-AzureWebsiteApplicationDiagnostic is relevant to Azure websites.
      The question is referring to a Cloud Service role.

      The correct answer is either ABF, or ACF




      0



      0
  2. Isabel Cabezas says:

    ACF

    A & F:
    You can monitor key performance metrics for your cloud services in the Azure Management Portal. You can set the level of monitoring to minimal and verbose for each service role, and can customize the monitoring displays. Verbose monitoring data is stored in a storage account, which you can access outside the portal. 

    C:
    * The service configuration file specifies the number of role instances to deploy for each role in the service, the values of any configuration settings, and the thumbprints for any certificates associated with a role. If the service is part of a Virtual Network, configuration information for the network must be provided in the service configuration file, as well as in the virtual networking configuration file. The default extension for the service configuration file is .cscfg. 
    * The service definition file defines the service model for an application. The file contains the definitions for the roles that are available to a cloud service, specifies the service endpoints, and establishes configuration settings for the service. 

    URLs: http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/ http://msdn.microsoft.com/en-us/library/azure/ee758710.aspx http://msdn.microsoft.com/en-us/library/azure/ee758711.aspx 




    0



    0
  3. josef says:

    A,E,F

    https://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/

    A: “… After you enable verbose monitoring, the aggregated monitoring data is stored in tables in your storage account …”

    E, F: “… Before you begin

    •Create a storage account to store the monitoring data. You can use different storage accounts for different roles. For more information, see help for Storage Accounts, or see How To Create a Storage Account.

    •Enable Azure Diagnostics for your cloud service roles. See Configuring Diagnostics for Cloud Services. …”




    0



    0
  4. Peter says:

    None of the answers is correct.
    WebRole1 writes error messages to the Windows Event Log.
    The question is “You need to access the WebRole1 event log”.
    This is done via FTP!




    0



    0
  5. challenge says:

    The answer is A,C & E

    =================================

    The question relates to getting the “Windows Event log” for the Role running in a Cloud Service.

    Collecting diagnostics data

    XML file – Diagnostics.wadcfg (packaged into the .cspkg file)
    Azure Storage Blob (wad-control-container)

    • IIS HTTP logs
    • IIS failed request logs
    • Azure diagnostics infrastructure logs
    • Windows event logs <<<<<<<<<<<<<<<<<<<
    • Performance counters
    • Crash dumps
    • Custom error logs
    • ETW events

    Use a separate storage account for logging diagnostic data – to improve performance
    (diagnostic connection strings)




    0



    0
  6. Bruno D'Amico says:

    answer is ACF

    step 1 specify the scheduledTransferLogLevelFilter to Verbose in the diagnostics.wadcfg
    step 2 Update the cloud service definition file and the service configuration file (.cspkg)
    step 3 best practice is to create a separate storage account for logging diagnostics data




    0



    0
  7. RobV says:

    Agree ACF. (A) to increase logging info, (C) to make changes without redeploying service and (F) as it lives in a storage account.

    Not B – requires redeploying app
    Not D – It operates on each VM instance, not the Role
    Not E – This is a Cloud Service, not a Web App




    0



    0
  8. Prady says:

    Agreed as ACF.
    However, a question about C- csdef has the Diagnostics (Import) attribute in Web and Worker Role Schemas. But cscfg has no such setting. Shouldn’t the answer have just csdef mentioned? If the answer were to just say “Update the cloud service definition file.”, isn’t it still sufficient?




    0



    0
  9. smasood_ali says:

    AF: You can monitor key performance metrics for your cloud services in the Azure Management
    Portal. You can set the level of monitoring to minimal and verbose for each service role, and can

    customize the monitoring displays. Verbose monitoring data is stored in a storage account, which
    you can access outside the portal.
    C: * The service configuration file specifies the number of role instances to deploy for each role in
    the service, the values of any configuration settings, and the thumbprints for any certificates
    associated with a role. If the service is part of a Virtual Network, configuration information for the
    network must be provided in the service configuration file, as well as in the virtual networking
    configuration file. The default extension for the service configuration file is .cscfg.
    * The service definition file defines the service model for an application. The file contains the
    definitions for the roles that are available to a cloud service, specifies the service endpoints, and
    establishes configuration settings for the service.
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/
    http://msdn.microsoft.com/en-us/library/azure/ee758710.aspx
    http://msdn.microsoft.com/en-us/library/azure/ee758711.aspx




    0



    0

Leave a Reply