Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Android AND-802 Dumps 2026 with Free Practice Questions and Answers

15 original practice questions for the Android Security Essentials exam, each with an answer and explanation.

Exam topics: Lesson 2: Managing The Policy File, Lesson 1: Permissions, Lesson 3: Users’ Data Privacy And Protection and Lesson 4: Securing Storage.

Formats: single answer, multiple answers, order list, drag and drop and dropdown. A new question is added every 15 days.

AND-802 Practice Set Details

Vendor
Android
Exam Code
AND-802
Questions On This Page
15
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
45
Certification
Android Application Development
15 questions

Android AND-802 Exam Questions and Answers by Topic

Lesson 1: Permissions

4 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A field-service company ships two Android applications signed by the same release key. The technician app must read a local database exposed by the companion app, but no other installed application should be able to access it. Both applications are installed through managed distribution, and the team wants access control to remain valid even if another developer guesses the permission name. What is the best configuration for the database provider?

Correct answer: C

A signature-level custom permission is granted only to applications signed with the same certificate as the permission owner, and requiring it on the provider protects the component itself. A normal permission is generally granted without user approval and does not restrict callers to the trusted signer. READ_CONTACTS is unrelated to this database and does not provide the intended trust relationship. A non-exported activity in the client app does not control access to the companion app's provider.

Question 2

Added

Single Answer

A payment application exposes an exported service that accepts a transaction identifier and returns transaction status. Its team added a custom permission to the manifest and users report that unrelated applications can still call the service. The service is not protected by any permission, although the application's main activity is. The team needs a manifest-only change that applies the existing permission at the service boundary without changing the permission's protection level or application-wide behavior. What should the developers do?

Correct answer: C

The service's android:permission attribute enforces the declared permission on callers at that component boundary, which directly fixes the missing protection. An application-level permission would apply broadly to components and is not the requested component-specific policy. Setting exported to false would prevent the required external integration rather than authorize trusted callers. An intent filter does not define a permission requirement; the permission belongs on the service declaration.

Question 3

Added

Multiple Answers

A company distributes a paid Android application from its own website rather than through Google Play. The application must not be installable by accident from an unknown download, and a release must be verifiable as coming from the company's build pipeline. The team can control its signing process, but it cannot rely on a store-specific purchase check or device-wide enterprise enrollment. Which two actions directly meet these requirements? (Choose two.)

Correct answer: D, E

Android requires APKs to be signed for installation, and a controlled private key provides continuity of publisher identity for updates and verification. For a website-delivered APK, users also need to allow installation from that source under the device's installation policy. A package name is not a substitute for a valid signature. A public certificate can help verify a signature but does not prove purchase. Installing an unsigned APK is not a valid way to establish a signed release or a compatible update identity.

Question 4

Added

Single Answer

A logistics application needs to send broadcasts that only applications from the same vendor should receive. The broadcasts carry dispatch metadata, and the receiving applications are signed with the vendor's release certificate. The team wants Android to enforce the restriction when a receiver is registered, rather than relying on every receiver to inspect the sender. Which approach is best?

Correct answer: A

A receiver can require a custom signature permission, so Android limits delivery to senders granted that permission, which in this design means applications signed with the vendor certificate. A normal permission does not establish the required signer restriction. An unusual action name is not an access-control boundary, and exporting the receiver makes it externally reachable. Moving metadata to external storage does not authenticate broadcast senders and exposes the data to a different class of access.

Lesson 2: Managing the Policy File

5 practice questions on this topicWhat this topic covers

Question 5

Added

Single Answer

A regulated company maintains an Android application whose users may restore device backups onto replacement phones. The app stores a session token and locally cached customer records in its private data directory. The security team requires that neither value be copied to the user's cloud backup, but the application must retain normal backup support for unrelated, non-sensitive settings. The team is maintaining a legacy manifest-based backup configuration and cannot raise the minimum supported Android version or introduce a new backup implementation during this release. Which manifest change best meets the requirement?

Correct answer: D

