Top IBM API Connect Interview Questions and Answers
by Nithyanandham, on Dec 22, 2022 4:24:50 PM
Q1. What is IBM API connect?
IBM API Connect is a complete, intuitive and scalable API platform that lets you create, expose, manage and monetize APIs across clouds. This means you and your customers can power digital applications and spur innovation. IBM API Connect is also available with other capabilities as an.
Q2. Why use IBM API connect?
IBM API Connect has two main focuses: the first is providing best in class API Management tooling, and the second is having a cloud native solution. This allows users to create, manage, and secure applications that are deployed across a variety of on-premises and cloud environments
Q3. Benefits of IBM API Connect?
- Securely unlock assets. Securely expose existing business services via APIs to new mobile, IoT and web applications.
- Drive innovation. Attract and engage developers through API socialisation with enterprise governance built-in.
- Gain insights.
Q4. What is API in IBM API connect?
IBM API Connect is an integrated API management offering, where all of the steps in the API lifecycle, and the actions that surround it, are performed within the offering.
Q5. What is the difference between API Connect and App Connect?
The IBM API Connect and IBM App Connect available on IBM Cloud is used to implement the functionality. API Connect is used to provide OAuth based authorization security to microservices, and App Connect Enterprise for easier and seamless integration of APIs (with zero code) for a business user.
Q6. What are the common protocol used in API testing?
Q7. What is API testing?
API testing is a type of software testing that analyzes an application program interface (API) to verify it fulfills its expected functionality, security, performance and reliability.
Q8. How do you build an API?
- Start with your goals and intended users.
- Design the API architecture.
- Develop your API.
- Test your API.
- Monitor your API and iterate on feedback.
Q9. What is a REST API vs API?
The primary goal of API is to standardize data exchange between web services. Depending on the type of API, the choice of protocol changes. On the other hand, REST API is an architectural style for building web services that interact via an HTTP protocol.
Q10. What is REST API testing?
REST API testing is an open-source automation technique to test RESTful APIs for web apps. It is commonly used for testing JSON and XML based web apps. It is compatible with all methods: GET, PUT, POST, PATCH and DELETE. REST is a Java library.
Q11. Name the different methods of performing an Input Injection?
- Simulation using Low-level Input
- Robotic simulation
- Direct method Invocation
- Device Driver simulation
- Accessibility interface invocation.
Q12. Why do clients need an API integration strategy?
Setting up an API strategy can promote innovation, collaboration, and improve customer service. Organizations that fail to integrate all their different IT systems together and leverage the power of APIs will watch themselves lose market share to those who do.
Q13. What are the core capabilities of API connect?
The IBM API Connect solution provides an infrastructure, tools, and facilities that allows users to create, manage, and stage APIs. The ability to perform tasks in the IBM API Connect user interfaces is controlled through user roles, and the permissions that are assigned to those roles
Q14. How do you publish API in IBM API connect?
- In the API Designer, click Publish then click Add and Manage Targets.
- Click Add a different target. You'll see the Sign in to IBM API Connect dialog.
- Enter your API Connect host address, Username, and Password. Click Sign in. You'll see the Select an organization and catalog dialog.
- Select the desired organization, and select the Sandbox Catalog.
- Click Next. You'll see the Select an App dialog. Click the desired app, and then click Save.
- In the API Designer, click Publish again.
- In the drop-down selection, under Other Orgs, click the target you just created.
- Select Publish application and Stage or publish products, then select Select specific products. Select acme-bank, and then click Publish.
Q15. How create API in IBM API connect?
- Create a folder to hold your API and Product definitions, and change to that folder in a command window.
- Change directories to your LoopBack project and enter the following command: apic edit
- Log in to APIConnect Designer with the appropriate method.
- Click Add > New API.
- Enter the appropriate information to create a REST API definition.
- In the Title field, enter Branches.
- The Name and Base Path fields autopopulate with the terms branches and /branches respectively.
- Leave the Version field at 1.0.0.
- Leave the default Additional properties as they are.
- You do not add a product at this time, click Create API.
- If the API Editor help screen appears, click the sentence Learn more about composing APIs, or click Got it! to access the main screen immediately.
- In the side bar, click Lifecycle to display the Lifecycle panel.
- In the side bar, click Security Definitions to display the Security Definitions panel.
- In the side bar, select Paths to display the Paths panel. Create a new path by clicking the Add Path icon .
- In the Path field, replace the default path segment with /details. When an operation is called, this path segment is appended to the URL of your API.
- By default, a single GET operation is already in your Path. Click the GET button to expand the setting dialog.
- For the operation, provide a summary and a description as in the following table.
Table 1. Operation definition valuesFieldValue Summary Branch details Description Retrieve details of the current branches of BankA
- In the side bar, click Definitions to display the Definitions panel. Add a Definition by clicking the Add Definition icon .
- Expand your new definition by clicking new-definition-1. For the Name field, enter address, and a Description of the format of the address object.
- Using the same Definitions panel, configure the Properties definition according to the following table. Edit the default property and then create new properties by clicking Add Property and editing the default values.
Table 2. PropertiesProperty NameDescriptionTypeExample street1 The first line of the address string 4660 La Jolla Village Drive street2 The second line of the address string Suite 300 city The city of the address string San Diego state The state of the address string CA zip_code The zip code of the address string 92122
- Create a second definition by clicking the Add icon in the Definitions panel.
- Name the definition branch and, in the Description field, enter The format of the branch field.
- Configure the branch definition to have the properties listed in the following table by creating new properties and editing the default property. Create new properties by clicking Add Property.
Table 3. PropertiesProperty NameDescriptionTypeExample address The address of the branch address type The type of branch string atm id The ID of the branch string 9d72ece0-7e7b-11e5-9038-55f9f9c08c06
- In the side bar, select Paths to display the Paths panel. For the /details Path, click GET to expand the available settings. Include the branch definition in the GET operation Status Code 200 response by clicking the Schema field and selecting branch from the drop-down list.
- In the submenu navigation bar, click the Assemble tab to open the assemble view.
- Access the invoke policy property sheet by clicking the invoke label.
- Populate the Title, Description, and URL fields according to the following table. When called, your API now invokes the existing Branches API and uses its response. In this tutorial, no transformations are applied to the response of this API and so the entirety of the response is returned to the caller. You can see this response at https://apictutorials.mybluemix.net/branches.
Table 4. invoke fieldsFieldValue Title Branches Invoke Description Invoke an API to retrieve the status of all branches in the BankA system URL https://apictutorials.mybluemix.net/branches
- Click the Save icon to save your changes.
- Click the Source tab to view the OpenAPI (Swagger 2.0) definition of your API. All the configuration you have performed is included in this definition, either as part of the standard OpenAPI (Swagger 2.0) schema, or as part of the extension.
Q16. What are the tools used for documentation?
Description: Small description about what a function does
Syntax: Syntax about the parameter of the code, the sequence in which they occur, required and optional elements etc.
Parameters: Functions parameters
Error Messages: Syntax of error messages
Example Code: Small snippet of code
Related Links: Related functions
Q17. Explain The Caching Mechanism?
Caching is a process of storing server responses at the client end. It makes the server save significant time from serving the same resource again and again. The server response holds information which leads a client to perform the caching. It helps the client to decide how long to archive the response or not to store it at all.
Q18. Write the procedure or the modules of creating an API in a stepwise manner?
- Management and administration
Q19. What types of Bugs will API testing find?
- Unused flags
- not implemented errors
- Inconsistent error handling
- Multi-threading issues
- Improper errors.
Q20. What are the common tests performed on API’s?
- Verification of the API whether it is updating any data structure
- Verify if the API does not return anything
- Based on input conditions, returned values from the API’s are checked
- Verification of the API whether it triggers some other event or calls another API.
Q21. Mention what the main areas to be taken into consideration while writing an API document?
- source of the content
- Document plan or sketch
- Delivery layout
- Information required for each function in the document
- Automatic document creation programs.
Q22. What are the main challenges of API testing?
- Parameter Selection
- Parameter Combination
- Call sequencing.
Q23. Mention what are the different application integration styles?
- Shared database
- Batch file transfer
- Invoking remote procedure (RPC)Swapping asynchronous messages over a message oriented middle-ware (MOM)
Q24. Explain what are the principles of API test design?
Setup: Create objects, start services, initialize data etc
Execution: Steps to exercise API or scenario, also logging
Verification: Oracles to evaluate execution outcome
Reporting: Pass, failed or blocked
Clean up: Pre-test state
Q25. What are REST principles?
- Contract first approach
- Uniform Resource identifiers.
- Client-Server model.
- Layered architecture.
Q26. What is the REST paradigm?
Representational state transfer (REST) is a software architectural style that was created to guide the design and development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of an Internet-scale distributed hypermedia system, such as the Web, should behave.