The answer is to enforce server-side object-level authorization checks before returning any document. This is correct because the vulnerability is an Insecure Direct Object Reference (IDOR), where the application blindly trusts user-supplied input like the `docId` parameter without verifying that the authenticated user actually owns or has permission to access that specific resource. The core fix for an IDOR vulnerability is always server-side authorization—never rely on client-side controls or hidden parameters, as attackers can easily manipulate them. On the Security+ SY0-701 exam, this scenario tests your understanding of access control failures and the principle of least privilege; a common trap is thinking you can fix IDOR by obfuscating the `docId` (e.g., using a hash) instead of validating permissions server-side. Remember the mnemonic: **S.O.A.P.** — Server-side Object Authorization Prevents IDOR.
SY0-701 Threats, Vulnerabilities, and Mitigations Practice Question
This SY0-701 practice question tests your understanding of threats, vulnerabilities, and mitigations. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Web server access log excerpt:
10:41:12 GET /portal/document?docId=4411 200 user=jcarter
10:41:14 GET /portal/document?docId=4412 200 user=jcarter
10:41:15 GET /portal/document?docId=4413 200 user=jcarter
Application debug log:
[INFO] Document lookup completed successfully.
[WARN] No authorization check performed after object lookup.
[INFO] Returned file owner: finance2
Based on the exhibit, what is the BEST fix for the vulnerability being exploited?
A user with a standard account can retrieve documents by changing the `docId` value in the request. The application returns another employee's file without any authorization error.
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "best"
Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
Web server access log excerpt:
10:41:12 GET /portal/document?docId=4411 200 user=jcarter
10:41:14 GET /portal/document?docId=4412 200 user=jcarter
10:41:15 GET /portal/document?docId=4413 200 user=jcarter
Application debug log:
[INFO] Document lookup completed successfully.
[WARN] No authorization check performed after object lookup.
[INFO] Returned file owner: finance2
A
Add client-side JavaScript to hide document IDs from the user interface.
Why wrong: Client-side hiding may reduce casual browsing, but it does not stop direct request tampering or automated attacks.
B
Enforce server-side object-level authorization checks before returning any document.
The application is returning objects to an authenticated user without verifying whether that user is allowed to access each specific record.
C
Require users to change passwords more frequently to prevent unauthorized document access.
Why wrong: Password rotation does not address the core issue, which is missing authorization on object retrieval.
D
Place the document server behind a load balancer to prevent direct access to the application.
Why wrong: A load balancer does not fix broken access control logic inside the application and would not stop parameter tampering.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enforce server-side object-level authorization checks before returning any document.
The vulnerability is an Insecure Direct Object Reference (IDOR), where the application trusts user-supplied input (the `docId` parameter) without verifying that the authenticated user is authorized to access the requested document. The best fix is to enforce server-side object-level authorization checks before returning any document, ensuring that the server validates the user's permissions against the specific resource ID before processing the request.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
Add client-side JavaScript to hide document IDs from the user interface.
Why it's wrong here
Client-side hiding may reduce casual browsing, but it does not stop direct request tampering or automated attacks.
✓
Enforce server-side object-level authorization checks before returning any document.
Why this is correct
The application is returning objects to an authenticated user without verifying whether that user is allowed to access each specific record.
Clue confirmation
The clue word "best" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
Require users to change passwords more frequently to prevent unauthorized document access.
Why it's wrong here
Password rotation does not address the core issue, which is missing authorization on object retrieval.
✗
Place the document server behind a load balancer to prevent direct access to the application.
Why it's wrong here
A load balancer does not fix broken access control logic inside the application and would not stop parameter tampering.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may confuse client-side hiding (option A) with a valid security control, but the SY0-701 exam emphasizes that all access control must be enforced server-side, as client-side controls are trivially bypassed.
Detailed technical explanation
How to think about this question
Under the hood, IDOR exploits occur when an application uses direct references (e.g., database primary keys, file paths) without a server-side access control list (ACL) or role-based access control (RBAC) check. A robust fix involves implementing a function that, for every object retrieval, compares the user's identity (e.g., from a session token or JWT) against the object's owner or permitted roles, often using a middleware layer in frameworks like Express.js or Spring Security. In real-world scenarios, even large platforms like Facebook and Twitter have suffered IDOR breaches due to missing server-side checks, emphasizing that client-side obfuscation is never sufficient.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A security team runs a vulnerability scan on a web application and discovers an unpatched SQL injection flaw. The team prioritises remediation by CVSS score — critical flaws are patched within 24 hours, high within 7 days. Questions like this test whether you understand vulnerability management processes, scanning tools, and remediation prioritisation.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this SY0-701 question in full detail.
Threats, Vulnerabilities, and Mitigations — This question tests Threats, Vulnerabilities, and Mitigations — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Enforce server-side object-level authorization checks before returning any document. — The vulnerability is an Insecure Direct Object Reference (IDOR), where the application trusts user-supplied input (the `docId` parameter) without verifying that the authenticated user is authorized to access the requested document. The best fix is to enforce server-side object-level authorization checks before returning any document, ensuring that the server validates the user's permissions against the specific resource ID before processing the request.
What should I do if I get this SY0-701 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This SY0-701 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SY0-701 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.