A legacy backup rules resource referenced by android:fullBackupContent can exclude selected files while allowing the remaining eligible application data to be backed up. Disabling android:allowBackup would also protect the sensitive data, but it would prevent backups of the required settings. Setting android:debuggable to false is appropriate for a release build but does not define backup contents. Disabling cleartext traffic affects network connections, not data selected for backup.

Question 6

Added

Order List

A vendor has two related applications that must run under the same Linux user ID so they can share private files. The applications have distinct package names and are not yet installed. The build team can use the same signing certificate for both, and the company can distribute a coordinated update. Arrange the steps in the order they must be performed to establish this arrangement safely.

Drag the steps into the correct order, or use the arrows.

  1. Install the signed packages on the device
  2. Build both packages with the shared-user policy
  3. Set the same android:sharedUserId value in both manifests
  4. Sign both applications with the same certificate
Correct answer:
  1. Set the same android:sharedUserId value in both manifests
  2. Sign both applications with the same certificate
  3. Build both packages with the shared-user policy
  4. Install the signed packages on the device

Both packages must declare the same sharedUserId and be signed by the same certificate before Android can assign them the shared Linux UID. Building after editing the manifests ensures the policy is present in the packages, and installation follows only after the signed artifacts are ready. Signing before changing the manifests would sign artifacts without the required declaration. Installing before the packages are built and signed cannot establish the shared identity.

Question 7

Added

Single Answer

A developer is preparing a release build after debugging an authentication failure. The manifest currently sets android:debuggable to true, and the release must not expose debugging access. The team also wants to preserve its existing signing configuration and avoid changing application behavior unrelated to debugging. Which action should be taken before producing the release APK?

Correct answer: A

The android:debuggable manifest attribute controls whether the application is debuggable; removing it or setting it to false for release prevents shipping the debug-enabled setting. Backup policy is a separate concern and does not turn debugging off. Renaming the package does not disable debugging. Changing sharedUserId affects process identity and data sharing, not whether a debugger may attach.

Question 8

Added

Drag And Drop

A mobile application team is reviewing its manifest before a security audit. The audit distinguishes between the permission an application needs from another app, the permission callers must hold to invoke one component, and the policy that permits app components to share a Linux UID. Match each manifest requirement to the attribute or declaration that controls it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Request access to a permission owned by another app
Require a permission to access one service
Control whether a component can be launched externally
Declare a shared Linux UID policy
android:exported
android:sharedUserId
uses-permission
android:permission on service
Correct answer:
  • Request access to a permission owned by another app → uses-permission
  • Require a permission to access one service → android:permission on service
  • Declare a shared Linux UID policy → android:sharedUserId
  • Control whether a component can be launched externally → android:exported

The uses-permission declaration requests a permission from the system or another application. A component's android:permission attribute requires callers to hold that permission. The manifest's android:sharedUserId participates in assigning a shared Linux UID, subject to compatible signing. The exported attribute controls whether components can be accessed by other applications; it is distinct from requiring a permission.

Question 9

Added

Multiple Answers

A client application stores user preferences and a small database in its private internal storage. The product team wants to reduce the chance that those data are copied to a replacement device through Android's backup mechanism, while keeping the application installable and leaving normal runtime permissions unchanged. The app does not require cloud restore. Which two manifest-level actions best address the stated backup concern? (Choose two.)

Correct answer: A, B

Setting allowBackup to false disables the application's participation in Android backup, while backup rules can selectively exclude sensitive files when backup remains enabled for other data. Debuggable controls debugger access, not backup. Removing INTERNET does not configure Android's backup policy. The exported attribute applies to components rather than the application's backup behavior.

Lesson 3: Users’ Data Privacy and Protection

3 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A clinic's Android application keeps an authentication token in a file and writes diagnostic logs containing patient identifiers. During an incident review, the team finds that the file is readable only by the application, but the logs are copied to shared external storage for support staff. The application must retain diagnostics for troubleshooting, but patient identifiers must not be exposed to other apps or removable-media readers. What is the best corrective action?

Correct answer: C

