Docsity

APISEC Certified API Security Analyst Exam, Exams of Cybersecurity

Toggle sidebar
bg1
APISEC Certified API Security Analyst Exam
Question 1. What is a primary benefit of statelessness in RESTful API design?
A) Improved security through encryption
B) Simplified scalability and horizontal scaling
C) Automatic authentication
D) Built-in rate limiting
Answer: B
Explanation: Statelessness allows each request to be processed independently, making it easier
to scale APIs horizontally since no session information needs to be stored on the server.
Question 2. Which of the following is NOT a CRUD operation in RESTful APIs?
A) Create
B) Read
C) Update
D) Encrypt
Answer: D
Explanation: CRUD stands for Create, Read, Update, Delete; encrypt is not one of these primary
operations.
Question 3. What is a common injection point in JSON API payloads?
A) Property names
B) Array indices
C) Data values
D) Protocol headers
Answer: C
Explanation: Attackers often exploit data values in JSON structures to inject malicious code, such
as SQL or script injections.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f

Partial preview of the text

Download APISEC Certified API Security Analyst Exam and more Exams Cybersecurity in PDF only on Docsity!

Question 1. What is a primary benefit of statelessness in RESTful API design? A) Improved security through encryption B) Simplified scalability and horizontal scaling C) Automatic authentication D) Built-in rate limiting Answer: B Explanation: Statelessness allows each request to be processed independently, making it easier to scale APIs horizontally since no session information needs to be stored on the server. Question 2. Which of the following is NOT a CRUD operation in RESTful APIs? A) Create B) Read C) Update D) Encrypt Answer: D Explanation: CRUD stands for Create, Read, Update, Delete; encrypt is not one of these primary operations. Question 3. What is a common injection point in JSON API payloads? A) Property names B) Array indices C) Data values D) Protocol headers Answer: C Explanation: Attackers often exploit data values in JSON structures to inject malicious code, such as SQL or script injections.

Question 4. Which protocol is used by gRPC for its transport layer? A) HTTP/ B) HTTP/1. C) FTP D) SMTP Answer: A Explanation: gRPC uses HTTP/2 to enable efficient, multiplexed communication with reduced latency. Question 5. What is a risk specific to GraphQL APIs? A) SQL injection B) Nested query attacks C) Buffer overflow D) CSRF Answer: B Explanation: GraphQL APIs are susceptible to nested query attacks, which can cause excessive resource consumption. Question 6. Why is verifying webhook event authenticity important? A) To reduce network bandwidth B) To prevent unauthorized callbacks C) To improve API documentation D) To enable data serialization Answer: B Explanation: Verifying authenticity ensures that only genuine events trigger actions, preventing malicious actors from abusing callback URLs.

Question 10. How can attackers exploit BOLA vulnerabilities? A) By guessing passwords B) By manipulating IDs in API URIs C) By injecting SQL D) By brute-forcing tokens Answer: B Explanation: Attackers change object IDs in API requests to access data or actions intended for other users. Question 11. What is the key difference between authentication and authorization in APIs? A) Authentication checks permissions, authorization checks identity B) Authentication checks identity, authorization checks permissions C) Both are identical processes D) Authentication encrypts data, authorization decrypts it Answer: B Explanation: Authentication verifies who a user is, while authorization determines what they are allowed to do. Question 12. Which vulnerability is associated with weak token management? A) Broken Authentication B) Broken Object Level Authorization C) Excessive Data Exposure D) Security Misconfiguration Answer: A Explanation: Weak token management can lead to Broken Authentication, allowing attackers to impersonate users.

Question 13. What is a common attack vector against JWTs? A) Buffer overflow B) "None" algorithm attack C) Cross-Site Scripting D) DNS spoofing Answer: B Explanation: JWT vulnerabilities include attacks where the "none" algorithm is used to bypass signature verification. Question 14. What is credential stuffing? A) Random password generation B) Reusing stolen credentials across multiple sites C) Encrypting credentials D) Storing credentials in plaintext Answer: B Explanation: Credential stuffing attacks use stolen usernames and passwords on different systems to gain unauthorized access. Question 15. What risk arises if an API relies on the UI to filter data rather than the backend? A) Broken Authentication B) Excessive Data Exposure C) Security Misconfiguration D) SSRF Answer: B Explanation: Relying on the UI to filter data can lead to excessive data exposure, as sensitive data may still be accessible via API responses.

