
Answer-first summary for fast verification
Answer: size, max_instances
The question asks for the minimum required properties to create a persistent Azure Machine Learning compute cluster using Python SDK v2. According to the Microsoft documentation and community consensus (with AE having 67% support and multiple upvoted comments referencing official docs), the essential properties are 'size' (A) and 'max_instances' (E). The 'size' property specifies the VM type, which is mandatory. 'max_instances' is required for autoscaling configuration, even when using minimal properties. While 'name' (D) is commonly used, it's not strictly required as the SDK can generate a default name. 'win_instances' (B) is not a valid property. 'type' (C) is typically inferred from the AmlCompute class and doesn't need explicit specification when using minimal properties.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Upgrade Now 🚀
No comments yet.
You are creating a persistent Azure Machine Learning compute cluster using the Python SDK v2 and must specify the minimum number of required properties.
Which two properties must you define? (Each correct answer presents part of the solution.)
# Corrected code block
compute_cluster = AmlCompute(
name="cluster-name",
type="amlcompute",
size="STANDARD_DS3_v2",
min_instances=0,
max_instances=4,
idle_time_before_scale_down=180
)
# Corrected code block
compute_cluster = AmlCompute(
name="cluster-name",
type="amlcompute",
size="STANDARD_DS3_v2",
min_instances=0,
max_instances=4,
idle_time_before_scale_down=180
)
A
size
B
win_instances
C
type
D
name
E
max_instances