Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Why Cloud Over On-Premises
📖 Scenario: You are working with a small company that currently uses on-premises servers to run their applications. They want to understand why moving to the cloud could be better for their business.
🎯 Goal: Build a simple AWS infrastructure example that shows the benefits of cloud over on-premises by creating a scalable and easy-to-manage setup.
📋 What You'll Learn
Create a dictionary called on_premises_resources with keys 'servers' and 'maintenance_cost' and values 5 and 2000 respectively
Create a variable called cloud_scalability and set it to True
Create a dictionary called cloud_resources with keys 'instances' and 'monthly_cost' and values 3 and 1500 respectively
Add a key 'auto_scaling' with value True to the cloud_resources dictionary
💡 Why This Matters
🌍 Real World
Companies often compare costs and flexibility before moving from physical servers to cloud services.
💼 Career
Cloud architects and IT managers need to explain and plan cloud migrations using clear data.
Progress0 / 4 steps
1
Create on-premises resource data
Create a dictionary called on_premises_resources with keys 'servers' set to 5 and 'maintenance_cost' set to 2000.
AWS
Hint
Think of on_premises_resources as a list of what the company owns and pays for.
2
Add cloud scalability variable
Create a variable called cloud_scalability and set it to True to represent that cloud resources can scale easily.
AWS
Hint
Cloud scalability means you can add or remove resources easily.
3
Create cloud resource data
Create a dictionary called cloud_resources with keys 'instances' set to 3 and 'monthly_cost' set to 1500.
AWS
Hint
Cloud resources are virtual machines you rent and pay monthly.
4
Add auto scaling to cloud resources
Add a key 'auto_scaling' with value True to the cloud_resources dictionary to show automatic scaling capability.
AWS
Hint
Auto scaling means the cloud can add or remove instances automatically based on demand.
Practice
(1/5)
1. Why do many businesses choose cloud computing over on-premises servers?
easy
A. Because on-premises servers are always faster
B. Because cloud lets them avoid buying and managing physical servers
C. Because cloud requires more physical space
D. Because on-premises servers are cheaper to maintain
Solution
Step 1: Understand cost and management differences
On-premises servers need buying, setup, and ongoing management which costs time and money.
Step 2: Compare with cloud benefits
Cloud removes the need to buy physical servers and handles management, saving money and effort.
Final Answer:
Because cloud lets them avoid buying and managing physical servers -> Option B
Quick Check:
Cloud saves money and effort [OK]
Hint: Cloud avoids physical server costs and management [OK]
Common Mistakes:
Thinking on-premises is always cheaper
Confusing physical space needs
Assuming cloud is slower
2. Which of the following is a correct reason to prefer cloud over on-premises?
easy
A. Cloud allows easy scaling to match your needs anytime
B. On-premises servers can be accessed from anywhere without internet
C. Cloud needs you to buy more hardware
D. On-premises servers automatically update without manual work
Solution
Step 1: Review cloud scaling feature
Cloud lets you increase or decrease resources quickly as your needs change.
Step 2: Check other options for accuracy
Options A, B, and D are incorrect because cloud does not require buying hardware, on-premises needs internet for remote access, and updates often require manual effort.
Final Answer:
Cloud allows easy scaling to match your needs anytime -> Option A
Quick Check:
Cloud scaling [OK]
Hint: Cloud scales resources easily anytime [OK]
Common Mistakes:
Thinking cloud needs more hardware
Believing on-premises is internet-free for remote access
Assuming on-premises updates are automatic
3. Consider this scenario: A company uses cloud services and suddenly needs more storage. What happens next?
medium
A. They need to wait weeks for hardware delivery
B. They must buy new physical hard drives and install them
C. They can quickly increase storage through the cloud provider's console
D. They have to shut down services to add storage
Solution
Step 1: Understand cloud resource flexibility
Cloud providers allow users to add resources like storage instantly via online tools.
Step 2: Contrast with on-premises process
On-premises requires buying and installing hardware, which takes time and may need downtime.
Final Answer:
They can quickly increase storage through the cloud provider's console -> Option C
Quick Check:
Cloud quick resource increase [OK]
Hint: Cloud storage scales fast via console [OK]
Common Mistakes:
Confusing cloud with physical hardware buying
Assuming downtime is needed for cloud scaling
Thinking cloud scaling takes weeks
4. A company tries to access their on-premises server remotely but fails. What is a likely cause?
medium
A. They need to buy more physical servers
B. Cloud services do not allow remote access
C. On-premises servers always allow remote access by default
D. They forgot to connect the server to the internet
Solution
Step 1: Identify remote access requirements
On-premises servers need proper internet connection and configuration to be accessed remotely.
Step 2: Evaluate options for correctness
They forgot to connect the server to the internet correctly points to missing internet connection; B and C are false statements; A is unrelated to access issues.
Final Answer:
They forgot to connect the server to the internet -> Option D
Quick Check:
Remote access needs internet [OK]
Hint: Remote access needs internet connection [OK]
Common Mistakes:
Thinking cloud disallows remote access
Assuming on-premises remote access is automatic
Confusing hardware purchase with access issues
5. A startup wants to launch a website that might get very popular suddenly. Why is cloud a better choice than on-premises for this?
hard
A. Cloud can automatically scale resources up or down based on traffic
B. On-premises servers handle sudden traffic spikes better
C. Cloud requires buying extra servers in advance
D. On-premises servers are easier to access from anywhere
Solution
Step 1: Understand traffic scaling needs
A sudden increase in website visitors needs quick resource scaling to avoid slowdowns or crashes.
Step 2: Compare cloud and on-premises scaling
Cloud can automatically adjust resources instantly; on-premises needs manual hardware changes which are slow and costly.
Step 3: Eliminate incorrect options
Options B, C, and D are incorrect because on-premises is less flexible, cloud does not require buying extra servers upfront, and cloud access is easier.
Final Answer:
Cloud can automatically scale resources up or down based on traffic -> Option A
Quick Check:
Cloud auto-scaling fits sudden traffic [OK]
Hint: Cloud auto-scales for traffic spikes [OK]
Common Mistakes:
Believing on-premises handles spikes better
Thinking cloud needs pre-bought servers
Confusing access ease between cloud and on-premises