1. Which of the following EC2 purchasing options offers the highest discount but is not suitable for databases or critical workloads?
์ง๋ฌธ 1. ๋ค์ ์ค, ํ ์ธ ํญ์ด ๊ฐ์ฅ ํฌ๋, ๋ฐ์ดํฐ๋ฒ ์ด์ค ํน์ ์ค์ ์
๋ฌด์๋ ์ ํฉํ์ง ์์ EC2 ๊ตฌ๋งค ์ต์
์ ๋ฌด์์ธ๊ฐ์?
โ๏ธ 1) Spot Instances (์คํ ์ธ์คํด์ค)
โ 2) On-demand (์จ๋๋งจ๋)
โ 3) Dedicated Hosts (์ ์ฉ ํธ์คํธ)
โ 4) Reserved Instances (์์ฝ ์ธ์คํด์ค)
Spot Instances are suitable for short-term workloads and are the most cost-effective EC2 purchasing option. However, since there is a risk of losing the EC2 instance, they are less reliable.
2. What should be used to control traffic inside and outside an EC2 instance?
์ง๋ฌธ 2. EC2 ์ธ์คํด์ค ๋ด/์ธ์ ํธ๋ํฝ์ ์ ์ดํ๊ธฐ ์ํด์๋ ๋ฌด์์ ์ฌ์ฉํด์ผ ํ๋์?
โ 1) Network Access Control List (NACL) - ๋คํธ์ํฌ ์ก์ธ์ค ์ ์ด ๋ฆฌ์คํธ
โ๏ธ 2) Security Group (๋ณด์ ๊ทธ๋ฃน)
โ 3) IAM Policy (IAM ์ ์ฑ
)
Security groups operate at the EC2 instance level and can control traffic.
3. What is the reservation period for EC2 Reserved Instances?
์ง๋ฌธ 3. EC2 ์์ฝ ์ธ์คํด์ค๋ฅผ ์์ฝํ ์ ์๋ ๊ธฐ๊ฐ์ ์ผ๋ง์ธ๊ฐ์?
โ๏ธ 1) 1 year or 3 years
โ 2) 2 years or 4 years
โ 3) 6 months or 1 year
โ 4) a period between 1 and 3 years
4. You want to deploy a High-Performance Computing (HPC) application on an EC2 instance. Which of the following EC2 instance types should you choose?
์ง๋ฌธ 4. EC2 ์ธ์คํด์ค์ ๊ณ ์ฑ๋ฅ ์ปดํจํ
(HPC) ์ ํ๋ฆฌ์ผ์ด์
์ ๋ฐฐํฌํ๋ ค ํฉ๋๋ค. ๋ค์ ์ค ์ด๋ค EC2 ์ธ์คํด์ค ์ ํ์ ์ ํํด์ผ ํ ๊น์?
โ 1) Storage-optimized (์คํ ๋ฆฌ์ง ์ต์ ํ)
โ๏ธ 2) Compute-optimized (์ปดํจํ
์ต์ ํ)
โ 3) Memory-optimized (๋ฉ๋ชจ๋ฆฌ ์ต์ ํ)
โ 4) General-purpose (๋ฒ์ฉ)
Compute-optimized EC2 instances are suitable for compute-intensive workloads that require high-performance processors, such as batch processing, media transcoding, high-performance computing, scientific modeling, machine learning, and dedicated gaming servers.
5. For an application that plans to run servers continuously for one year, which of the following EC2 purchasing options should be used?
์ง๋ฌธ 5. 1๋
๊ฐ ์ง์์ ์ผ๋ก ์๋ฒ๋ฅผ ์ด์ํ ๊ณํ์ธ ์ ํ๋ฆฌ์ผ์ด์
์ ๊ฒฝ์ฐ์๋ ๋ค์ ์ค ์ด๋ค EC2 ๊ตฌ๋งค ์ต์
์ ์ฌ์ฉํด์ผ ํ ๊น์?
โ๏ธ 1) Reserved Instances (์์ฝ ์ธ์คํด์ค)
โ 2) On-Demand Instances (์จ๋๋งจ๋ ์ธ์คํด์ค)
โ 3) Dedicated Hosts (์ ์ฉ ํธ์คํธ)
โ 4) Dedicated Instances (์ ์ฉ ์ธ์คํด์ค)
Reserved Instances are suitable for long-term workloads. EC2 instances can be reserved for a period of 1 year or 3 years.
6. You are planning to run an application that will be hosted on a series of EC2 instances. The application requires software installation and needs some OS packages to be updated during the initial execution. What is the optimal way to launch the EC2 instances for this?
์ง๋ฌธ 6. ์ผ๋ จ์ EC2 ์ธ์คํด์ค์ ํธ์คํ
๋ ์ ํ๋ฆฌ์ผ์ด์
์ ์คํํ๋ ค ํฉ๋๋ค. ์ด ์ ํ๋ฆฌ์ผ์ด์
์๋ ์ํํธ์จ์ด ์ค์น๊ฐ ํ์ํ๋ฉฐ, ์ต์ด ์คํ ์ค์ ์ผ๋ถ OS ํจํค์ง๋ฅผ ์
๋ฐ์ดํธํด์ผ ํฉ๋๋ค. EC2 ์ธ์คํด์ค๋ฅผ ์คํํ๋ ค๋ ๊ฒฝ์ฐ, ์ด๋ฅผ ์ํ ์ต์ ์ ๋ฐฉ์์ ๋ฌด์์ผ๊น์?
โ 1) Connect to each EC2 instance via SSH, manually install the required software, and update the OS packages.
โ 2) Write a bash script to install the required software and update the OS, then contact AWS Support to provide the script, which will be executed when launching the EC2 instance.
โ๏ธ 3) Write a bash script to install the required software and update the OS, then use this script in the EC2 user data during instance launch.
1) SSH๋ฅผ ํตํด ๊ฐ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐํ ํ, ํ์ ์ํํธ์จ์ด๋ฅผ ์ค์นํ๊ณ OS ํจํค์ง๋ฅผ ์๋์ผ๋ก ์
๋ฐ์ดํธ ํ๊ธฐ
2) ํ์ ์ํํธ์จ์ด์ ์ค์น ๋ฐ OS ์
๋ฐ์ดํธ๋ฅผ ์ํํ๋ bash script๋ฅผ ์์ฑํ ํ, AWS ์ง์ ์ผํฐ์ ์ฐ๋ฝํด ์คํฌ๋ฆฝํธ ์ ๊ณตํ๊ธฐ - ์ด๋ค์ EC2 ์ธ์คํด์ค๋ฅผ ์คํํ ๋ ์ธ์คํด์ค์์ ์คํ๋๋ค.
3) ํ์ ์ํํธ์จ์ด์ ์ค์น ๋ฐ OS ์
๋ฐ์ดํธ๋ฅผ ์ํํ๋ bash script๋ฅผ ์์ฑํ ํ, ์ด ์คํฌ๋ฆฝํธ๋ฅผ EC2 ์ธ์คํด์ค ์คํ ์์ EC2 ์ฌ์ฉ์ ๋ฐ์ดํฐ์์ ์ฌ์ฉํ๊ธฐ
EC2 user data is used to bootstrap EC2 instances with a bash script. This script can include commands to perform tasks such as software/package installation, downloading files from the internet, and other actions you want to automate during instance launch.
7. For a critical application using an in-memory database, which of the following EC2 instance types should you choose?
์ง๋ฌธ7. ์ธ๋ฉ๋ชจ๋ฆฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ์ฌ์ฉํ๋ ์ค์ ์ ํ๋ฆฌ์ผ์ด์
์ ์ํด์๋ ๋ค์ ์ค ์ด๋ค EC2 ์ธ์คํด์ค ์ ํ์ ์ ํํด์ผ ํ ๊น์?
โ 1) Compute-optimized (์ปดํจํ
์ต์ ํ)
โ 2) Storage-optimized (์คํ ๋ฆฌ์ง ์ต์ ํ)
โ๏ธ 3) Memory-optimized (๋ฉ๋ชจ๋ฆฌ ์ต์ ํ)
โ 4) General-purpose (๋ฒ์ฉ)
Memory-optimized EC2 instances are suitable for workloads that require large datasets in memory.
8. You have an e-commerce application with an OLTP database hosted on-remises. The application is popular, and the database receives thousands of requests per second. You are planning to migrate the database to an EC2 instance. Which EC2 instance type should you choose to handle this high-frequency OLTP database?
์ง๋ฌธ 8. ์จํ๋ ๋ฏธ์ค์ ํธ์คํ
๋ OLTP ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ๊ฐ์ถ ์ ์ ์๊ฑฐ๋ ์ ํ๋ฆฌ์ผ์ด์
์ด ์์ต๋๋ค. ์ด ์ ํ๋ฆฌ์ผ์ด์
์ ์ธ๊ธฐ๊ฐ ์ข์, ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ์ด๋น ์์ฒ ๊ฐ์ ์์ฒญ์ ์ง๋๊ฒ ๋ฉ๋๋ค. ์ฌ๋ฌ๋ถ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ EC2 ์ธ์คํด์ค๋ก ์ด์ ํ๋ ค ํฉ๋๋ค. ์ด๋ ๊ฒ ๋์ ๋น๋๋ฅผ ๋ณด์ด๋ OLTP ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ์ฒ๋ฆฌํ๊ธฐ ์ํด์๋ ์ด๋ค EC2 ์ธ์คํด์ค ์ ํ์ ์ ํํด์ผ ํ ๊น์?
โ 1) Compute-optimized (์ปดํจํ
์ต์ ํ)
โ๏ธ 2) Storage-optimized (์คํ ๋ฆฌ์ง ์ต์ ํ)
โ 3) Memory-optimized (๋ฉ๋ชจ๋ฆฌ ์ต์ ํ)
โ 4) General-purpose (๋ฒ์ฉ)
Storage-optimized EC2 instances are suitable for workloads that require high levels of sequential read/write access to large datasets on local storage.
9. (True/False) Security groups can only be associated with a single EC2 instance.
โ False
Security groups can be associated with multiple EC2 instances, not just one.
10. You are planning to migrate an on-premises application to AWS. Your company has strict regulations that require the application to run on dedicated servers. Additionally, to reduce costs, you need to use software licenses that are bound to dedicated servers. Which of the following EC2 purchasing options is most suitable in this case?
์จํ๋ ๋ฏธ์ค ์ ํ๋ฆฌ์ผ์ด์
์ AWS๋ก ์ด์ ํ๋ ค ํฉ๋๋ค. ์ฌ๋ฌ๋ถ์ ๊ธฐ์
์๋ ์ ํ๋ฆฌ์ผ์ด์
์ ์ ์ฉ ์๋ฒ์์ ์คํํด์ผ ํ๋ค๋ ์๊ฒฉํ ๊ท์ ์ด ์์ต๋๋ค. ๋ํ ๋น์ฉ ์ ๊ฐ์ ์ํด ์ ์ฉ ์๋ฒ ๋ฐ์ด๋ ์ํํธ์จ์ด ๋ผ์ด์ ์ค๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ์ด ๊ฒฝ์ฐ, ๋ค์ ์ค ์ด๋ค EC2 ๊ตฌ๋งค ์ต์
์ด ์ ํฉํ ๊น์?
โ 1) Convertible Reserved Instances (์ ํ ๊ฐ๋ฅ ์์ฝ ์ธ์คํด์ค)
โ๏ธ 2) Dedicated Hosts (์ ์ฉ ํธ์คํธ)
โ 3) Spot Instances (์คํ ์ธ์คํด์ค)
Dedicated Hosts are suitable for enterprises that require a high level of compliance or have software with complex licensing models. This is the most expensive EC2 purchasing option.
11. You are planning to deploy database technology on an EC2 instance. The vendor's licensing is based on physical cores and visibility of base network sockets. Which EC2 purchasing option should you use to ensure visibility?
์ง๋ฌธ 11. ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ธฐ์ ์ EC2 ์ธ์คํด์ค์ ๋ฐฐํฌํ๋ ค ํฉ๋๋ค. ๊ณต๊ธ ์
์ฒด ๋ผ์ด์ ์ค๋ ๋ฌผ๋ฆฌ์ ์ฝ์ด ๋ฐ ๊ธฐ๋ฐ ๋คํฌ์ํฌ ์์ผ ๊ฐ์์ฑ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๋น์ฉ์ ์ฑ
์ ํฉ๋๋ค. ์ด ๊ฒฝ์ฐ, ์ด๋ค EC2 ๊ตฌ๋งค ์ต์
์ ์ฌ์ฉํด์ผ ๊ฐ์์ฑ์ ํ๋ณดํ ์ ์์๊น์?
โ 1) Spot Instances (์คํ ์ธ์คํด์ค)
โ 2) On-Deman (์จ๋๋งจ๋)
โ๏ธ 3) Dedicated Hosts (์ ์ฉ ํธ์คํธ)
โ 4) Reserved Instances (์์ฝ ์ธ์คํด์ค)
Dedicated Hosts provide visibility into physical cores and network sockets, which is necessary for the vendor's licensing model based on physical resources.
12. A Spot Fleet is a collection of Spot Instances and, optionally, On-Demand Instances.
์ง๋ฌธ 12. ์คํ ํ๋ฆฟ์ ์คํ ์ธ์คํด์ค์ ์งํฉ์ด๋ฉฐ, ์ ํ์ ์ผ๋ก ___________ ์ด๋ค.
โ๏ธ 1) Reserved Instances (์์ฝ ์ธ์คํด์ค)
โ 2) On-Demand Instances (์จ๋๋งจ๋ ์ธ์คํด์ค)
โ 3) Dedicated Hosts (์ ์ฉ ํธ์คํธ)
โ 4) Dedicated Instances (์ ์ฉ ์ธ์คํด์ค)
A Spot Fleet is a collection of Spot Instances and, optionally, On-Demand Instances.