IAM, AWS CLI, EC2 Fundamentals Flashcards
IAM, AWS CLI, EC2 Fundamentals
What is the terminal command to list all iam users?
aws iam list-users
What policy should be enabled to see the list of iam users in aws console?
IAMReadOnlyAccess
How does the ec2 instance grant permission to allow for viewing list of iam users in the terminal?
The IAM role linked to the ec2 instance has a policy of IAMReadOnlyAccess
What happens if the IAMReadOnlyAccess policy is not enabled on the role attached to the ec2 instance?
The command to view all users will fail
What is the proper definition of an IAM Role?
An IAM entity that defines a set of permissions for making requests to AWS services, and will be used by an AWS service
Which of the following is an IAM Security tool?
a) IAM Credentials Report
b) IAM Root Account Manager
c) IAM Services Report
d) IAM Security Advisor
IAM Credentials Report
IAM Credentials report lists all your AWS Account’s IAM Users and the status of their various credentials.
Which answer is INCORRECT regarding IAM users?
a) IAM Users can belong to multiple User Groups
b) IAM users don’t have to belong to a user group
c) IAM policies can be attached directly to IAM users
d) IAM users access AWS services using root account credentials,
d)
IAM Users access AWS services using their own credentials (username & password or Access Keys).
Which of the following is an IAM best practice?
a) create several, IAM users for one physical person
b) don’t use the root user account
c) share your AWS account credentials with your colleagues, so she, or he can perform a task for you
d) don’t enable MFA for easier access
b)
Use the root account only to create your first IAM User and a few account/service management tasks. For everyday tasks, use an IAM User.
What are IAM Policies?
a) set up policies that defines how AWS accounts interact with each other
b) JSON documents that define a set up permissions for making requests to AWS services and can be used by IAM users user groups and IAM roles
c) set of policies that defines the password for IAM users
d) A set of policies is defined by AWS that show how customers interact with AWS
b)
Which principle should you apply regarding IAM Permissions?
Grant least privilege
Don’t give more permissions than the user needs.
What should you do to increase your root account security?
Enable MFA
When you enable MFA, this adds another layer of security. Even if your password is stolen, lost, or hacked your account is not compromised.
IAM User Groups can contain IAM Users and other User Groups. True or False?
False
IAM User Groups can contain only IAM Users.
An IAM policy consists of one or more statements. A statement in an IAM Policy does not consists which of the following,
a) Effect
b) Principal
c) Version
d) Action
e) Resource
c) Version
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.
Which EC2 Purchasing Option can provide you the biggest discount, but it is not suitable for critical jobs or databases?
Spot Instances are good for short workloads and this is the cheapest EC2 Purchasing Option. But, they are less reliable because you can lose your EC2 instance.
What should you use to control traffic in and out of EC2 instances?
Security Groups
Security Groups operate at the EC2 instance level and can control traffic.