Spotted a bug? Have a great idea? Help us make google.dev great! Submit feedback google.dev Return to playlist How do you indicate that a class represents an entity to store in a Room database? Annotate the class with @Database. Make the class extend DatabaseEntity. Make the class extend RoomEntity and also annotate it with @Room. Annotate the class with @Entity. The DAO is an interface that Room uses to map Kotlin functions to database queries. How do you indicate that an interface represents a data access object (DAO) for a Room database? Annotate the interface with @RoomConnection. Annotate the interface with @Dao. Make the interface extend EntityDao and then implement the DaoConnection() method. Make the interface extend RoomDAO. Which of the following statements is true about the Room database? If you return LiveData from a query, Room will keep the LiveData updated for you if the LiveData changes. To identify a class as a Room database, make it a subclass of RoomDatabase and annotate it with @Room. Each Room database must have zero or one DAOs. You can define tables for a Room database using special database classes. Which of the following annotations can you NOT use in your @Dao interface? @Insert @Query @Get @Update Which of the following is NOT a way of verifying whether your database is working? Write instrumented tests. Run your code in debug mode and verify execution steps and data. Run the verifyDatabase() function provided by the Room library. Continue writing and running the app until it displays the data. Submit answers error_outline An error occurred when grading the quiz. Try again later.