IAM & AWS CLI Flashcards

1
Q

What is a proper definition of an IAM Role?

A

An IAM entity that defines a set of permissions for making requests to AWS services, and will be used by an AWS service

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

Which of the following is an IAM Security Tool?
* IAM Credentials Report
* IAM Root Account Manager
* IAM Service Report
* IAM Security Advisor

A

IAM Credentials Report

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

IAM users should access AWS services using root account credentials? True or False?

A

false

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

What are IAM Policies?

A

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

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

Which principle should you apply regarding IAM Permissions?

A

Grant least privilege.
Least privilege is a principle of granting only the permissions required to complete a task.

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

What should you do to increase your root account security?

A

Enable Multi-Factor Authentication (MFA)

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

IAM User Groups can contain IAM Users and other User Groups. True or False?

A

Flase

IAM User Groups can contain only IAM Users.

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

IAM Policy consists of?

A

A statement in an IAM Policy consists of Sid, Effect, Principal, Action, Resource, and Condition. Version is part of the IAM Policy itself, not the statement.

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

According to the AWS Shared Responsibility Model, which of the following is AWS responsibility?

A

AWS Infrastructure

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

What is the command to list the AWS CLI commands for AWS Identity and Access Management (IAM) and how can you access the features of IAM using the AWS CLI?

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

What is IAM?

A

AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources. With IAM, you can centrally manage permissions that control which AWS resources users can access. You use IAM to control who is authenticated (signed in) and authorized (has permissions) to use resources.

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

What are access credentials in AWS?

A

Credentials identify who is calling the API. Access credentials are used to encrypt the request to the AWS servers to confirm your identity and retrieve associated permissions policies. These permissions determine the actions you can perform

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

What are profiles and how are they used to organize the config and credentials files into named collections of settings?

A

The config and credentials files are organized into sections named profiles. A profile is a named collection of settings, and continues until another profile definition line is encountered. Multiple profiles can be stored in the config and credentials files.

Each profile can specify different credentials and can also specify different AWS Regions and output formats.

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

What are environment variables for the AWS CLI?

A

Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named profile as the default.

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

What is the AWS Command Line Interface?

A

The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell. With minimal configuration, the AWS CLI enables you to start running commands that implement functionality equivalent to that provided by the browser-based AWS Management Console from the command prompt in your terminal program

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

What are IAM user groups?

A

An IAM user group is a collection of IAM users. User groups let you specify permissions for multiple users, which can make it easier to manage the permissions for those users. For example, you could have a user group called Admins and give that user group typical administrator permissions.

17
Q

What is an IAM policy?

A

An IAM policy is a way to allow or deny users to perform certain actions in an AWS account. When a user or a role is created, by default they only have permission to login. They cannot view, modify, or create any new resources. IAM policies are used to grant additional permissions.

18
Q

What is an 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.

19
Q

What are the differences between AWS Roles, Policies, Profiles, Users and User Groups?

A

AWS roles define a set of permissions for making AWS service requests, policies define permissions for accessing AWS resources, profiles are collections of settings and credentials, users are identities that interact with AWS services, and user groups are collections of users with the same permissions.