For effective API testing in a CI/CD pipeline, it is crucial to maintain an updated _________ environment.
- Development
- Production
- Staging
- Testing
For effective API testing in a CI/CD pipeline, it is crucial to maintain an updated Staging environment. The Staging environment closely mirrors the production environment and allows teams to validate the API's behavior in a controlled setting before deploying to production. This helps ensure a smooth transition and reduces the risk of issues in the live environment.
In API security, what is the purpose of an access token in OAuth?
- Authenticate the Client
- Authorize the Client
- Identify the Resource Server
- Identify the User
The access token in OAuth is primarily meant to identify the user who authorized the application, allowing the application to access resources on behalf of that user. It does not necessarily identify the client or resource server.
Negative testing often involves sending ________ types of data to check for API robustness.
- Invalid
- Null
- Random
- Valid
Negative testing involves sending invalid types of data to check how well the API handles unexpected inputs. Valid data is used in positive testing, not negative testing.