Exercise Thursday

As discussed previously, at the end of every course section we'll take a break from coding to practice interview questions with our partner. These questions will (primarily) revolve around the content we learned in this course section.

It's unlikely a potential employer will ask you any of the questions below verbatim. Don't consider this practice answering these specific questions. Instead, consider it practice discussing new technical concepts using correct terminology in general. It's this ability to accurately verbalize your skill set and hold technical conversations with employers that will benefit you in an interview.

Take turns answering the questions below with your partner.

Technical Interview Questions

  • What's a password hash? How does it differ from a password salt? How do the two work together to authenticate users?
  • How do we securely store user passwords in our database?
  • In Rails applications that send emails to users, why is it preferable to send emails from the model instead of the controller? Do you agree or disagree?
  • What's the difference between bcrypt and Devise? Describe your experience using both. Which do you prefer? Why?
  • How do we ensure user authentication via Devise is accurately tested with Capybara?
  • What's the difference between the terms "authentication" and "authorization"? Similarities? When do we use each?
  • Describe how you'd go about implementing ActiveStorage photo uploading capabilities into a Rails application.
  • What is a plain old Ruby object? Why would we use one in a Rails application?
  • What is a helper method? How are they useful?

Stories and Examples

Offering a tangible story or example that highlights your skills usually goes much further in an interview than simply telling your interviewer you're good at something. (i.e.: Telling a story about a time you tracked down a tricky bug versus simply saying "I'm good at problem-solving!").

Review the STAR method, discussed in this lesson on non-technical interviews. Use the STAR method to practice answering non-technical questions with your partner.

Again, if you come up with a story or example you feel good about, jot it down somewhere! It's tough to come up with stories like this in an interview on the spot. Having a few tucked away to review before an interview will be a huge benefit to you later.

Lesson 26 of 27
Last updated July 14, 2022