PT0-003 · Question #117
PT0-003 Question #117: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-003 to reveal the answer and full explanation for question #117. The question stem and answer options stay visible for context.
Question
During a REST API security assessment, a penetration tester was able to sniff JSON content containing user credentials. The JSON structure was as follows: < transaction_id: "1234S6", content: [ { user_id: "mrcrowley", password: ["54321#"] b < user_id: "ozzy", password: ["1112228"] ) ] Assuming that the variable json contains the parsed JSON data, which of the following Python code snippets correctly returns the password for the user ozzy?
Options
- Ajson['content']['password'][1]
- Bjson['user_id']['password'][0][1]
- Cjson['content'][1]['password'][0]
- Djson['content'][0]['password'][1]
Unlock PT0-003 to see the answer
You've previewed enough free PT0-003 questions. Unlock PT0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.