AZ-104 exam dumps

AZ-104 practice question 178 of 289

Microsoft Certified: Azure Administrator Associate. Associate level, Microsoft. Free question with the correct answer and a full explanation.

AZ-104 Question 178

Select 3

You have been tasked with creating a production-ready Node.js web application in Azure. The application must run in a scalable hosting environment with minimal management overhead. Additionally, all application logs should be stored in Azure Storage for auditing. Which steps should you perform to create and configure the Azure Web App accordingly?

  1. A

    Create a new App Service Plan in the Premium tier, specify Node.js as the runtime stack, and then create the Web App in that plan

  2. B

    In the new Web App’s Configuration settings, specify the Node.js version under General settings

  3. C

    Set a deployment slot for staging logs and redirect them to local temporary storage

  4. D

    Enable Diagnostic logs in the Web App and configure the log destination to an Azure Storage account

Show answer and explanation

Correct answers: A, B, D

Explanation

Using the appropriate App Service Plan tier and selecting Node.js as the runtime ensures a scalable hosting environment for the Node.js application. Additionally, configuring the Web App’s Node.js version and enabling Diagnostic logs with Azure Storage as the destination satisfies the need for correct runtime configuration and centralized log storage.

  • A. Correct.

    Creating a new App Service Plan in Premium or higher tiers ensures you have both the required runtime and the ability to scale. Specifying Node.js as the runtime is necessary so that Azure will configure the environment accordingly.

  • B. Correct.

    Configuring the Node.js version under Settings > Configuration is needed to ensure the Web App runs the correct Node.js version required by your application.

  • C. Incorrect.

    Deployment slots are commonly used for staged deployments, not specifically for storing logs in local temporary storage. This does not meet the requirement to store logs in Azure Storage.

  • D. Correct.

    Enabling Diagnostic logs in the Web App and pointing them to an Azure Storage account fulfills the requirement of storing logs for auditing in a persistent and scalable location.

Timed practice exam

Take a AZ-104 practice test under exam conditions

60 questions in 60 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam