1. The most likely reason your team member is unable to attach the EBS volume to an EC2 instance `in us-east-1b` is that EBS volumes are tied to a specific Availability Zone (AZ) upon creation. Since the volume was originally attached to an EC2 instance in us-east-1a, it is restricted to that AZ and cannot be directly attached to an instance `in us-east-1b`.
us-east-1a์์์ EC2 ์ธ์คํด์ค๋ฅผ ์ข ๋ฃํ์ฌ, ์ด ์ธ์คํด์ค์ ์ฐ๊ฒฐ๋ EBS ๋ณผ๋ฅจ์ ์ฌ์ฉํ ์ ์๊ฒ ๋์์ต๋๋ค. ํ์์ด us-east-1b์ EC2 ์ธ์คํด์ค์ ์ด ๋ณผ๋ฅจ์ ์ฐ๊ฒฐํ๋ ค ํ์ผ๋, ์ฐ๊ฒฐ์ด ๋ถ๊ฐ๋ฅํ ์ํ์ ๋๋ค. ์ด ๊ฒฝ์ฐ, ๊ฐ๋ฅ์ฑ์ด ์๋ ์์ธ์ ๋ฌด์์ผ๊น์?
โ โ IAM ๊ถํ์ด ์์
โ โก EBS ๋ณผ๋ฅจ์ AWS ๋ฆฌ์ ์ผ๋ก ์ ํ๋์ด ์์
โ๏ธ โข EBS ๋ณผ๋ฅจ์ ๊ฐ์ฉ ์์ญ์ผ๋ก ์ ํ๋์ด ์์
EBS ๋ณผ๋ฅจ์ ํน์ AZ์ ๋ง์ถฐ ์์ฑ๋๋ค. EBS ์ค๋ ์ท์ ํ์ฉํ๋ฉด ๋ค๋ฅธ AZ ๊ฐ์ ์ด์ ์ด ๊ฐ๋ฅํ๋ค.
2. An EC2 instance is running with two EBS volumes: a root volume and an additional EBS volume for data storage. The instance is scheduled for termination after one month. What are the default behaviors of each EBS volume?
๋ฃจํธ ๋ณผ๋ฅจ ์ ํ๊ณผ ๋ฐ์ดํฐ ์ ์ฅ์ ์ํ ๊ธฐํ EBS ๋ณผ๋ฅจ ์ ํ, ๋ ๊ฐ์ EBS ๋ณผ๋ฅจ์ผ๋ก EC2 ์ธ์คํด์ค๋ฅผ ์คํํ์ต๋๋ค. EC2 ์ธ์คํด์ค๋ ํ ๋ฌ ํ์ ์ข ๋ฃํ ์์ ์ ๋๋ค. ๊ฐ EBS ๋ณผ๋ฅจ์ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ํ๋ ํ์ ํน์ฑ์ ๋ฌด์์ผ๊น์?
โ โ ๋ฃจํธ ๋ณผ๋ฅจ ์ ํ๊ณผ EBS ๋ณผ๋ฅจ ์ ํ์ด ๋ชจ๋ ์ญ์ ๋จ
โ๏ธ โก ๋ฃจํธ ๋ณผ๋ฅจ ์ ํ์ ์ญ์ ๋์ง๋ง, EBS ๋ณผ๋ฅจ ์ ํ์ ์ญ์ ๋์ง ์์
โ โข ๋ฃจํธ ๋ณผ๋ฅจ ์ ํ์ ์ญ์ ๋์ง ์๊ณ , EBS ๋ณผ๋ฅจ ์ ํ์ ์ญ์ ๋จ
โ โฃ ๋ฃจํธ ๋ณผ๋ฅจ ์ ํ๊ณผ EBS ๋ณผ๋ฅจ ์ ํ ๋ชจ๋ ์ญ์ ๋์ง ์์
๋ฃจํธ ๋ณผ๋ฅจ์ ๊ฒฝ์ฐ, ‘์ข ๋ฃ ์ ์ญ์ ' ์์ฑ์ด ๊ธฐ๋ณธ์ผ๋ก ํ์ฑํ๋์ด ์๊ธฐ ๋๋ฌธ์, ๊ธฐ๋ณธ์ ์ผ๋ก ์ญ์ ๋๋ค. ๊ธฐํ EBS ๋ณผ๋ฅจ ์ ํ์ ๊ฒฝ์ฐ, ‘์ข ๋ฃ ์ ์ญ์ ' ์์ฑ์ด ๊ธฐ๋ณธ์ ์ผ๋ก ๋นํ์ฑํ๋์ด ์์ผ๋ฏ๋ก ์ญ์ ๋์ง ์๋๋ค.
3. (True / False) If you use an AMI from the North Virginia region (us-east-1), you can launch EC2 instances in any AWS region.
๋ ธ์ค๋ฒ์ง๋์ ๋ฆฌ์ `us-east-1`์์ AMI๋ฅผ ์ฌ์ฉํ๋ฉด ์ด๋ค AWS ๋ฆฌ์ ์ ์๋ EC2 ์ธ์คํด์ค๋ผ๋ ์คํํ ์ ์์ต๋๋ค.
False
AMI๋ ํน์ AWS ๋ฆฌ์ ์ ๊ตญํ๋๋ฉฐ, ๊ฐ AWS ๋ฆฌ์ ์๋ ๊ณ ์ ํ AMI๊ฐ ์๋ค. ๋ค๋ฅธ AWS ๋ฆฌ์ ์์ AMI๋ฅผ ์ฌ์ฉํด EC2 ์ธ์คํด์ค๋ฅผ ์คํํ๋ ๊ฒ์ ๋ถ๊ฐ๋ฅํ์ง๋ง, ๋์ AWS ๋ฆฌ์ ์ผ๋ก AMI๋ฅผ ๋ณต์ฌํด EC2 ์ธ์คํด์ค๋ฅผ ์์ฑํ๋ ๊ฒ์ ๊ฐ๋ฅํ๋ค.
4. Which of the following EBS volume types can be used as a boot volume when creating an EC2 instance?
๋ค์ ์ค, EC2 ์ธ์คํด์ค๋ฅผ ์์ฑํ ๋ ๋ถํ ๋ณผ๋ฅจ์ผ๋ก ์ฌ์ฉํ ์ ์๋ EBS ๋ณผ๋ฅจ ์ ํ์ ๋ฌด์์ธ๊ฐ์?
โ โ gp2, gp3, st1, sc1
โ๏ธ โก gp2, gp3, io1, io2
โ โข io1, io2, st1, sc1
EC2 ์ธ์คํด์ค๋ฅผ ์์ฑํ ๋, ๋ถํ ๋ณผ๋ฅจ์ผ๋ก๋ ๋ค์์ EBS ๋ณผ๋ฅจ ์ ํ๋ง์ ์ฌ์ฉํ ์ ์๋ค: gp2, gp3, io1, io2, Magnetic(ํ์ค)
5. What is EBS Multi-Attach?
EBS ๋ค์ค ์ฐ๊ฒฐ์ด๋ ๋ฌด์์ผ๊น์?
โ โ ๋์ผํ EBS ๋ณผ๋ฅจ์ ๋ค์์ AZ์ ์๋ ๋ค์์ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐ
โ โก ๋ค์์ EBS ๋ณผ๋ฅจ์ ๋์ผํ AZ์ ์๋ ๋์ผ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐ
โ๏ธ โข ๋์ผํ EBS ๋ณผ๋ฅจ์ ๋์ผํ AZ์ ์๋ ๋ค์์ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐ
โ โฃ ๋ค์์ EBS ๋ณผ๋ฅจ์ ๋ค์์ AZ์ ์๋ ๋์ผ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐ
EBS ๋ค์ค ์ฐ๊ฒฐ์ ์ฌ์ฉํ๋ฉด, ๋์ผํ EBS ๋ณผ๋ฅจ์ ๋์ผ AZ ์์ ์๋ ๋ค์์ EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐํ ์ ์๋ค. ๊ฐ EC2 ์ธ์คํด์ค๋ ์์ ํ ์ฝ๊ธฐ/์ฐ๊ธฐ ๊ถํ์ ๊ฐ๊ฒ ๋๋ค.
6. You want to encrypt an unencrypted EBS volume that is attached to an EC2 instance. How can you do this?
EC2 ์ธ์คํด์ค์ ์ฐ๊ฒฐ๋์ด ์๋, ์ํธํ๋์ง ์์ EBS ๋ณผ๋ฅจ์ ์ํธํํ๋ ค ํฉ๋๋ค. ์ด๋ป๊ฒ ํด์ผ ํ ๊น์?
โ๏ธ โ EBS ๋ณผ๋ฅจ์ EBS ์ค๋ ์ท์ ์์ฑํ๊ณ , ์ค๋ ์ท์ ๋ณต์ฌํ ๋ค ๋ณต์ฌ๋ ์ค๋ ์ท์ ์ํธํํ๋ ์ต์ ์ ์ฒดํฌํ๋ค. ๊ทธ ํ, ์ํธํ๋ ์ค๋ ์ท์ ์ฌ์ฉํด ์๋ก์ด EBS ๋ณผ๋ฅจ์ ์์ฑํ๋ค.
โ โก EBS ๋ณผ๋ฅจ์ ์ ํํ๊ณ , Edit ์์ฑ์ ์ ํํ ํ, KMS ์ต์ ์ ์ฌ์ฉํด ์ํธํ ์ต์ ์ ์ฒดํฌํ๋ค.
โ โข ์ํธํ๋ EBS ๋ณผ๋ฅจ์ ์๋ก ์์ฑํ ํ, ์ํธํ๋์ง ์์ EBS ๋ณผ๋ฅจ์ ๋ฐ์ดํฐ๋ฅผ ์๋ก์ด EBS ๋ณผ๋ฅจ์ผ๋ก ๋ณต์ฌํ๋ค.
โ โฃ AWS ์ง์ ์ผํฐ์ EBS ๋ณผ๋ฅจ ์ํธํ๋ฅผ ์์ฒญํ๋ค.
7. You have an EC2 instance fleet spanning multiple Availability Zones (AZs) that processes large datasets. What solution would you recommend to ensure that all EC2 instances can access the same data as an NFS drive?
๋๋์ ๋ฐ์ดํฐ ์ธํธ๋ฅผ ์ฒ๋ฆฌํ๋, ๋ค์์ AZ์ ๊ฑธ์น EC2 ์ธ์คํด์ค ํ๋ฆฟ์ด ์์ต๋๋ค. ๋์ผํ ๋ฐ์ดํฐ๊ฐ NFS ๋๋ผ์ด๋ธ๋ก์ ๋ชจ๋ EC2 ์ธ์คํด์ค์์ ์ก์ธ์คํ ์ ์๊ฒ ๋ง๋ค๊ธฐ ์ํด์๋ ์ด๋ค ๋ฐฉ๋ฒ์ ์ถ์ฒํ ์ ์์๊น์?
โ โ EBS ์ฌ์ฉ
โ๏ธ โก EFS ์ฌ์ฉ
โ โข ์ธ์คํด์ค ์คํ ์ด ์ฌ์ฉ
EFS๋ ๋คํธ์ํฌ ํ์ผ ์์คํ (NFS)์ผ๋ก ์ฌ๋ฌ AZ ์์ ์๋ EC2 ์ธ์คํด์ค์ ๋์ผํ ํ์ผ ์์คํ ์ ๋ง์ดํธํ ์ ์๊ฒ ํด์ค๋ค.
8. You want to include a high-performance local cache for an application hosted on an EC2 instance. It is acceptable for the cache to be lost when the EC2 instance is terminated. As a solutions architect, what storage mechanism would you recommend?
EC2 ์ธ์คํด์ค์ ํธ์คํ ๋ ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ณ ์ฑ๋ฅ ๋ก์ปฌ ์บ์๋ฅผ ํฌํจ์ํค๋ ค ํฉ๋๋ค. EC2 ์ธ์คํด์ค ์ข ๋ฃ ์, ์บ์๊ฐ ์์ค๋์ด๋ ๋ฌธ์ ๊ฐ ์๋ ์ํฉ์ ๋๋ค. ์ด๋ฐ ๊ฒฝ์ฐ, ์๋ฃจ์ ์ํคํ ํธ๋ก์ ์ด๋ค ์คํ ๋ฆฌ์ง ๋ฉ์ปค๋์ฆ์ ์ถ์ฒํ ์ ์์๊น์?
โ โ EBS ์ฌ์ฉ
โ โก EFS ์ฌ์ฉ
โ๏ธ โข ์ธ์คํด์ค ์คํ ์ด ์ฌ์ฉ
EC2 ์ธ์คํด์ค ์คํ ์ด๋ ์ต์ ์ ๋์คํฌ I/O ์ฑ๋ฅ์ ์ ๊ณตํ๋ค.
9. You are running a high-performance database that requires 310,000 IOPS for its underlying storage.
What solution would you recommend?
๊ธฐ๋ฐ ์คํ ๋ฆฌ์ง์ 310,000์ IOPS๊ฐ ํ์ํ ๊ณ ์ฑ๋ฅ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ์คํํ๊ณ ์์ต๋๋ค. ์ด๋ค ๋ฐฉ๋ฒ์ ์ถ์ฒํ ์ ์์๊น์?
โ โ EBS gp2 ๋๋ผ์ด๋ธ ์ฌ์ฉ
โ โก EBS io1 ๋๋ผ์ด๋ธ ์ฌ์ฉ
โ๏ธ โข ์ธ์คํด์ค ์คํ ์ด ์ฌ์ฉ
โ โฃ EBS io2 Block Express ๋๋ผ์ด๋ธ ์ฌ์ฉ
EC2 ์ธ์คํด์ค์์ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ์คํํ ๋, ์ธ์คํด์ค ์คํ ์ด๋ฅผ ์ฌ์ฉํ๋ฉด ์ฑ๋ฅ์ด ๋ฐ์ด๋์ง๋ง EC2 ์ธ์คํด์ค๊ฐ ์ค์ง๋๋ฉด ๋ฐ์ดํฐ๊ฐ ์์ค๋๋ ๋จ์ ์ด ์๋ค. ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ค๋ฉด ๋ ๊ฐ์ง ๋ฐฉ๋ฒ์ด ์๋ค.
์ฒซ ๋ฒ์งธ ๋ฐฉ๋ฒ์, ์ธ์คํด์ค ์คํ ์ด๊ฐ ์๋ ๋ค๋ฅธ EC2 ์ธ์คํด์ค์ ๋ณต์ ๋ฉ์ปค๋์ฆ์ ์ค์ ํ์ฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋๊ธฐ ๋ณต์ฌ๋ณธ์ ๋ง๋๋ ๊ฒ์ด๋ค. ์ด๋ ๊ฒ ํ๋ฉด ํ ์ธ์คํด์ค๊ฐ ์ค์ง๋๋๋ผ๋ ๋ค๋ฅธ ์ธ์คํด์ค์์ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ๊ณ์ ์ฌ์ฉํ ์ ์๋ค.
๋ ๋ฒ์งธ ๋ฐฉ๋ฒ์ ๋ฐ์ดํฐ์ ๋ํ ๋ฐฑ์ ๋ฉ์ปค๋์ฆ์ ์ค์ ํ๋ ๊ฒ์ด๋ค. ์๋ฅผ ๋ค์ด, ์ฃผ๊ธฐ์ ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ฐฑ์ ํ์ฌ EC2 ์ธ์คํด์ค๊ฐ ์ค์ง๋๊ฑฐ๋ ์ข ๋ฃ๋์์ ๋ ๋ฐ์ดํฐ๋ฅผ ๋ณต์ํ ์ ์๋๋ก ํ๋ ๋ฐฉ๋ฒ์ด๋ค. ์ฌ๊ธฐ์ ์ค์ํ ๊ฑด IOPS๊ฐ ์ค์ํ ์๊ตฌ ์ฌํญ์ด๋ผ๋ฉด ์ธ์คํด์ค ์คํ ์ด๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ผ๋จ์ ๋ฐ๋์งํ ์ ํ์ด๋ค. ๊ทธ๋ฆฌ๊ณ ์ข ๋ ์์ ํ๊ฒ ์ฌ์ฉํ๋ ค๋ฉด ๋ณต์ ๋ ๋ฐฑ์ ๋ฑ์ ์ถ๊ฐ์ ์ผ๋ก ๊ณ ๋ คํด์ ์ํคํ ์ฒ๋ฅผ ์ค๊ณํ๋ ๊ฒ์ด ์ค์ํ๋ค. ์ด๋ ๊ฒ ์ค๊ณํ๋ฉด ์ธ์คํด์ค๊ฐ ์ค์ง๋๋๋ผ๋ ๋ฐ์ดํฐ ์์ค ๊ฑฑ์ ์์ด ์ฑ๋ฅ์ ์ ์งํ ์ ์๋ค.