Limited Time Offer:Up to 20% off Hello Interview Premium
Up to 20% off Hello Interview Premium 🎉
Hello Interview
Your Dashboard
System Design
Code
Low Level Design
Behavioral
AI Coding
New
ML System Design
Salary Negotiation
Interview Guides
Blog
System Design
Low Level Design
AI Coding
Behavioral
New
Interview Questions
Success Stories
System Design
Low-Level Design
New
Ask The Community
Discord
Mock Interviews
1:1 Mentorship
Refer a Friend
Pricing
Sign in / Sign up
Search
⌘K
Pricing

Tutor

Design Classes for Alexa Devices with Varying Hardware Capabilities

Design a set of classes to model various Alexa devices that differ in hardware capabilities (speaker, screen/display, battery). The system must report the current power/battery status to the user through the appropriate output channels based on each device's hardware configuration — spoken response if the device has a speaker, displayed response if it has a screen, or both. Devices without a battery report wall power status; devices with a battery report charge level and charging state. For example, a tablet with a speaker, display, and battery currently charging at 75% should return both a 'say' and 'display' field with the message 'Current battery level is 75% and charging', while an Echo Dot with only a speaker and no battery should return only a 'say' field with 'Currently plugged into wall power'.

Asked at:

Amazon

Amazon


Questions
Meta SWE Interview QuestionsAmazon SWE Interview QuestionsGoogle SWE Interview QuestionsOpenAI SWE Interview QuestionsEngineering Manager (EM) Interview Questions
Learn
Learn System DesignLearn DSALearn BehavioralLearn ML System DesignLearn Low Level DesignGuided Practice
Links
FAQPricingGift PremiumHello Interview Premium
Legal
Terms and ConditionsPrivacy PolicySecurity
Contact
About UsProduct Support

7511 Greenwood Ave North Unit #4238 Seattle WA 98103


© 2026 Optick Labs Inc. All rights reserved.