Configure Serverless Compute Instance Type Count Azure ML SDK v2
Short answer
C Initialize and specify the ResourceConfiguration class.
Question
Key Takeaways
The exam tests the distinction between serverless compute configuration and managed cluster creation; the common trap is confusing AmlCompute (for clusters) with ResourceConfiguration (for serverless job constraints).
This question tests the correct method for specifying instance type and count for serverless compute in Azure ML Python SDK v2. The community consensus confirms that ResourceConfiguration is the appropriate class for this task, distinguishing it from managed compute cluster configurations.
Common mistake: Option D (AmlCompute) is the most common wrong answer because candidates often assume all compute targets use the AmlCompute class, failing to recognize that serverless jobs require explicit resource constraints via ResourceConfiguration rather than a pre-provisioned cluster definition.
Expert Analysis
Why the Answer Is Correct
In Azure Machine Learning Python SDK v2, when using serverless compute, you do not provision a persistent cluster. Instead, you define the resources required for the specific job run. The ResourceConfiguration class allows you to specify the exact instance type (SKU) and the number of nodes (count) needed for the training job to execute efficiently within the serverless environment.
Why the Other Options Are Wrong
Option D is incorrect because AmlCompute is used to create and manage dedicated virtual machine clusters, which involves provisioning infrastructure before jobs run. Option B is invalid as 'Dedicated VM' is not a valid parameter for configuring serverless compute constraints. Option A is incorrect because simply naming the compute target does not allow you to enforce specific hardware requirements or node counts dynamically for a serverless run.
Community Comment Notes
Comment [2] correctly highlights that AmlCompute is for managed clusters, not serverless. Comment [1] explicitly identifies ResourceConfiguration as the required class for setting instance types and counts. While Comment [3] cites documentation for AmlCompute, it inadvertently supports why D is wrong for this specific serverless scenario.
Exam Strategy
Always distinguish between 'provisioned' compute (like AmlCompute clusters) and 'serverless' compute (pay-per-use). For serverless jobs, look for options involving runtime resource specification (like ResourceConfiguration) rather than infrastructure management classes.
Community Votes
67% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
ulg 👍 1 Answered CTo configure serverless compute with a specific instance type and count in Azure Machine Learning using the Python SDK v2, you need to use the ResourceConfiguration class.
-
avinyc 👍 1 Answered CCorrect answer should be ResourceConfiguration (C). The AmlCompute class is used for creating managed compute clusters, not for configuring serverless compute.
-
Sadhak 👍 1 Answered Dhttps://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.compute.amlcompute(class)?view=azure-ml-py
-
AzureGeek79 👍 1Given answer is correct.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.