Identity and Acess Management (IAM) Flashcards

1
Q

Quais são as opções que podem ser definidas em uma politica de senhas na AWS ?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

O que quer dizer IAM ?

A

Identity Access Management Service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como IAM funciona ?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

O que são Principals ?

A

A person or application that uses the AWS account root user, an IAM user, or an IAM role to sign in and make requests to AWS. Principals include federated users and assumed roles.

  • Users
  • Roles
  • Federated Users
  • Applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Qual a função de uma REQUEST ?

A

When a principal tries to use the AWS Management Console, the AWS API, or the AWS CLI, that principal sends a request to AWS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

O que é uma AUTHENTICATION ?

A

A principal must be authenticated (signed in to AWS) using their credentials to send a request to AWS. Some services, such as Amazon S3 and AWS STS, allow a few requests from anonymous users. However, they are the exception to the rule.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Quais são os tipos de autenticação da AWS ?

A
  • Console

To authenticate from the console as a root user, you must sign in with your email address and password.

As an IAM user, provide your account ID or alias, and then your user name and password.

  • API / AWS CLI / SDK

To authenticate from the API or AWS CLI, you must provide your access key and secret key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Quais são as informações que deve conter uma REQUEST ?

A
  • Actions or operations

The actions or operations that the principal wants to perform. This can be an action in the AWS Management Console, or an operation in the AWS CLI or AWS API.

  • Resources

The AWS resource object upon which the actions or operations are performed.

  • Principal

The person or application that used an entity (user or role) to send the request. Information about the principal includes the policies that are associated with the entity that the principal used to sign in.

  • Environment data

Information about the IP address, user agent, SSL enabled status, or the time of day.

  • Resource data

Data related to the resource that is being requested. This can include information such as a DynamoDB table name or a tag on an Amazon EC2 instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Para que servem as POLICIES?

A

A policy is an object in AWS that, when associated with an identity or resource, defines their permissions.

When you create a permissions policy to restrict access to a resource, you can choose an identity-based policy or a resource-based policy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Quais são os tipos de POLICIES que existem?

A
  • Identity-based
  • Resource-based
  • Permissions boudaries
  • Organizations SCPs
  • Access Control List (ACL)
  • Session policies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

O que é uma politica IDENTITY-BASED ?

A

Identity-based policies grant permissions to an identity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

O que é uma politica RESOURCE_BASED ?

A

Resource-based policies grant permissions to the principal that is specified in the policy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Quais permissões tem um USER após ser criado ?

A

Nenhuma.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Qual a quantidade máxima de USERS que um GROUP pode ter ?

Qual a quantidade máxima de GROUPS que um USER pode participar ?

A

5.000 USERS

10 GROUPS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Quais as permissões que um ROOT USER tem ?

A

Full Permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Como faço para autenticar um usuário via AWS CLI / API ?

A

É necessário utilizar access-key e secret-key.

17
Q

Quais as ventagens de se utilizar MFA ?

A

Multi-Factor Authentication (MFA) adds extra security because it requires users to provide unique authentication from an AWS supported MFA mechanism in addition to their regular sign-in credentials when they access AWS websites or services.

18
Q

Quais são os tipos de MFAs que poem ser utilizados na AWS ?

A
  • Virtual MFA devices.

A software app that runs on a phone or other device and emulates a physical device. The device generates a six-digit numeric code based upon a time-synchronized one-time password algorithm.

  • FIDO Security Key

A device that you plug into a USB port on your computer.

  • Hardware MFA device

A hardware device that generates a six-digit numeric code based upon a time-synchronized one-time password algorithm.

19
Q

O que é AWS STS ?

A

AWS Security Token Service (AWS STS) as a web service that enables you to request temporary, limited-privilege credentials for AWS Identity and Access Management (IAM) users or for users you authenticate (federated users).

20
Q

Credenciais temporárias podem ser usadas em que casos ?

A

Temporary credentials are used with identity federation, delegation, cross-account access and IAM roles.

21
Q

O que contém em uma credencial temporária ?

A
  • AccessKeyId
  • Expiration
  • SecretAccessKey
  • SessionToken
22
Q

O que é uma IAM Role ?

A

An IAM role is an IAM identity that you can create in your account that has specific permissions. An IAM role is similar to an IAM user, in that it is an AWS identity with permission policies that determine what the identity can and cannot do in AWS. However, instead of being uniquely associated with one person, a role is intended to be assumable by anyone who needs it. Also, a role does not have standard long-term credentials such as a password or access keys associated with it. Instead, when you assume a role, it provides you with temporary security credentials for your role session.

23
Q

Qual a diferença entre Trust Policy e Permission Policy em uma Role ?

A
  • Trust Policy

​A JSON policy document in which you define the principals that you trust to assume the role.

  • Permission Policy

​A permissions document in JSON format in which you define what actions and resources the role can use

24
Q

Qual é a Password Policy Default na AWS ?

A
  • Minimum password length is 8 characters
  • Include a minimum of three of the following mix of character types: uppercase, lowercase, numbers, and ! @ # $ % ^ & * ( ) _ + - = [] { } | ‘
  • Must not be identical to your AWS account name or email address
25
Q

Qual a diferencça entre EXPLICT and IMPLICIT DENIES ?

A

A request results in an explicit deny if an applicable policy includes a Deny statement. If policies that apply to a request include an Allow statement and a Deny statement, the Deny statement trumps the Allow statement. The request is explicitly denied.

An implicit denial occurs when there is no applicable Deny statement but also no applicable Allow statement. Because an IAM principal is denied access by default, they must be explicitly allowed to perform an action. Otherwise, they are implicitly denied access.

26
Q

O que é uma INLINE POLICY ?

A

An inline policy is a policy that’s embedded in an IAM identity (a user, group, or role). That is, the policy is an inherent part of the identity. You can create a policy and embed it in an identity, either when you create the identity or later.

27
Q

O que é uma AWS Managed Policy ?

A

An AWS managed policy is a standalone policy that is created and administered by AWS.

AWS managed policies are designed to provide permissions for many common use cases.

You cannot change the permissions defined in AWS managed policies.

AWS occasionally updates the permissions defined in an AWS managed policy

28
Q

O que é Customer Managed Policy ?

A

You can create standalone policies that you administer in your own AWS account.

You can then attach the policies to multiple principal entities in your AWS account.

When you attach a policy to a principal entity, you give the entity the permissions that are defined in the policy.

29
Q

O que é uma PERMISSION BOUDARY ?

A

A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity’s permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries.

30
Q

Qual a principal função do PERMISSION BOUDARY ?

A

Permission boudary previne privilege escalation.

31
Q

Como se determina se uma request é ALLOW or DENY ?

A
32
Q

Como funciona a avaliação de Politicas ?

A
33
Q

Qual a sintaxe de uma Policy (JSON) ?

A
  • Effect: The effect can be Allow or Deny. By default, IAM users don’t have permission to use resources and API actions, so all requests are denied. An explicit allow overrides the default. An explicit deny overrides any allows.
  • Action: The action is the specific API action for which you are granting or denying permission.
  • Resource: The resource that’s affected by the action. Some Amazon EC2 API actions allow you to include specific resources in your policy that can be created or modified by the action. You specify a resource using an Amazon Resource Name (ARN) or using the wildcard (*) to indicate that the statement applies to all resources.
  • Condition: Conditions are optional. They can be used to control when your policy is in effect.
34
Q

Qual o nome da ferramenta utilizada para testar Policies ?

A

IAM Policy Simulator