Giter Site home page Giter Site logo

python-assessment-lead's Introduction

Python Assessment (Lead Engineer)

We greatly value the time that you put into these assignments. The technical part of the round-two interview will build upon your submission.

This evaluation is intended to allow you to demonstrate practical Python coding skills, including how you structure your solution. We value clean code that is easy to understand and extend. We also value appropriate test coverage where applicable.

When you have completed the challenge, please send an email to your recruiter with the link to your fork of the repository containing the completed assessment. They will ensure that it makes it back to us.

Overview

We would like a general object model for running tasks (units of work) in any of the three runtime environments:

  1. Local engineer’s laptop,
  2. In an AWS Batch job container in AWS, and
  3. In an AWS Lambda function.

Each task expects a set of configuration parameters, such as database connection details, that allows it to run regardless of to which runtime environment it is deployed.

For locally running tasks, its parameters are fetched from a JSON file. When running in AWS Batch, we get the parameters from a TinyDB file. Finally, when running as a Lambda the parameters are passed in via the JSON Lambda event. If needed, bootstrapping of the task configuration is done via environment variables.

Instructions for each task can be found in this README. Please use best practices when solving these tasks.

This assessment should take around an hour or so to complete, so please timebox your efforts. You should complete at least task #1 and two of the other tasks to demonstrate the generality of the object model. That said, if the object model is well thought out it should be straight forward by design to accomodate additional runtime use cases.

Setup

Create a virtual environment with the required Python libraries by running the following commands:

python3 -m venv AMA

. AMA/bin/activate

pip install -r requirements.txt

Testing

Run the unit tests as follows:

pytest -vv

Task 1

Implement the base object model classes in task.py. Update the assignment.py module as needed to tie it in with the object model.

Task 2

Implement any specific code for running the Widget task locally. This includes completing the associated unit test case in test_assignment.py.

Task 3

Implement any specific code for running the Widget task as if from AWS Batch. This includes completing the associated unit test case in test_assignment.py.

Task 4

Implement any specific code for running the Widget task as if from AWS Lambda. This includes completing the associated unit test case in test_assignment.py.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.