SOA XML Questions
SOA XML Questions
UNIT-1
PART-A
ANS:D
2) XML is
a) Platform independent
b) Language Independent
c) Both A & B
d) None of the above
ANS:C
3) Find the correct syntax of the declaration which defines the XML version
a) <?xml version=”1.0” ?>
b) <xml version=”1.0” />
c) <?xml version=”1.0” />
d) None of the above
ANS:A
ANS:B
a) HTML
b) PHP
c) JAVASCRIPT
d) None of the above
ANS:A
ANS:C
ANS:A
ANS:B
ANS:C
ANS:D
ANS:D
ANS:D
ANS:A
ANS:B
b) SAX
c) None of the above
d) Both A and B
ANS:D
ANS:B
ANS:C
ANS:A
ANS:C
ANS:D
21) Which of the following is not true for SAX-SIMPLE API FOR XML
a) It is event event based
b) Whole document is not loaded into memory
c) Both A and B
d) None of the above
ANS:D
ANS:B
23) Which of the following is used to check XML for syntax errors
a) XML Browser
b) XML Validator
c) XML Parser
d) None of the above
ANS:B
ANS:B
ANS:D
PART-B
ANS:B
ANS:B
ANS:A
ANS:C
c) <!-- -->
d) </-- -- >
ANS:C
ANS:B
32) To add the attribute named Type to the <customer> tag the syntax will be
a) <customer attribute Type=”exelent”>
b) <customer Type attribute =”exelent”>
c) <customer Type attribute_type=”exelent”>
d) <customer Type=”exelent” >
ANS:D
ANS:D
34) The syntax for writing the minimum occurrence for an element is
a) <xsd:element ref=” note” min=” 0” />
b) <xsd:elements ref=” note” min=” 0” />
c) <xsd:elements ref=” note” minOccur=”0” />
d) <xsd:elements ref=” note” minOccurs=” 0” />
ANS:D
35) Which of the following is used to specify the attribute list of an element
a) ATTLIST
b) ?ATTLIST
c) !ATTLIST
d) #ATTLIST
ANS:C
ANS:C
37) Which of the following is not a regular expression functions provided by XQuery.
a) matches($input, $regex)
b) replace($input, $regex, $string)
c) tokenize($input, $regex)
d) None of the above
ANS:D
ANS:A
ANS:B
ANS:A
UNIT-2
PART-A
Answer: a
Explanation: Clients access a component that complies with SOA by passing a
message containing metadata to be acted upon in a standard format.
a) Description
b) Messaging
c) Business Process
d) QOS
Answer: d
Explanation: QoS is established, and the service is instantiated.
6. Which of the following is used to define the service component that performs the service?
a) WSDL
b) SCDL
c) XML
d) None of the mentioned
Answer: b
Explanation: SCDL stands for Service Component Definition Language.
7. Which of the following is commonly used to describe the service interface, how to bind
information, and the nature of the component’s service or endpoint?
a) WSDL
b) SCDL
c) XML
d) None of the mentioned
Answer: a
Explanation: The most commonly used message-passing format is an Extensible Markup
Language (XML) document using the Simple Object Access Protocol (SOAP).
8. Which of the following provides commands for defining logic using conditional
statements?
a) XML
b) WS-BPEL
c) JSON
d) None of the mentioned
Answer: b
Explanation: Business process is a collection of activity graphs.
9. Which of the following is used as middleware layer in the following figure?
a) XML
b) ESB
c) UDDI
d) None of the mentioned
Answer: b
Explanation: An ESB may be part of a network operating system or may be implemented
using a set of middleware
products.
10. Which of the following figure is associated with Description Module in SOA stack?
a)
b)
c)
d) None of the mentioned
Answer: d
Explanation: WSDL is a language for describing web services and how to access them.
11. Which of the following is used to aid for locating services in SOA?
a) catalog service
b) data abstraction services
c) data bus
d) all of the mentioned
Answer: a
Explanation: Service catalogs are dynamic and under constant modification.
12. Point out the correct statement.
a) An intranet is a network that is constructed through the consolidation of separate networks
b) The Information Technology Infrastructure Library (ITIL) is developed by the United
Kingdom’s Office of Government Commerce (OGC)
c) Message passing in SOA requires the use of four different protocol types
d) All of the mentioned
Answer: b
Explanation: ITIL is the most widely accepted approach to IT service management in the
world.
13. Which of the following catalog service requires some sort of synchronization or update to
maintain a unified data store across the servers involved?
a) global
b) standalone
c) federated
d) all of the mentioned
Explanation: Global catalog service serves multiple sites.
14. How many different protocol types are required for message passing in SOA?
a) 1
b) 2
c) 3
d) 4
15. Point out the wrong statement.
a) An ESB is both necessary and essential to a Service Oriented Architecture
b) A client connected to an ESB communicates over a network protocol such as HTTP,
Representational State Transfer (REST), or Java Message Service (JMS) to a component (or
service)
Answer: d
Explanation: Most mature SOA implementations favor orchestration over choreography.
22. Which of the following element is used by orchestrated business process commonly referred
to as?
a) conductor
b) coordinator
c) orchestrator
d) all of the mentioned
Answer: c
Explanation: orchestrator is the central controlling service element.
23. SOA _____ an extension of the Service Oriented Architecture to respond to events that occur
as a result of business processes.
a) 2.0
b) 3.0
c) 4.0
d) All of the mentioned
Answer: a
Explanation: SOA 2.0 can allow low-level events to trigger a business process, correlate events
with the information contained in the SOA design.
24. Point out the wrong statement.
a) Event handling is part of event-driven SOA or SOA 2.0
b) An ESB provides a lower layer for event management with a messaging infrastructure
c) UML is the modeling language of the Object Management Group that provides a method
for creating visual models for software
d) None of the mentioned
Answer: b
Explanation: An ESB isn’t required by SOA, but it is often used to create a compliant and
efficient service architecture.
25. Which of the following application has the ability to query event data in the same way that a
stock ticker or trading application can query trading data?
a) CVE
b) CEV
c) XML
d) None of the mentioned
Answer: a
Explanation: The CVE application provides the same kind of heartbeat and correlation
functionality that a stock trading application does.
PART-B
26. What does CVE in SOA design stand for?
a) Causal Vector Engine
b) Continuous Vector Engine
c) Causal Valuable Engine
d) None of the mentioned
Answer: a
Explanation: Many CVE systems display events in a console in different contexts so that an
observer can analyze the display and take appropriate actions.
27. Which of the following is a collaborative effort where the logic of the business process is
pushed out to the members?
a) Orchestration
b) Choreography
c) SOA 2.0
d) None of the mentioned
Answer: b
Explanation: In choreography, each Web service that is part of a business process is aware of
when to process a message and with what client or component it needs to interact with.
28. In the ______ model, data and messages are exchanged in a Service Data Object (SDO).
a) CSA
b) SCA
c) UDDI
d) None of the mentioned
Answer: b
Explanation: Components are coded with their service logic and their dependencies, QoS is
established, and the service is instantiated.
29. 10. How many types of methods are used to combine web services?
a) 1
b) 2
c) 3
d) None of the mentioned
Answer: b
Explanation: Two main methods are used to combine Web services: orchestration and choreography.
30. What should be the message given by Web Service 3 to Web Service 2 in the following
figure for execution in cooperative way?
a) Reply
b) Invoke
c) Reject
d) None of the mentioned
Answer: a
Explanation: With choreography, business process execution is a cooperative affair.
31. Which of the following is used to aid for locating services in SOA?
a) catalog service
b) data abstraction services
c) data bus
d) all of the mentioned
Answer: a
Explanation: Service catalogs are dynamic and under constant modification.
34. How many different protocol types are required for message passing in SOA?
a) 1
b) 2
c) 3
d) 4
Answer: b
Explanation: Message passing in SOA requires the use of two different protocol types: the
data interchange format and the network protocol that carries the message.
35. Point out the wrong statement.
a) An ESB is both necessary and essential to a Service Oriented Architecture
b) A client connected to an ESB communicates over a network protocol such as HTTP,
Representational State Transfer (REST), or Java Message Service (JMS) to a component (or
service)
c) Messages are most often in the form of the SMIL
d) None of the mentioned
Answer: c
Explanation: Messages are most often in the form of the eXtensible Markup Language
(XML).
Answer: c
Explanation: The prototype defines the capabilities of the Web service, and what operations are
to be performed, as well as the messages that must be sent to support the operation.
UNIT-3
PART-A
PART-A
1 - Which of the following layer in Web Service Protocol Stack is responsible for
centralizing services into a common registry and providing easy publish/find
functionality?
a) Service Transport
b)XML Messaging
c)Service Description
d) Service Discovery
Answer : D
Explaination
Service Discovery is responsible for centralizing services into a common registry and providing
easy publish/find functionality.
Answer : C
Explaination
Answer : D
Explaination
(C)
5- How response is sent in XML-RPC?
a) XML responses are appended to the url of the HTTP response.
b) XML responses are embedded in the body of the HTTP response.
c) Both of the above.
d) None of the above.
Answer:
(B)
6- Which of the following is correct about SOAP?
Answer:
(D)
7- Which of the following component of Web service describes interfaces to web services?
a) UDDI
b) WSDL
c) SOAP
d) None of the above.
Answer:
UDDI
Option:
(A)
8- Which of the following is correct about SOAP?
(C)
C. Application IDE
D. Application Components
Answer: Option D
A. PHP
B. XML
C. CGI
D. CSS
Answer: Option B
A. HTTP
B. DNS
C. UDDI
D. XML
Answer: Option C
A. WML
B. HTML
C. XML
D. CSS
Answer: Option C
C. None of these
Answer: Option D
A. One way
B. Request response
C. Solicit response
Answer: Option D
15. What are the needs to be taken care for ports while binding?
B. A port must not determine any binding information other than address information
C. Both A and B
D. None
Answer: Option C
A. SOAP
B. UDDI
C. WSDL
D. All of these
Answer: Option D
Ans: A
a. XML
b. Network
c. SOAP
d. WSDL
Ans:C
19. Which of the following is used to define the service component that performs the service ?
a. WSDL
b. SCDL
c. XML
d. None of the mentioned
Ans:b
20. IN ___________ the service provider only needs to supply a single operation interface
a) synchronous request reply
b) asynchronous request reply
c) SOAP
d) WSDL
Ans:a
a) Node
b) Registry
c) Affiliated registry
d) XML
Ans: b
PART-B
A. A message is protocol independent, and it describes the data being exchanged between the
consumers and web service providers
B. Each web service has two messages input and output. The input determines the parameters for
the web service and the output determines the return data from the web service
C. Each message element contains zero or more part parameters, one for each parameter of the
web service function
D. All of these
Answer: Option D
A. A service may have more than one endpoint with each one defined by its own port element
B. The port element relates to a specific binding, and contains information on how to access it
(URI)
C. Both A and B
D. None of these
Answer: Option C
3-Which of the following layer in Web Service Protocol Stack is responsible for centralizing
services into a common registry and providing easy publish/find functionality?
a) Service Transport
b) XML Messaging
c) Service Description
d) Service Discovery
Answer:d
Service Discovery
Option:
(D)
4 - Which of the following is the benefits of having XML based WEB services?
a)Using XML eliminates any networking, operating system, or platform binding.
b) Web Services based applications are highly interoperable application at their core level.
c) Both of the above
Answer : C
Explaination
Both of the above options are the benefits of having XML based WEB services.
Answer : D
Explaination
6. _________ defines the connection needed from the abstract web service
Ans:B
Ans :b
Ans:a
Ans:d
Ans:b
Ans: d
12. Which of the following element is used by orchestrated business process commonly referred as ?
a) Conductor
b) Coordinator
c) Orchestrator
d) All the mentioned
Ans:C
13. Which of the following is a collaborative effort where the logic of the business process is pushed
out to the members ?
a) Orchestration
b) Choreography
c) SOA 2.0
d) None of the mentioned
Ans:b
Ans:a
a) Service
b) Bus
c) Methods
d) all of the mentioned
Ans: a
UNIT- 4
PART-A
a) Struts Services
b) Web Services
c) Java Service
d) Browser Action
Ans:B
Ans:D
3. Which of the following role of web service architecture implements the service and
makes it available on the Internet?
a) Service Provider
b) Service Requestor
c) Service Registry
d) None of the above
Ans:A
a) UDDI
b) XML
c) SOAP
d) WSDL
Ans:B
5. What is RPC?
Ans:B
Ans:C
a) Document/encoded
b) RPC/literal
c) Document/literal
d) RPC/encoded
Ans:B
a) Authentication
b) Authorization
c) Confidentiality
d) Integrity
Answer: Option C
9Web Services are _______________.
Ans:B
a) False
b) True
Ans:B
Ans:B
13. Which of the following provides data authentication and authorization between client and
service?
a) SAML
b) WS-SecureConversion
c) WS-Security
d) All of the mentioned
Answer: a
14. Which of the following is a web services protocol for creating and sharing security context?
a) WS-Trust
b) WS-SecureConversion
c) WS-SecurityPolicy
d) All of the mentioned
Answer: B
15. Which of the following is part of a general WS-Policy framework?
a) WS-Trust
b) WS-SecureConversion
c) WS-SecurityPolicy
d) All of the mentioned
Answer: c
16. which of the following extends WS-Security to provide a mechanism to issue, renew, and
validate security tokens?
a) WS-Trust
b) WS-SecureConversion
c) WS-SecurityPolicy
d) All of the mentioned
Answer: a
17. Which of the following messaging protocol is used with XML in BPEL?
a) WS-Coordination
b) WS-Addressing
c) WS-Transactions
d) All of the mentioned
Answer: d
18. Which of the following object is used to describe the data, usually as part of the XML
schema ?
a) Operation
b) portType
c) types
d) none of the mentioned
Answer: c
19. Which of the following is not a core layer in Web Service Protocol Stack?
a) Service Transport
b) XML Messaging
c) Service Description
d) Service Locator
Answer : D
20. Which of the following layer in Web Service Protocol Stack is responsible for centralizing
services into a common registry and providing easy publish/find functionality?
a) Service Transport
b) XML Messaging
c) Service Description
d) Service Discovery
Answer : D
21. ----------------- element is required if the ReplyTo or FaultTo elements are used.
a) RelatesTo
b) From
c) MessageId
d) Action
Answer : C
a) WS-Addressing
b) WS-Reliable Messaging
c) WS-Security
d) WS- Metadata Exchange
Answer: a
a) WS-Addressing
b) WS-Reliable Messaging
c) WS-Security
d) WS- Metadata Exchange
Answer: b
24. The _________ construct introduces a rule that states that all of the policy assertions within
the construct must be met.
a) Full
b) Whole
c) All
d) Entire
Answer : C
25. The _________ element is one way to simply link an element with one or more policies
a) PolicyLink
b) PolicyReference
c) PolicyURIs
d) All the above
Answer : b
PART-B
PART-B
Answer : a
2.The ____________________ Construct surrounds multiple policy assertions and indicates that
there is a choice between them, but that one must be chosen
a) One element
b) Single element
c) ExactlyOne element
d) EqualToOne element
Answer : C
a) RelatesTo
b) From
c) MessageId
d) ReplyTo
Answer : A
Answer : A
Answer : D
Answer : D
a) CSS + HTTP
b) XML + HTML
c) XML + HTTP
d) CSS + JAVA
Ans:C
Ans:D
Ans:B
a) SignatureMethod
b) Reference
c) PortType
d) KeyInfo
Answer : c
Answer : c
13. Which one is not a syntax rules that are applicable for SOAP message
Answer : d
Answer : a
15.Which among the following is not a part of Web service protocol stack
a) Service transport
b) Xml Messaging
c) Service discovery
d) Service registry
Answer: d
UNIT-5
PART-A
Answer: A
2. How many Phases are there in SOA delivery life cycle
a) Five
b) Four
c) Seven
d) None of the above
Answer :D
3. Service-oriented design is a _________________ phase
a) design-driven
b) standards-driven
c) modular-driven
d) time-driven
Answer :b
4. The service layers designed during this stage can include the orchestration layer
a) Orchestration
b) Choreography
c) Both a and b
d) None of the above
Answer:a
Answer: C
Answer:a
Answer : D
Answer:C
a) service automation
b) enterprise automation
c) business automation
d) code automation
Answer:c
10 Which of the following catalog service requires some sort of synchronization or update to
maintain a unified data store across the servers involved?
a) standalone
b) federated
c) global
d) All of the mentioned
Answer: global
11. How many different protocol types are required for message passing in SOA?
a) 1
b) 2
c) 3
d) 4
Answer: 2
12 Point out the wrong statement.
a) A client connected to an ESB communicates over a network protocol such as HTTP,
Representational State Transfer (REST), or Java Message Service (JMS) to a component
(or service)
b) Messages are most often in the form of the SMIL
c) An ESB is both necessary and essential to a Service Oriented Architecture
d) None of the mentioned
Answer: Messages are most often in the form of the SMIL
a) They cannot serve the role of a global catalog service where two or more catalog servers
are merged to include several site
b) They can be part of a federated catalog service
c) They can be standalone catalog servers serving a single site
d) None of the mentioned
Answer: They cannot serve the role of a global catalog service where two or more catalog
servers are merged to include several sites
Answer: 1.1
16.Which of the following essential object in WSDL is used to support message transfer?
a) binding
b) type
c) bus
d) none of the mentioned
Answer: binding
17.Which of the following object is used to describe the data, usually as part of the XML
schema?
a) prototype
b) types
c) operation
d) none of the mentioned
Answer: types
18.Point out the correct statement.
a) The port or endpoint is the unique address of the service
b) The message content is the data and metadata that the service operation is performed on
c) The service object is a container where the service resides
d) All of the mentioned
Answer: WS-BPEL
20. Which of the following messaging protocol is used with XML in BPEL?
a) WS-Addressing
b) WS-Coordination
c) WS-Transactions
d) All of the mentioned
Answer: BPMN
24.Which of the following system models creates a graphical representation of software systems
in the form of a set of diagram types?
a) XMI
b) SysML
c) UML
d) None of the mentioned
Answer: UML
25Which of the following is an open-source extension of the part of the UML system dealing
with profiles?
a) SysML
b) UML
c) XMI
d) None of the mentioned
ANS:A
Answer: SysML
PART-B
ANS:C
Answer: The UML standard is the work of the Object Management Group
A. Firewalls or routers are the mechanisms for securing an SOA business environment.
B. Security policy decisions are made and carried out within an Enterprise Service Bus
(ESB).
C. Identities exist for both users and services, and both must be subject to the same
controls.
D. The creation of roles for business process task lists are used to prevent business
partner access to protected assets.
E. There is a need to manage identity and security across a range of systems and services
that are implemented in a diverse mix of new and old technologies.
Ans: C,E
5) A company has prioritized their most important requirements for SOA to be the
need to speed up integration, reduce application redundancy and provide the flexibility to
change service implementations. Which type of project should be recommended?
A. Create a common metadata model that can be used for all development projects.
B. Implement an Enterprise Service Bus (ESB) and registry/repository as a connectivity
layer in the SOA architecture
C. Document the existing architecture, legacy systems, and interfaces. Make this available in a
common repository that can be accessed by all developers.
D. Use business modeling tools to model and simulate the application development process and
identify bottlenecks. Address highest priority bottlenecks that can be automated to E.
Ans: B
10) Organizations that do not adopt SOA will experience which outcome?
Ans: C
11) A business has been 'doing' SOA for a while and is becoming disillusioned with the
results. They are not seeing the Return on Investment (ROI) they expected even though
they have created several hundred services. What is the likely cause of this problem?
A. Services are replicated based on language and geographic needs.
B. Developers need better training on how to create reusable services.
C. Governance processes are not in place to review and approve services.
D. Scaling the environment is challenging for such large SOA implementations.
Ans: C
12) What is a method for verifying the business success of an SOA solution?
A. Pilot the solution and solicit feedback from stakeholders and subject matter experts.
B. Implement appropriate Key Performance Indicators (KPIs) at multiple levels of the
solution.
C. Implement a technology think-tank integrated with the lines of business and with overall
executive sponsorship.
D. Implement a Center of Excellence (CoE) to provide a tight linkage with business to define
services and operational characteristics at technical and business levels.
Ans: B