Created
May 6, 2016 16:07
-
-
Save skippy123/4c2d70aa58dedf554eec916301465e87 to your computer and use it in GitHub Desktop.
Interview questions for python Web services Backend Dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://collabedit.com/kj92a | |
Given a yaml file or a json file like below, expose a dict object that can | |
be used to hold file's contents in memory and access it's differnt elements. | |
#Sample content: | |
#logging: | |
# file: service.log | |
# level: INFO | |
# | |
#auth: | |
# username: USER | |
# password: PASS | |
# | |
#core: | |
# urls: | |
# url1: google.com | |
# url2: twitter.com | |
# url2: airbnb.com | |
# device: | |
# Ram: | |
# Tier_1: 2GB | |
# Tier_2: 4GB | |
# Tier_3: 8GB | |
# | |
# Disk: | |
# Tier_1: 20GB | |
# Tier_2: 40GB | |
# Tier_3: 80GB | |
# | |
Example: | |
Expose a dict object say "config" | |
which can access elements like below: | |
config[auth][username] (or) config.auth.username | |
----------------- | |
1) What does yield imply in python ? Does it mean something else in an async context ? | |
2) xrange and range, whats up with them? | |
3) You have done SQl, so what happens when u have a SELECT * FROM TABLE WHERE id="rackspace" when id is indexed and when it aint | |
4) Seemed to have worked on nginx, have u heard of CORS or how will u do reverse proxy or even better what is reverse proxy | |
5) Assuming ur server is listening on https://ticketing.racksapce.com and u are doing a REST call to fetch a resource , how do u tell if there is something wrong on server side or client side. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment