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

Free Huawei HCIP-HarmonyOS Application Developer V1.0 H14-231_V1.0 Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 47 Total 699 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: HarmonyOS Fundamentals

Skill tested: Distinguishes distributed-device collaboration from ordinary application-level network communication.

A connected-home vendor is designing a HarmonyOS experience in which a user can begin a media task on one supported device and continue it on another. The product team wants the application to use platform-provided distributed capabilities where available, rather than treating every device as an unrelated remote server. Devices may have different hardware capabilities, and the application must still behave sensibly when no peer device is available. Which architectural approach best fits these requirements?

Correct Answer: D. Use HarmonyOS distributed capabilities to discover and coordinate eligible devices, while retaining local execution as a fallback.
Explanation:

HarmonyOS distributed capabilities are intended to support collaboration across eligible devices, including discovery and coordination, while preserving device-specific execution constraints. A robust design checks which devices and capabilities are available and keeps the task usable locally when distribution cannot occur. A cloud service may synchronize state but does not itself provide the platform's distributed-device model. Separate devices do not share a process or memory, and arbitrary network scanning is neither a sound discovery design nor an appropriate substitute for platform capabilities.

Question 2

New Single answer

Topic: HarmonyOS Application Development

Skill tested: Selects the appropriate HarmonyOS application artifact and deployment workflow for a target device.

A development team has completed a HarmonyOS application and must deliver a test build to a controlled set of supported devices. The application is packaged using the HarmonyOS application model, and the team needs an installable artifact that preserves the application package structure rather than an archive intended only for source distribution. Which output should the team generate for installation and device testing?

Correct Answer: C. A HAP package containing the application module for the target device.
Explanation:

A HAP is the HarmonyOS Ability Package used to package an application module for installation and deployment. A HAR is a reusable library artifact, not the normal standalone installable application package. A source archive is for development or distribution of source, not direct device installation, and HarmonyOS does not generally make a source archive into the installable artifact described here. Splitting application logic from a resource-only package is not the specified deployment model.

Question 3

New Multiple answers

Topic: UI Development

Skill tested: Applies responsive layout and adaptive component choices across HarmonyOS device form factors.

A retailer is adapting a HarmonyOS catalog interface for phones and larger supported screens. On a phone, product cards should use a compact single-column presentation. On wider screens, the same content should use additional columns without stretching text into unreadable lines. The design must remain usable when the window size changes, and the team wants to avoid maintaining separate fixed-pixel layouts for every device. Which two implementation choices best meet these requirements? Select TWO.

Correct Answer: A. Use adaptive breakpoints or equivalent layout conditions to change the grid structure as usable width changes.; B. Use responsive layout rules that derive arrangement from available space instead of relying on fixed device dimensions.
Explanation:

Responsive layout rules and width-sensitive layout conditions let the interface reflow as the available window changes, including moving from a compact column to a wider grid. This avoids tying the design to a fixed device model and better supports resize and form-factor variation. Uniformly scaling a fixed canvas can make text and controls poorly proportioned. Model-specific pages are brittle and multiply maintenance work. Keeping one column on large screens fails the stated requirement to use additional columns.

Question 4

New Multiple answers

Topic: Data Management and Storage

Skill tested: Chooses local persistence mechanisms according to data structure and transactional requirements.

A field-service application must retain two kinds of information when a device is offline: a small set of user preferences and a growing collection of structured work orders. Work orders need querying by status and an atomic update that changes both a record and a related synchronization marker. The application must not depend on a cloud connection for these operations. Which two storage choices best satisfy the requirements? Select TWO.

Correct Answer: B. Store preferences in a lightweight key-value persistence mechanism.; E. Store work orders in relational local storage that supports queries and transactions.
Explanation:

Small independent preferences fit a key-value persistence mechanism, while structured work orders with status queries and atomic related updates call for a local relational database and transaction support. The local database also allows the application to operate offline. Process memory loses data across restarts. A preferences file is poorly suited to a growing queryable collection and does not provide the needed transaction semantics. Independent text-file writes can leave partially applied updates and require custom consistency and recovery logic.

Question 5

New Single answer

Topic: Networking and Communication

Skill tested: Handles asynchronous network failures and response validation in HarmonyOS applications.

A travel application requests availability from a remote service. Under weak connectivity, requests can time out, and some successful HTTP responses contain an error payload rather than the expected result structure. The screen must remain responsive, and the application must not report a booking as available until it has validated the response. Which implementation is most appropriate?

Correct Answer: C. Run the request asynchronously, handle transport and timeout failures, check the HTTP response status, and validate the response body before updating the UI.
Explanation:

Network calls should not block the UI thread. The application must distinguish transport failures and timeouts from HTTP-level error responses, then validate the response body before using it as booking data. This prevents malformed or error payloads from being presented as availability. Synchronous UI-thread requests risk freezing the interface. Unlimited retries can waste resources and leave users without a clear outcome. A non-empty body is not evidence that the response has the expected structure or meaning.

Question 6

New Single answer

Topic: System Services and Capabilities

Skill tested: Uses HarmonyOS ability lifecycle and inter-ability navigation appropriately.

A document application separates its editor and preview into different abilities. When a user selects Preview, the editor should launch the preview ability and pass only the document identifier; the preview ability then loads the document through the application's data layer. The implementation should follow the platform's ability-to-ability launch model and avoid passing a large document object through navigation. Which approach is most appropriate?

Correct Answer: A. Launch the preview ability with a Want containing the document identifier as an input parameter.
Explanation:

A Want is the HarmonyOS mechanism used to describe and initiate an ability operation, including passing suitable input parameters. Passing a stable document identifier keeps navigation data small and lets the preview load content through the application's data layer. Sharing an in-memory object across abilities assumes common process state and creates unnecessary coupling. A global variable is not a reliable inter-ability contract, and ability names identify components rather than carry arbitrary document data.

