Focused practice
Practice Design Patterns questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about Design Patterns
Why learners struggle
Why Design Patterns questions are commonly missed
NAT questions are missed when learners confuse the four address types (inside local, inside global, outside local, outside global) or misapply the interface direction. A translation rule can look correct but still fail if the ACL, interface, or direction is wrong.
- ·Inside local vs inside global — inside local is the private source, inside global is the translated public address
- ·PAT overloads — many sources share one public IP using unique port numbers
- ·Interface direction — ip nat inside and ip nat outside must be on the correct interfaces
- ·Static NAT vs dynamic NAT vs PAT — each serves a different use case
- ·The NAT ACL identifies traffic to translate, not traffic to permit or deny
- ·A missing translation can look like a routing problem if the interfaces are misconfigured
Watch out for
Common Design Patterns exam traps
- ▸PAT allows many inside hosts to share one public address by using port numbers.
- ▸NAT rules depend on correct inside and outside interface configuration.
- ▸The ACL used for NAT identifies traffic to translate; it is not always a security filtering ACL.
- ▸Static NAT maps one private address to one public address, while PAT overloads translations.
Question index
All Design Patterns questions (31)
Click any question to see the full explanation, or start a practice session above.
What is the primary benefit of the Facade pattern when working with legacy libraries?
Easy2When implementing the Command pattern in Python, what is a primary advantage of using a 'Command' class hierarchy?
Medium3In the Decorator pattern, why is it preferred to use the functools.wraps decorator when creating a function decorator?
Medium4Which THREE of the following are common characteristics of the Observer pattern?
Medium5Which of the following is a classic use case for the Builder pattern in Python?
Easy6Which TWO of the following are structural patterns?
Easy7When implementing the Bridge pattern, what is the primary structural requirement to effectively decouple an abstraction from its implementation?
Hard8You are applying the Facade pattern to simplify a complex subsystem consisting of three interacting legacy modules. What is the primary architectural requirement for the Facade class to be effective?
Hard9Which pattern is most appropriate for a scenario where you want to provide a standard interface for a suite of related or dependent objects without specifying their concrete classes?
Easy10Which THREE of the following are benefits of the Factory Method pattern?
Medium11Which THREE of the following are standard ways to implement the 'Strategy' pattern in Python?
Medium12In the Memento pattern, which component is responsible for storing the state of the Originator without exposing its internal structure?
Medium13In the Observer pattern, what is the best way to prevent memory leaks when the Subject maintains a list of Observers?
Medium14You are utilizing the Mediator pattern to reduce coupling between components. Which of the following describes the role of the Mediator?
Hard15You are implementing the Command pattern. How can you best support the 'Undo' operation for a command that changes a document's state?
Medium16You are implementing a Proxy pattern to provide lazy initialization for a resource-heavy object. Which technique is most effective for checking if the real object exists without triggering its constructor prematurely?
Medium17You are implementing the Visitor pattern to add operations to a set of stable class structures. Why is the 'Double Dispatch' mechanism essential?
Hard18Which TWO of the following are valid ways to implement the Proxy pattern in Python?
Hard19You are designing a State pattern. Which component is responsible for changing the state of the context object?
Medium20Which Python design principle is most strongly supported by the Adapter pattern?
Easy21Which TWO of the following are components of the Model-View-Controller (MVC) pattern frequently seen in Python web frameworks?
Medium22When implementing the Strategy pattern, what is the best way to inject the strategy into the context object?
Medium23You are implementing a Prototype pattern. What is the difference between shallow copy and deep copy in the context of cloning objects?
Medium24You are using the Composite pattern to represent a tree structure of UI elements. What is the most critical challenge when implementing a 'get_parent' method in this pattern?
Hard25In the Chain of Responsibility pattern, how does a handler decide whether to pass a request to the next handler?
Medium26Which THREE design patterns are considered 'Behavioral' patterns?
Medium27Which TWO of the following are true about the Template Method pattern?
Medium28Which THREE of the following are essential properties of a robust State pattern implementation?
Hard29You are implementing a Singleton pattern in Python using a metaclass. Which mechanism ensures that the __call__ method of the metaclass is only executed once for a specific class?
Medium30You are implementing the Flyweight pattern to optimize memory usage for a text processor. What is the distinction between 'intrinsic' and 'extrinsic' state?
Hard31Which TWO of the following are common risks when implementing the Singleton pattern in Python?
MediumOther domains
All PCPP2 exam domains
Frequently asked questions
- What does the Design Patterns domain cover on the PCPP2 exam?
- NAT questions usually test how private addresses are translated, when to use static NAT, dynamic NAT or PAT, and how inside/outside interfaces affect traffic flow.
- How many questions are in this domain?
- This page lists all 31 Design Patterns questions in the PCPP2 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only Design Patterns questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.