mediummultiple choiceObjective-mapped

A cloud-hosted image-processing API accepts a URL parameter so it can download a picture and generate a thumbnail. Logs show a user submitting `http://169.254.169.254/latest/meta-data/` and receiving instance credentials in the response. Which attack is being used?

Question 1mediummultiple choice
Full question →

A cloud-hosted image-processing API accepts a URL parameter so it can download a picture and generate a thumbnail. Logs show a user submitting `http://169.254.169.254/latest/meta-data/` and receiving instance credentials in the response. Which attack is being used?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

SQL injection

SQL injection targets database queries, while this issue abuses HTTP requests from the server.

B

Distractor review

Cross-site scripting (XSS)

XSS injects script into web pages for execution in a browser, not server-side metadata retrieval.

C

Best answer

Server-side request forgery (SSRF)

SSRF tricks the server into making an internal request to a sensitive resource on the attacker’s behalf.

D

Distractor review

Cross-site request forgery (CSRF)

CSRF abuses a logged-in user's browser state, not a server fetching an internal URL.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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.

Related practice questions

Related SY0-701 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this SY0-701 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Server-side request forgery (SSRF) — This is server-side request forgery because the attacker is supplying a URL that causes the application server to make a request to an internal-only service. The metadata endpoint at 169.254.169.254 is a common cloud target because it can expose temporary credentials and configuration details. SSRF is especially dangerous in cloud environments when applications accept user-controlled URLs or webhooks and then fetch those resources without strict validation or network restrictions. Why others are wrong: XSS would require malicious content executed in a victim browser, which is not happening here. CSRF depends on a victim browser sending authenticated requests to a website, not on a backend service fetching a URL. SQL injection involves manipulating database queries with crafted input, but the evidence here shows an HTTP request to a metadata service rather than a database interaction.

What should I do if I get this SY0-701 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.