Skip to content

HuronDev/Challenge-JelouAI

Repository files navigation

Challenge---JelouAI

JelouAI Technical Test

  1. You're building a high-throughput API for a cryptocurrency trading platform. For this platform, time is extremely important because microseconds count when processing high-volume trade orders. For communicating with the API, you want to choose the verb that is fastest for read-only operations. What verb should you choose for retrieving trade orders with the API server? SELECT ONLY ONE

  2. GET

You work for a Customer Relationship Management (CRM) company. The company's clients gain CRM access through a RESTful API. The CRM allows clients to add contact information for customers, prospects, and related persons (e.g., virtual assistants or marketing directors). You want to choose an

appropriate API request path so clients can easily retrieve information for a single contact while also being flexible for future software changes. Which of the following API paths should you use? SELECT ONLY ONE

  1. /contacts/{contact_id}

You work for a large social media network, and you've been tasked witherror handling for the API. You're trying to decide on an appropriate errorcode for authentication failures based on non-existent users and incorrect passwords. You want to balance security against brute force attacks with providing descriptive and true error codes. Which HTTP error code(s) should you use to keep the system secure and still report that an error occurred? SELECT ONLY ONE

  1. 401 if the user doesn't exist or if the password is wrong.

You're writing documentation for requesting information about a given user in your system. Your system uses UUIDS (universally unique identifiers) as user identifiers. In your documentation, you want to show an example. True or false: You should put a fake UUID into the example code (instead of just the text "UUID") as a placeholder. SELECT ONLY ONE

  1. TRUE

You're building code to handle errors issued from a remote API server. The response may or may not have an error. How much work should your method, handleErrors(response), handle? SELECT ONLY ONE

  1. Check for the presence of an error. If it exists, throw an exception with the error.

You have two classes: a database driver and an email driver. Both classes need to set errors so that your front-end interface displays any errors that transpire on your platform. Which way should you implement this error handling? SELECT ONLY ONE

  1. Make a trait to handle errors so it'll collect errors in any class that uses it.

You need to name the private method in your class that handles loopingthrough eCommerce products to collect and parse data. That data gets stored in an array and set as a class property. Which of the following should you use to name your method? SELECT ONLY ONE

  1. parseDataForProducts()

There are multiple places in your codebase that need to access the database. To access the database, you need to supply credentials. You want to balance security with useability. What strategy should you use to store and access these credentials? SELECT ONLY ONE

  1. Put them in a .env file, load data from it into a configuration system, then request the credentials from a database service provider.

About

JelouAI Technical Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors