Scenario: Your team is working on a project that involves deploying multiple AWS Lambda functions across different environments. How would you manage environment-specific configuration settings?

  • Embed environment-specific settings directly in the Lambda function code
  • Store configuration settings in separate plaintext files for each environment
  • Use AWS Systems Manager Parameter Store
  • Use environment variables to pass configuration settings
Leveraging AWS Systems Manager Parameter Store enables you to centrally manage environment-specific configuration settings and retrieve them securely in your Lambda functions, regardless of the environment they are deployed in.

Scenario: During the execution of an AWS Lambda function, you need to dynamically adjust certain parameters based on incoming data. How would you approach this using environment variables?

  • Store adjustable parameters in a plaintext configuration file
  • Use AWS CloudWatch Events to trigger parameter updates
  • Use AWS Step Functions to dynamically adjust parameters
  • Use environment variables to store adjustable parameters
Leveraging environment variables to store adjustable parameters allows you to dynamically adjust certain parameters during the execution of a Lambda function based on incoming data, providing flexibility and scalability.

What is the least privilege principle in IAM?

  • Giving users all available permissions
  • Giving users only the permissions they need
  • Giving users permissions based on their job titles
  • Giving users temporary permissions
The least privilege principle in IAM involves granting users or roles only the permissions they need to perform their tasks, reducing the risk of excessive access.

What is the purpose of IAM policies attached to IAM users or groups?

  • To define permissions for accessing AWS resources
  • To define user authentication methods
  • To manage billing information
  • To manage network configurations
IAM policies attached to IAM users or groups are used to define the permissions that users or groups have for accessing AWS resources, specifying allowed actions and resources.

How does IAM manage access to AWS services?

  • Through direct access to services
  • Through direct network configuration
  • Through direct resource ownership
  • Through policies attached to IAM entities
IAM manages access to AWS services through policies that are attached to IAM users, groups, or roles, defining what actions they can perform on which AWS resources.

What is the difference between IAM policies and resource-based policies?

  • IAM policies are attached to identities, while resource-based policies are attached to resources
  • IAM policies are managed by AWS, while resource-based policies are managed by users
  • IAM policies are only applicable to S3 buckets, while resource-based policies apply to other AWS services
  • IAM policies control network traffic, while resource-based policies control resource configurations
IAM policies control access to AWS services and resources, specifying what actions are allowed or denied for IAM users, groups, or roles. Resource-based policies, on the other hand, are attached directly to resources like S3 buckets or Lambda functions, controlling access from other accounts or services.

How can you delegate permissions in AWS IAM?

  • By configuring networking rules
  • By creating IAM roles and assigning them to trusted entities
  • By granting direct access to AWS services
  • By sharing IAM user credentials
Delegating permissions in AWS IAM involves creating IAM roles with the necessary permissions and then assigning those roles to trusted entities such as AWS services, applications, or other AWS accounts.

IAM allows you to grant temporary __________ to users, groups, or roles.

  • Credentials
  • Permissions
  • Policies
  • Resources
IAM allows you to grant temporary credentials to users, groups, or roles, enabling them to access AWS resources for a limited time.

Scenario: You need to provide AWS Lambda functions access to specific S3 buckets. How would you configure IAM roles to achieve this securely?

  • Allow public access to S3 buckets
  • Create an IAM role with a policy granting access to the required S3 buckets, and attach this role to the AWS Lambda functions.
  • Share AWS access keys with Lambda functions
  • Use a single IAM user for all Lambda functions
Creating an IAM role with a policy granting access to the required S3 buckets, and attaching this role to the AWS Lambda functions is the correct and secure approach.

What is the primary purpose of IAM roles in AWS?

  • Authenticating users
  • Delegating permissions
  • Managing billing
  • Storing data
IAM roles in AWS are used to delegate permissions to entities such as AWS services, EC2 instances, or applications, without the need for long-term credentials.