Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Android Security Essentials AND-802 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 8 Total 45 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Lesson 1: Permissions

Skill tested: Applies Android component permissions to protect an exported service from unauthorized applications.

A company's Android app exposes an exported service that accepts requests to approve expense reports. Only the company's companion app should be able to invoke the service. The companion app is separately installed, and neither application can rely on a shared Linux user ID. The service must remain callable across the application boundary, while other installed applications must be denied access. Which implementation best meets this requirement?

Correct Answer: A. Declare a custom permission with protection level signature, require it on the service, and declare that permission in the companion app.
Explanation:

A signature-level custom permission allows access only to applications signed with the same certificate as the application defining the permission. Requiring it on the exported service enforces that policy at the component boundary, and the companion app must request the permission. Making the service non-exported prevents the separately installed companion app from reaching it. INTERNET is unrelated and does not establish caller identity. A separate process does not by itself grant or restrict inter-application access.

Question 2

New Multiple answers

Topic: Lesson 1: Permissions

Skill tested: Distinguishes Android permission enforcement at the application and component levels.

A health-record app has two security requirements. Any application that holds its custom permission may use a narrowly scoped exported content provider, but only the same app's signed companion may invoke an exported synchronization service. The provider's data is read-only to external callers, and the service must reject callers that do not meet the signer requirement. Select TWO configuration decisions that satisfy these requirements without unnecessarily granting broader access.

Correct Answer: A. Define the service's permission as signature-level and require callers to hold it.; E. Define a custom permission for the provider and require it on the provider, using a protection level appropriate to the intended external callers.
Explanation:

Component-level permission requirements control access to the provider and service individually. The provider can use a custom permission with a protection level matching the intended class of external callers, while the synchronization service's signature-level permission restricts callers to applications signed compatibly with the defining app. Non-exporting both components blocks external access, including the intended provider clients. A normal permission does not provide the signer restriction, and merely requesting a permission does not enforce it on a component.

Question 3

New Single answer

Topic: Lesson 1: Permissions

Skill tested: Selects secure application installation and signing practices for Android release builds.

A developer is preparing an Android application for distribution outside the development team. The application currently runs on test devices with debugging enabled and is signed using a debug key. The release must be installable by customers and later updates must be accepted as updates to the same application. The organization also needs to preserve control of the signing identity across staff changes. Which release approach is most appropriate?

Correct Answer: A. Disable debugging, build a release package, and sign it with a securely managed release key that the organization retains for future updates.
Explanation:

Android packages must be signed, and the signing identity is important for recognizing a later package as an update to an installed application. A release build should not retain development debugging settings and should use an organization-controlled release key protected for long-term use. Debug keys are intended for development and should not become the production identity. Removing signatures is not a valid distribution strategy, and rotating to a different key for each version prevents ordinary updates under the existing signing identity.

Question 4

New Single answer

Topic: Lesson 2: Managing the Policy File

Skill tested: Configures manifest backup policy to prevent sensitive app data from entering cloud backups.

A financial application stores account tokens and locally cached transaction details in its private app data directory. Product management wants Android's automatic backup capability for non-sensitive settings, but the security team prohibits account tokens and transaction records from being included in backup data. The application must continue to use the platform backup mechanism rather than implementing a separate backup service. What should the development team do?

Correct Answer: D. Configure the manifest backup policy and backup rules to exclude the sensitive files while allowing approved settings to be backed up.
Explanation:

Android backup behavior can be controlled through application manifest settings and backup rules, allowing sensitive data to be excluded while approved data remains eligible for backup. Disabling backup entirely would unnecessarily discard the desired settings backup. External storage is not a sound security boundary and does not guarantee exclusion from backup. Encryption alone does not meet a policy that prohibits the sensitive records from being included at all; backed-up ciphertext may still create exposure or compliance concerns.

Question 5

New Multiple answers

Topic: Lesson 2: Managing the Policy File

Skill tested: Identifies manifest controls for shared application identity and cross-application permission access.

Two applications from the same vendor must cooperate on a legacy deployment. One application needs access to data protected by the other, and the deployment design proposes running both under the same Linux UID. The applications are installed as separate packages, and the team wants to minimize privilege while ensuring that only the intended vendor-signed packages can share the identity. Select TWO requirements the team must satisfy for this design.

