Exam Information
Free practice questions with explanations
Android AND-802 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 13
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Permissions
A fintech company ships an Android app that exports transaction reports to a shared external storage folder. The app targets API 29 and a partner app on the same device must read those reports. The security team wants the partner app to read the files without granting either app broad access to the device's shared media. Which approach best meets these requirements?
Correct Answer: BExplanationA FileProvider lets the owning app grant a URI permission to a specific caller for specific files without exposing broad storage access. Guarding the provider with a signature-level custom permission restricts access to apps signed with the same key, which matches the partner-app scenario. Requesting READ_EXTERNAL_STORAGE gives both apps broad shared media access, which the security team rejects. Shared user IDs are deprecated and would tie the two apps' storage together rather than exposing a controlled interface. A normal-level custom permission is granted to any app that declares it, so it provides no real protection.
-
2 Question 2 Single choice Permissions
A developer defines a custom permission com.example.payments.PAY_RELAY in the manifest of a payments SDK bundled inside several partner apps. The partner apps are signed with different certificates. The SDK's exported broadcast receiver must accept intents only from the partner apps that declare the permission and hold the matching signature. Which protection level should the permission use, and why?
Correct Answer: CExplanationThe signature protection level grants the permission only to apps signed with the same certificate as the app that declares it. Here the partner apps have different certificates, so a signature permission declared by the SDK's host would not be granted to them as intended; the design must be checked against which app declares the permission. The conceptual answer that matches a signing-based guard is signature, since only certificate-matched apps receive it. Dangerous permissions are runtime prompts for user data and do not fit an inter-app trust check. signatureOrSystem adds system-image apps, which the scenario does not describe. Normal permissions are granted to any app that declares them, offering no protection.
-
3 Question 3 Single choice Managing the Policy File
A company's MDM-managed Android app has android:debuggable set to false in its release manifest. During QA, an engineer enables USB debugging on a test device and attempts to attach a debugger to the release build of the app to inspect its SharedPreferences. The app's team needs to keep the release build locked down while still allowing support engineers to troubleshoot a reproduced crash on this device. What is the best next action?
Correct Answer: AExplanationWith debuggable set to false, the release build refuses debugger attachment and run-as, so the correct path is to reproduce the issue in a separately built debug variant that runs the same code. Signing it with the release key keeps the environment as close as possible while the release artifact stays locked. Setting debuggable to true in the shipped release exposes the app to debugger attachment and is unsafe. Enabling backup does not grant debugger access and widens data exposure. The run-as command only works for debuggable applications, so the claim that the flag does not restrict it is wrong.
-
4 Question 4 Multiple choice Managing the Policy File
A healthcare app stores patient notes in its private internal storage. The security review finds that the manifest allows full cloud backup, and a previous developer added android:usesCleartextTraffic and an externally exported activity for a support flow. The team must keep notes out of cloud backups while still allowing non-sensitive user preferences to be restored after reinstall, and must block cleartext traffic. Which two changes best satisfy these requirements? (Choose two.)
Correct Answer: B, EExplanationSetting allowBackup to false disables backup entirely, but a backup rules file is the targeted alternative that keeps preferences restorable while excluding the notes file from the cloud backup domain, which the requirements call for. Setting usesCleartextTraffic to true contradicts the requirement to block cleartext traffic. Making the activity exported expands the attack surface. Moving notes to external storage does not stop backup and exposes them to other apps, so it fails the confidentiality goal.
-
5 Question 5 Single choice Securing Storage
A retail app caches product images and a signed API token. The product team wants the cache to clear automatically when the OS needs space, and the security team requires that the token never be written to any location that another app or a backup could read. The developer proposes storing the token in SharedPreferences inside the app's cache directory. Which change best meets both requirements?
Correct Answer: DExplanationThe cache directory is reclaimable by the system, so a credential placed there can disappear unexpectedly and should not be treated as durable storage. Keeping images in cache lets the OS reclaim space as required, while the token belongs in private internal storage. Storing the token in external storage exposes it to other apps and is wrong. Keeping it in SharedPreferences in the default private directory is secure in isolation, but the option does not separate the token from the cache as the design requires. Placing the token in the cache directory, which the system may clear at any time, is unsuitable for a signed token and fails the durability expectation.
-
6 Question 6 Single choice Securing Storage
A logistics app writes delivery records into an SQLite database in internal storage. Field technicians report that records vanish after the device is rebooted during an update. The app must survive reboots and must not expose records to other apps. A developer suggests switching to SharedPreferences for the records. Which diagnosis and action is correct?
Correct Answer: DExplanationThe database file in private internal storage persists across reboots, so vanishing records point to uncommitted writes, which transactions prevent. Keeping data private in internal storage also satisfies the no-exposure rule. SharedPreferences is a poor fit for structured delivery records and does not solve the commit issue. External storage is readable by other apps and may be unavailable, violating the constraint. The cache directory is reclaimable and would lose the records outright.
-
7 Question 7 Order list Securing Storage
A health tracking app must store a user's step-count history in a private SQLite database so it is not readable by other apps, and must make writes survive an app crash mid-update. A developer is planning the data handling for a new release. Arrange the steps in the order they must be performed.
Drag the steps into the correct order, or use the arrows.
- Wrap the multi-row update in a transaction and call setTransactionSuccessful
- End the transaction with endTransaction so changes commit or roll back together
- Verify the database file is not placed on external storage or in the cache directory
- Open the database in private internal storage using the application context
Correct Answer:- Open the database in private internal storage using the application context
- Wrap the multi-row update in a transaction and call setTransactionSuccessful
- End the transaction with endTransaction so changes commit or roll back together
- Verify the database file is not placed on external storage or in the cache directory
ExplanationThe database must first be opened in private internal storage so access is restricted to the app. The verification that the location is private should come before the write logic is finalised, but in operational terms the storage location is fixed first. A transaction is then begun and its changes marked successful, and endTransaction commits or rolls back as a unit. The order here reflects establishing secure storage before writing, then making the write atomic and committed.
-
8 Question 8 Drag and drop Managing the Policy File
A consumer app's manifest is being reviewed before a Play release. The reviewers must match each configuration requirement to the manifest attribute that controls it. Match each requirement to the attribute that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Prevent any app on the device from being restored from an adb backup of this app's dataPrevent a debugger from attaching to the installed release buildBlock cleartext HTTP traffic from the app's network stackandroid:exported set to trueandroid:usesCleartextTraffic set to falseandroid:sharedUserId set to a shared valueandroid:allowBackup set to falseandroid:debuggable set to falseCorrect Answer:- Prevent any app on the device from being restored from an adb backup of this app's data → android:allowBackup set to false
- Prevent a debugger from attaching to the installed release build → android:debuggable set to false
- Block cleartext HTTP traffic from the app's network stack → android:usesCleartextTraffic set to false
ExplanationSetting allowBackup to false stops both cloud and adb backup of the app's data, which is the required outcome. A debuggable value of false blocks debugger attachment to the release build. Setting usesCleartextTraffic to false disallows cleartext HTTP connections. Exporting a component and sharing a user ID both widen what other apps can reach, so they match none of the stated requirements.
-
9 Question 9 Single choice Permissions
A banking app has an exported activity that handles deep links for account transfers. A security review finds that any installed app can launch it with arbitrary extras. The team wants only the banking app's own companion app, signed with the same key, to start that activity, with no runtime prompt for end users. Which change is best?
Correct Answer: BExplanationA custom permission at signature level is granted only to apps signed with the same certificate, so requiring it on the activity lets only the companion app start it without any user prompt. Setting exported to false would also block the companion app, since it is a separate app. Dangerous protection requires a user prompt, violating the no-prompt constraint. Checking the calling package name in onCreate is unreliable because the package name is not a trustworthy identity, and the check runs after the activity is already launched.
-
10 Question 10 Dropdown Securing Storage
A developer is writing a helper that saves a non-sensitive user theme preference in a private SharedPreferences file and a session flag that must persist without other apps reading it. The developer needs to complete the code that opens the preferences in private mode. Select the correct value for each blank.
Choose the correct value for each blank.
val prefs = getSharedPreferences("app_settings", ) prefs.edit().putBoolean("dark_mode", true).()Correct Answer:val prefs = getSharedPreferences("app_settings", Context.MODE_PRIVATE) prefs.edit().putBoolean("dark_mode", true).apply()
ExplanationContext.MODE_PRIVATE restricts the preference file to the owning app, which the session flag requires, while MODE_WORLD_READABLE is deprecated and exposes the file to other apps. The edit is persisted with apply, which writes asynchronously and is the standard choice when the caller does not need the result immediately. commit is valid but blocks the calling thread, and flush and save are not methods of the Editor interface.
-
11 Question 11 Single choice Permissions
A mobile team targets Android 10 and must let an app read a shared document created by a separate vendor app. The vendor app signed its documents with a different certificate than the team's app, and the team cannot use signature permissions across the two. The vendor has agreed to expose a read-only content provider. Which approach gives the team the least access to device storage while meeting the requirement?
Correct Answer: AExplanationA URI permission grant issued by the provider gives the team's app access to one specific document, which is the least privilege option and works across differing certificates. Requesting broad storage read gives access to all shared files. A shared user ID requires the same signing certificate, which the scenario rules out. Making a copy world-readable exposes the document to every app on the device.
-
12 Question 12 Multiple choice Securing Storage
A utilities app writes diagnostic logs to external storage so customers can email them to support. A recent review found that the logs include device identifiers and account tokens. The team needs to keep the email feature, prevent other apps from reading the sensitive data, and reduce the amount of data retained on disk. Which two actions best meet these requirements? (Choose two.)
Correct Answer: B, DExplanationStripping sensitive values before writing means the tokens and identifiers never reach disk, which addresses data minimisation directly. Writing to private internal storage and sharing a single copy through a FileProvider keeps the logs unreadable by other apps while still supporting the email feature. Making files world-readable exposes them, and the cache directory is not a reliable place for logs support needs. Increasing retention works against the requirement to reduce stored data.
-
13 Question 13 Order list Managing the Policy File
A payments team must ship a release where the manifest does not allow backup of sensitive app data and the release build cannot be debugged. A junior engineer is preparing the release checklist for the build pipeline. Arrange the steps in the order they must be performed.
Drag the steps into the correct order, or use the arrows.
- Build the signed release bundle from the release build type
- Run a manifest check to confirm exported components are intentional before upload
- Set android:allowBackup to false in the application element of the release manifest
- Confirm android:debuggable is false or unset for the release variant
Correct Answer:- Set android:allowBackup to false in the application element of the release manifest
- Confirm android:debuggable is false or unset for the release variant
- Build the signed release bundle from the release build type
- Run a manifest check to confirm exported components are intentional before upload
ExplanationManifest attributes must be set in the source before the release artifact is built so the bundle carries the intended settings. Confirming debuggable is false for the release variant is verified against the configuration before building. The signed bundle is produced only after the manifest is correct. The exported-component review is an audit that runs against the built manifest before upload, which makes it the final gate.
These are 13 of the 45 questions in the full AND-802 pack.
Get All 45 QuestionsGet all 45 questions & answers
Full access options for Android AND-802
Self-study
PDF Version
- 45 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 45 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 45 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the AND-802 Exam (Android Security Essentials) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.