Which HTTP method is commonly used for creating resources in REST?

  • DELETE
  • GET
  • POST
  • PUT
The HTTP method commonly used for creating resources in REST is POST. It is used to submit data to be processed to a specified resource.

In SOA, _______ is a common approach for integrating heterogeneous systems.

  • Enterprise Service Bus (ESB)
  • Representational State Transfer (REST)
  • Service-Oriented Architecture
  • Web Service Description Language (WSDL)
In Service-Oriented Architecture (SOA), the Enterprise Service Bus (ESB) is a common approach for integrating heterogeneous systems. The ESB facilitates communication and integration between different services and applications in a loosely coupled manner.

How does unit testing contribute to the continuous integration process of web services?

  • By increasing the likelihood of bugs in production
  • By providing rapid feedback on code changes
  • By skipping the testing phase
  • By slowing down the integration process
Unit testing contributes to continuous integration by providing rapid feedback on code changes, helping catch issues early in the development process.

In performance testing, what does the term 'latency' refer to?

  • The amount of data that can be processed simultaneously
  • The delay between sending a request and receiving the response
  • The number of concurrent users
  • The speed of data transmission
Latency in performance testing refers to the delay between sending a request and receiving the corresponding response, measuring the time taken for data to travel between points.

GraphQL uses a _______ to execute and deliver data to the client.

  • Command
  • Query
  • Request
  • Transaction
GraphQL uses a query to define the data requirements and execute requests to retrieve the necessary data.

Which regulation primarily deals with data protection and privacy in the European Union?

  • CCPA (California Consumer Privacy Act)
  • FERPA (Family Educational Rights and Privacy Act)
  • GDPR (General Data Protection Regulation)
  • HIPAA (Health Insurance Portability and Accountability Act)
GDPR is the primary regulation in the European Union that focuses on data protection and privacy.

In a case where a website allows user comments, which security measure is vital to prevent XSS through user inputs?

  • CSRF protection
  • Database normalization
  • HTTPS implementation
  • Input sanitization
To prevent XSS through user inputs, it's crucial to implement input sanitization, which involves cleaning and validating user input to mitigate potential script injection.

What is the main advantage of using elliptic curve cryptography over RSA in web services?

  • Faster decryption speed
  • Greater compatibility with legacy systems
  • Improved resistance to quantum attacks
  • Smaller key sizes with equivalent security
Elliptic curve cryptography offers the advantage of providing equivalent security with smaller key sizes, making it more efficient for resource-constrained environments like web services.

When designing a web service for a healthcare application, what encryption standards must be considered for compliance?

  • FERPA
  • GDPR
  • HIPAA
  • PCI DSS
Healthcare applications must consider compliance with the Health Insurance Portability and Accountability Act (HIPAA) for encryption standards.

Which protocol is specifically designed for message security in SOAP web services?

  • HTTPS
  • SAML
  • SOAP
  • WS-Security
WS-Security is specifically designed for message security in SOAP web services. It provides a comprehensive set of specifications for securing the content of SOAP messages, including encryption, digital signatures, and authentication. WS-Security ensures that the communication between SOAP-based web services is secure and protected from unauthorized access.

How does SOAP handle asynchronous communication?

  • By implementing a callback mechanism
  • By relying on RESTful principles
  • Through the use of HTTP polling
  • Using the WS-ReliableMessaging standard
SOAP handles asynchronous communication by implementing a callback mechanism. In this approach, the client includes information about how the server can reach it, allowing the server to send a response outside the traditional request-response cycle. This enables non-blocking communication and supports scenarios where immediate responses are not required.

What is the primary architectural constraint of a RESTful web service?

  • Scalability
  • Security
  • Session Management
  • Statelessness
The primary architectural constraint of a RESTful web service is statelessness. This means that each request from a client contains all the information needed to understand and fulfill the request, and no session state is stored on the server between requests.