Correct Answer: D. Use the same shared user ID declaration in both manifests and ensure both packages are signed with the same certificate.; E. Have each application declare the required permission in its manifest where appropriate; a shared UID does not automatically grant every component-level permission.
Explanation:

The legacy shared-UID mechanism requires compatible shared-user declarations and matching signing certificates; it is not achieved by matching package names or storage locations. Sharing a Linux UID can provide shared access to app-private files, but it should not be treated as a substitute for declaring and enforcing permissions on protected components. Debuggable mode has no role in establishing a shared identity and would be an inappropriate production setting. Shared UID is a legacy design choice and should be used cautiously.

Question 6

New Single answer

Topic: Lesson 2: Managing the Policy File

Skill tested: Chooses manifest storage permissions and storage placement based on external-storage access requirements.

A field-service application must save diagnostic bundles that users can transfer to a desktop. The bundles are intended to be user-visible and may be read by other applications with appropriate access. They contain no credentials or personal records. The application also stores authentication tokens, which must remain private and should not be exposed through shared storage. Which design best separates these data according to their access requirements?

Correct Answer: B. Store diagnostic bundles in an appropriate shared or external-storage location and keep authentication tokens in app-private internal storage.
Explanation:

User-transferable, non-sensitive diagnostic bundles are suitable for an intentionally shared storage location, subject to the applicable Android version's storage access model and permissions. Authentication tokens should remain in private app storage rather than a location accessible to other applications or users. Obscure names do not enforce access control. Cache is disposable and unsuitable as the authoritative location for user-retained bundles, while putting tokens in Downloads reverses the required confidentiality boundary.

Question 7

New Multiple answers

Topic: Lesson 3: Users’ Data Privacy and Protection

Skill tested: Applies confidentiality and integrity safeguards to sensitive data stored and transmitted by an Android app.

A mobile banking team is reviewing a feature that stores a short-lived session token and submits transaction instructions to a backend. A security assessment finds that the token is written to a broadly accessible location and that transaction parameters are accepted without server-side validation. The app must protect confidentiality at rest and prevent unauthorized or altered transaction instructions from being committed. Select TWO actions that directly address these risks.

Correct Answer: C. Enforce transaction authorization and validation on the server, treating client-supplied values as untrusted.; D. Move the token into app-private storage and limit its lifetime, while avoiding unnecessary copies in logs or other files.
Explanation:

App-private storage reduces exposure of the token to other applications, and limiting retention and copies reduces the attack surface. The server must independently validate and authorize transaction instructions because a client can be modified, instrumented, or bypassed; client-side checks alone cannot ensure transaction integrity. An unpredictable filename is not access control. Permanent token retention increases the impact of compromise and does not address the insecure storage location.

Question 8

New Single answer

Topic: Lesson 3: Users’ Data Privacy and Protection

Skill tested: Identifies exposure caused by sensitive data remaining in logs, caches, and temporary files.

An incident response review of a travel app finds that a passenger's passport number was removed from the main database after account deletion but remained in diagnostic logs and a cached report. The company requires data deletion to cover all app-controlled copies, while retaining only non-identifying operational metrics. The app does not need the report after the user views it. What should the team do first in its remediation design?

Correct Answer: D. Inventory every data copy and its lifecycle, then stop logging the identifier and explicitly remove cached and temporary copies when no longer needed.
Explanation:

Effective deletion requires understanding where data is created, copied, retained, and removed - not merely deleting the primary database row. The team should eliminate sensitive identifiers from logs and define explicit cleanup for cached and temporary reports. Cache files are disposable but are not guaranteed to disappear on a particular schedule, so relying on system reclamation does not meet the requirement. Encrypting only the database leaves the other copies exposed, and moving them to external storage can worsen access control.

Question 9

New Multiple answers

Topic: Lesson 3: Users’ Data Privacy and Protection

Skill tested: Applies secure Android coding practices to reduce risks from untrusted input and data disclosure.

A public-sector Android app accepts a document identifier through an intent from another application, looks up the corresponding record, and writes diagnostic output when processing fails. A penetration test shows that a malicious caller can supply crafted identifiers and that logs can reveal personal data. The app must continue accepting legitimate external requests, but it must not trust the caller or expose sensitive record contents. Select TWO changes that best address the findings.

