2. Which of the following is the correct way to set the desired capacity to 5 in an AWS Auto Scaling group configuration snippet?
easy
A. DesiredCapacity => 5
B. "DesiredCapacity" = 5
C. DesiredCapacity: "5"
D. "DesiredCapacity": 5
Solution
Step 1: Identify correct JSON syntax
In JSON, keys and string values use double quotes and key-value pairs use colon (:).
Step 2: Check each option
"DesiredCapacity": 5 uses correct JSON syntax: key in quotes, colon, numeric value without quotes.
Final Answer:
"DesiredCapacity": 5 -> Option D
Quick Check:
JSON key-value uses colon and quotes [OK]
Hint: JSON uses colon and quotes for keys [OK]
Common Mistakes:
Using equals sign instead of colon
Putting numbers in quotes unnecessarily
Using arrow symbols instead of colon
3. Given an Auto Scaling group with MinSize=2, MaxSize=6, and DesiredCapacity=4, what happens if the current number of running servers is 5 and one server fails?
medium
A. The group does nothing because the current number of running servers equals DesiredCapacity
B. The group launches a new server to maintain DesiredCapacity of 4
C. The group terminates another server to reach DesiredCapacity
D. The group launches two new servers to reach MaxSize
Solution
Step 1: Understand DesiredCapacity role
DesiredCapacity is the target number of servers to keep running, here 4.
Step 2: Analyze failure impact
One server fails, so running servers drop from 5 to 4, which matches DesiredCapacity.
Step 3: Check if scaling needed
Since running servers dropped below DesiredCapacity, the group launches a new server to maintain DesiredCapacity.
Final Answer:
The group launches a new server to maintain DesiredCapacity of 4 -> Option B
Hint: Scaling triggers only if running servers < DesiredCapacity [OK]
Common Mistakes:
Assuming scaling happens immediately on failure
Confusing MinSize with DesiredCapacity
Thinking MaxSize limits minimum servers
4. You configured an Auto Scaling group with MinSize=3, MaxSize=5, and DesiredCapacity=6. What is the problem?
medium
A. DesiredCapacity cannot be greater than MaxSize
B. MinSize cannot be less than DesiredCapacity
C. MaxSize cannot be less than MinSize
D. No problem, this configuration is valid
Solution
Step 1: Check relationship between capacities
DesiredCapacity must be between MinSize and MaxSize inclusive.
Step 2: Compare values
DesiredCapacity is 6, but MaxSize is 5, which is less than DesiredCapacity.
Step 3: Identify error
This violates the rule that DesiredCapacity cannot exceed MaxSize.
Final Answer:
DesiredCapacity cannot be greater than MaxSize -> Option A
Quick Check:
DesiredCapacity ≤ MaxSize [OK]
Hint: DesiredCapacity must be ≤ MaxSize [OK]
Common Mistakes:
Setting DesiredCapacity higher than MaxSize
Confusing MinSize and MaxSize roles
Assuming any values are allowed
5. You want an Auto Scaling group to always run at least 2 servers, never more than 8, and normally keep 5 running. If traffic suddenly spikes, which setting controls the maximum servers it can scale up to, and what should it be set to?
hard
A. MaxSize controls maximum servers; set to 8
B. DesiredCapacity controls maximum servers; set to 8
C. MinSize controls maximum servers; set to 5
D. DesiredCapacity controls maximum servers; set to 2
Solution
Step 1: Identify which setting limits maximum servers
MaxSize sets the upper limit of servers allowed in the group.
Step 2: Match requirement to setting
To never exceed 8 servers, MaxSize must be set to 8.
Step 3: Understand DesiredCapacity and MinSize roles
DesiredCapacity is the target number (5), MinSize is the minimum (2), neither limits maximum scaling.
Final Answer:
MaxSize controls maximum servers; set to 8 -> Option A
Quick Check:
MaxSize = max servers allowed [OK]
Hint: MaxSize limits max servers; DesiredCapacity is target [OK]
Common Mistakes:
Confusing DesiredCapacity with MaxSize
Setting MinSize as maximum limit
Not setting MaxSize high enough for spikes
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.