Featured Post

Python map() and lambda() Use Cases and Examples

Image
 In Python, map() and lambda functions are often used together for functional programming. Here are some examples to illustrate how they work. Python map and lambda top use cases 1. Using map() with lambda The map() function applies a given function to all items in an iterable (like a list) and returns a map object (which can be converted to a list). Example: Doubling Numbers numbers = [ 1 , 2 , 3 , 4 , 5 ] doubled = list ( map ( lambda x: x * 2 , numbers)) print (doubled) # Output: [2, 4, 6, 8, 10] 2. Using map() to Convert Data Types Example: Converting Strings to Integers string_numbers = [ "1" , "2" , "3" , "4" , "5" ] integers = list ( map ( lambda x: int (x), string_numbers)) print (integers) # Output: [1, 2, 3, 4, 5] 3. Using map() with Multiple Iterables You can also use map() with more than one iterable. The lambda function can take multiple arguments. Example: Adding Two Lists Element-wise list1 = [ 1 , 2 , 3 ]

5 AWS Tricky Interview Questions

Below are the top tricky questions asked in AWS interviews


5 Tricky Questions on Amazon Web services for IT developers.


1) How do you store objects in Reduced Redundancy Storage in S3?

  • Specify REDUCED_REDUNDANCY tags in the HTML code.
  • Specify REDUCED_MIRRORING on a PUT request using an optional header.
  • Specify LOW_REPLICATION on a PUT request using an optional header.
  • Specify LOW_REPLICATION on a GET request for objects.
  • Specify REDUCED_REDUNDANCY on a PUT request using an optional header.


2) Which is required to log on to the AWS management console on a mobile device?


  • SSO alias
  • SiteMinder
  • Gateway address
  • IAM token
  • AWS account


3) How do you receive notifications based on the value of a metric being above or below a stated threshold in Amazon CloudWatch?


  • Set Amazon SmartAlert.
  • Log on through the Amazon console.
  • Create an Amazon CloudWatch threshold dashboard.
  • Create an Amazon CloudWatch alarm.
  • Create a DescribeAlarmHistory API.


4) Scenario-You are testing Oracle, SQL Server, and Mongo DB databases in your AWS account to determine which database to use for your application. Question-Based on the scenario above, how do you decrease the processing time of testing these databases?

  • Transfer the installed files and folders for each database from your local computer to S3.
  • Set up Database as a Service (DaaS) from these vendors.
  • Download DB software directly to Amazon from the vendor site.
  • Configure the File Transfer Protocol (FTP) for the database software from your local computer to S3.
  • Select vendor-provided database AMIs.


5) How do you verify your Amazon CloudSearch application is ready for release to end-users?

  • Look for error logs in the Amazon CloudSearch diagnostics sections.
  • Set up a search engine task using the IP address of the CloudSearch server.
  • Look at the keywords from the indexes in Amazon CloudSearch to ensure readiness.
  • Test sample queries using the search tester in the Amazon CloudSearch console.
  • Create APIs to test the output from Amazon CloudSearch.
  • Answers Click here

Comments

  1. Thanks for this amazing post Amazon Interview questions keep changing, but the objective of testing candidate's problem solving ability is constant.

    ReplyDelete

Post a Comment

Thanks for your message. We will get back you.

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

SQL Query: 3 Methods for Calculating Cumulative SUM

Python placeholder '_' Perfect Way to Use it