AZ-104 Question 178
Select 3You 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?
- 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
- B
In the new Web App’s Configuration settings, specify the Node.js version under General settings
- C
Set a deployment slot for staging logs and redirect them to local temporary storage
- 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.