My Path to SCEA 5
Join the DZone community and get the full member experience.Join For Free
i’d like to share my experiences with the sun certified enterprise architect for the java platform, enterprise edition 5 ( scea 5 ) certification. there was a couple of unclear things regarding the assignment and its deliverables and i’ve learned some interesting things. mostly about hardware estimation and deployment environments such as the “clouds”, both of which may be of an interest to somebody aiming at this certification. i only know that i passed but i do not know how well, so my way of doing things, though sufficient, may not be the best one.
the value of the certification
this certification was really valuable for me, because:
- i had to read a couple of important books that i always wanted to read but never found the time to do so (including real world java ee patterns – rethinking best practices, ejb 3 in action, uml 2 and the unified process: practical object-oriented analysis and design (2nd edition), architecting enterprise solutions: patterns for high-capability internet-based systems, design patterns: elements of reusable object-oriented software by the gang of four, core j2ee patterns)
- i got an overview of the complete java ee landscape and the non-functional characteristics of a java ee application and how they are impacted by the individual technological and architectural choices
- i had finally an opportunity to use uml in practice, including the determination of the appropriate level of detail and the proper ways to represent some concepts (like non-intrusive representation of an iteration over a collection )
step 1: the knowledge test
about the test : you get 64 questions and 2 hours and need 57% (37 questions) to pass. about half of the questions are multiple-choice and you must select all the correct answers to get the points (i believe that they tell you how many correct answers there are).
the test was quite challenging even though i answered ~ 3/4 questions correctly. paradoxically, the least i gained in web tier technologies, which in practice i use the most. the main problems were:
my resources (the sun certified enterprise architect for j2ee technology study guide book and an additional material regarding tiered architectures (this is a really important topic), ejb3 and jpa) were pretty good, but i completely missed information about jca and few “obscure” topics like the security limitations of java web start and jvm’s bytecode verification. i estimate that in total i missed about 10% of the knowledge needed. it’s important not to skip the least used parts of java ee, like those mentioned above, jax-ws etc. you should know about ajax support in jsf and of course you must know the essential changes between ejb 2.x and 3.0.
as mentioned, most questions have several correct answers and you must select all. selecting the first ones is easy but the last one is sometimes/often difficult to choose, see the next point. it’s better to concentrate first on the questions with 1 or only few responses because there is a higher probability that you will get it right.
unclear questions and answers
as usual with tests, if you aren’t on the same “brain wave” as the test author, some questions and answers will not be sufficiently clear to you, which is further complicated if you aren’t native english speaker. the key is in determining correctly what, in the question or answers, is really important and what is only a “decoration”. inevitably, due to missing knowledge, practice, or a different thinking process than the author’s, you will sometimes put too much stress on an unimportant fact or, conversely, neglect something that the author considered to be essential. for example:
- does the emphasis on “ease of development” imply the preference of jpa over jdbc? i guess so but who knows what the author thinks?
- a jee application needs to communicate with an old terminal server, will you use a session-bean using a screen-scraper or jdbc to access directly the db of the server? – in the description there was no mention of the server having any database, so how may i know whether it has one? on the other hand, screen-scraping seems to be something more suitable to a jca adapter than a @stateless bean… .
- a couple of questions required that i select the proper combination of competing technologies (such as jpa vs. jdbc) for a particular model situation. because each technology has some benefits and disadvantages, it was difficult to pick the right one because the short problem statement didn’t give me enough information to be sure how these pluses and minuses are important for the author.
- learn the advantages and disadvantages of the alternative technologies in each layer (jsf vs. jsp with jstl etc.) and when one is more suitable then the other. you will employ this knowledge also in the parts 2 and 3, so it’s really important. after all, you want to be an architect .
- though this is java ee exam, don’t push the “cool” technologies (jsf, ejb, jpa, …) everywhere and don’t do or avoid doing something only because in general it is considered to be a good or bad practice, you have to really decide based on the actual situation at hand and a rational consideration of the pros and cons. for example even using jsp with jstl tags to do database queries may be the most suitable solution in some special case.
- as usual: read the problem statement and the answers thoroughly and don’t let your pre-existing preferences and concepts form your decision.
- it’s important to have some general knowledge outside of the scope of the exam preparation books. for example you should know what spoofing and tampering are.
- read sample questions with answers or a discussion on the internet (e.g. the javaranch scea forum ) – having seen a couple of similar questions and learning what others consider important in the questions and their answers will make it easier to understand and assess correctly a question you might get. (thanks to david z. for this advice.)
step 2: the assignment
this assignment is the core of the certification, and it took me a considerable amount of time, lot of it spent by searching for uml wisdom (how to express some specific ideas in an appropriate way on a particular diagram), by estimating the resource requirements of the application and by exploring and comparing deployment environments and their non-functional characteristics (amazon cloud & other offerings, various physical and virtual server providers etc.). i could spend a lot less time on the deployment part but i really wanted to go into the detail to make it clear for myself.
first of all, make sure to read the documents  and  (see resources below) thoroughly, they will make many things clear. both are created by humphrey sheil, one of the essential people behind scea 5.
you will receive a brief introduction to the customer’s company and her needs for a java ee application, a structured description of the main requirements, a domain model, and few use case diagrams. and you are expected to deliever the following:
- a class diagram
- a component diagram
- a deployment diagram that describes the proposed physical layout of the major tiers
- a sequence or collaboration diagram for each use case
- the top three technical risks & their mitigation strategies
understanding what to do
the assignment is quite vague and only specifies a very high-level description of the main use cases and thus there are many open many questions:
- the assignment itself seems to be incomplete, the requirements (“workshop output”) mention things that are not reflected by its other parts, namely the use case diagrams, and miss information necessary for the design. for example it mentioned that a visualisation of the “product” that users may design for themselves via the webapp under construction is very important and that the customer has therefore procured a modeling tool, which can render various visualizations from an xml input. but no uc contained an invocation of the visualization and there were no details regarding the communication means supported by the tool (webservice, something else, command line, or only gui?). therefore you have to fill the missing parts for yourself and replace the missing information with assumptions, perhaps adding the unclear element to the list of risks.
- what about all the common parts of an enterprise web application that aren’t mentioned explicitly in the assignment, like user registration/login, administration? answer as per : you should include them. so i added few jsps and one or two manager ejbs without going into any detail, providing only a draft of the functionality to present that i’m aware of it.
what should be the level of detail of the class and component
diagrams? (see  for the distinction between analytical, design and
implementation classes and the corresponding level of
detail/abstraction.) according to , quite a low one, but still on the
- my domain model provided with the assignment had 11 entities and the class diagram i’ve produced had 25 classes plus 8 views (namely jsps). the level of detail of the class diagram was limited by the need to fit it on a single page, so it was on quite a high level, including the entities, important manager ejbs and few other classes representing important architectural concepts (a cache, an interceptor, a dao for accessing an external tool,…).
- the domain model maps to classes nearly directly, only with few small modifications and extensions (like introducing a parent class) , of course with the important added information of @entity or @embeddable, where appropriate.
sequence diagrams (sd) – shall the ui controller be included? or even the jsps? i did include both.
- i kept sds on a rather high level, using only as little special constructs as possible, like once a loop for expressing that something is done for each item of a collection, a ref to express the fact that an sd depends on the outcome of another sd, opt and alt , both once, where i wanted to depict an important operation that doesn’t need to be performed and to stress alternative paths.
component diagram (cd) – what is a component, i.e. the proper level of detail?
- according to the instructions in the assignment itself: “examples of components are enterprise javabean tm (ejb tm ), servlets, …”
- according to  and , the cd should be more like a package diagram, i.e. components should be on a higher level than a single class (ejb/jsp/…), and that’s what i did, creating components (as empty boxes) like “design logic and persistence”, “customer search”, “admin ui”, “user management and persistence”, “ldap dao”, in total 14 of them in 3 layers plus 3 external systems, connecting them only with the uses relationship (—->), i.e. no interfaces, ports etc.
-  suggests depicting security constraints on admin pages, more detailed jsps etc., but this isn’t in ; i followed 
designing the solution
the key part is of course the solution itself, the various diagrams are only its visible manifestation, not the thing itself. you have to decide what parts should the system have, how will they interact, how will that ensure that the non-functional and functional requirements are met etc. note down any risk you discover or an assumption that you make.
once the proper level of detail is clear and you have the solution in you mind, it isn’t too difficult to draw the class, component, sequence (or collaboration), and deployment diagrams. you may be sometimes unsure how to depict something while keeping the same level of detail, so a good uml book is handy. a good uml editor is also necessary. i used visual paradigm (modeller edition), which drove me nuts sometimes, being more of a hindrance than a help, but it was certainly better than paintbrush.
the deployment: resource estimation and hardware selection
estimating the resources needed by the application and proposing a hardware providing them was perhaps the most difficult and time-consuming task for me, because all of that was completely new to me. actually it isn’t that important part of the assignment, you can perhaps just guess something and do not need to propose any particular hardware (as h. sheil says in  at the page 7, no significant marks are allocated to this), but for me the main purpose of the certification was to learn.
the important questions here are:
- how to estimate the resource requirements?
- should we consider horizontal sw scaling, namely multiple as instances on a single physical node?
- what hw and deployment environment (physical, virtual dedicated server(s), a cloud) to choose?
how to estimate the resource requirements?
how to assess the hw necessary? is there enough input information? i think it isn’t, also, you can’t really know the real resource requirements without a proper load testing. but you can and should perform an “informed guess”.
- see an explanation why you can’t really estimate the hw in a javaranch forum. and a disagreeing follow-up: “yes. the exam specifies the no. of concurrent users, the required up time or words to that effect. at least mine did. the size of a typical request can be reasonably guessed from the estimated maximum size of the web page in the application . the tps [transactions per second] can be derived from the above two.”
i had only a little idea of what the resource requirements of an enterprise web application may be, even knowing the availability requirements and number of concurrent users from the assignment. the requirements of each application are of course different but i wanted to find out at least some limits within which my estimate should be, and fortunately i had competent collegues willing to help (thanks you, david, alda and mishanek!). so below are two examples that can give you an idea what you may or may not need.
example 1: a very high-traffic enterprise web application
the application is a j2ee learning management software that must support 2000 concurrent users with the availability of 24/7. it’s use of the db is far from being efficient and thus the db hw must be very powerful. the infrastructure is:
2 physical websphere nodes (and it’s been considered to have 2 as instances on each)
- 4 gb heap (this proved to be enough; 2gb are left for the os)
- can use up to 8 virtual processors
- no session failover due to inability of the jee application itself
- scalability: websphere needs for double users approx. 2.5 increase in cpu (verified in this case, likely not generally applicable)
- websphere itself can scale nearly linearly with factor 0.9 – 0.95 but it also depends a lot on the application
- master-slave with automatic fail-over
- 32 gb ram
- 24 (virtual) processors
example 2: sizing hw for the liferay portal
liferay portal for 5000 registered users with 500 of them accessing it concurrently would need an application server with 4gb memory and a 3ghz quad-core xeon processor; for the database, a server below 4gb/1-quad 3ghz would suffice.
example 3: recommended minimum for a production websphere as
ibm recommends: “typical deployments of ibm websphere application server v7.0 require at least a high-cpu medium instance to have access to enough physical memory and computing power. a small instance type is sufficient for development, single-user purposes only.” that means 1.7gb ram and 2 (virtual) cores each with the power of 2.5-3.0 ghz 2007 opteron or xeon processor.
because this is the minimum production configuration to run websphere, we can take is as the minimum configuration for any “standard” java ee web application.
given the examples above, other information, and my requirement for 200 concurrent users doing no resource-intensive actions and 10h/day availability, i believe one 4gb, 2-core 2.5ghz machine running both a single as and the db would be able to satisfy the (rather friendly) performance requirements in my assignment. if running on amazon ec2 with their great sla, it would be also available enough with future scalability possible either by increasing the resources or by splitting the db out of the machine – but such a single machine solution doesn’t sound enough “enterprisy” so i’ve chosen a more classical one with multiple but weak (not to waste money) virtual machines from amazon ec2.
quote: “oftentimes installations find that their database server runs out of capacity much sooner than the weblogic server does. you must plan for a database server that is sufficiently robust to handle the application. typically, a good application will require a database three to four times more powerful than the application server hardware.” [the source is unknown]
should we consider running multiple as instances on a single physical node?
“it is usually sufficient to create a single server instance on a machine, since the application
server and accompanying jvm are both designed to scale to multiple processors. however, it
can be beneficial to create multiple instances on one machine for application isolation and
rolling upgrades.” [sun java system application server 9.1 deployment planning guide, p22]
“2 processes can utilize cpu and memory better than 1 (rule of thumb: 1 instance for every 2 cpus)” [i haven't noted down the source of this advice ]
i used a low-resource machines so running multiple sw instances was not an option for me anyway.
what hw and deployment environment to choose?
to simplify my life, i didn’t consider all the applicable hardware that you can buy but only the offerings of a few providers of physical and virtual server hosting and cloud environments.
you may choose on of three deployment environments (provided that you don’t want to run your own one):
- hire a physical server – the most expensive but may be more cost-effective in the long term, especially if there is permanent high load
- hire a virtual private server (vps) – the virtual servers offerings have usually rather low resources (such as 0.5-1.5 gb, ~ 1 ghz) and are thus rarely suitable for java ee
- hire a virtual server running in a cloud – very flexible (easy addition of a new instance, scale an instance up/down only with a restart), may provide very good sla, but the final price may be much higher than the price of the virtual server itself due to various small fees that accumulate a lot. see stack overflow: is the cloud ready for an enterprise java web application? seeking a jee hosting advice .
let’s have a look at some of the physical and vps offerings :
- servint vps : unlimited vps: 2gb, radi 10, $129/m, or super vps with 4gb but still only a 1 single-core cpu
– lease and hosting of a dedicated physical server, including
- 2*dual core amd opteron 2,6ghz, 8gb ram – 4800 czk/$230 (sun fire x2200 m2 with opteron 2218)
- 2*quad core amd opteron 2,2ghz, 8gb ram – 5800 czk/$290 (sun fire x2200 m2 with opteron 2354)
- bm xseries 335 1u server, cpu intel xeon 2,4 ghz, 2gb ram, 2*36gb hdd@10k w/ raid 1 (mirroring) – 2890czk/$146
- ibm xseries 335 1u server, cpu intel xeon 2,8 ghz (otherwise as above) – 3190czk/$155
- connectivity 100 mbps
rackspace as a dedicated server provider
- basic one dedicated server: 1xdual-core amd opteron, 3.5gb ram, 2x250gb, 7.2k, sata (raid1), 2tb bandwidth – $419/month
- basic two dedicated server: 1xquad-core amd opteron, 8gb ram, 3x250gb, 7.2k, sata (raid5), 2tb bandwith – $529/mo
- vps performance comparison (11/2009)
and some cloud offerings :
rackspace as a cloud vps provider
- rackspace uses xen, raid10, every cloud server gets 4 virtual cpus, 64b. the virtual cpu is *perhaps* an equivalent of opteron 2347 he, i.e. 2ghz
- a basic vps: 1024 mb ram, 40 gb hdd ~ $44/mo (the cost of data transfer is perhaps negligible)
- a more powerful vps: 4 gb ram, 160 gb hdd - $175/mo
rackspace vs. amazon ec2:
according to rackspace
the server is persistent, raid10 storage; ec2 is cheaper but rs has
higher performance & higher disk throughput and thus it pays off
- “most common vps offerings only offer the equivalent of 128mb up to 512mb ram at most. with most vps offerings, you are not guaranteed the resources that you are paying for,..”
- “cloud server host machines have dual quad core processors. each cloud server is assigned four virtual cores and the amount of cpu cycles allocated to these cores is weighted based on the size of the cloud server. for example a 4g cloud server will have twice the weight of a 2g cloud server.”
- rackspace cloud servers versus amazon ec2: performance analysis at the bitsource
- some negative experience with rackspace (in the comment #1) – poor support, problems with crashes and a “totally dysfunctional staff and broken support system”
- ( according to rackspace ): the server is persistent, raid10 storage; ec2 is cheaper but rs has higher performance & higher disk throughput and thus it pays off
vps instances of interest:
- high-cpu medium: 1.7gb ram, 2 virtual cores each w/ 2.5 ec cu; reserved: ~ $96/month (plus traffic etc.)
- large instance: 7.5gb, 4 cu (2 virtual cores with 2 cu each); reserved: ~ $190/month (plus traffic etc.)
- notice that you can either pay standard hour rates or “reserve” the instance for a 1 or 3 years fee to get lower hourly rates (which i’ve done when computing the price per month)
- 1 ec cu (compute unit) = 1.0-1.2 ghz 2007 opteron or 2007 xeon processor
- i/o shared, two priorities: medium or high (i.e. better i/o access)
- the instances are not persistent, any changes to the filesystem will be lost after a restart, you must use amazon ebs for a permanent sotrage (and an extra fee)
additional advantages/offerings (for extra money):
- elastic load balancing => not necessary to include a load balancer of my own
- amazon relational database service (rds) [beta] = mysql 5.1 running in its own instance + advantages: auto backup, easy storage/mem/cpu scaling [restart required] – e.g. large db instance: (7.5 gb memory, 4 ecus ~ 2 cores 2ghz each, 64b) . high availability is being prepared. check the amazon rds db instance sizing guide .
- jboss middleware for ec2 (beta): jboss enterprise application platform is built on open standards and integrates jboss application server, clustering, cache, messaging, hibernate, seam and jboss transactions jta
- websphere at ec2: “typical deployments of ibm websphere application server v7.0 require at least a high-cpu medium instance to have access to enough physical memory and computing power. a small instance type is sufficient for development, single-user purposes only.” a note from from amazon: “the websphere application server ami is 32 bit and works with small and high-cpu medium ec2 instance sizes. “
- mysql on amazon ec2: articles, blogs, docs, faqs
- mysql master-slave setup for ec2 – but “we currently don’t automatically promote the slave to master as this is a very delicate operation. gotta ensure the master is really not servicing requests first, etc.”
- jboss@ec2 perfromance problems discussion (using a large instance)
- vps instances of interest:
given these offerings, i’ve opted for amazon ec2 and its two medium high-cpu instances for the as and a large instance for the db, assuming some secure communication channel (e.g. via vpn) with the external back-end enterprise systems used by the application.
 a presentation of humphrey sheil (one of the major figures behind scea 5): scea-part-two-2009-bof.pdf – a must read and re-read a couple of times; 27 slides only
 chapter 9 of sun certified enterprise architect for java™ ee study guide , second edition, m. cade, h. sheil, prentic hall 2010, isbn 0-13-148203-3 – a completely worked-out scea assignment whose parts are in ; 11 pages. note: also in safaribooksonline.com , where you can get 10-days trial access allowing you to read up to 100 pages from not more than 10 books
 javaranch scea forum – a really valuable source
 uml 2 and the unified process: practical object-oriented analysis and design (2nd edition)
 architecting enterprise solutions: patterns for high-capability internet-based systems
and even more resources
that you perhaps don’t need and don’t want to study (which i’ve done neither, i only looked into them here or there)
- pro java ee 5 performance management and optimization, apress
- sun server scalability and sizing guide
- tomcat: so you want high performance
- hp osms: tomcat sizing guide for hp proliant c-class blade servers
- mysql ha with hp
- jboss x was ce benchmark and its preparation guide, 11/2009
- latest websphere 7 and .net benchmark results stir debate
- java ee application server benchmark specjappserver (note: jops = jappserver operations per second): all results (metric, # as/db nodes, #cores…), sun hw+weblogic+oracle, 32 core , glassfish, tomcat, mysql 64b, 8 cores, 4 as instances, 1 db instance , a blog regarding the benchmark of solaris+glassfish+postgres with links to how to scale of postgres
- ibm: a list and description of various benchmarks (see especially tpc-e, tpc-app, specjbb2005 – order processing app [db in mem])
- introduction to jboss cloud
- wikipedia – workstation and server cpu brands – intel xeon and amd opteron – evolution, individual porocessors, … . current popular server opterons have speed mostly between cca 1.7 and 3.2 ghz, xeon between 1.7 and 3.8 ghz (the continual popularity of 1.7 ghz as well as the history of the competition of the processors from this brands show that speed is not everything).
the risks and assumptions
you should have collected a list of risks and assumptions already during the design process. most, if not all, application will share some risks common to all (enterprise) web application (security, performance etc.) but usually you will also have few specific ones. select the three most likely and dangerous ones, decide, how to mitigate them.
step 3: the essay
at present you have to complete the essay before submitting the assignment, but you should do it only after actually finishing the assignment. that’s because even though the questions are generic, the answers are closely related to your particular solution.
the essay consists of 8 questions and you have 90 minutes to answer them, fa ew sentences for each. for me the time was just right (though usually i tend to finish well ahead of a limit ). if you are well prepared, it is not too difficult. the best preparation for the essay is to consider
- how and why you do meet the individual non-functional requirements (performance, security, …)
what were the individual technological choices you have done and the
other possible alternatives and why you’ve rejected them. you want to
be an architect so you must prove that you are able to come up with
alternative solutions and select the best one based on sound arguments.
consider the choices pertaining to:
- the non-functional requirements in your solution
- the communication with external systems
- the patterns that you applied
- frameworks that you applied (even beyond the level of detail of the assignemnt deliverables, for example what presentation framework you’ve selected)
most questions ask you what choice regarding a particular design issue you have made, what were the alternatives, and why you have rejected them. some may ask also about the risks and mitigation strategies and what would you do if the load grows more then expected.
the exam takes time and requires some experience, but it is a good motivation and opportunity to learn, both theoreticaly and practicaly. it doesn’t prove that you are an architect, but it shows, that you know enough to be able to communicate with one and perhaps sometime will become a real architect. and of course it also shows that you are a determined person
Opinions expressed by DZone contributors are their own.