CompTIACompTIA
PT0-002 · Question #477
PT0-002 Question #477: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #477. The question stem and answer options stay visible for context.
Tools and Code Analysis
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: 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-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 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.
Topics
#JSON Parsing#Python Data Structures#API Security#Credential Exposure