Developing Serverless Solutions on AWS Quiz Questions and Answers

Answer :
  • AWS Lambda 

Explanation :

AWS Lambda is a compute service that lets you run code without provisioning or managing servers. AWS Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second. You pay only for the compute time you consume - there is no charge when your code is not running. With AWS Lambda, you can run code for virtually any type of application or backend service - all with zero administration. AWS Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. All you need to do is supply your code in one of the languages that AWS Lambda supports (currently Node.js, Java, C#, Go and Python).
Answer :
  • Configure a SAML Identity Provider in Amazon Cognito to map attributes to the Cognito User Pool attributes.
  • Configure the identity provider to add the Amazon Cognito User Pool as a relying party.

Explanation :

When Cognito receives a SAML assertion it needs to be able to map SAML attributes to user pool attributes:. When configuring Cognito to receive SAML assertions from an identity provider you need ensure that the IDP is configured to have Cognito as a relying party.
Answer :
  • Use ResultPath in a Catch statement to include the error with the original input.

Explanation :

The output of a state can be a copy of its input, the result it produces (for example, output from a Task state’s Lambda function), or a combination of its input and result. Use ResultPath to control which combination of these is passed to the state output.
Answer :
  • Separate account per environment

Explanation :

It allows you to secure each account with IAM credentials more effectively with less complexity in your IAM policies within a given account. This practice also makes it less complex to differentiate which resources are associated with each environment.
Answer :
  • Activity Worker

Explanation :

The activity worker polls Step Functions for work, takes any inputs from Step Functions, performs the work using your code, and returns results. Since activity workers request work, it is easy to use workers that are deployed behind a firewall.
Answer :
  • AWS Secret Manager

Explanation :

Environment variables are scoped to a single function. Values in Parameter Store or Secrets Manager can be shared across multiple applications. Secrets Manager has the added benefit of secrets rotation and cross-account access.
Answer :
  • AWS Secret Manager

Explanation :

Environment variables are scoped to a single function. Values in Parameter Store or Secrets Manager can be shared across multiple applications. Secrets Manager has the added benefit of secrets rotation and cross-account access.
Answer :
  • Serverless Architectures lower the overall TCO

Explanation :

Serverless architectures can lower the overall Total Cost of Ownership (TCO) since many of the networking, security, and DevOps management tasks are included in the cost of the service.
Answer :
  • AWSLambdaVPCAccessExecutionRole

Explanation :

Once you VPC-enable your function, all traffic is subject to the routing rules of your VPC, which means that you can target only private subnets and have no direct outbound routes.