Free ASSOCIATE ANDROID DEVELOPER Exam Braindumps
Associate Android Developer Questions 56–60 (page: 13)

Updated On: 10-Feb-2026

Room can export your database's schema information into a JSON file at compile time. What annotation processor property you should set in your app/build.gradle file to export the schema?

  1. room.expandProjection
  2. room.incremental
  3. room.schemaLocation

Answer(s): C

Explanation:

android {
...
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation":
"$projectDir/schemas".toString()]
}
}
}
}



If you added to your build.gradle file a room.schemaLocation:
android {
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
}

Then, you build your app or module.

As a result you got a json file, with such path to it: app/schemas/your_app_package/db_package/DbClass/DB_VERSION.json What are the correct statements about this file? (Choose all that apply.)

  1. It’s a file with Room-exported schema
  2. Main JSONObject in this file usually should contain a number "formatVersion" and a JSONObject "database"
  3. The JSONObject "database" in this file usually should contain such objects, like "entities", "views", "setupQueries", ets.

Answer(s): A,B,C

Explanation:

Exported schema file example:
{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "d90c93040756d2b94a178d5555555555",
"entities": [
{
"tableName": "tea_table",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `type` TEXT, `origin` TEXT, `steep_times` INTEGER, `Description` TEXT, `ingredients` TEXT, `cafeinLevel` TEXT, `favorite` INTEGER)",
"fields": [
{
"fieldPath": "mId",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "mName",
"columnName": "name",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mType",
"columnName": "type",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mOrigin",
"columnName": "origin",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mSteepTimeMs",
"columnName": "steep_times",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "mDescription",
"columnName": "Description",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mIngredients",
"columnName": "ingredients",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mCaffeineLevel",
"columnName": "cafeinLevel",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "mFavorite",
"columnName": "favorite",
"affinity": "INTEGER",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": true
},
"indices": [],
"foreignKeys": []
}
],
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd90c93040756d2b94a178d5555555555')"
]
}
}



Select 3 major components of the Room. (Choose three.)

  1. @Entity
  2. @Query
  3. @RawQuery
  4. @DAO
  5. @WorkerThread
  6. @Database

Answer(s): A,D,F



DRAG DROP
With recommended app architecture. Fill the following diagram, which shows how all the modules usually should interact with one another after designing the app (drag modules to correct places).
Select and Place:
Exhibit A:


Exhibit B:

  1. Please refer to Exhibit B for answer.

Answer(s): A



A class that you create for managing multiple data sources. In addition to a Room database, this class could manage remote data sources such as a web server. It is about:

  1. Activity/Fragment
  2. ViewModel
  3. Repository
  4. Room database

Answer(s): C



Viewing page 13 of 27
Viewing questions 61 - 65 out of 128 questions


Post your Comments and Discuss Google ASSOCIATE ANDROID DEVELOPER exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!