IBM Exam Questions

2.The SQLPortfolioAdapter retrieves a list of stock symbols in the portfolio from the adapter’

A Worklight mobile application needs to aggregate news about stock symbols in a portfolio using
Worklight adapters and server-side JavaScript.

Given the following high-level schema for aggregation,
1.The application calls getPortfolioNews from the SQLPortfolioAdapter.
2.The SQLPortfolioAdapter retrieves a list of stock symbols in the portfolio from the adapter’s SQL
datasource by calling getStockSymbolList.

A.
For each of the stock symbols in the portfolio, The SQLPortfolioAdapter calls getStockNews
from HTTPStockNewsAdapter with the stock symbol as parameter.
getPortfolioNews

B.
HTTPStockNewsAdapter retrieves news from the stock news HTTP API and returns it to
SQLPortfolioAdapter.
3.SQLPortfolioAdapter returns portfolio news to the application.
Which procedure(s) must be declared in the SQLPortfolioAdapter.xml file?
getPortfolioNews and getStockNews

A.
For each of the stock symbols in the portfolio, The SQLPortfolioAdapter calls getStockNews
from HTTPStockNewsAdapter with the stock symbol as parameter.
getPortfolioNews

B.
HTTPStockNewsAdapter retrieves news from the stock news HTTP API and returns it to
SQLPortfolioAdapter.
3.SQLPortfolioAdapter returns portfolio news to the application.
Which procedure(s) must be declared in the SQLPortfolioAdapter.xml file?
getPortfolioNews and getStockNews

C.
getPortfolioNews and getStockSymbolList

D.
getPortfolioNews, getStockSymbolList and getStockNews

Explanation: