Official Bank 0/123

Google Cloud Associate Cloud Engineer (ASSOCIATE) - Google Cloud Actual Exam Questions

Last updated on April 25, 2026

97% Exam Compliance
123 Total Questions
1
Question

What is the placeholder tag <xliff:g> used for?

Options
A

To mark text that should not be translated.

B

To raise a translation priority to a higher level

C

To raise a quantity of translations for the string

D

To pick up and move sting translation from a different resource file

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

In a class PreferenceFragmentCompat. As a convenience, this fragment implements a click listener for any preference in the current hierarchy. So, in what overridden method we can handle that a preference in the tree rooted at this PreferenceScreen has been clicked?

Options
A

onCreateLayoutManager

B

onCreatePreferences

C

onCreateRecyclerView

D

onPreferenceTreeClick

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

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:

Options
A

Activity/Fragment

B

ViewModel

C

Repository

D

Room database

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

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.)

Select 3
Options
A

It’s a file with Room-exported schema

B

Main JSONObject in this file usually should contain a number "formatVersion" and a JSONObject "database"

C

The JSONObject "database" in this file usually should contain such objects, like "entities", "views", "setupQueries", ets.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

For example, we have a BufferedReader reader, associated with the json file through InputStreamReader. To get a file data we can do this:

Options
A

var line: String? try { while (reader.readLine().also { line = it } != null) { builder.append(line) } val json = JSONObject(builder.toString()) return json } catch (exception: IOException) { exception.printStackTrace() } catch (exception: JSONException) { exception.printStackTrace() }

B

var line: JSONObject ? try { while (reader.readJSONObject ().also { line = it } != null) { builder.append(line) } val json = JSONObject(builder.toString()) return json } catch (exception: IOException) { exception.printStackTrace() } catch (exception: JSONException) { exception.printStackTrace() }

C

var line: String? try { while (reader.readLine().also { line = it } != null) { builder.append(line) } val json = JSONObject(builder.toString()) return json } catch (exception: RuntimeException) { exception.printStackTrace() } catch (exception: ArrayIndexOutOfBoundsException) { exception.printStackTrace() }

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.