Question 19. What is an example of a business flow attack? A) Buying a limited-edition item via automated scripts B) Encrypting database records C) Changing API documentation D) Using outdated authentication Answer: A Explanation: Business flow attacks target application logic, such as purchasing restricted items by automating processes. Question 20. What does Server-Side Request Forgery (SSRF) involve? A) Forcing APIs to fetch internal resources or cloud metadata B) Encrypting server data C) Buffer overflow on the client D) Rate limiting requests Answer: A Explanation: SSRF tricks APIs into making requests to internal systems or metadata endpoints, potentially exposing sensitive data. Question 21. Which misconfiguration can enable cross-origin attacks on APIs? A) Improper CORS settings B) Encrypted tokens C) Strict input validation D) Disabled PUT method Answer: A Explanation: Incorrect CORS (Cross-Origin Resource Sharing) settings may allow attackers to interact with APIs from unauthorized domains.

Question 22. What are shadow APIs? A) APIs with encrypted endpoints B) Undocumented APIs C) APIs with strict input validation D) APIs using HTTP/ Answer: B Explanation: Shadow APIs are undocumented endpoints that may be exposed and lack proper security controls. Question 23. What is a zombie API? A) An API with active rate limiting B) An old or deprecated API version left running C) An API with broken authentication D) An API with strict authorization Answer: B Explanation: Zombie APIs are outdated versions that remain active and often lack current security patches. Question 24. What is the risk of unsafe consumption of third-party APIs? A) Improved performance B) Trusting unvalidated data, leading to vulnerabilities C) Enhanced documentation D) Increased encryption Answer: B Explanation: Consuming data from third-party APIs without validation can introduce malicious data or exploits.

Question 28. What does SAST stand for in API security testing? A) Secure Application Security Testing B) Static Application Security Testing C) Server Authorization Security Test D) Standard API Security Tool Answer: B Explanation: SAST is Static Application Security Testing, which analyzes source code for vulnerabilities. Question 29. What is the goal of negative testing for APIs? A) Ensuring APIs fail gracefully when given invalid input B) Encrypting error messages C) Documenting successful API calls D) Generating random endpoints Answer: A Explanation: Negative testing checks how APIs handle incorrect or malicious inputs and ensures appropriate error handling. Question 30. Which API gateway feature helps enforce security policies across endpoints? A) URL obfuscation B) Centralized authentication and authorization C) Data serialization D) Performance logging Answer: B Explanation: API gateways provide centralized control over authentication, authorization, and other security policies.

Question 31. Which protocol is commonly used for mutual TLS (mTLS) authentication in APIs? A) FTP B) HTTP/ C) TLS/SSL D) SMTP Answer: C Explanation: mTLS uses the TLS/SSL protocol to authenticate both client and server certificates. Question 32. What does OAuth2 provide in API security? A) Data encryption B) Delegated authorization C) Rate limiting D) Input validation Answer: B Explanation: OAuth2 enables delegated authorization, allowing third-party applications limited access to resources. Question 33. What is OpenID Connect (OIDC) used for? A) Logging API traffic B) User authentication on top of OAuth C) Encrypting API payloads D) Rate limiting Answer: B Explanation: OIDC is an authentication layer built on top of OAuth2, providing identity verification. Question 34. What is the purpose of input validation in APIs?

B) For detecting anomalous or suspicious activity C) For improving serialization D) For documenting endpoints Answer: B Explanation: Logging helps detect and investigate unusual patterns that may indicate an attack. Question 38. What is the risk of enabling unnecessary HTTP methods on API endpoints? A) Improved encryption B) Increased attack surface for exploits C) Enhanced documentation D) Better rate limiting Answer: B Explanation: Allowing unused methods (like PUT or DELETE) can expose endpoints to attacks or unintended actions. Question 39. Which data format is NOT commonly used for API serialization? A) JSON B) XML C) YAML D) PDF Answer: D Explanation: PDF is not a serialization format used for APIs; JSON, XML, and YAML are standard choices. Question 40. What is a schema in GraphQL? A) A collection of endpoints B) A definition of data types, queries, and mutations

