Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

Why cloud computing enables scale in Intro to Computing - Test Your Understanding

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to show how cloud computing allows adding more {{BLANK_1}} easily.

Intro to Computing
servers = ['server1', 'server2']
servers.append([1])
Drag options to blanks, or click blank then click option'
A'server3'
B'server1'
Cserver3
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Using a variable without quotes causes an error.
Adding a number instead of a server name.
2fill in blank
medium

Complete the code to represent how cloud resources can be {{BLANK_1}} or down quickly.

Intro to Computing
def scale_resources(action):
    if action == '[1]':
        return 'Resources increased'
    else:
        return 'Resources decreased'
Drag options to blanks, or click blank then click option'
Ascaled
Bscaled down
Cscaled up
Dscaled quickly
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'scaled' alone is vague.
Using 'scaled down' means decreasing, not increasing.
3fill in blank
hard

Fix the error in the code that simulates cloud scaling by filling the blank.

Intro to Computing
resources = 5
resources = resources [1] 3  # Increase resources by 3
Drag options to blanks, or click blank then click option'
A-
B+
C*
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-' decreases resources.
Using '*' multiplies resources incorrectly.
4fill in blank
hard

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.

Intro to Computing
resources = {'server1': 45, 'server2': 60, 'server3': 75}
high_usage = {name: usage for name, usage in resources.items() if usage [1] 50}
Drag options to blanks, or click blank then click option'
A!=
B<
C==
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' filters lower usage.
Using '==' filters only exactly 50.
5fill in blank
hard

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.

Intro to Computing
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}
Drag options to blanks, or click blank then click option'
A.upper()
B>
C<
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' filters exact values only.
Mixing up '>' and '<' operators.

Practice

(1/5)
1. What is the main reason cloud computing enables easy scaling for businesses?
easy
A. It limits the number of users who can access the system.
B. It allows adding or removing resources quickly based on demand.
C. It requires buying expensive hardware upfront.
D. It only works with small applications.

Solution

  1. Step 1: Understand cloud resource flexibility

    Cloud computing lets businesses add or remove computing power easily.
  2. Step 2: Connect flexibility to scaling

    This flexibility means businesses can handle more or fewer users smoothly.
  3. Final Answer:

    It allows adding or removing resources quickly based on demand. -> Option B
  4. Quick Check:

    Cloud flexibility = Easy scaling [OK]
Hint: Think about adding/removing resources fast [OK]
Common Mistakes:
  • Confusing cloud with buying physical servers
  • Thinking cloud limits users
  • Believing cloud only supports small apps
2. Which of the following is the correct way to describe scaling in cloud computing?
easy
A. Scaling means adjusting resources like CPU and memory as needed.
B. Scaling means buying more physical servers only.
C. Scaling means reducing the number of users allowed.
D. Scaling means turning off the cloud service permanently.

Solution

  1. Step 1: Define scaling in cloud context

    Scaling means changing computing resources like CPU, memory, or storage.
  2. Step 2: Match definition to options

    Only adjusting resources like CPU and memory as needed correctly describes scaling.
  3. Final Answer:

    Scaling means adjusting resources like CPU and memory as needed. -> Option A
  4. Quick Check:

    Scaling = Adjust resources [OK]
Hint: Scaling adjusts resources, not just hardware purchase [OK]
Common Mistakes:
  • Thinking scaling only means buying hardware
  • Confusing scaling with user limits
  • Misunderstanding scaling as service shutdown
3. Consider a website hosted on cloud servers. If the number of visitors suddenly doubles, what will likely happen in a cloud environment?
medium
A. The website blocks half of the visitors to reduce load.
B. The website crashes because cloud servers cannot scale.
C. The cloud reduces server resources to save money.
D. The cloud automatically adds more servers to handle the extra visitors.

Solution

  1. Step 1: Understand cloud auto-scaling

    Cloud services can add more servers automatically when demand increases.
  2. Step 2: Apply to visitor increase scenario

    When visitors double, cloud adds servers to keep the website running smoothly.
  3. Final Answer:

    The cloud automatically adds more servers to handle the extra visitors. -> Option D
  4. Quick Check:

    More visitors = More servers added [OK]
Hint: More visitors trigger more servers automatically [OK]
Common Mistakes:
  • Assuming cloud cannot scale automatically
  • Thinking cloud reduces resources on demand increase
  • Believing website blocks visitors instead of scaling
4. A company tries to scale their cloud application but notices performance is slow. Which of these is a likely error in their scaling approach?
medium
A. They added more resources but did not configure the application to use them.
B. They removed all cloud resources to save money.
C. They increased resources and the app speed improved immediately.
D. They used cloud scaling correctly with no issues.

Solution

  1. Step 1: Identify scaling misconfiguration

    Adding resources alone is not enough; the app must be set to use them.
  2. Step 2: Analyze performance issue

    If performance is slow despite more resources, likely the app isn't configured properly.
  3. Final Answer:

    They added more resources but did not configure the application to use them. -> Option A
  4. Quick Check:

    Resources + config needed = Good performance [OK]
Hint: Adding resources needs app setup to use them [OK]
Common Mistakes:
  • Assuming adding resources always fixes speed
  • Confusing removing resources with scaling
  • Ignoring app configuration after scaling
5. A startup expects fluctuating user traffic: high during the day and low at night. How can cloud computing help them save costs while ensuring good performance?
hard
A. By buying fixed hardware that handles the highest traffic all the time.
B. By shutting down the service at night to save money.
C. By scaling resources up during the day and down at night automatically.
D. By ignoring traffic changes and using the same resources always.

Solution

  1. Step 1: Understand cost and performance needs

    The startup needs more resources when traffic is high and fewer when low to save money.
  2. Step 2: Apply cloud scaling features

    Cloud can automatically increase resources during busy times and reduce them when traffic drops.
  3. Final Answer:

    By scaling resources up during the day and down at night automatically. -> Option C
  4. Quick Check:

    Auto scale up/down = Cost saving + performance [OK]
Hint: Scale resources with traffic changes automatically [OK]
Common Mistakes:
  • Buying fixed hardware wastes money at low traffic
  • Shutting down service loses users
  • Ignoring traffic changes wastes resources
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard