Exam Information
Free practice questions with explanations
Huawei H14-231_V1.0 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 16
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice HarmonyOS Fundamentals
A retail company is porting its Android shopping app to HarmonyOS NEXT. The development team proposes reusing its existing Java-based Android codebase with an automated converter and keeping the Dalvik-style runtime assumptions. The product owner requires the app to launch within 1 second on low-memory devices and to use the native ArkTS-based runtime for best integration with system features. The team has four weeks before a beta. Which approach is the BEST choice for the application architecture?
Correct Answer: DExplanationRewriting the presentation and business layers in ArkTS with the declarative UI gives the native runtime and meets the startup and integration requirements, while reusing platform-neutral data models cuts effort within four weeks. The converter approach keeps Java runtime assumptions that HarmonyOS NEXT does not provide, so the app cannot run natively. The WebView wrapper fails the native-runtime requirement and adds launch latency from remote loading. Loading legacy Java modules through a bridge at launch fails the one-second startup target on low-memory devices.
-
2 Question 2 Single choice Data Management and Storage
A health-tracking app stores daily step counts and heart-rate samples in the local device database. The app must support fast queries by date range, keep data encrypted at rest, and must not block the UI thread during writes. Users may generate tens of thousands of records per month. The team is considering using the relational store with a plain SQL query on the main thread, storing the entire dataset in the Preferences store, or using a custom JSON file in the app sandbox. Which option BEST meets all requirements?
Correct Answer: DExplanationThe relational store supports indexed columns for fast date-range queries, asynchronous operations keep writes off the UI thread, and encryption protects data at rest. Preferences is designed for small key-value settings and does not suit tens of thousands of records. A whole-file JSON store forces full parsing for each query and provides no built-in encryption or indexing. Synchronous writes on the UI thread violate the explicit non-blocking requirement even though the database itself is appropriate.
-
3 Question 3 Single choice Security and Permissions
A navigation app needs to show the user's position on a map while the app is in the foreground. Product requirements state that the app must request the minimum privilege, must not access location when the feature is unused, and must comply with the policy of asking the user for consent at the point of use. The team has already declared the location permission in the module configuration file. Which action should be taken NEXT to satisfy these requirements?
Correct Answer: CExplanationRequesting the permission at the point of use through the dynamic authorization API satisfies both the minimum-privilege rule and the consent-at-use requirement, and the app must handle a denied outcome. Requesting at launch breaks the rule of not accessing location when the feature is unused. Removing the declaration causes the location call to fail because the permission must be declared. Asking for broader all-access permission exceeds the stated foreground-only need.
-
4 Question 4 Single choice Performance Optimization
A news application shows a long scrollable list of articles, each with a remote thumbnail. Users report that scrolling stutters and memory usage keeps climbing during long sessions. The team wants to fix the issue with the smallest code change while keeping the list smooth on mid-range devices. Which optimization is the MOST appropriate?
Correct Answer: DExplanationA lazy list builds only the visible items and reuses them as the user scrolls, while a unique key lets the framework track items correctly, and a cache that releases off-screen bitmaps curbs memory growth. Rendering every item in a plain column computes all layouts up front and worsens startup and memory. Preloading every thumbnail at launch increases memory use and startup time. Higher decoding resolution enlarges each bitmap and makes both the stutter and the memory growth worse.
-
5 Question 5 Multiple choice System Services and Capabilities
A smart-home control app must run a background task that keeps the device connected to a cloud service while the screen is off, and it should receive timely notifications of device state changes. The product manager insists that the app must not drain the battery or hold the CPU unnecessarily. Which TWO design choices meet these requirements? (Choose two.)
Correct Answer: B, DExplanationDeclaring the proper background mode and using a bounded transient task limits how long work runs in the background, and the push capability delivers state changes without polling or holding the CPU. Keeping the CPU awake for the whole session drains the battery and conflicts with the requirement. Polling every second wastes power. A foreground service without a visible notification is not permitted and does not meet the battery goal.
-
6 Question 6 Single choice Networking and Communication
A logistics application must download a 40 MB route dataset every time a driver starts a shift. The drivers work in areas with unreliable mobile coverage, the company wants to avoid charges on metered connections, and the download must resume if interrupted. The development team plans to use a basic HTTP request inside the page component with no resumption logic. Which approach BEST satisfies the requirements?
Correct Answer: AExplanationThe background transfer capability supports resumable transfers and lets the app check whether the connection is metered before downloading, which matches the cost and reliability constraints. Retrying the entire 40 MB restarts from zero each time and wastes metered data. A raw TCP socket without acknowledgement provides no reliable resumption and bypasses the networking APIs. A blocking call on the UI thread freezes the interface and fails the responsiveness expectation.
-
7 Question 7 Order list HarmonyOS Application Development
A small team is building a new HarmonyOS application for a fitness brand and must produce a signed, distributable package for internal testing on physical devices. The project uses DevEco Studio. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Generate the signed application package for distribution to the internal testers.
- Create a signing certificate and profile, and configure the signing settings in the project.
- Create the project and write the ArkTS pages and business logic in DevEco Studio.
- Build and run the application on a physical device to verify the functional behaviour.
Correct Answer:- Create the project and write the ArkTS pages and business logic in DevEco Studio.
- Build and run the application on a physical device to verify the functional behaviour.
- Create a signing certificate and profile, and configure the signing settings in the project.
- Generate the signed application package for distribution to the internal testers.
ExplanationThe project must first exist with its pages and logic before any run or build can occur. Testing on a physical device verifies behaviour before packaging. Signing material must be configured before a valid signed package can be produced, and the packaging step comes last. The signing setup could appear before the device run in some workflows, but generating the signed package must always follow both the signing configuration and the verified build.
-
8 Question 8 Drag and drop UI Development
A banking app has a home screen with a fixed header, a scrollable list of transactions that changes size with the data, and a bottom action bar that must stay visible above the navigation area on every device. The design team wants the layout to adapt to different screen sizes without hard-coded pixel positions. Match each layout requirement to the layout approach that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Keep the action bar at the bottom edge above the system navigation areaKeep the header fixed at the top regardless of scrolling contentLet the transaction list fill the remaining vertical space and scroll independentlyUse a flexible container that grows to fill leftover height inside a scroll containerPlace every element in a single linear row to avoid vertical positioningPosition the header with a fixed top container outside the scrollable areaAnchor the action bar to the bottom using an alignment setting in a stack layoutUse absolute pixel offsets computed from a fixed design-screen heightCorrect Answer:- Keep the header fixed at the top regardless of scrolling content → Position the header with a fixed top container outside the scrollable area
- Let the transaction list fill the remaining vertical space and scroll independently → Use a flexible container that grows to fill leftover height inside a scroll container
- Keep the action bar at the bottom edge above the system navigation area → Anchor the action bar to the bottom using an alignment setting in a stack layout
ExplanationA fixed top container keeps the header in place while the list scrolls, which is the usual pattern for a header that must not move. A flexible child inside a scroll container lets the list fill remaining height and handle variable item counts. Bottom alignment inside a stack keeps the action bar anchored on each screen size. Absolute pixel offsets break across devices and are the wrong approach the stem rules out, and a single horizontal row cannot produce the required vertical arrangement.
-
9 Question 9 Dropdown Data Management and Storage
A notes application must save user documents in the application sandbox so they remain private to the app and are removed when the app is uninstalled. A developer is writing the setup code for the preferences store and the database access path. Complete the statements by selecting the correct value for each blank.
Choose the correct value for each blank.
const dir = getContext(this).; // sandbox directory for the app
const ds = data_preferences.getPreferences(context, 'notes_settings'); // open the store
const rdb = relationalStore.getRdbStore(context, { name: 'notes.db', securityLevel: relationalStore.SecurityLevel. }); // open the databaseCorrect Answer:const dir = getContext(this).filesDir; // sandbox directory for the app
const ds = data_preferences.getPreferences(context, 'notes_settings'); // open the store
const rdb = relationalStore.getRdbStore(context, { name: 'notes.db', securityLevel: relationalStore.SecurityLevel.S3 }); // open the databaseExplanationThe filesDir property of the application context refers to the sandbox directory where persistent user files live and that is removed on uninstall. cacheDir holds temporary data the system may clear, distributedDir is for cross-device sync rather than private storage, and externalDir is outside the sandbox. For the database security level, S3 is the level used for sensitive application data such as user records, while S1 and S2 are lower levels and S4 is not a valid storage security level choice for this use. Choosing a level is a deliberate privacy decision because it governs how the data is protected.
-
10 Question 10 Single choice HarmonyOS Fundamentals
A company is evaluating HarmonyOS device families for a wearable and a tablet app that must share a common distributed feature, where a user starts a video on the watch and continues it on the tablet. The architects must decide which capability enables this cross-device continuation without the developer managing peer discovery manually. Which capability should be used?
Correct Answer: BExplanationAbility continuation lets an app migrate its page state to another device so the user can resume the task, and the system handles device discovery and the transfer. Distributed data synchronization replicates data but does not hand over an in-progress page session. Routing the video through a cloud gateway adds latency and an unnecessary server dependency. A Bluetooth pairing API only creates a link and does not provide task continuation.
-
11 Question 11 Single choice Data Management and Storage
A ticketing app caches event listings locally. Listings must be shown offline, but when the network returns the cache must be refreshed from the server without discarding a user's pending seat reservations that exist only on the device. A developer proposes to clear the entire local database and re-download everything each time the connection is restored. Which change is the BEST fix?
Correct Answer: CExplanationUpserting listings by primary key updates existing event rows and inserts new ones, while leaving reservation rows that exist only locally intact, so no pending data is lost. Moving reservations to Preferences is a poor fit for relational records and does not solve the sync logic. Recreating the database deletes the pending reservations the stem requires to survive. Disabling the offline cache removes a requirement the app must meet.
-
12 Question 12 Multiple choice Security and Permissions
A healthcare application stores patient session tokens and must protect them against extraction from the device while keeping the app usable offline. The security review states that tokens must never be written in plain text to the sandbox and must not be sent in URLs or logs. Which TWO measures meet these requirements? (Choose two.)
Correct Answer: A, CExplanationEncrypting the token with a keystore-protected key keeps it unreadable if the storage is extracted, and sending it in an Authorization header over verified HTTPS keeps it out of URLs and logs while protecting it in transit. Storing plain text in the sandbox fails the explicit rule even though isolation helps. Placing the token in a query parameter exposes it in URLs and server logs. Logging the token violates the requirement regardless of later removal.
-
13 Question 13 Single choice Performance Optimization
A video-editing app on HarmonyOS shows frame drops during timeline playback on a mid-range tablet. Profiling shows that the main thread performs heavy JSON parsing and image decoding for every frame preview. The team cannot change the rendering pipeline but can restructure the code. Which change is the MOST effective way to reduce main-thread load?
Correct Answer: AExplanationOffloading parsing and decoding to a worker thread keeps the main thread free for rendering, which directly removes the cause shown by profiling. A higher preview resolution increases decoding cost and worsens the stutter. Disabling thumbnails removes a feature the editing workflow depends on. A sleep on the UI thread blocks the very thread that must render frames and adds visible lag.
-
14 Question 14 Dropdown Networking and Communication
A social-media client must send messages over a secure connection to an HTTP-based server using the networking request interface. The security policy forbids cleartext traffic and requires the app to receive a response within a bounded timeout. A developer is configuring the request. Complete the statements by selecting the correct value for each blank.
Choose the correct value for each blank.
const req = http.createHttp();
req.request('https://chat.example.com/api/send', {
method: http.RequestMethod.,
connectTimeout: ,
header: { 'Content-Type': 'application/json' }
}, (err, data) => { /* handle response */ });Correct Answer:const req = http.createHttp();
req.request('https://chat.example.com/api/send', {
method: http.RequestMethod.POST,
connectTimeout: 5000,
header: { 'Content-Type': 'application/json' }
}, (err, data) => { /* handle response */ });ExplanationSending a message to the server is a create operation, so POST is the method that carries a request body, while GET cannot carry the message content the app needs to send. A connectTimeout of 5000 milliseconds gives a bounded wait that satisfies the timeout requirement. A 60000 value is too long to meet a bounded response expectation, 30 is not milliseconds and would expire too quickly for a normal request, and -1 is not a valid timeout. The https scheme already satisfies the cleartext ban, so the URL itself is not a blank choice.
-
15 Question 15 Single choice Security and Permissions
A finance application must prevent a malicious third-party module from reading the app's private data files. The team is designing how the app exposes a file-export feature to other apps. The export must give other apps read-only access to a single user-selected file, without granting access to the whole sandbox. Which mechanism BEST satisfies this requirement?
Correct Answer: CExplanationA temporary read-only URI issued through the system picker grants access to one user-selected file only, which satisfies both the read-only and least-exposure constraints. Making the sandbox world-readable exposes all private data, breaking the isolation the stem requires. Copying the whole directory to a public folder also exposes everything. A system-wide file manager permission gives access to every file, far beyond the single-file need.
-
16 Question 16 Single choice HarmonyOS Application Development
A development team uses DevEco Studio and a shared source repository. A release build for a commercial app fails only on the build server, not on developer machines, with a signing error. The team has a requirement that signing credentials must never be committed to the repository and must be injected only in the release pipeline. Which action is the MOST appropriate NEXT step?
Correct Answer: AExplanationThe failure is local to the build server, so the next step is to confirm that the signing material is injected through the pipeline secret store and that the project's signing configuration points to it, which keeps credentials out of the repository. Committing the certificate breaks the explicit rule against storing credentials in the repository. Manual signing on a developer machine breaks the release pipeline and is error-prone. Changing the bundle name does not repair a credential mismatch and alters the app identity.
These are 16 of the 699 questions in the full H14-231_V1.0 pack.
Get All 699 QuestionsGet all 699 questions & answers
Full access options for Huawei H14-231_V1.0
Self-study
PDF Version
- 699 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
- 699 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
- 699 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 H14-231_V1.0 Exam (HCIP-HarmonyOS Application Developer V1.0) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.