1. You launched an EC2 instance to host a NodeJS application. After installing all the necessary software and configuring the application, you recorded the public IPv4 address of the EC2 instance for access. Then, you stopped the instance and restarted it to complete the application setup. However, after restarting, you were unable to access the EC2 instance and noticed that its public IPv4 address had changed. In this case, how can you assign a static public IPv4 address to the EC2 instance?
NodeJS ์ ํ๋ฆฌ์ผ์ด์
์ ํธ์คํธํ๊ฒ ๋ EC2 ์ธ์คํด์ค๋ฅผ ์คํํ์ต๋๋ค. ๋ชจ๋ ํ์ ์ํํธ์จ์ด๋ฅผ ์ค์นํ๊ณ ์ ํ๋ฆฌ์ผ์ด์
์ ๊ตฌ์ฑํ ํ, ์ก์ธ์ค๋ฅผ ์ํด EC2 ์ธ์คํด์ค ๊ณต์ฉ IPv4๋ฅผ ๊ธฐ๋กํด ๋์์ต๋๋ค. ๊ทธ ๋ค์, ์คํ์ ์ค๋จํ๊ณ ์ ํ๋ฆฌ์ผ์ด์
๊ตฌ์ฑ์ ์๋ฃํ๊ธฐ ์ํด EC2 ์ธ์คํด์ค๋ฅผ ๋ค์ ์์ํ์ต๋๋ค. ๊ทธ๋ฌ๋ ์ฌ์์ ํ, EC2 ์ธ์คํด์ค์ ์ก์ธ์คํ ์ ์์์ผ๋ฉฐ EC2 ์ธ์คํด์ค ๊ณต์ฉ IPv4๊ฐ ๋ณ๊ฒฝ๋ ๊ฒ์ ์๊ฒ ๋์์ต๋๋ค. ์ด ๊ฒฝ์ฐ, EC2 ์ธ์คํด์ค์ ๊ณ ์ ์ ์ธ ๊ณต์ฉ IPv4๋ฅผ ํ ๋นํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ ๊น์?
โ๏ธ โ EC2 ์ธ์คํด์ค์ ํ๋ ฅ์ IP ํ ๋น
โ โก EC2 ์ธ์คํด์ค OS์์ ๋คํธ์ํฌ ๊ตฌ์ฑ์ DHCP ์์ ์ ์ ์ผ๋ก ๋ณ๊ฒฝํ ๋ค ๊ณต์ฉ IPv4์ ํ ๋น
โ โข AWS ์ง์ ์ผํฐ์ ์ฐ๋ฝํด EC2 ์ธ์คํด์ค๋ฅผ ์ํ ์ ์ ๊ณต์ฉ IPv4 ์์ฒญ
โ โฃ ๋ถ๊ฐ๋ฅ, EC2 ์ธ์คํด์ค์๋ ๊ณ ์ ์ฌ์ค IPv4๋ง ํ ๋น ๊ฐ๋ฅ
An Elastic IP is a public IPv4 address that you can own for as long as you need and can be associated with only one EC2 instance at a time. ํ๋ ฅ์ IP๋ ์ฌ๋ฌ๋ถ์ด ์ํ๋ ๊ธฐ๊ฐ๋งํผ ์์ ํ ์ ์๋ ๊ณต์ฉ IPv4๋ก, ํ ๋ฒ์ ํ๋์ EC2 ์ธ์คํด์ค์๋ง ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
2. You have an application performing large-scale data analysis on an EC2 instance fleet. You want the EC2 instances to communicate with each other while maintaining the highest level of networking performance. In this case, which EC2 placement group should you choose?
EC2 ์ธ์คํด์ค ํ๋ฆฟ์์ ๋๊ท๋ชจ์ ๋ฐ์ดํฐ ๋ถ์์ ์ํํ๋ ์ ํ๋ฆฌ์ผ์ด์ ์ด ์์ต๋๋ค. ์ฌ๋ฌ๋ถ์ EC2 ์ธ์คํด์ค๋ค์ด ์๋ก ์ํตํ๋ฉด์๋ ๊ฐ์ฅ ๋์ ์์ค์ ๋คํธ์ํน ์ฑ๋ฅ์ ์ ์งํ์ผ๋ฉด ํฉ๋๋ค. ์ด๋ฐ ๊ฒฝ์ฐ, ๋ค์ ์ค ์ด๋ค EC2 ๋ฐฐ์น ๊ทธ๋ฃน์ ์ ํํด์ผ ํ ๊น์?
โ โ ๋ถ์ฐ๋ฐฐ์น ๊ทธ๋ฃน
โ๏ธ โก ํด๋ฌ์คํฐ ๋ฐฐ์น ๊ทธ๋ฃน
โ โข ๋ถํ ๋ฐฐ์น ๊ทธ๋ฃน
3.You have a critical application hosted on an EC2 instance fleet. In the event of an AZ failure, you want to achieve maximum availability. In this case, which EC2 placement group should you choose?
EC2 ์ธ์คํด์ค ํ๋ฆฟ์ ํธ์คํ ๋ ์ค์ ์ ํ๋ฆฌ์ผ์ด์ ์ด ์์ต๋๋ค. ์ด ์ ํ๋ฆฌ์ผ์ด์ ์์ AZ ์คํจ๊ฐ ์ผ์ด๋ ๊ฒฝ์ฐ, ์ต๋ ๊ฐ์ฉ์ฑ์ ๋ฌ์ฑํ์ผ๋ฉด ํฉ๋๋ค. ์ด๋ฐ ๊ฒฝ์ฐ, ๋ค์ ์ค ์ด๋ค EC2 ๋ฐฐ์น ๊ทธ๋ฃน์ ์ ํํด์ผ ํ ๊น์?
โ๏ธ โ ๋ถ์ฐ๋ฐฐ์น ๊ทธ๋ฃน
โ โก ํด๋ฌ์คํฐ ๋ฐฐ์น ๊ทธ๋ฃน
โ โข ๋ถํ ๋ฐฐ์น ๊ทธ๋ฃน
๋ถ์ฐ ๋ฐฐ์น ๊ทธ๋ฃน์ EC2 ์ธ์คํด์ค๋ฅผ ์ฌ๋ฌ AZ์ ๊ฑธ์ณ ์๋ก ๋ค๋ฅธ ๋ฌผ๋ฆฌ์ ํ๋์จ์ด์ ๋ฐฐ์นํฉ๋๋ค.
4. (True / False) An Elastic Network Interface (ENI) can be attached to an EC2 instance in a different Availability Zone.
ํ๋ ฅ์ ๋คํธ์ํฌ ์ธํฐํ์ด์ค(ENI)๋ ๋ค๋ฅธ AZ์ ์๋ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐ๋ ์ ์์ต๋๋ค.
False
Elastic Network Interfaces (ENIs) are restricted to a specific Availability Zone and cannot be attached to an EC2 instance in a different AZ. ํ๋ ฅ์ ๋คํธ์ํฌ ์ธํฐํ์ด์ค(ENIs)๋ ํน์ AZ๋ก ๊ตญํ๋ฉ๋๋ค. ๋ค๋ฅธ AZ์ ์๋ EC2 ์ธ์คํด์ค์ ENI๋ฅผ ์ฐ๊ฒฐํ ์๋ ์์ต๋๋ค.
5. Select the incorrect statement regarding EC2 hibernation.
EC2 ์ ์ ๋ชจ๋์ ๊ด๋ จ๋ ๋ด์ฉ ์ค, ์ณ์ง ์์ ์ค๋ช
์ ๊ณ ๋ฅด์ธ์.
โ โ EC2 ์ธ์คํด์ค ๋ฃจํธ ๋ณผ๋ฅจ์ ๋ฐ๋์ ์ธ์คํด์ค ์คํ ์ด ๋ณผ๋ฅจ์ด์ด์ ํ
โญ โก ์จ๋๋งจ๋ ๋ฐ ์์ฝ ์ธ์คํด์ค๋ฅผ ์ง์ํจ
โญ โข EC3 ์ธ์คํด์ค RAM์ 150GB ๋ฏธ๋ง์ด์ด์ผ ํจ
โญ โฃ EC2 ์ธ์คํด์ค ๋ฃจํธ ๋ณผ๋ฅจ ์ ํ์ EBS ๋ณผ๋ฅจ์ด์ด์ผ ํจ