← All AAD Flashcard Decks

Mixed Deck — All AAD Topics Flashcards

100 cards from real AAD practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 20 Mixed Deck — All AAD Topics flashcards as text
  1. What is the primary benefit of maintaining a public-facing changelog for an Android SDK distributed to third-party developers?

    Answer: It gives consuming developers advance notice of breaking changes so they can plan updates

    A changelog communicates breaking changes and new features so downstream developers can plan and test integrations before updating.

  2. What distinguishes an advanced associate android developer practitioner's approach to risk management & mitigation from that of a novice?

    Answer: Establishing cross-functional teams with clearly defined roles

    Establishing cross-functional teams with clearly defined roles is the correct approach because effective risk management & mitigation in the associate android developer field requires adherence to professional standards, evidence-based practices, and systematic methodology. This approach ensures consistent, high-quality outcomes while maintaining professional accountability.

  3. What does `by lazy` do when used with a property in Kotlin?

    Answer: Initializes the property only on first access and caches the result for subsequent accesses

    by lazy creates a property that is initialized only on its first access using the provided lambda, and the result is cached and reused for all subsequent accesses.

  4. A product manager asks why a specific feature is delayed. Which response demonstrates the most effective developer-stakeholder communication?

    Answer: Provide a concise technical summary with revised timeline and blockers identified

    Stakeholders need clear, concise status updates with revised timelines and identified blockers—not raw technical data.

  5. A business stakeholder wants daily progress reports on an Android feature in development. Which format is MOST appropriate?

    Answer: A short bullet-point status update covering: completed, in progress, and blockers

    Brief bullet-point updates with completed work, progress, and blockers give stakeholders actionable information without overwhelming detail.

  6. Which method is used to insert data into an SQLite database in Android?

    Answer: insert()

    The insert() method of the SQLiteDatabase class is used to add new records to a database table.

  7. Which component is responsible for handling background tasks in an Android app?

    Answer: Service

    A Service is used to perform long-running operations in the background without direct user interaction.

  8. Which Activity method should you override to save UI state before the Activity is destroyed or paused?

    Answer: onSaveInstanceState()

    onSaveInstanceState() is called before an Activity is destroyed so you can save UI state in a Bundle, which is restored in onCreate() or onRestoreInstanceState().

  9. What is the effect of calling `Mockito.verify(mock, times(2)).someMethod()` in a unit test?

    Answer: Asserts that someMethod was called exactly twice on the mock

    `verify` with `times(2)` fails the test if `someMethod` was not invoked exactly two times on the mock object.

  10. Which Android feature should be used to protect sensitive IPC communication between app components?

    Answer: Defining android:permission on exported components

    Specifying a custom android:permission on exported Services, Activities, or BroadcastReceivers restricts which callers can interact with those components.

  11. When storing sensitive authentication tokens in an Android app, which approach is most secure and ethical?

    Answer: Use the Android Keystore System to protect cryptographic keys

    The Android Keystore System stores keys in secure hardware, preventing extraction even if the device is compromised.

  12. What does `buildConfigField` in Gradle allow developers to do?

    Answer: Inject a constant into the generated `BuildConfig` class accessible in app code at runtime

    `buildConfigField` injects a typed constant (String, Boolean, int, etc.) into the generated `BuildConfig` class, allowing build-variant-specific values to be accessed directly in Kotlin/Java code.

  13. What risk is introduced when an app logs sensitive user data using Log.d() in production builds?

    Answer: Sensitive data can be read from device logs by other apps with READ_LOGS permission or via ADB

    Android logs can be accessed via ADB or by apps with READ_LOGS permission, making production debug logs a data leakage risk.

  14. What is the recommended frequency for reviewing and updating data management & storage protocols?

    Answer: Monitoring outcomes through regular data collection and trend analysis

    Monitoring outcomes through regular data collection and trend analysis is the correct approach because effective data management & storage in the associate android developer field requires adherence to professional standards, evidence-based practices, and systematic methodology. This approach ensures consistent, high-quality outcomes while maintaining professional accountability.

  15. In Jetpack Navigation, what is a NavGraph?

    Answer: An XML resource that defines destinations and actions for in-app navigation

    A NavGraph is an XML resource file that centralizes all navigation destinations (Fragments, Activities) and the actions connecting them in one place.

  16. Which approach mitigates the risk of sensitive data persisting in Android's task switcher (recent apps screen)?

    Answer: Using FLAG_SECURE or excluding the Activity from the Recents screen

    FLAG_SECURE prevents the system from capturing a snapshot of the window for the Recents screen, protecting sensitive content from being visible.

  17. What is the purpose of `versionCode` in an Android app?

    Answer: It is an internal integer used by the Play Store to determine if an update is newer

    `versionCode` is an integer that must increase with each release; the Play Store uses it to determine update ordering, while `versionName` is the human-readable version shown to users.

  18. Which class is used to store key-value pairs in Android?

    Answer: SharedPreferences

    SharedPreferences is a lightweight storage option used to store small amounts of key-value data persistently.

  19. In Android's StrictMode, which policy detects disk reads on the main thread?

    Answer: ThreadPolicy

    `StrictMode.ThreadPolicy` monitors main-thread violations including disk reads and writes.

  20. In the Activity lifecycle, what state is the Activity in immediately after onResume() is called?

    Answer: Running/Resumed

    After onResume() is called, the Activity is in the Running (Resumed) state — it is in the foreground, visible, and actively interacting with the user.