Question 7

New Multiple answers

Topic: Security and Permissions

Skill tested: Applies least-privilege permission requests and handles user authorization outcomes safely.

A HarmonyOS application offers an optional feature that reads the user's location to display nearby service centers. The main application remains useful without the feature, and the location is needed only after the user chooses Nearby. The team wants to minimize unnecessary access and avoid treating a denied request as a fatal application error. Which two practices are most appropriate? Select TWO.

Correct Answer: C. Check the authorization result and provide a useful non-location path if access is denied.; E. Request the relevant location permission in the context of the user invoking the Nearby feature.
Explanation:

Requesting location when the user invokes the relevant feature follows least-privilege and makes the purpose of the request understandable. The application must check the result and continue gracefully if access is denied, for example by allowing manual search. Requesting unrelated permissions at first launch is unnecessarily broad. A manifest declaration does not replace runtime authorization where required, and denial must be respected. Indefinitely reusing a stale location can mislead users and does not address authorization or data-handling expectations.

Question 8

New Single answer

Topic: Performance Optimization

Skill tested: Reduces HarmonyOS UI rendering work through efficient list construction and resource loading.

A news application displays a long, frequently updated feed with image thumbnails. Profiling shows excessive initial rendering work and memory growth when the application creates UI elements for every article, including items far below the visible region. The team needs smooth scrolling on memory-constrained devices and must preserve the existing feed content. Which change is the best first optimization?

Correct Answer: A. Use a virtualized or lazy list so visible items are built as needed, and load thumbnails on demand with appropriate reuse or caching.
Explanation:

A lazy or virtualized list limits UI construction to items needed for the current viewport, reducing initial work and memory pressure. Loading thumbnails on demand, with appropriate reuse or bounded caching, addresses the image cost while retaining the feed. Building every row eagerly and expanding the cache amplifies the measured problems. A single large image sacrifices interaction, accessibility, and update behavior. Disabling updates avoids rather than solves the performance issue and produces stale content.

Question 9

New Single answer

Topic: HarmonyOS Application Development

Skill tested: Diagnoses module packaging and dependency configuration issues in a HarmonyOS build.

A team's HarmonyOS application builds successfully on one developer's workstation but fails in clean continuous integration. The failing module imports a shared utility library that was added locally to the project, yet the module's build configuration does not declare a dependency on it. The team needs a reproducible build that resolves the library through the project's supported module structure. What should the team do first?

Correct Answer: C. Declare the shared library as a dependency of the consuming module using the project's HarmonyOS build configuration.
Explanation:

A project-level module dependency makes the relationship explicit and allows the build system to resolve the shared library consistently in clean environments. The local success is explained by an undeclared workstation artifact or configuration, not by a reproducible project setup. Copying compiled classes into source bypasses dependency management and complicates maintenance. Disabling checks cannot produce a valid application, while a machine-specific path preserves the CI failure and makes other builds unreliable.

Question 10

New Multiple answers

Topic: Networking and Communication

Skill tested: Designs resilient API integration with bounded retries and idempotent request handling.

A logistics application submits delivery status updates to a service that may temporarily return server errors. The network can fail after the server has processed a request but before the client receives the response, so blindly repeating a non-idempotent operation could create duplicate updates. The application should remain usable offline and synchronize pending work later. Which two design choices best address these risks? Select TWO.

Correct Answer: A. Assign a stable operation identifier and have the service use it to deduplicate retried submissions.; E. Persist pending updates locally and retry them with bounded backoff when connectivity is available.
Explanation:

Persisting pending work supports offline use, while bounded backoff avoids a rapid retry storm during an outage. Because the client may not know whether a timed-out request was processed, a stable operation identifier and server-side deduplication make retries safe against duplicate effects. Unlimited immediate retries can overload the service. Discarding the update loses user work. Changing a state-changing operation to GET is not an appropriate way to obtain idempotency and can violate HTTP semantics.

Question 11

New Single answer

Topic: Data Management and Storage

Skill tested: Uses database transactions to preserve consistency across related local data updates.

A locally stored inventory application records each stock adjustment and updates a summary quantity in the same database. A crash between the two writes has previously left the summary inconsistent with the adjustment history. The application must preserve both changes together, and the changes occur in one local database. What is the most appropriate implementation?

Correct Answer: D. Wrap both writes in a database transaction and commit only after both operations succeed; otherwise roll back.
Explanation:

A database transaction provides atomicity for related changes: either the adjustment record and summary update both commit, or neither does. That directly prevents the inconsistent state described after a crash or write failure. Independent writes permit partial completion and defer a consistency problem to later code. Updating the summary first and ignoring an error can make the mismatch worse. Moving related state into a separate preference store removes the shared transaction boundary rather than fixing it.

Question 12

New Multiple answers

Topic: System Services and Capabilities

Skill tested: Integrates platform device capabilities while checking availability and user authorization.

A wellness application can optionally use a supported device capability to collect activity information. The feature must work only when the capability is available and the user has granted the required access. Some supported devices do not provide the capability, and users may revoke access after setup. Which two implementation practices best ensure correct behavior? Select TWO.

Correct Answer: A. Check capability availability before invoking the service and provide an alternative when it is unavailable.; B. Check the relevant authorization state when needed and handle denial or revocation without crashing.
Explanation:

Platform capability availability can vary by device, so the application should verify that the service can be used before invoking it and offer a sensible fallback. Authorization is a separate condition: the user can deny or later revoke access, and the application must respond safely rather than assume permission persists. Successful installation does not guarantee the hardware or service exists. Revocation must be respected. Repeated unexplained permission prompts are poor permission practice and do not replace checking the current authorization state.