Single Choice Moderate

Q

Your team is working on a Dynamics 365 Commerce project and has encountered a 'JavaScript heap out of memory' build error.

You need to increase the Node memory size to prevent this error during the build process.

How should you specify the environment variable?

ID: #22734 Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer 148 views
Question Info
#22734Q ID
ModerateDifficulty
Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps DeveloperTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Update the 'yarn msdyn365 pack' command in the PowerShell build task to allocate more memory. ✔ ✖
  • B Install a newer version of Node.js that has increased memory capabilities. ✔ ✖
  • C Manually set the environment variable on each developer's machine before building. ✔ ✖
  • D Modify the 'build' script in the package.json file to include '--max_old_space_size4096'. ✔ ✖
Correct Answer

Explanation

Option D is correct because modifying the 'build' script in the package.json file with '--max_old_space_size4096' is the recommended way to increase the Node memory size. Option A is incorrect as the 'yarn msdyn365 pack' command does not control memory allocation. Option B is incorrect because simply installing a newer version of Node.js does not address the memory allocation issue. Option C is incorrect as manually setting the environment variable on each developer's machine is not scalable or reliable.

Set up Azure DevOps code sharing and create a build pipeline - Commerce | Dynamics 365 | Microsoft Learn

Working in Visual Studio - Training | Microsoft Learn

Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue X++ Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions