What role does contract testing play in integration testing of web services?
- Only applicable in monolithic architectures
- Testing individual services in isolation
- Validating user interfaces
- Verifying agreements between services
Contract testing involves verifying the contracts or agreements between services, ensuring they interact as expected.
What is the primary purpose of UDDI in web services?
- Creating user interfaces
- Discovering and publishing web services
- Managing databases
- Running server-side scripts
UDDI (Universal Description, Discovery, and Integration) is primarily used for discovering and publishing web services, allowing businesses to find and interact with each other's services.
What is the primary difference in the way data is retrieved between GraphQL and REST?
- Both retrieve data in the same way
- GraphQL retrieves fixed data structures, while REST allows clients to request only the data they need
- None of the above
- REST retrieves fixed data structures, while GraphQL allows clients to request only the data they need
GraphQL allows clients to specify the exact data they need, minimizing over-fetching or under-fetching, while REST returns fixed data structures.
_______ is a technique used in Microservices to ensure that all services are updated simultaneously.
- Blue-Green Deployment
- Canary Deployment
- Continuous Integration
- Feature Toggling
Canary Deployment is a technique in Microservices where updates are rolled out gradually to ensure simultaneous updates of all services.
When performing integration testing, what is typically the first step?
- Check the user interface for consistency
- Integrate the components and test their interaction
- Test the individual units in isolation
- Validate the overall functionality of the web service
The typical first step in integration testing is to test the individual units in isolation before validating their interaction as a whole.
Mock services can be used to simulate _______ in a service-oriented architecture.
- Database transactions
- External dependencies
- Front-end design
- Real-time data
Mock services are often employed to simulate external dependencies in a service-oriented architecture, enabling thorough testing.
SOAP messages are typically transported using _______ protocol.
- HTTP
- SMTP
- TCP
- UDP
SOAP messages are commonly transported over HTTP protocol, making them platform-independent and easily accessible.
Achieving _______ compliance is critical for web services handling medical data.
- Privacy
- Regulatory
- Security
- Standard
Web services handling medical data must achieve regulatory compliance to meet legal requirements and ensure data security.
OAuth provides _______ as a way to grant limited access to an HTTP service.
- Cookies
- Headers
- Sessions
- Tokens
OAuth provides tokens as a way to grant limited access to an HTTP service. Tokens are issued after successful authentication and authorization and are used to access protected resources without exposing the user's credentials.
________ is a common vulnerability in HTTP not found in HTTPS due to its lack of encryption.
- Cross-Site Scripting (XSS)
- Man-in-the-Middle Attacks
- Plain Text Transmission
- SQL Injection
Plain text transmission is a common vulnerability in HTTP, where data is sent without encryption. In HTTPS, the lack of encryption is mitigated, as the TLS protocol encrypts data during transmission, making it challenging for attackers to intercept and understand the content. This enhances security by preventing unauthorized access to sensitive information.