Question 1 of 30
A developer is tasked with creating a Node.js application that needs to manage multiple asynchronous operations efficiently. The application will utilize npm to manage its dependencies, including a library for handling HTTP requests and another for managing file operations. The developer decides to implement a promise-based approach to handle these asynchronous tasks. Given the following code snippet, which correctly demonstrates the use of promises to read a file and then make an HTTP request based on the file\'s content?
javascript
st fs = require('fs').promises;
st axios = require('axios');
ction fetchDataFromFileAndMakeRequest(filePath) {

Preparing for Microsoft MS-600 Building Applications and Solutions with Microsoft 365 Core Services? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free