Minimizing sensitive data in logs reduces exposure, and internal app-private storage restricts ordinary access by other applications. An unguessable filename does not create an authorization boundary on shared storage. A manifest permission does not reliably protect files in shared external storage, and moving the token there worsens exposure. Encrypting only a filename does not protect the database contents.

Question 11

Added

Single Answer

A travel application caches downloaded itinerary pages to improve offline performance. Users can sign out on a shared tablet, and the application must not show the previous user's itinerary after another user signs in. The team cannot remove caching entirely because network access is often unavailable, and the cache is stored in the application's private cache directory. Which change best addresses the risk while preserving offline use for the current account?

Correct answer: B

Removing account-specific cached content at sign-out prevents the next signed-in user from seeing stale itinerary data while allowing cache use during the active session. App-private storage limits access from other apps but does not prevent disclosure to another person using the same application. External storage increases exposure. Renaming files is not access control and retaining them preserves the cross-account risk.

Question 12

Added

Single Answer

A field application updates a local work-order record and then uploads it when connectivity returns. In testing, the app can be terminated after saving the record but before the upload; the record survives, yet the server may receive duplicate submissions after retry. The team needs reliable recovery without losing offline work, and it must not weaken confidentiality by placing records in shared storage. Which design improvement is best?

Correct answer: B

Private persistent storage preserves offline records across process termination, while a stable submission identifier lets the server or client recognize retries and avoid duplicate effects. Cache files may be removed and are not appropriate as the sole durable record. External storage exposes the work order and a filename alone does not guarantee deduplication. In-memory state is lost when the process is terminated, violating the recovery requirement.

Lesson 4: Securing Storage

3 practice questions on this topicWhat this topic covers

Question 13

Added

Single Answer

A budgeting application stores a user's preferred currency and display mode. These values are small, do not require relational queries, and should remain available after the process exits. The team wants the simplest native storage mechanism, does not need to share the values with other apps, and does not want to create a database schema. Which storage choice is best?

Correct answer: A

SharedPreferences is suited to small key-value settings and is stored in the application's private area by default, persisting beyond process lifetime. A public external-storage file exposes preferences and adds file-management overhead. SQLite is appropriate for structured data and queries but is unnecessarily complex for these few settings. Cache storage may be cleared and is not intended for durable user preferences.

Question 14

Added

Order List

An inventory application writes a report to external storage so the user can open it in another application. The app must avoid attempting file operations before external storage is available and must handle devices where the storage state does not permit writing. Arrange the operational steps in the order they should occur before writing the report.

Drag the steps into the correct order, or use the arrows.

  1. Create or write the report file
  2. Check the external storage state
  3. Confirm the state permits writing
  4. Resolve the app's external-files directory
Correct answer:
  1. Check the external storage state
  2. Confirm the state permits writing
  3. Resolve the app's external-files directory
  4. Create or write the report file

The application should first inspect the external storage state and proceed only when it is mounted in a writable state. It can then resolve the appropriate app external-files directory and perform the file operation. Resolving a path or writing before checking availability risks failure on unavailable or read-only media. Confirming writability after attempting the write is too late to prevent that error path.

Question 15

Added

Dropdown

A notes application stores temporary rendered previews that can be regenerated from persistent note content. The previews must not be treated as durable records, and the application should use its own cache location rather than shared external storage. Complete the storage decision by selecting the correct value for each blank.

Choose the correct value for each blank.

Store regenerated previews in the application's directory, and keep the authoritative notes in storage.
Correct answer:

Store regenerated previews in the application's cache directory, and keep the authoritative notes in persistent private storage.

The cache directory is intended for regenerable temporary data and may be reclaimed by the system, which suits rendered previews. Authoritative notes need persistent private storage so they survive cache cleanup and remain isolated from other applications. The files directory is durable but is not the designated cache location for disposable previews. Shared external, public media, and public-root storage do not provide the required private authoritative storage.

More Practice Questions

Get the Full Android AND-802 Dumps as PDF and Practice Test

15 questions are free on this page and the full set has 45. It comes as a PDF and an online practice test, with 90 days of free updates.