Q1. What is a proper definition of an IAM Role? (틀림)
-
IAM Users in multiple User Groups
-
An IAM entity that defines a set of permissions for making requests to AWS services, and will be used by an AWS service
-
An IAM entity that defines a password policy for IAM Users
-
Permissions assigned to IAM Users to perform actions
해설 : IAM 역할은 AWS 서비스에 요청하기 위한 사용 권한 집합을 정의하는 IAM 객체다.
개념 정리:
- IAM user: IAM 사용자를 사용하여 AWS와 상호 작용하는 사용자 또는 워크로드
- IAM role: 계정에 생성할 수 있는, 특정 권한을 지닌 IAM 자격 증명
- User Group: IAM 사용자의 집합입니다
- 한 사용자 그룹에 여러 사용자가 포함될 수 있으며 한 사용자가 다중 사용자 그룹에 속할 수 있습니다.
- 사용자 그룹은 중첩될 수 없습니다. 즉, 사용자 그룹은 사용자만 포함할 수 있으며 다른 그룹은 포함할 수 없습니다.
- AWS 계정의 모든 사용자를 자동으로 포함하는 기본 사용자 그룹은 없습니다. 이러한 사용자 그룹이 필요한 경우 하나 만들어 새로운 사용자를 각각 해당 그룹에 할당해야 합니다.
- 그룹 수, 사용자가 멤버가 될 수 있는 그룹 수와 같이 AWS 계정에 있는 IAM 리소스의 수와 크기는 제한되어 있습니다.
- Policies : user와 Group에 부여하는 JSON문서로 서비스별 권한을 정의한다.
Q2. Which of the following is an IAM Security Tool?
해설 : IAM Security Tool에는 2가지가 있다.
- 모든 유저들의 상태를 알려주는 IAM Credentials Report
- IAM이 마지막으로 엑세스한 정보를 볼 수있는 IAM Access Advisor
Q3. Which answer is INCORRECT regarding IAM Users?
-
IAM Users can belong to multiple User Groups
-
IAM Users don't have to belong to a User Group
-
IAM Policies can be attached directly to IAM Users
-
IAM Users access AWS services using root account credentials
해설 : IAM user는 루트 계정의 자격증명을 사용하지 않고 자기 자신의 자격증명을 활용한다 (username & password or Access Keys).
Q4. Which of the following is an IAM best practice?
-
Create several IAM Users for one physical person
-
Share your AWS account credentials with your colleague, so he can perform a task for you
-
Don't use the root user account
-
Do not enable MFA for easier access
해설: 루트계정은 되도록 사용하지 않고 실제 사용자에 한해서 IAM 유저를 만들어 사용하는 것이 바람직하다.
Q5. What are IAM Policies?
-
A set of policies defines how AWS accounts interact with each other
-
JSON documents that define a set of permissions for making requests to AWS services, and can be used by IAM Users, User Groups, and IAM Roles
-
A set of policies that define a password for IAM Users
-
A set of policies defined by AWS that show how customers interact with AWS
해설: IAM Policies는 user, user group과 role에 부여하는 JSON문서로 서비스별 권한을 정의한다.
Q6. Which principle should you apply regarding IAM Permissions?
-
-
-
Grant more permissions if your employee asks you to
-
Restrict root account permissions
해설: IAM 권한은 가능한 최소의 권한(least privilege)을 부여하여야 한다.
Q7. What should you do to increase your root account security?
-
Remove permissions from the root account
-
Only access AWS services through AWS Command Line Interface (CLI)
-
Enable Multi-Factor Authentication (MFA)
-
Don't create IAM Users, only access your AWS account using the root account
해설 : Multi Factor Authentication을 사용하면 계정의 보안 수준을 높일 수 있다.
Q8. IAM User Groups can contain IAM Users and other User Groups.
해설: IAM 유저 그룹은 유저만을 포함하고 유저 그룹은 포함할 수 없다.
Q9. An IAM policy consists of one or more statements. A statement in an IAM Policy consists of the following, EXCEPT:(틀림)
해설: IAM 정책(Policy)은 Sid, Effect, Principal, Action, Resource, and Condition을 가지고 있다.
Q10. According to the AWS Shared Responsibility Model, which of the following is AWS responsibility?
-
Rotate Access Key for IAM Users
-
Enable MFA for the root account and all IAM Users
-
IAM Users, User Groups, and IAM Policies
-
해설: AWS는 AWS 인프라만 책임지고 나머지 IAM 사용 방법에 대해서는 책임 지지 않는다.