C) An encryption key D) An authentication token Answer: B Explanation: A GraphQL schema defines the structure and capabilities of the API, including types, queries, and mutations. Question 41. What is a primary security concern with GraphQL mutations? A) Exposure to buffer overflow B) Unauthorized data modification C) Excessive document generation D) Rate limiting Answer: B Explanation: Mutations allow data changes, so improper authorization can let attackers alter data they shouldn't. Question 42. What is the primary function of Protocol Buffers (Protobuf) in gRPC? A) Encrypting payloads B) Efficient serialization and deserialization of structured data C) Logging API traffic D) Documenting endpoints Answer: B Explanation: Protobuf efficiently serializes structured data for transport in gRPC communications. Question 43. What is the risk of verbose error messages in APIs? A) Documentation improvement B) Exposure of sensitive implementation details to attackers

D) Disabling encryption Answer: B Explanation: Verifying the sender and using secrets ensures only trusted events trigger actions. Question 47. What does excessive data exposure look like in API responses? A) Returning more information than the client requested B) Encrypting all responses C) Logging every request D) Rate limiting API calls Answer: A Explanation: APIs should only return necessary data; excess data may expose sensitive information. Question 48. What is the danger of account lockout not being implemented? A) Increased documentation B) Susceptibility to brute-force and credential stuffing attacks C) Improved authentication D) Reduced resource consumption Answer: B Explanation: Without lockout, attackers can repeatedly try passwords, increasing compromise risk. Question 49. What is the main purpose of API gateways like Kong or Apigee? A) To provide graphical interfaces B) To enforce security, authentication, and traffic management policies C) To encrypt all API traffic D) To serialize data

Answer: B Explanation: API gateways centralize and enforce security policies, authentication, and rate limiting. Question 50. What does mTLS add to the standard TLS protocol? A) Rate limiting B) Mutual authentication of both client and server C) Data serialization D) API documentation Answer: B Explanation: mTLS requires both parties to present certificates, verifying identities on both ends. Question 51. What is the risk of improper input validation? A) Enhanced API performance B) Increased susceptibility to injection attacks C) Improved authentication D) Reduced documentation Answer: B Explanation: Poor validation lets attackers inject malicious data, exploiting vulnerabilities. Question 52. What is a fixed window algorithm used for? A) Encrypting API responses B) Implementing rate limiting by allowing requests within defined time windows C) Input validation D) Logging traffic Answer: B

Question 56. What is a benefit of using strict schemas for input validation? A) Enhanced serialization B) Reduced risk of accepting malicious or unexpected data C) Improved documentation D) Increased rate limiting Answer: B Explanation: Strict schemas define acceptable data formats, rejecting unsafe or malformed inputs. Question 57. What does DAST stand for? A) Dynamic Application Security Testing B) Data Authorization Security Test C) Documented API Security Tool D) Default Authentication Security Token Answer: A Explanation: DAST tests running applications by interacting with them and observing responses. Question 58. What is API enumeration? A) Listing all possible endpoints and resources B) Encrypting all API traffic C) Generating random API tokens D) Logging traffic Answer: A Explanation: Enumeration seeks to find every accessible API endpoint and resource for security testing.

Question 59. What is the purpose of authentication tokens in APIs? A) To document endpoints B) To verify the identity of the requesting client or user C) To serialize data D) To encrypt payloads Answer: B Explanation: Tokens prove that requests come from authenticated users or clients. Question 60. What is a benefit of using JSON for API payloads? A) Improved encryption B) Human-readable and widely supported format C) Rate limiting D) Input validation Answer: B Explanation: JSON is easy for humans to read and for machines to parse, making it a popular choice. Question 61. What is the main risk with XML in APIs? A) Lack of serialization B) Susceptibility to XML External Entity (XXE) attacks C) No support for documentation D) Lack of authentication Answer: B Explanation: XXE attacks exploit XML parsers to access internal files or resources. Question 62. What is the benefit of using YAML in API configurations?