mediumMultiple Choice
CCNP Practice Question: Examine the following configuration: policy-map…
Examine the following configuration:
policy-map SHAPE_POLICY
class class-default
shape average 10000000 service-policy INNER_POLICY
What is the purpose of the nested service-policy (service-policy INNER_POLICY) under the shape command?
⚠ Common exam trap
Cisco often tests the concept that a nested service-policy under shape applies after shaping, not before, and that it is a valid method for hierarchical QoS, leading candidates to incorrectly assume it is unsupported or that it shapes traffic twice.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
It applies the INNER_POLICY to traffic after shaping, allowing per-class queuing within the shaped rate.
The nested service-policy under the shape command applies the INNER_POLICY to traffic after it has been shaped to 10 Mbps. This allows per-class queuing and scheduling within the shaped rate, enabling finer QoS control such as bandwidth allocation or priority queuing for specific traffic classes while ensuring the overall output does not exceed the shaped rate.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
It applies the INNER_POLICY to traffic after shaping, allowing per-class queuing within the shaped rate.
Why this is correct
In hierarchical QoS (HQoS), the outer policy performs shaping at the parent level, and after the shaper has metered the traffic to the configured rate, the inner policy is applied to the shaped output. This allows the child policy to classify and queue traffic into multiple classes, all within the aggregate shaped bandwidth. The result is that each class gets its own queue and scheduling behavior, but the total output never exceeds the parent's shaped rate, so per-class queuing occurs inside the shaper's token bucket.
- ✗
It applies the INNER_POLICY to traffic before shaping, which is not supported.
Why it's wrong here
The inner policy is never applied before shaping in a valid hierarchical QoS configuration. In Cisco IOS, the child service-policy is attached to the parent's shape statement and is executed after the shaper has released packets, meaning the traffic first passes through the shaping mechanism and then through the child policy's classification and queuing. Applying a policy before shaping would require the child policy to be on the interface or in the parent's bandwidth statement, which is not how the shape command with service-policy is designed to work.
- ✗
It is used to shape traffic twice, first at 10 Mbps and then again based on INNER_POLICY.
Why it's wrong here
The inner policy does not perform a second shaping operation; it is typically configured for queuing (e.g., class-based weighted fair queueing) or policing, not shaping. The parent policy shapes at 10 Mbps, and the child policy manages the internal distribution of that shaped bandwidth among different traffic classes. If the inner policy were to shape again, it would unnecessarily delay traffic and create nested token buckets, but the actual configuration only allows one shaping layer at the parent level and uses the child for scheduling, not for another rate limit.
- ✗
This configuration is invalid because service-policy cannot be nested under shape.
Why it's wrong here
Nesting a service-policy under the shape command is a valid and supported feature in Cisco IOS for implementing hierarchical QoS. This is explicitly allowed on platforms that support HQoS, and it is the standard way to combine a shaper with per-class queuing. The configuration is not invalid; rather, the order of operations is parent shaper first, then child policy, which is exactly what the command sequence 'shape average 10000000' followed by 'service-policy INNER_POLICY' produces.
About these practice questions
This 350-401 question is part of Courseiva's 1,923-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.