Đ Minh Khoa - Module 6,7,8,9,10,11
Đ Minh Khoa - Module 6,7,8,9,10,11
Đ Minh Khoa - Module 6,7,8,9,10,11
Module 6: Lambda
Lesson 1 of 1
Module Purpose
This module aims to help you understand and identify the benefits of Amazon EC2 and
AWS Lambda. Real-world examples of companies using these services will be provided
to contextualize your learning. The goal is to enhance performance and functionality.
Module Description
Technology Terminology
AWS Lambda
AWS Lambda allows you to run code without provisioning or managing servers. You are
only charged for the compute time you use, and there is no charge when your code is
not running. AWS Lambda supports a wide range of applications or backend services
with no server management required. Your code can be triggered by AWS services,
events, or initiated directly from HTTP/HTTPS requests.
Amazon EC2
Amazon Elastic Compute Cloud (EC2) provides secure, resizable compute capacity in
the cloud. It offers a simple interface for obtaining and configuring capacity with
minimal setup. EC2 gives you complete control over your computing resources, running
on the AWS platform.
AWS Lambda
AWS Lambda eliminates the need to set up servers. The cost is based on usage and
storage, making it highly cost-effective for lighter workloads compared to EC2.
Amazon EC2
With Amazon EC2, your costs vary based on the type of machine image and storage
used. It provides various purchasing options such as On-Demand, Reserved,
Scheduled, Spot, Dedicated Hosts, Dedicated Instances, and Capacity Reservations.
Diagram
The diagram illustrates transitions between instance states, starting from an Amazon
Machine Image (AMI) to different states like pending, running, rebooting, shutting-down,
and terminated. Arrows show these transitions, with a focus on EBS-backed instances.
• Dedicated Hosts: Pay for dedicated physical hosts, allowing the use of existing
software licenses to reduce costs.
AWS Lambda
Question 1
If our school used a virtual server like Amazon EC2 instead of a physical server, we
would see several differences:
• Security: The cloud environment is often more secure because it's maintained
by experts and uses advanced security protocols. Plus, backups and disaster
recovery processes are more streamlined in the cloud.
Question 2
Certainly, a company that might use a solution like AWS Lambda is a social media
platform. Here's how it might work:
• Component: The company would have a Lambda function that triggers based on
events such as new posts, comments, or user interactions.
• Process: When a new post is made, the Lambda function processes the data,
which could include analyzing text, images, and video content. It might also
trigger actions like sending notifications to followers, updating analytics, or
enforcing community guidelines.
• Benefits: AWS Lambda can handle multiple events simultaneously, allowing for
real-time data processing and scalability. For example, if the platform sees a
spike in traffic, Lambda automatically scales to handle the increased load
without manual intervention.
Question 3
Using a service like AWS Lambda for MMO maintenance could significantly improve the
user experience:
• Real-Time Analytics: Lambda can process game data in real-time, allowing for
live updates to the game world, such as in-game events, weather changes, or
other dynamic content.
Lesson 1 of 1
Module Purpose
In this module, you will explore the functions of automatic scaling, the use of launch
templates, and learn how to monitor Auto Scaling groups. The goal is to understand how
these features can help maintain steady, predictable performance at the lowest
possible cost.
Module Description
Technology Terminology
Automatic Scaling
Fleet
Launch Template
Scale-out
Adding EC2 instances as needed to handle demand.
Scale-in
• Functions:
• Capabilities:
• Scaling Types:
• Dynamic Scaling: Closely follows the demand curve, adjusting the number of
EC2 instances to maintain targets.
A business might need AWS Auto Scaling's features for the following reasons:
These features are crucial for businesses because they ensure that applications are
always available with minimal downtime, which is essential for maintaining business
operations and customer satisfaction.
Question 2
Given the limited historical data on web traffic for the shipping website, I would
recommend starting with dynamic scaling. Dynamic scaling reacts to current demand
and can adjust resources in real-time, which is beneficial for handling unexpected
traffic spikes or changes in user behavior that might be hard to predict with limited
historical data. As the business gathers more data over time, it could then incorporate
predictive scaling to further optimize resource management.
Question 3
To explain the need for automatic scaling to a supervisor for a rapidly growing
international company, I would say:
• Future-Proofing: Investing in automatic scaling now sets the stage for smoother
management as the company continues to grow, ensuring that infrastructure can
adapt seamlessly to future demands.
These benefits are crucial for sustaining growth and ensuring that the company's digital
infrastructure can handle increasing loads efficiently and effectively.
Lesson 1 of 1
Module Purpose
This module will introduce you to the backend of artificial intelligence (AI) and machine
learning (ML), including their products and applications. You will learn to choose the
right AI product to address specific issues and apply this knowledge to demonstrate
understanding. You will also use AI services to analyze text in the form of book reviews.
Module Description
You will explore AWS AI services and determine the most suitable AI product to address
a particular issue. You will then write a recommendation for tackling the issue using AI.
Finally, you will apply your AI knowledge to run text analysis software on book reviews.
Technology Terminology
AWS DeepLens
• A fully programmable video camera with tutorials, code, and pretrained models.
AWS AI Services
AWS DeepLens
Question 1
I've used the Amazon Echo, a voice-activated speaker that leverages AI through
Amazon's Alexa voice assistant. Alexa can answer questions, play music, control smart
home devices, and much more. It uses natural language processing (NLP) and machine
learning to understand and respond to voice commands accurately. AI benefits the user
by making interactions with the device more intuitive and hands-free, providing a
seamless and user-friendly experience.
Question 2
A grocery store could use AI to improve customer service and sales in several ways:
• Queue Management: Using AI to monitor queue lengths and predict wait times
can help staff allocate resources more effectively, reducing customer wait times
and improving the overall shopping experience.
Question 3
The app would use AI technologies such as computer vision to recognize and categorize
clothing items, natural language processing to understand user inputs, and
recommendation systems to generate outfit suggestions. The goal would be to
empower users to make stylish and practical fashion choices easily, while also
providing them with valuable insights about the latest trends and how to combine
different styles. This would be especially beneficial for users who want to keep up with
fashion but might not have the time or expertise to research it themselves.
These AI capabilities would help create a more personalized and engaging user
experience, enhancing the overall value of the product for its users.
Module 9: Impact of Artificial Intelligence
Lesson 1 of 1
Module Purpose
In this module, you will delve into the ethical implementation of artificial intelligence
(AI). Through a debate, you will explore and deepen your understanding of the ethical
implications of widespread AI in various societal sectors. You will also research
emerging technologies, select one that you believe is most valuable, and discuss how it
can improve lives. Finally, you will develop guidelines for the ethical use of AI in specific
scenarios.
Module Description
Technology Terminology
AI involves computer systems capable of performing tasks that typically require human
intelligence, such as visual perception, speech recognition, decision-making, and
translation between languages.
As AI and machine learning (ML) become more prevalent, various ethical concerns
arise:
• Human Rights of AI Robots: Questions arise about the rights of AI robots and
how they are treated.
Misconceptions
AI in popular media often depicts robots as highly intelligent and self-aware, leading to
perceptions that current AI products and services are much more advanced than they
actually are. For example, people may treat chatbots as if they have human-like
qualities, which is a phenomenon known as the ELIZA effect. This misconception can
blur the line between current AI capabilities and the human-like qualities depicted in
fiction.
Question 1
• Bias: Ensuring that AI systems are free from biases and prejudices that could
unfairly impact certain groups.
• Decision-Making: Questioning the appropriateness of allowing AI to make
decisions that affect human life, such as in autonomous vehicles or healthcare
diagnostics.
Question 2
• Precision and Speed: AI can analyze vast amounts of medical data quickly and
accurately, leading to faster and more precise diagnoses.
Potential Problems:
• Data Privacy and Security: Ensuring patient data remains confidential and
secure during AI analysis.
• Public Trust: Building trust in the technology to ensure patients are comfortable
with AI-led diagnoses.
Personal Feelings:
Question 3
Using AI to decide which targets to attack with drones raises significant ethical
concerns:
Considering these points, it's essential to develop robust ethical frameworks and
oversight mechanisms when deploying AI in military operations, ensuring that decisions
align with ethical standards and humanitarian considerations.
Lesson 1 of 1
Module Purpose
This module aims to teach the use cases and functions of machine learning (ML)
technology, including how it can be applied to solve problems. You will also apply
reinforcement learning by creating and evaluating an AWS DeepRacer model.
Module Description
Technology Terminology
Algorithm
Deep Learning
Forecasting
Neural Network
Reinforcement Learning
A type of ML where the computer system improves its decision-making as it learns from
rewards it receives.
Supervised Learning
A type of ML in which the computer system learns from human-labeled or human-
tagged data sources.
Training
The process of providing more example data points to a computer system so it can
learn.
Unsupervised Learning
Applications of ML
Procedures in ML:
1. Data Acquisition: Obtain quality data from a data lake or other sources.
5. Fine Tuning: Continuously train the system with more data and update the
algorithm.
Tools for ML:
Misconceptions About ML
Question 1
Yes, web applications often personalize recommendations based on the data they
collect about your interactions with the site. When you log into a video streaming site,
the application uses algorithms that analyze your viewing history, ratings, and other user
data to suggest videos that are likely to interest you. Similarly, social media sites
analyze your interactions, such as the pages and accounts you engage with, to
recommend new friends or accounts to follow. The application learns from these
interactions, refining its recommendations over time.
Question 2
If you work for a large online retail store and want to use machine learning (ML) to make
marketing, advertising, and sales more efficient, here are some ideas:
• Predictive Analytics: Use ML to predict which customers are likely to churn and
which ones are likely to become high-value customers. Proactively addressing
potential churn can help retain customers and boost sales.
Question 3
Yes, spam emails can be a nuisance. Email services use machine learning and other
techniques to filter out spam. Here's how it works:
• Types of Data Analyzed: Email services analyze the content of emails, sender
reputation, metadata, and user interaction data. Features like keywords, sender
reputation, email headers, and content analysis help distinguish spam from
legitimate emails.
• Feature Extraction: Identify key features like keywords, sender reputation, and
email metadata.
• Evaluation: Test the model using a separate dataset to measure its accuracy and
minimize false positives and negatives.
• Continuous Learning: Implement a feedback loop where user reports refine the
model.
By continuously improving and testing the ML model, email services can effectively
minimize spam emails and ensure that legitimate emails are delivered.
Lesson 1 of 1
Module Purpose
This module aims to review use cases and Amazon Web Services (AWS) applications
and apply this knowledge to various business scenarios. It will help you understand
different types of deep learning and how AWS applications can make deep learning
more effective in business contexts.
Module Description
• Compare different types of deep learning functions and apply them to business
ideas such as personalization, forecasting, customer churn, and recognition.
Technology Terminology
The ability of computer systems to perform tasks that usually require human
intelligence.
Algorithm
Churn
A model that predicts the probability of a customer leaving a business and their
potential lifetime value.
Deep Learning
A subset of machine learning (ML) that uses neural networks to analyze and make
complex decisions based on unstructured data.
Forecasting
Neural Network
A branch of AI where computer systems learn and improve from data without additional
programming. ML involves training data.
Recognition
Data Training
Applications of ML:
• Customer Churn: Analyzing customer behavior to predict churn risk and take
proactive measures.
ML in Business:
Deep Learning:
The strongest form of ML, including many layers of analysis that make sense of
unstructured data, often referred to as artificial neural networks.
Question 1
The healthcare industry can benefit significantly from machine learning (ML) systems in
several ways:
• Diagnosis: ML models can analyze medical images (like X-rays, CT scans, MRIs)
to detect diseases like cancer, heart disease, or pneumonia with high accuracy.
This can lead to earlier and more precise diagnoses.
• Treatment: ML algorithms can predict the most effective treatment plans based
on a patient’s medical history, genetic information, and current health status.
This can improve treatment outcomes and reduce trial-and-error methods.
• Biometrics: ML can analyze biometric data like heart rate, blood pressure, and
glucose levels to monitor patient health in real-time. Predictive models can alert
healthcare providers about potential health issues before they become serious.
• Drug Discovery: ML can assist in identifying new drug compounds that could be
effective treatments, reducing the time and costs associated with drug
development.
• Patient Monitoring: Wearable devices that track patient health data can be
analyzed by ML systems to detect changes in health status, which can lead to
proactive care measures.
Question 2
• Customer Support: Chatbots can recognize customer inquiries and direct them
to the appropriate support channels, improving efficiency and customer
satisfaction.
Question 3
Businesses can use ML for predictions, analysis, and forecasting in multiple areas to
enhance their operations:
• Demand Forecasting: Businesses can predict future demand for their products
or services, which helps in inventory planning, production scheduling, and
supply chain management.