View Full Huawei H12-821 Exam Dumps and Practice Test Dumps.
Question 1. In OSPF, what is the PRIMARY purpose of the Designated Router (DR) on a broadcast network?
- To generate default routes for all areas
- To reduce the number of OSPF adjacencies and LSA exchanges on the multi-access network
- To redistribute BGP routes automatically
- To replace the Area Border Router
Correct Answer: 2. To reduce the number of OSPF adjacencies and LSA exchanges on the multi-access network
Explanation:
On an OSPF broadcast multi-access network, allowing every router to establish a full adjacency with every other router would create unnecessary control-plane overhead. OSPF therefore elects a Designated Router and a Backup Designated Router. Other routers establish full adjacencies primarily with the DR and BDR, reducing the number of relationships that must be maintained. The DR also plays an important role in distributing link-state information across the segment. DR election applies to suitable multi-access network types and does not make the DR an Area Border Router or automatically create default routes.
Question 2. Which OSPF packet type is used to discover neighbors and maintain OSPF neighbor relationships?
- Link-State Request
- Database Description
- Link-State Update
- Hello
Correct Answer: 4. Hello
Explanation:
OSPF routers use Hello packets to discover neighboring routers and maintain established neighbor relationships. Hello packets carry important parameters such as area information, timers, router priority, and the identities of known neighbors. For two routers to form a normal OSPF adjacency, several key parameters must be compatible. Database Description packets are used later when routers summarize their link-state databases, while Link-State Request and Link-State Update packets are used to request and transfer detailed LSA information. Understanding the function of each OSPF packet type is important when troubleshooting adjacency formation and database synchronization.
Question 3. Which OSPF router type connects one OSPF area to another area?
- Area Border Router
- Internal Router
- Designated Router
- Autonomous System Boundary Router only
Correct Answer: 1. Area Border Router
Explanation:
An Area Border Router (ABR) has interfaces participating in more than one OSPF area and connects non-backbone areas to the backbone area. ABRs maintain separate link-state databases for the areas to which they are connected and can advertise summarized inter-area routing information. An internal router has all participating interfaces in the same OSPF area. A Designated Router is elected on certain multi-access networks to reduce adjacency overhead. An Autonomous System Boundary Router performs redistribution between OSPF and another routing domain, but that function is different from connecting OSPF areas internally.
Question 4. What is the main purpose of OSPF Area 0?
- To carry only external routes
- To prevent ABRs from exchanging LSAs
- To act as the OSPF backbone through which inter-area routing information is exchanged
- To provide DHCP services
Correct Answer: 3. To act as the OSPF backbone through which inter-area routing information is exchanged
Explanation:
OSPF uses a hierarchical area design, and Area 0 is the backbone area. Other regular areas normally connect to Area 0 through Area Border Routers so that inter-area routing information can be exchanged in a structured and scalable way. This hierarchy limits the scope of certain link-state changes and reduces the amount of topology information every router needs to maintain. Area 0 does not exist only for external routes, nor does it provide non-routing network services. A sound multi-area OSPF design therefore ensures proper backbone connectivity and appropriate placement of ABRs.
Question 5. Which statement BEST describes IS-IS Level-2 routing?
- It is used only inside a single Level-1 area
- It replaces all IP forwarding with CLNS
- It can advertise only directly connected routes
- It provides inter-area routing between IS-IS areas
Correct Answer: 4. It provides inter-area routing between IS-IS areas
Explanation:
In IS-IS, Level-1 routing is used primarily within an area, while Level-2 routing provides connectivity between areas. A Level-1-2 router participates in both roles and can connect a Level-1 area to the Level-2 backbone. This hierarchical design helps IS-IS scale across large networks by limiting detailed topology information to the relevant scope. Although IS-IS originated from OSI networking, it supports IP routing efficiently and is widely used in service-provider and large enterprise networks. Understanding Level-1, Level-2, and Level-1-2 router functions is fundamental to IS-IS design.
Question 6. What is the function of an IS-IS DIS on a broadcast network?
- It helps simplify adjacency and topology representation on the multi-access network
- It redistributes all BGP routes into IS-IS
- It acts as the default gateway for end users
- It permanently blocks backup routers
Correct Answer: 1. It helps simplify adjacency and topology representation on the multi-access network
Explanation:
On an IS-IS broadcast network, a Designated Intermediate System (DIS) is elected to simplify operation of the multi-access segment. The DIS creates a pseudonode representation for the LAN, which reduces complexity in the link-state database. Although the role resembles the OSPF DR concept in some ways, the election and behavior are not identical. The DIS is not automatically an end-user default gateway and is not responsible for BGP redistribution. Understanding the differences between OSPF DR/BDR behavior and IS-IS DIS operation is important when comparing the two link-state routing protocols.
Question 7. Which BGP attribute is commonly used inside an autonomous system to indicate the preferred exit point, with a higher value preferred?
- MED
- Local Preference
- Origin
- AS_Path
Correct Answer: 2. Local Preference
Explanation:
Local Preference is a well-known BGP attribute used within an autonomous system to influence outbound path selection. A higher Local Preference value is preferred. Network administrators commonly set it to indicate which external exit should be used for reaching particular destinations. In contrast, MED is generally used to suggest an inbound entry point to a neighboring autonomous system, and lower MED values are normally preferred when compared. AS_Path records the autonomous systems a route has traversed and also plays an important role in path selection and loop prevention.
Question 8. What is the main purpose of the BGP AS_Path attribute?
- To assign VLAN IDs
- To specify OSPF costs
- To record the autonomous systems a route has traversed and help prevent routing loops
- To identify the BGP TCP port
Correct Answer: 3. To record the autonomous systems a route has traversed and help prevent routing loops
Explanation:
The AS_Path attribute contains the sequence of autonomous system numbers through which a BGP route has passed. It serves two major purposes. First, it is used during BGP best-path selection, where shorter paths are generally preferred after more influential attributes have been considered. Second, it provides loop prevention: a BGP router rejects a route if its own autonomous system number already appears in the AS_Path. Administrators can also influence inbound routing through AS-path prepending, which makes a route appear less attractive to external BGP peers by increasing the visible path length.
Question 9. Which transport protocol and port are used by BGP sessions?
- TCP port 179
- UDP port 520
- TCP port 22
- UDP port 179
Correct Answer: 1. TCP port 179
Explanation:
BGP establishes peer relationships using TCP port 179. Using TCP allows BGP to rely on a connection-oriented transport mechanism for reliable delivery of routing updates instead of implementing its own transport reliability. Before two BGP peers can exchange routing information, basic IP reachability and the TCP session must be established successfully. When a BGP peer remains in an early state, administrators should verify addressing, routing, ACLs, TCP 179 reachability, source-interface configuration, and BGP neighbor parameters. This differs from protocols such as RIP, which uses UDP, and OSPF, which runs directly over IP.
Question 10. Which BGP attribute is normally preferred when its value is LOWER and is commonly used to influence how a neighboring autonomous system enters your network?
- Local Preference
- Weight
- Router ID
- MED
Correct Answer: 4. MED
Explanation:
The Multi-Exit Discriminator (MED) can be advertised to an external BGP neighbor to suggest which entry point the neighbor should prefer when multiple links exist between autonomous systems. A lower MED value is normally preferred when the attribute is compared. MED is often described as an inbound traffic-engineering hint, although the neighboring AS retains control over its own routing decisions. Local Preference, by contrast, is used internally to influence outbound routing and favors higher values. Administrators should understand the scope and direction of each BGP attribute before applying route-policy changes.
Question 11. What is the PRIMARY purpose of a routing policy?
- To replace the IP routing table
- To match routes and apply controlled actions such as permit, deny, or attribute modification
- To assign MAC addresses dynamically
- To provide encryption for routing protocols
Correct Answer: 2. To match routes and apply controlled actions such as permit, deny, or attribute modification
Explanation:
A routing policy allows administrators to control how routing information is accepted, advertised, redistributed, or modified. Policies normally contain matching conditions and actions. For example, a policy might match specific prefixes and then permit them while changing a BGP attribute, or deny unwanted routes from being advertised. Routing policies are essential for traffic engineering, route filtering, redistribution control, and enforcement of routing design requirements. Because a policy can significantly alter routing behavior, administrators should understand match order, permit/deny logic, and attribute modification before deploying policies in production networks.
Question 12. Why is route summarization commonly used in large networks?
- To increase the number of routing table entries
- To disable redundant paths
- To reduce routing-table size and limit the propagation of detailed topology information
- To eliminate the need for routing protocols
Correct Answer: 3. To reduce routing-table size and limit the propagation of detailed topology information
Explanation:
Route summarization combines multiple more-specific routes into a shorter aggregate prefix. This can reduce the number of routes carried across network boundaries, decrease control-plane processing, and improve network stability by hiding some internal topology changes from other parts of the network. Summarization must be designed carefully because an overly broad summary can attract traffic for destinations that are not actually reachable. Administrators should ensure that summarized prefixes accurately represent reachable address blocks and that discard or null routes are used appropriately when needed to prevent routing loops or black-hole behavior.
Question 13. What is the PRIMARY purpose of STP in an Ethernet switching network?
- To encrypt Ethernet frames
- To prevent Layer 2 forwarding loops while preserving redundant links
- To assign IP addresses to switches
- To advertise BGP prefixes
Correct Answer: 2. To prevent Layer 2 forwarding loops while preserving redundant links
Explanation:
Ethernet switching networks often include redundant links for availability. Without a loop-prevention mechanism, those links can create broadcast storms, repeated frame copies, and unstable MAC-address tables because Ethernet frames do not have a TTL field like IP packets. Spanning Tree Protocol (STP) builds a loop-free logical topology by placing selected redundant links into non-forwarding roles while leaving them available as backups. If an active path fails, STP can recalculate the topology and activate an alternate link. This provides redundancy without allowing multiple simultaneous Layer 2 forwarding paths to create loops.
Question 14. What does a switch learn from the source MAC address of an incoming Ethernet frame?
- Which interface should be associated with that source MAC address in the MAC address table
- The destination IP route
- The OSPF router ID
- The BGP autonomous system number
Correct Answer: 1. Which interface should be associated with that source MAC address in the MAC address table
Explanation:
Ethernet switches dynamically build MAC address tables by examining the source MAC address of received frames. When a frame enters an interface, the switch learns that the source MAC is reachable through that interface and records the association in its forwarding table. When forwarding later frames, the switch checks the destination MAC address against the table to determine the outgoing port. Unknown unicast traffic is flooded within the relevant broadcast domain. This learning-and-forwarding process operates at Layer 2 and is independent of OSPF, BGP, or IP routing-table construction.
Question 15. Which multicast protocol is used by routers to learn IPv4 multicast group membership from directly connected hosts?
- PIM
- MSDP
- BGP
- IGMP
Correct Answer: 4. IGMP
Explanation:
Internet Group Management Protocol (IGMP) is used between IPv4 hosts and directly connected multicast routers to communicate multicast group membership. A receiver uses IGMP to indicate interest in receiving traffic sent to a specific multicast group. The multicast router then uses multicast routing protocols and forwarding state to deliver the traffic where receivers exist. PIM, by contrast, operates between routers to build multicast distribution trees. Understanding the separation between host membership signaling and router-to-router multicast routing is fundamental when diagnosing multicast traffic that fails to reach intended receivers.
Question 16. What is the PRIMARY purpose of PIM in an IP multicast network?
- To assign multicast MAC addresses
- To replace IGMP on end hosts
- To build and maintain multicast forwarding trees between routers
- To provide unicast DNS resolution
Correct Answer: 3. To build and maintain multicast forwarding trees between routers
Explanation:
Protocol Independent Multicast (PIM) is used by routers to establish multicast distribution paths. It is called protocol independent because it relies on the existing unicast routing table for reachability information rather than maintaining an entirely separate unicast topology database. Different PIM modes use different methods to build source-based or shared multicast trees. IGMP operates between receivers and their local multicast router, whereas PIM distributes multicast traffic across the routed network. Troubleshooting multicast therefore requires checking both receiver membership and router forwarding-tree formation.
Question 17. Which IPv6 address type is automatically configured on an IPv6-enabled interface and is used for communication on the local link?
- Link-local address
- Anycast address only
- IPv4-mapped address
- Global broadcast address
Correct Answer: 1. Link-local address
Explanation:
IPv6 interfaces automatically use link-local addresses, normally from the FE80::/10 range, for communication on the local network segment. Link-local addresses play an important role in IPv6 functions such as neighbor discovery and routing-protocol communication. They are not forwarded by routers beyond the local link. IPv6 does not use broadcast addressing in the same way as IPv4; multicast is used for many functions that relied on broadcast in IPv4. A device may simultaneously have a link-local address and one or more global or unique-local addresses.
Question 18. What is the PRIMARY purpose of VRRP?
- To create multicast groups
- To encrypt routing updates
- To synchronize BGP routing tables
- To provide first-hop gateway redundancy by presenting a virtual gateway to hosts
Correct Answer: 4. To provide first-hop gateway redundancy by presenting a virtual gateway to hosts
Explanation:
Virtual Router Redundancy Protocol (VRRP) improves gateway availability for end hosts. Multiple routers participate in a VRRP group while presenting a shared virtual IP address that hosts use as their default gateway. One router operates as the master and forwards traffic for the virtual gateway. If the master fails, a backup router can assume the role, allowing hosts to continue using the same configured gateway address. VRRP therefore protects against first-hop router failure without requiring every host to dynamically change its default-gateway configuration.
Question 19. What is the PRIMARY purpose of an ACL on a router or switch?
- To elect the OSPF DR
- To assign VLAN tags
- To classify and permit or deny traffic based on configured matching conditions
- To generate multicast streams
Correct Answer: 3. To classify and permit or deny traffic based on configured matching conditions
Explanation:
An Access Control List (ACL) consists of rules that match packet characteristics and apply a permit or deny decision when the ACL is used for traffic filtering. Depending on the ACL type and platform, conditions can include source and destination addresses, protocols, ports, or other fields. ACLs can also be referenced by other features for traffic classification. Rule order and matching logic matter because an earlier matching entry can determine the result before later entries are evaluated. Administrators should therefore design ACLs carefully and consider the effect of implicit behavior on unmatched traffic.
Question 20. An enterprise requires scalable internal routing, controlled Internet route selection, Layer 2 loop prevention, and redundant default gateways. Which combination BEST satisfies these requirements?
- DHCP, DNS, FTP, and SNMP
- OSPF or IS-IS for the internal network, BGP for external routing, STP for Layer 2 loop prevention, and VRRP for gateway redundancy
- IGMP, ARP, Telnet, and NTP
- ACLs only for all four requirements
Correct Answer: 2. OSPF or IS-IS for the internal network, BGP for external routing, STP for Layer 2 loop prevention, and VRRP for gateway redundancy
Explanation:
Each requirement belongs to a different networking function. OSPF or IS-IS can provide scalable link-state routing inside an enterprise or provider network. BGP controls routing between autonomous systems and provides policy-based Internet route selection. STP creates a loop-free Layer 2 switching topology while preserving redundant links, and VRRP provides a resilient virtual default gateway for end hosts. Combining technologies according to their intended functions produces a more robust design than trying to solve routing, switching, and availability requirements with one protocol. Huawei’s H12-821 exam explicitly covers routing, OSPF, IS-IS, BGP, Ethernet switching, reliability, security, multicast, IPv6, WLAN, and related datacom technologies.