Correct Answer: A. Validate and constrain the incoming identifier, and enforce authorization before returning or processing the record.; D. Remove sensitive values from logs and record only minimal, non-sensitive diagnostic information.
Explanation:

An external intent is untrusted input even when the integration is legitimate. The app should validate the identifier's format and range, then apply authorization before accessing the corresponding record. Logs should avoid personal data and contain only what is necessary for diagnosis. Trusting the caller leaves the input-validation and authorization flaws intact. Obfuscating one field while logging the full record does not protect confidentiality. Rejecting all requests is unnecessarily disruptive when safer validation and authorization can preserve the integration.

Question 10

New Single answer

Topic: Lesson 4: Securing Storage

Skill tested: Selects SharedPreferences for small private key-value settings while avoiding sensitive-data misuse.

A logistics app needs to persist a user's display preference and the last successfully selected depot identifier. Both values are small and are read frequently at startup. They must be private to the application, but they are not credentials and do not require relational queries. The app must not depend on a third-party storage library. Which storage approach is the best fit?

Correct Answer: B. Store the values in SharedPreferences using the app's private preferences file.
Explanation:

SharedPreferences is appropriate for small, simple key-value settings that should persist privately with the application. A database would add unnecessary structure for two independent settings, and a public external file would weaken privacy. Cache is not durable storage and may be cleared by the system or application, so it cannot reliably preserve preferences across restarts. This design also avoids treating the preferences mechanism as a place for credentials, which would require stronger protection decisions.

Question 11

New Single answer

Topic: Lesson 4: Securing Storage

Skill tested: Selects SQLite for structured records requiring queries, updates, and durable local persistence.

A warehouse app must retain several thousand locally queued inspection records while a device is offline. Each record has fields for location, timestamp, status, and notes. Users need to filter records by status and date, update individual records, and resume work after the app process stops. The data is app-specific and should not be exposed as a user-browsable file. Which storage mechanism best fits these needs?

Correct Answer: A. Store the records in a private SQLite database with an appropriate schema and queries.
Explanation:

A private SQLite database supports structured records, durable local persistence, updates, and queries by fields such as status and date. In-memory data is lost when the process ends and cannot support offline continuity. A single serialized preference value is poorly suited to thousands of queryable, independently editable records. Public files expose app data unnecessarily and complicate updates, filtering, and access control.

Question 12

New Single answer

Topic: Lesson 4: Securing Storage

Skill tested: Uses cache only for regenerable data and selects durable storage for records that must survive cleanup.

A media application downloads thumbnail images to improve scrolling performance. The thumbnails can always be regenerated from the server, and users have complained that the application consumes excessive storage. A separate feature stores draft comments that users expect to recover after restarting the app, even if the device is under storage pressure. Which storage decision best meets both requirements?

Correct Answer: B. Store thumbnails in cache and drafts in durable app-private storage.
Explanation:

Cache is intended for data that can be regenerated and may be removed to reclaim space, making it a suitable location for thumbnails. Draft comments have a user expectation of persistence and therefore belong in durable private storage rather than cache. Storing thumbnails durably works against the storage-reduction goal, while putting drafts in cache risks losing them under storage pressure. Public external storage is unnecessary and would expose app-managed content.

Question 13

New Multiple answers

Topic: Lesson 4: Securing Storage

Skill tested: Chooses appropriate Android storage mechanisms for private files, temporary data, and user-visible exports.

A research app handles three kinds of local data: a private configuration file containing a server endpoint, a temporary preview that can be recreated, and a report that the user explicitly exports to share with colleagues. The endpoint should not be visible to other applications; the preview should not consume durable storage; and the exported report must be accessible outside the app. Select TWO storage decisions that satisfy these requirements.

Correct Answer: D. Keep the configuration file in app-private internal storage.; E. Put the recreatable preview in the app's cache.
Explanation:

App-private internal storage is appropriate for configuration that must not be exposed to other applications, and cache is appropriate for recreatable temporary data. The exported report needs an intentional sharing or export mechanism, such as writing to a user-accessible location or sharing it through an appropriate platform interface; a private file is not automatically readable by other apps. A dot-prefixed filename does not provide access control, and durable database storage is unnecessary for disposable previews.