Complete the code to show how cloud computing allows adding more {{BLANK_1}} easily.
servers = ['server1', 'server2'] servers.append([1])
In cloud computing, you can add new servers like 'server3' easily to increase capacity.
Complete the code to represent how cloud resources can be {{BLANK_1}} or down quickly.
def scale_resources(action): if action == '[1]': return 'Resources increased' else: return 'Resources decreased'
Cloud computing allows resources to be scaled up (increased) or down quickly.
Fix the error in the code that simulates cloud scaling by filling the blank.
resources = 5 resources = resources [1] 3 # Increase resources by 3
To increase resources by 3, use the '+' operator.
Fill the blank to create a dictionary showing resource names and their {{BLANK_1}} in cloud scaling, filtering only those with {{BLANK_2}} usage above 50.
resources = {'server1': 45, 'server2': 60, 'server3': 75}
high_usage = {name: usage for name, usage in resources.items() if usage [1] 50}The dictionary comprehension filters servers with usage greater than 50 using the '>' operator.
Fill all three blanks to create a dictionary that maps server names in uppercase to their {{BLANK_1}}, including only those with usage {{BLANK_2}} 50 and {{BLANK_3}} 80.
resources = {'server1': 45, 'server2': 60, 'server3': 75, 'server4': 85}
filtered = {name[1]: usage for name, usage in resources.items() if usage [2] 50 and usage [3] 80}The dictionary maps uppercase server names to usage, filtering usage greater than 50 and less than 80.