Your public web application needs to provide access to binary files for registered users only. How would you achieve this?
Suggested Answer: A
Get Premium 200-710 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
28 comments · newest first
EL
Elfrieda
11 months ago
B is risky, better to use C for security.
CO
Cordie
12 months ago
Surprised to see D, PHP can definitely serve binary content.
DA
Dana
12 months ago
A is a bad idea, files should be private!
DE
Denae
1 year ago
I disagree, D seems a bit off. PHP can handle binary.
NO
Nohemi
1 year ago
C is the way to go for binary files!
ME
Merilyn
1 year ago
Hosting files on a public service seems risky for registered users only. I don't think A is a good option at all.
GE
Geoffrey
1 year ago
I feel like I've seen a similar question before, and I think the answer was about using headers to control access. So, C might be the best choice.
CA
Carman
1 year ago
I'm not so sure about option D, though. I remember something about PHP being able to handle binary files, but I can't recall the details.
JO
Joni
1 year ago
I think option C sounds right since using PHP to handle file downloads seems like a common practice.
MA
Marva
1 year ago
This is a good question. I think C is the way to go - using PHP to handle the file transfer and setting the right headers is a solid approach for a secure, registered-user-only file access system.
WH
Whitley
1 year ago
I'm a bit confused by this question. Aren't there other ways to restrict access to binary files besides using PHP? I'll have to review my notes and see if I can come up with a more creative solution.
DE
Demetra
1 year ago
Option D is definitely wrong - PHP can absolutely be used to serve binary content, not just HTML. I'm leaning towards C as the best solution here.
JA
Jamie
1 year ago
Hmm, I'm a bit unsure about this one. Hosting the files on a public service seems risky for security, and I'm not sure if redirecting to the file is the best approach. I'll have to think this through carefully.
LI
Linwood
1 year ago
This seems like a straightforward question. I'd go with option C - using PHP to send the file to the client with the appropriate headers.
AN
Annice
1 year ago
While option A might be convenient, hosting files on a public file sharing service is a big security risk. C is the way to go.
AD
Adelina
1 year ago
Haha, option D is a real knee-slapper! PHP is only for HTML content? Someone needs to update their web development knowledge.
CA
Carli
1 year ago
D) PHP is used for service HTML content, not binary content
TR
Tresa
1 year ago
C) Use PHP to send the file to the client, using the header() function to set appropriate HTTP headers
CA
Cassie
1 year ago
B) Redirect to the file which resides in the server's document root
LA
Lauryn
1 year ago
A) Host the files on a public external file sharing service.
AR
Arthur
1 year ago
I'm not sure about option B. Redirecting to a file in the document root doesn't seem like a good idea, as it could expose the file to unauthorized users.
EV
Evette
2 years ago
Answer C looks like the right choice. Using PHP to send the file with appropriate headers is a secure way to provide access to binary files for registered users.
TA
Tarra
1 year ago
Yes, using PHP to set the appropriate HTTP headers is a good way to ensure only registered users can access the binary files.
EL
Eladia
1 year ago
I agree, option C seems like the most secure way to provide access to binary files for registered users.
GI
Gianna
1 year ago
I think option C is the best choice. Using PHP to send the file with the right headers is secure.
PE
Peggy
2 years ago
I'm not sure about option A, hosting files on a public external service seems risky in terms of security for registered users.
TW
Twana
2 years ago
I agree with Mabelle, option C using PHP to send the file with appropriate headers is the most secure way to provide access to binary files.
MA
Mabelle
2 years ago
I think option C is the best choice because it allows us to control access to the binary files for registered users.